joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a1a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x48a1d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0x22c
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0xffffffff
jne 0x41a1f1
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x234], eax
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x238]
push edx
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0x41a255
lea eax, [ebp - 0x20c]
push eax
push 0x4768c0
call fcn.00437104
add esp, 8
test eax, eax
jne 0x41a23a
mov ecx, dword [ebp - 0x234]
add ecx, 1
mov dword [ebp - 0x234], ecx
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp - 0x238]
push eax
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 0x23c], eax
jmp 0x41a20a
cmp dword [ebp - 0x234], 1
jl 0x41a264
mov al, 1
jmp 0x41a266
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043715b
mov esp, ebp
pop ebp
ret
Function at 0x41a280
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b8d0
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x48a1d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x74], ecx
push 0x4769d0
push 0x6c
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x64]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x44]
call fcn.00402c80
mov dword [ebp - 4], 0
lea edx, [ebp - 0x44]
push edx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x78], esp
push 0x4769d8
call fcn.00402ca0
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 1
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x84], esp
push 0x4769e4
call fcn.00402ca0
mov dword [ebp - 0x80], eax
push SysStringLen
mov byte [ebp - 4], 0
call fcn.00412bf0
add esp, 0x38
push str.caitai.exe
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.00414260
add esp, 0xc
mov byte [ebp - 4], 2
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea ecx, [ebp - 0x2c]
call fcn.00402da0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0xffffffff
jne 0x41a3a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00402d70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00402d70
jmp 0x41a426
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x476a04
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x5c]
push eax
call fcn.00414260
add esp, 0xc
mov byte [ebp - 4], 3
push 0xffffffffffffffff
push 1
lea ecx, [ebp - 0x5c]
call fcn.00402da0
push eax
call fcn.0040d820
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.00402da0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.00402d70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00402d70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00402d70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043715b
mov esp, ebp
pop ebp
ret
Function at 0x41a7a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b988
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x48a1d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
push 0x476c9c
lea ecx, [ebp - 0x28]
call fcn.00406660
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x50], esp
push 0x476ca0
call fcn.00406660
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
mov byte [ebp - 4], 1
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x54], esp
push 0x476cb4
call fcn.00406660
mov dword [ebp - 0x4c], eax
push SysStringLen
mov byte [ebp - 4], 0
call fcn.00412d10
add esp, 0x38
push str.Lexicon_
lea ecx, [ebp - 0x28]
call fcn.00406900
push str.Lexicon.cel
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x40]
push eax
call fcn.004188c0
add esp, 0xc
mov byte [ebp - 4], 2
push 0
lea ecx, [ebp - 0x28]
call fcn.004077f0
push eax
lea ecx, [ebp - 0x40]
call fcn.004077f0
push eax
call fcn.0041b3f0
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.004077f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00406810
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406810
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043715b
mov esp, ebp
pop ebp
ret
Function at 0x41ac70
Capabilities:
Create service
Modify service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x48a1d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x220], ecx
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x218], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x41ace3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x218]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41ae0f
mov dword [ebp - 0x214], 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x20c]
push edx
push 0
push 2
push 0x10
push 0xf01ff
push 0x476d88
push 0x476df4
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x41ad84
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0x3e5
je 0x41ad67
cmp dword [ebp - 0x21c], 0x431
je 0x41ad67
mov ecx, dword [ebp - 0x218]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41ae0f
push 0xf01ff
push 0x476e14
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], 0x476e60
lea eax, [ebp - 0x210]
push eax
push 1
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push 0x476ecc
mov ecx, dword [ebp - 0x220]
call fcn.0041ae20
movzx edx, al
test edx, edx
jne 0x41adec
push 0
push 0
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x41adec
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41ae0f
cmp dword [ebp - 0x214], 0
je 0x41ae02
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x218]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043715b
mov esp, ebp
pop ebp
ret
Function at 0x41ae20
Capabilities:
Acquire debug privileges
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x48a1d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x21], 0
push str.SeDebugPrivilege
call fcn.0041a0e0
add esp, 4
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x41ae71
xor al, al
jmp 0x41af2a
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x41ae9e
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x41af2a
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x41aee3
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x41af2a
cmp dword [ebp - 0x1c], 5
je 0x41aef5
cmp dword [ebp - 0x1c], 2
je 0x41aef5
cmp dword [ebp - 0x1c], 4
jne 0x41aef9
mov byte [ebp - 0x21], 1
cmp dword [ebp - 0x2c], 0
je 0x41af10
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 0x28], 0
je 0x41af27
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x28], 0
mov al, byte [ebp - 0x21]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043715b
mov esp, ebp
pop ebp
ret 4

