joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439820
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 + 0x1f8], 0
je 0x43983c
cmp dword [esi + 4], 0
je 0x439869
test byte [ebx + 0x55], 1
jne 0x43985b
mov eax, ebx
call fcn.004383c0
test eax, eax
jne 0x43985b
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x439979
mov edx, esi
mov eax, ebx
call fcn.00439344
jmp 0x439979
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 0x439972
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043b690
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.0043605c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00439820
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.0043b690
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x439979
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 0x440008
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x458224]
cmp byte [eax + 0xc], 0
je 0x440175
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44016e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x459b98], 0
jne 0x44005c
push 0x44017c
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x440184
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x459b98], eax
cmp dword [0x457bec], 0
jne 0x440157
push 0x440194
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x457bec], eax
cmp dword [0x457bec], 0
je 0x440157
push 0x4401a0
mov eax, dword [0x457bec]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x459b9c], eax
push 0x4401b0
mov eax, dword [0x457bec]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x459ba0], eax
push 0x4401c4
mov eax, dword [0x457bec]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x459ba4], eax
push 0x4401dc
mov eax, dword [0x457bec]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x459ba8], eax
push 0x4401f4
mov eax, dword [0x457bec]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x459bac], eax
push 0x440208
mov eax, dword [0x457bec]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x459bb0], eax
push 0x440220
mov eax, dword [0x457bec]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x459bb4], eax
push 0x440238
mov eax, dword [0x457bec]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x459bb8], eax
push 0x440254
mov eax, dword [0x457bec]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x459bbc], eax
push 0x440260
mov eax, dword [0x457bec]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x459bc0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440175
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x444000
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.0040421c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44404f
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.0040448c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44b820
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44b870]
test si, 4
je 0x44b834
or bl, 1
test si, 8
je 0x44b83e
or bl, 4
test si, 1
je 0x44b848
or bl, 8
test si, 2
je 0x44b852
or bl, 0x10
test si, 0x10
je 0x44b85c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b86b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44b874
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44b8ac]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b88d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b89c
or bl, 4
test esi, 0x20000000
je 0x44b8a7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x451f70
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x451f82
add esp, 0xfffffff0
call fcn.004037c8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004199c4
mov eax, dword [0x457ef0]
mov dword [eax + 4], ebx
mov dword [eax], 0x452314
mov eax, dword [0x457efc]
mov dword [eax + 4], ebx
mov dword [eax], 0x452320
mov eax, ebx
call fcn.0045232c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411cbc]
call fcn.00403460
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411cbc]
call fcn.00403460
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411cbc]
call fcn.00403460
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411cbc]
call fcn.00403460
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411cbc]
call fcn.00403460
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, 0x44e744
push eax
push 0
push 0
mov eax, dword [0x458044]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b428]
call fcn.0041cbc0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b428]
call fcn.0041cbc0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b428]
call fcn.0041cbc0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045277c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452644
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452644
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452644
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4520bf
call fcn.00403820
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x452428
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 0x4525d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4525b4
mov dl, 1
mov eax, dword [0x4120d8]
call fcn.00403460
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040421c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4525a3
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.00440368
test al, al
je 0x452596
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, 0x4525e4
lea eax, [ebp - 0x254]
call fcn.00408e98
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x452596
xor eax, eax
push ebp
push 0x45258f
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 0x45261c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x452578
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040448c
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 0x452578
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040448c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452596
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x452499
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415bb4
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 0x4525da
lea eax, [ebp - 0x260]
call fcn.0040421c
ret

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

