joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4465d8
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x240], 0
je 0x4465f4
cmp dword [esi + 4], 0
je 0x446621
test byte [ebx + 0x55], 1
jne 0x446613
mov eax, ebx
call fcn.004449c0
test eax, eax
jne 0x446613
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x446731
mov edx, esi
mov eax, ebx
call fcn.00445fe0
jmp 0x446731
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x44672a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00448668
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00441da0
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004465d8
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00448668
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446731
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44d9cc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x46bdd0]
cmp byte [eax + 0xc], 0
je 0x44db39
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44db32
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x46f574], 0
jne 0x44da20
push 0x44db40
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44db48
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46f574], eax
cmp dword [0x46b6fc], 0
jne 0x44db1b
push 0x44db58
call sub.kernel32.dll_LoadLibraryA
mov dword [0x46b6fc], eax
cmp dword [0x46b6fc], 0
je 0x44db1b
push 0x44db64
mov eax, dword [0x46b6fc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46f578], eax
push 0x44db74
mov eax, dword [0x46b6fc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46f57c], eax
push 0x44db88
mov eax, dword [0x46b6fc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46f580], eax
push 0x44dba0
mov eax, dword [0x46b6fc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46f584], eax
push 0x44dbb8
mov eax, dword [0x46b6fc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46f588], eax
push 0x44dbcc
mov eax, dword [0x46b6fc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46f58c], eax
push 0x44dbe4
mov eax, dword [0x46b6fc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46f590], eax
push 0x44dbfc
mov eax, dword [0x46b6fc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46f594], eax
push 0x44dc18
mov eax, dword [0x46b6fc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46f598], eax
push 0x44dc24
mov eax, dword [0x46b6fc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46f59c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44db39
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4531a8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4531fc]
test si, 4
je 0x4531bd
or bl, 1
test si, 8
je 0x4531c7
or bl, 4
test si, 1
je 0x4531d1
or bl, 8
test si, 2
je 0x4531db
or bl, 0x10
test si, 0x10
je 0x4531e5
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4531f4
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x453200
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x45323c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45321a
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x453229
or bl, 4
test esi, 0x20000000
je 0x453234
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x45a90c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45a91e
add esp, 0xfffffff0
call fcn.00403c18
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e87c
mov eax, dword [0x46ba64]
mov dword [eax + 4], ebx
mov dword [eax], 0x45acb0
mov eax, dword [0x46ba70]
mov dword [eax + 4], ebx
mov dword [eax], 0x45acbc
mov eax, ebx
call fcn.0045acc8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x416678]
call fcn.004038c4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x416678]
call fcn.004038c4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x416678]
call fcn.004038c4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x416678]
call fcn.004038c4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x416678]
call fcn.004038c4
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x456744
push eax
push 0
push 0
mov eax, dword [0x46bbc0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4223b8]
call fcn.00423cac
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4223b8]
call fcn.00423cac
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4223b8]
call fcn.00423cac
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045b0f8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45afc8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45afc8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45afc8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45aa5b
call fcn.00403c70
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45adac
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45af57
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45af38
mov dl, 1
mov eax, dword [0x416a9c]
call fcn.004038c4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404720
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45af27
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044dd28
test al, al
je 0x45af1a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45af68
lea eax, [ebp - 0x254]
call fcn.00409b04
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45af1a
xor eax, eax
push ebp
push 0x45af13
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45afa0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45aefc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404990
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45aefc
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404990
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45af1a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45ae1d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041a77c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45af5e
lea eax, [ebp - 0x260]
call fcn.00404720
ret