Function at 0x41b220
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x48a1d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 8], 1
jg 0x41b286
mov dword [ebp - 0x14], 0x476d04
mov dword [ebp - 0x10], 0x41ba40
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push str.StartServiceCtrlDispatcher
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x427
jne 0x41b284
mov ecx, dword [ebp - 0x18]
call fcn.0041ac70
jmp 0x41b2d4
push str._install
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x41b2ae
mov ecx, dword [ebp - 0x18]
call fcn.0041ac70
jmp 0x41b2d4
push str._uninstall
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x41b2d4
mov ecx, dword [ebp - 0x18]
call fcn.00419f60
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043715b
mov esp, ebp
pop ebp
ret 8
Function at 0x41ce00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46bc38
mov eax, dword fs:[0]
push eax
sub esp, 0x408
mov eax, dword [0x48a1d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x414], ecx
mov dword [ebp - 4], 0
lea eax, [ebp + 0x20]
push eax
mov ecx, dword [ebp - 0x414]
mov ecx, dword [ecx]
call fcn.0041f470
xor edx, edx
mov word [ebp - 0x410], dx
push 0x3fe
push 0
lea eax, [ebp - 0x40e]
push eax
call fcn.004369a0
add esp, 0xc
lea ecx, [ebp + 0x20]
call fcn.004077f0
push eax
push str._s__n
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [ebp - 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004127d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043715b
mov esp, ebp
pop ebp
ret 0x30
Function at 0x41d330
Capabilities:
Enumerate processes
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x640
mov eax, dword [0x48a1d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x640], ecx
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x634], eax
cmp dword [ebp - 0x634], 0xffffffff
jne 0x41d37c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._______CreateToolhelp32Snapshot_faild______d__n
call fcn.0043b572
add esp, 8
xor eax, eax
jmp 0x41d461
xor eax, eax
mov word [ebp - 0x404], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x402]
push ecx
call fcn.004369a0
add esp, 0xc
mov dword [ebp - 0x630], 0x22c
lea edx, [ebp - 0x630]
push edx
mov eax, dword [ebp - 0x634]
push eax
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 0x63c], eax
mov dword [ebp - 0x638], 0
cmp dword [ebp - 0x63c], 0
je 0x41d44e
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x60c]
push eax
call fcn.00414bd0
add esp, 8
test eax, eax
je 0x41d430
mov ecx, dword [ebp - 0x628]
mov dword [ebp - 0x638], ecx
mov edx, dword [ebp - 0x638]
push edx
push str.___process_is
push 0x200
lea eax, [ebp - 0x404]
push eax
call fcn.0043afb1
add esp, 0x10
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x41d44e
lea edx, [ebp - 0x630]
push edx
mov eax, dword [ebp - 0x634]
push eax
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 0x63c], eax
jmp 0x41d3c8
mov ecx, dword [ebp - 0x634]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x638]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043715b
mov esp, ebp
pop ebp
ret 4
Function at 0x41d620
Capabilities:
Get session user name
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x48a1d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x624], ecx
mov dword [ebp - 0x620], 0
push str.explorer.exe
mov ecx, dword [ebp - 0x624]
call fcn.0041d330
mov dword [ebp - 0x628], eax
mov eax, dword [ebp - 0x628]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x62c], eax
lea ecx, [ebp - 0x61c]
push ecx
push 0xa
mov edx, dword [ebp - 0x62c]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov eax, dword [ebp - 0x61c]
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov cx, word [0x47729c]
mov word [ebp - 0x20c], cx
push 0x206
push 0
lea edx, [ebp - 0x20a]
push edx
call fcn.004369a0
add esp, 0xc
mov dword [ebp - 0x610], 0x104
lea eax, [ebp - 0x610]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor edx, edx
mov word [ebp - 0x60c], dx
push 0x3fe
push 0
lea eax, [ebp - 0x60a]
push eax
call fcn.004369a0
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
push str.___NAME_IS:_s__n
push 0x200
lea edx, [ebp - 0x60c]
push edx
call fcn.0043afb1
add esp, 0x10
lea eax, [ebp - 0x60c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov dword [ebp - 0x618], 0
lea ecx, [ebp - 0x618]
push ecx
lea edx, [ebp - 0x20c]
push edx
mov ecx, dword [ebp - 0x624]
call fcn.00414670
lea eax, [ebp - 0x614]
push eax
mov ecx, dword [ebp - 0x618]
push ecx
call sub.ADVAPI32.dll_ConvertSidToStringSidW
mov edx, dword [ebp - 0x614]
push edx
push str.___sid_IS:_s__n
push 0x200
lea eax, [ebp - 0x60c]
push eax
call fcn.0043afb1
add esp, 0x10
lea ecx, [ebp - 0x60c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x614]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406660
mov eax, dword [ebp - 0x620]
or eax, 1
mov dword [ebp - 0x620], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043715b
mov esp, ebp
pop ebp
ret 4
Function at 0x422228
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x46c02f
call fcn.0043e0e5
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x422320
cmp byte [esi + 0x46], bl
je 0x422320
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x422264
xor al, al
jmp 0x422322
push ebx
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.004044a0
mov dword [ebp - 4], ebx
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov ebx, edi
cmp eax, 0x10
jae 0x422291
lea ebx, [ebp - 0x28]
mov edi, ebx
mov ecx, dword [esi + 0x40]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, ebx
mov edx, dword [ecx]
push eax
push edi
lea eax, [esi + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4222b8
dec eax
je 0x4222bc
dec eax
dec eax
je 0x42230e
xor bl, bl
jmp 0x422310
mov byte [esi + 0x46], 0
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
mov ecx, edi
cmp eax, 0x10
jae 0x4222cc
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
sub ebx, ecx
je 0x4222f4
cmp eax, 0x10
jae 0x4222db
lea edi, [ebp - 0x28]
push dword [esi + 0x50]
push ebx
push 1
push edi
call fcn.0043c0cd
add esp, 0x10
cmp ebx, eax
jne 0x4222b4
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
cmp byte [esi + 0x46], 0
je 0x42230e
test ebx, ebx
jne 0x422285
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.004043f0
jmp 0x42227f
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004036e0
mov al, bl
jmp 0x422322
mov al, 1
call fcn.0043e094
ret
Function at 0x4225d3
Capabilities:
Write file on windows

Disassembly:
push 0x30
mov eax, 0x46c05c
call fcn.0043e0e5
mov edi, ecx
mov ebx, dword [ebp + 8]
mov esi, 0xffff
cmp si, bx
jne 0x4225f5
xor eax, eax
jmp 0x42277d
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x422621
mov edx, dword [edi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x422621
dec dword [edx]
mov ax, bx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x42277d
cmp dword [edi + 0x50], 0
je 0x42277a
mov ecx, edi
call fcn.0042240d
xor ecx, ecx
cmp dword [edi + 0x40], ecx
jne 0x422654
push dword [edi + 0x50]
push ebx
call fcn.00421ed9
pop ecx
pop ecx
test al, al
je 0x42277a
movzx esi, bx
jmp 0x42277a
push ecx
movzx eax, bx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push 8
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x14], 0xf
call fcn.004044a0
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
cmp ecx, 0x10
jae 0x422687
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], eax
cmp ecx, 0x10
jae 0x422695
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov ecx, dword [edi + 0x40]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x2c]
mov edx, dword [ecx]
push eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x32]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [edi + 0x48]
push eax
call dword [edx + 0x1c]
mov ebx, dword [ebp + 8]
test eax, eax
js 0x42276e
cmp eax, 1
jg 0x422752
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
cmp ecx, 0x10
jb 0x4226e2
mov dword [ebp - 0x2c], eax
jmp 0x4226e8
lea edx, [ebp - 0x28]
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x38]
sub edx, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], edx
je 0x42271a
cmp ecx, 0x10
jae 0x4226fb
lea eax, [ebp - 0x28]
push dword [edi + 0x50]
push edx
push 1
push eax
call fcn.0043c0cd
mov edx, dword [ebp - 0x2c]
add esp, 0x10
cmp edx, eax
jne 0x42274a
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
lea ebx, [ebp - 0x34]
mov byte [edi + 0x46], 1
cmp dword [ebp - 0x3c], ebx
mov ebx, dword [ebp + 8]
jne 0x422747
test edx, edx
jne 0x42267f
cmp dword [ebp - 0x18], 0x20
jae 0x42274d
push edx
push 8
lea ecx, [ebp - 0x28]
call fcn.004043f0
jmp 0x422676
movzx esi, bx
movzx esi, si
movzx esi, si
jmp 0x42276b
cmp eax, 3
jne 0x42276e
push dword [edi + 0x50]
push dword [ebp - 0x34]
call fcn.00421ed9
pop ecx
pop ecx
test al, al
je 0x42276b
movzx esi, bx
movzx esi, si
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004036e0
mov ax, si
call fcn.0043e094
ret 4