Disassembly:
push ecx
mov eax, dword [0x459be4]
cmp byte [eax + 0xa5], 0
jne 0x452f8d
cmp dword [0x459bfc], 0
jne 0x452f4e
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x452ed8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x459bfc], eax
cmp dword [0x459bf8], 0
jne 0x452f69
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x459bf8], eax
cmp dword [0x459c00], 0
jne 0x452f8d
push esp
push 0
push 0
push 0x452e7c
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x459c00], eax
pop edx
ret
Function at 0x453620
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x459be4]
cmp dword [eax + 0x30], 0
je 0x4536ca
cmp dword [ebx + 0x94], 0
jne 0x4536c4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4535b0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4536c4
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 0x45368a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4536c4
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.00414024
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x453699
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x454228
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45425d
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.0040430c
jmp 0x45426a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404270
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x455394
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4553d5
mov eax, esi
call fcn.0043b994
test al, al
je 0x4553d5
mov eax, dword [ebx + 0x84]
call fcn.0043b690
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4553d5
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043b690
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x404330
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b266b
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x4e13b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x1c], 0
mov eax, dword [ebp + 8]
je 0x404373
mov eax, 1
jmp 0x40452c
mov eax, dword [eax]
mov ecx, dword [eax - 0x10]
lea esi, [eax - 0x10]
mov dword [ebp - 0x424], eax
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x40439a
cmp ecx, dword [esi]
jne 0x40439a
lock inc dword [eax]
jmp 0x4043cd
mov eax, dword [ecx]
lea edi, [esi + 4]
push 2
push dword [edi]
call dword [eax]
mov esi, eax
test esi, esi
je 0x40454a
mov eax, dword [edi]
mov dword [esi + 4], eax
mov eax, dword [edi]
inc eax
add eax, eax
push eax
push dword [ebp - 0x424]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00405150
add esp, 0x10
add esi, 0x10
mov dword [ebp - 0x424], esi
cmp dword [esi - 0xc], 0
mov dword [ebp - 4], 0
jne 0x40448f
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00440bc0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00440bc0
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00468ecf
add esp, 0x18
lea eax, [ebp - 0x218]
push str.DrvMgr360NetUL.dll
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404467
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x424]
call fcn.00404a30
mov esi, dword [ebp - 0x424]
push esi
call fcn.00427d20
add esp, 4
test eax, eax
jne 0x4044a0
xor edi, edi
jmp 0x40450b
mov dword [ebx + 0x1c], 1
cmp dword [ebx], 0
jne 0x404506
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx], eax
test eax, eax
je 0x404506
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call edi
push str.HttpUninit
push dword [ebx]
mov dword [ebx + 4], eax
call edi
push str.zlib_uncompress
push dword [ebx]
mov dword [ebx + 8], eax
call edi
push str.zlib_compress
push dword [ebx]
mov dword [ebx + 0x10], eax
call edi
push str.zlib_compressBound
push dword [ebx]
mov dword [ebx + 0x14], eax
call edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x404506
call eax
mov dword [ebx + 0xc], eax
mov edi, 1
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40452a
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00428c45
mov esp, ebp
pop ebp
ret 4
call fcn.00403790
int3
Function at 0x405020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x405079
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405079
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40506a
cmp esi, edx
jae 0x405079
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x405058
cmp esi, edx
jae 0x405079
cmp word [esi], 0
je 0x405079
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x405900
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x4e13b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x800
lea eax, [ebp - 0x804]
mov ebx, ecx
push 0
push eax
call fcn.00440bc0
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x400
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push str.Q360ComputerZLiteSetupMutext
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x808], esi
test esi, esi
je 0x405a0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4059dc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x4ba7d0
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
mov esi, eax
test esi, esi
je 0x4059c9
push esi
call dword [sym.imp.USER32.dll_IsIconic]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x4059b2
push 9
push esi
call edi
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4059c2
push 5
push esi
call edi
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428c45
mov esp, ebp
pop ebp
ret
lea edi, [ebx + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 8]
lea ecx, [ebx + 4]
cmp dword [ecx + 8], eax
je 0x4059f9
mov dword [eax], esi
add dword [ecx + 4], 4
jmp 0x405a06
lea edx, [ebp - 0x808]
push edx
push eax
call fcn.00405350
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428c45
mov esp, ebp
pop ebp
ret
Function at 0x405ab0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a3c
call fcn.00428c60
mov eax, dword [0x4e13b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push 0
push 2
mov dword [ebp - 0x1a34], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405cc9
push edi
push 0x22c
lea eax, [ebp - 0x1a30]
push 0
push eax
call fcn.00440bc0
add esp, 0xc
mov dword [ebp - 0x1a30], 0x22c
lea eax, [ebp - 0x1a30]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x405cc5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x1a3c], eax
cmp eax, dword [ebp - 0x1a28]
je 0x405caa
push dword [ebp - 0x1a34]
lea eax, [ebp - 0x1a0c]
push eax
call fcn.004690d6
add esp, 8
test eax, eax
jne 0x405caa
push 0x800
push eax
lea eax, [ebp - 0x1804]
push eax
call fcn.00440bc0
add esp, 0xc
push dword [ebp - 0x1a28]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x405c66
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00440bc0
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x400
push eax
push 0
push edi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x405c5b
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.00440bc0
lea eax, [ebp - 0x804]
push 0x7e
push eax
call fcn.00441c24
add esp, 0x14
test eax, eax
je 0x405c23
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
cmp eax, 0x3fe
ja 0x405c23
lea ecx, [ebp - 0x1004]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405c10
lea eax, [ebp - 0x1004]
jmp 0x405c41
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405c30
lea eax, [ebp - 0x804]
sub ecx, edx
sar ecx, 1
push ecx
push eax
lea eax, [ebp - 0x1804]
push 0x400
push eax
call fcn.004690cb
add esp, 0x10
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x405c6c
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1804]
push eax
call fcn.00427d20
add esp, 4
test eax, eax
je 0x405caa
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x1a28]
mov dword [ebp - 0x1a38], ecx
cmp dword [esi + 8], eax
je 0x405c9b
mov dword [eax], ecx
add dword [esi + 4], 4
jmp 0x405caa
lea ecx, [ebp - 0x1a38]
push ecx
push eax
mov ecx, esi
call fcn.004051f0
lea eax, [ebp - 0x1a30]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
mov eax, dword [ebp - 0x1a3c]
jne 0x405b31
push ebx
call edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00428c45
mov esp, ebp
pop ebp
ret 8
Function at 0x407400
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], esi
push edi
test ebx, ebx
jne 0x40741d
xor edi, edi
jmp 0x407574
cmp dword [ebp + 0x14], 0
je 0x40754d
push 0x1440
call fcn.00428cb7
mov edi, eax
add esp, 4
test edi, edi
je 0x4074e3
mov ecx, dword [ebp + 0x40]
xor edx, edx
mov dword [ebp - 0x28], edx
test ecx, ecx
je 0x407457
mov eax, dword [ecx]
lea edx, [ebp - 0x4c]
push edx
call dword [eax]
mov edx, eax
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp + 8]
lea esi, [edi + 0x1418]
mov dword [edi], ecx
mov dword [edi + 0x1414], 1
mov dword [esi + 0x24], 0
test edx, edx
je 0x407481
mov eax, dword [edx]
mov ecx, edx
push esi
call dword [eax]
mov dword [esi + 0x24], eax
push 0x1000
lea esi, [edi + 4]
push 0
push esi
call fcn.00440bc0
push 0x800
push ebx
push esi
call fcn.00469b7d
push 0x410
lea esi, [edi + 0x1004]
push 0
push esi
call fcn.00440bc0
mov eax, dword [ebp - 4]
add esp, 0x24
test eax, eax
je 0x4074c9
push 0x208
push eax
push esi
call fcn.00469b7d
add esp, 0xc
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x4074e5
mov edx, dword [ecx]
lea eax, [ebp - 0x4c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
jmp 0x4074e5
xor edi, edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], vtable.CSimpleThread.0
push eax
push 0
push edi
push 0x4075a0
push 0
push 0
mov dword [ebp - 0xc], 0x4075a0
mov dword [ebp - 8], edi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.00469f27
add esp, 0x18
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], vtable.CSimpleThread.0
test eax, eax
je 0x407546
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
jmp 0x407574
sub esp, 0x28
mov edi, esp
mov dword [edi + 0x24], 0
mov ecx, dword [ebp + 0x40]
test ecx, ecx
je 0x407568
mov eax, dword [ecx]
push edi
call dword [eax]
mov dword [edi + 0x24], eax
mov ecx, dword [ebp + 8]
push esi
push ebx
call fcn.00407930
mov edi, eax
mov ecx, dword [ebp + 0x40]
test ecx, ecx
je 0x40758c
mov esi, dword [ecx]
lea eax, [ebp + 0x1c]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x3c