Function at 0x45b8d0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x46f5ac]
cmp byte [eax + 0xad], 0
jne 0x45b941
cmp dword [0x46f5c4], 0
jne 0x45b902
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45b88c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x46f5c4], eax
cmp dword [0x46f5c0], 0
jne 0x45b91d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x46f5c0], eax
cmp dword [0x46f5c8], 0
jne 0x45b941
push esp
push 0
push 0
push 0x45b830
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x46f5c8], eax
pop edx
ret
Function at 0x45bb14
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45bb2b
add esp, 0xfffffff0
call fcn.00403c18
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e87c
mov eax, dword [0x46bbac]
cmp word [eax + 2], 0
jne 0x45bb53
mov eax, dword [0x46bbac]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045d654
mov eax, dword [0x46bc60]
cmp word [eax + 2], 0
jne 0x45bb6d
mov eax, dword [0x46bc60]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045d860
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x416678]
call fcn.004038c4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x416678]
call fcn.004038c4
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x416678]
call fcn.004038c4
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x422f68]
call fcn.0042ab40
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x45bd24
mov eax, dword [0x46bacc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042af14
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45df20
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46bacc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d33c
test eax, eax
je 0x45bc74
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004094a0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d370
test eax, eax
je 0x45bc88
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404990
mov byte [ebx + 0xd4], 0
push ebx
push 0x45d1b4
call fcn.0041f9f8
mov dword [ebx + 0xc8], eax
mov eax, dword [0x46b9a4]
cmp byte [eax], 0
jne 0x45bcd9
mov eax, ebx
call fcn.0045be68
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0045e0fc
mov eax, ebx
call fcn.0045ec5c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45bd19
call fcn.00403c70
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45c0e8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46f5ac]
cmp dword [eax + 0x30], 0
je 0x45c192
cmp dword [ebx + 0x94], 0
jne 0x45c18c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45c078
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45c18c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45c152
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45c18c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00418a24
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45c161
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45ceac
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45cee1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404810
jmp 0x45ceee
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404774
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45e2e0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45e34e
mov eax, esi
call fcn.00448a08
test al, al
je 0x45e34e
mov eax, dword [ebx + 0x84]
call fcn.00448668
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45e34e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45e342
push 0
mov eax, dword [ebx + 0x84]
call fcn.00448668
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00440a08
jmp 0x45e34e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045e11c
pop esi
pop ebx
ret
Function at 0x45fa7c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x407504]
call fcn.004051bc
xor eax, eax
push ebp
push 0x45fc1d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x46b850], 0
jne 0x45fad7
mov ecx, dword [0x46b9b4]
mov dl, 1
mov eax, dword [0x407ad8]
call fcn.0040c5b0
call fcn.00404168
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00403230
mov eax, ebx
call fcn.0040508c
mov dword [ebp - 0x24], eax
mov esi, 0x45fc2c
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00406150
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.0040509c
test eax, eax
jle 0x45fbc0
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x45fbac
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00404990
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x45fb52
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.004049a8
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x45fb68
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.004049a8
mov eax, dword [ebp - 0x54]
call fcn.00404be4
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00404990
mov eax, dword [ebp - 0x58]
call fcn.00404be4
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x45fbae
xor eax, eax
test al, al
je 0x45fbb9
mov ebx, 0x15
jmp 0x45fbc5
mov ebx, 0x10
jmp 0x45fbc5
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x46b850]
call fcn.0045f900
mov eax, dword [ebp - 4]
call fcn.0045f900
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00406168
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fc24
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00404744
lea eax, [ebp - 0xc]
mov edx, dword [0x407504]
call fcn.0040528c
ret
Function at 0x4016d0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x210
lea eax, [esp + 4]
push esi
lea ecx, [esp + 0xc]
push eax
push ecx
xor esi, esi
mov dword [esp + 0x10], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x40171a
lea edx, [esp + 4]
lea eax, [esp + 0xc]
push edx
push 1
push eax
push esi
call sub.NETAPI32.dll_NetUserGetInfo
test eax, eax
jne 0x40171a
mov ecx, dword [esp + 4]
cmp dword [ecx + 0xc], 2
jne 0x40171a
mov esi, 1
mov edx, dword [esp + 4]
push edx
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, esi
pop esi
add esp, 0x210
ret

Function at 0x4022b0
Capabilities:
Query service status

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4022db
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
jmp 0x4022ef
mov eax, dword [esp + 0x10]
push 0x16
push str.ngslotd
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x40231d
push 0xc8
call ebp
inc edi
cmp edi, 0x14
jl 0x4022eb
test esi, esi
jne 0x40231d
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 0
rep stosd dword es:[edi], eax
xor bl, bl
xor edi, edi
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40234d
cmp dword [esp + 0x18], 4
je 0x402359
push 0x64
call ebp
inc edi
cmp edi, 0x64
jl 0x402336
jmp 0x40235b
mov bl, 1
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ecx
call edi
push esi
call edi
xor eax, eax
pop edi
test bl, bl
pop esi
pop ebp
sete al
pop ebx
add esp, 0x20
ret
Function at 0x402380
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x20
push esi
push edi
xor eax, eax
mov ecx, 6
lea edi, [esp + 0x10]
push 0xf003f
mov dword [esp + 0x10], 0
push eax
rep stosd dword es:[edi], eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
mov dword [esp + 8], edi
jne 0x4023bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
xor al, al
pop esi
add esp, 0x20
ret
push 0xf01ff
push str.ngSlotD
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x4023eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor al, al
pop esi
add esp, 0x20
ret
lea eax, [esp + 0xc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push eax
push esi
call ebx
test eax, eax
je 0x40243b
cmp dword [esp + 0x14], 1
je 0x40243b
lea ecx, [esp + 0x10]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40243b
cmp dword [esp + 0x14], 3
jne 0x402437
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call edi
lea edx, [esp + 0x10]
push edx
push esi
call ebx
cmp dword [esp + 0x14], 3
je 0x402424
mov edi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop ebx
pop edi
mov al, 1
pop esi
add esp, 0x20
ret
Function at 0x4028d0
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
jne 0x4028f6
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1c
ret
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenServiceA]
xor edi, edi
push 0x14
push str.ngSlotD
push ebp
call ebx
mov esi, eax
test esi, esi
jne 0x402934
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x14
jl 0x4028fe
test esi, esi
jne 0x402934
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1c
ret
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x40295f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call edi
push esi
call edi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1c
ret
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 0
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ebx, 1
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
je 0x4029a5
cmp dword [esp + 0x14], 4
je 0x4029bb
inc ebx
cmp ebx, 0xc8
jg 0x4029c3
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40297f
inc ebx
cmp ebx, 0xc8
jg 0x4029c3
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40297f
cmp ebx, 0xc8
jle 0x4029cd
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1c
ret
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call edi
push esi
call edi
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x1c
ret
Function at 0x402c70
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebx
push esi
push edi
call sub.MFC42.DLL_AfxGetModuleState
mov esi, dword [eax + 8]
test esi, esi
je 0x402d0c
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
and ecx, 0xffff
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x402d0c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402d0c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x402d0c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x18]
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
test esi, esi
je 0x402d06
lea eax, [esp + 0x18]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
je 0x402d06
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
ret 0xc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
ret 0xc