Function at 0x440120
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x458aa8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x48a1d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0043e36f
mov dword [ebp - 0x14], eax
cmp dword [0x499298], esi
jne 0x458b9b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x458b28
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x458c7b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x458c7b
push 0x47f620
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x458c7b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x499298], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x49929c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4992a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4992a8], eax
test eax, eax
je 0x458b98
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4992a4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x458bc0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x458bb3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x458bd5
push 4
pop eax
jmp 0x458c7d
cmp dword [ebp - 0x14], esi
je 0x458bd5
push dword [0x499298]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x458bba
mov eax, dword [0x4992a4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x458c33
cmp dword [0x4992a8], edi
je 0x458c33
push eax
call ebx
push dword [0x4992a8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x458c33
test eax, eax
je 0x458c33
call ecx
test eax, eax
je 0x458c28
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x458c28
test byte [ebp - 8], 1
jne 0x458c33
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x458c63
mov eax, dword [0x49929c]
cmp eax, edi
je 0x458c60
push eax
call ebx
test eax, eax
je 0x458c60
call eax
mov esi, eax
test esi, esi
je 0x458c60
mov eax, dword [0x4992a0]
cmp eax, edi
je 0x458c60
push eax
call ebx
test eax, eax
je 0x458c60
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x499298]
call ebx
test eax, eax
je 0x458c7b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x458c7d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043715b
mov esp, ebp
pop ebp
ret