joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401479
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4014b4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4014b0
lea ebx, [ebx]
cmp esi, eax
jae 0x4014b4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4014a0
cmp esi, eax
jb 0x4014ba
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401a00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.0040c57f

Function at 0x402130
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4546fd
mov eax, dword fs:[0]
push eax
sub esp, 0x5d0
mov eax, dword [0x46f650]
xor eax, esp
mov dword [esp + 0x5c8], eax
push esi
mov eax, dword [0x46f650]
xor eax, esp
push eax
lea eax, [esp + 0x5d8]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
mov esi, ecx
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.004139f0
push 0
call fcn.00414b34
add esp, 4
call fcn.00444680
test eax, eax
jne 0x4021b3
push eax
push eax
push str.Invalid_Process
call fcn.00415263
jmp 0x40222f
push 0x460aa4
mov ecx, esi
call fcn.00415300
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4021ee
cmp dword [esp + 0x24], 2
jne 0x4021ee
cmp dword [esp + 0x18], 6
jb 0x4021ee
push 1
call fcn.0044c3e0
add esp, 4
lea edx, [esp + 0x12c]
push edx
call fcn.00402740
lea eax, [esp + 0x12c]
mov dword [esp + 0x5e0], 0
mov ecx, eax
mov dword [esi + 0x20], eax
call fcn.0040c347
lea ecx, [esp + 0x12c]
push ecx
mov dword [esp + 0x5e4], 0xffffffff
call fcn.00402260
xor eax, eax
mov ecx, dword [esp + 0x5d8]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x5c8]
xor ecx, esp
call fcn.00428d44
mov esp, ebp
pop ebp
ret
Function at 0x4034b0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x455020
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46f650]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0040c043
mov eax, dword [esi + 0x20]
push 0
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.00417853
mov ebx, eax
test ebx, ebx
je 0x40358f
call fcn.0040b9e7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403512
push 0x80004005
call fcn.00401510
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
push 0x65
mov dword [esp + 0x24], 0
call fcn.0040bb83
test eax, eax
je 0x403545
push 0x65
push eax
lea ecx, [esp + 0x1c]
call fcn.00401ba0
mov edi, dword [esp + 0x14]
cmp dword [edi - 0xc], 0
je 0x40356b
mov ecx, dword [ebx + 4]
mov ebp, dword [sym.imp.USER32.dll_AppendMenuW]
push 0
push 0
push 0x800
push ecx
call ebp
mov edx, dword [ebx + 4]
push edi
push 0x10
push 0
push edx
call ebp
lea eax, [edi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40358f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x380]
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 1
push 0x80
push ecx
call edi
mov eax, dword [esi + 0x380]
mov edx, dword [esi + 0x20]
push eax
push 0
push 0x80
push edx
call edi
push 0x46196e
push 0
call fcn.00429f32
add esp, 8
call fcn.0040b9e7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4035e6
push 0x80004005
call fcn.00401510
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0xd
push 0x460f24
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], 1
call fcn.00401ef0
mov ebp, dword [esp + 0x14]
push ebp
mov ecx, esi
call fcn.0041293f
mov ecx, dword [esi + 0x3c4]
push 0
push 0
push 0x140
push ecx
call edi
cmp eax, 0xffffffff
je 0x40364a
mov edx, dword [esi + 0x3c4]
shr eax, 0x10
or eax, 0xffff0000
push eax
push 0
push 0x142
push edx
call edi
call fcn.0042a0b4
mov edi, esi
mov dword [0x4a0988], eax
call fcn.00402cf0
call fcn.00402ba0
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea edi, [esi + 0x2b4]
push edi
push 0
push 0
call ebx
push 0
push 0
push eax
push 0x480968
push 0xffffffffffffffff
push edi
push 0
push 0
call ebx
push 0
mov ecx, esi
call fcn.0040ebb3
push 0
push 1
mov ecx, esi
call fcn.00412881
mov ecx, eax
call fcn.00412a23
push 0
push 0
push 0
push 0
push esi
push 0x403710
call fcn.00416871
lea eax, [ebp - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4036e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x403780
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x454d28
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x46f650]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 4], 0xff
jne 0x4037c4
or eax, 0xffffffff
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
call fcn.0040b9e7
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4037e0
push 0x80004005
call fcn.00401510
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ebx
movzx ecx, byte [esi + 4]
push ecx
lea edx, [esp + 0x14]
push str._d_1
push edx
call fcn.00407970
add esp, 0xc
cmp byte [esi + 5], 0xff
je 0x403887
lea edi, [esi + 5]
call fcn.0040b9e7
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x4037d6
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x24], 1
movzx ecx, byte [edi]
push ecx
lea edx, [esp + 0x18]
push 0x460f4c
push edx
call fcn.00407970
mov esi, dword [esp + 0x20]
mov eax, dword [esi - 0xc]
add esp, 0xc
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.004024d0
lea eax, [esi - 0x10]
mov byte [esp + 0x24], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403881
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc edi
cmp byte [edi], 0xff
jne 0x403814
lea esi, [esp + 0x14]
call fcn.00408980
push str.Port.pfg
push eax
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x30], 2
call fcn.00407a80
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4038cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
push ecx
push ebx
push edi
push str.PortMap
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
sub esi, 1
jns 0x4038ec
or esi, 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40390c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403930
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x404950
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c0
mov eax, dword [0x46f650]
xor eax, esp
mov dword [esp + 0x9bc], eax
push esi
push edi
lea ecx, [ebx + 0x2fc]
push 1
call fcn.0044ac40
xor eax, eax
push 0x18e
push eax
lea ecx, [esp + 0x83a]
push ecx
mov word [esp + 0x83c], ax
call fcn.0042ac10
add esp, 0xc
lea edx, [esp + 0x830]
push edx
push 0xc8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea esi, [ebx + 0x74]
mov dword [esp + 8], 0x10
mov edi, dword [esi]
test edi, edi
je 0x404a36
cmp dword [edi + 0x10], 0xffffffff
je 0x404a36
lea ecx, [ebx + 0x2fc]
call fcn.0044ac80
mov dword [esp + 0xc], eax
test eax, eax
je 0x404a00
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [ebx + 0x2fc]
call fcn.0044ac90
lea ecx, [esp + 0x10]
call fcn.00403780
cmp dword [edi + 0x10], eax
je 0x404a36
cmp dword [esp + 0xc], 0
jne 0x4049d6
mov edx, dword [ebx + 0x3c4]
push 0
push 0
push 0x144
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi]
test eax, eax
je 0x404a36
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi]
push ecx
call fcn.0040b5f3
add esp, 4
mov dword [esi], 0
add esi, 4
sub dword [esp + 8], 1
jne 0x4049b7
mov edx, dword [ebx + 0x3c4]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x147
push edx
call esi
cmp eax, 0xffffffff
jne 0x404a73
mov eax, dword [ebx + 0x3c4]
push 0
push 0
push 0x14e
push eax
call esi
mov ecx, dword [esp + 0x9c4]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.00428d44
mov esp, ebp
pop ebp
ret
Function at 0x409c50
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x454b40
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46f650]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [eax], 1
test esi, esi
je 0x409e2b
nop
mov ecx, dword [edi + 0x9c]
push esi
push 4
push 0x110a
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x30], 1
test eax, eax
jne 0x409dd4
lea ecx, [edi + 0x7c]
push esi
call fcn.00418f87
call fcn.0040b9e7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x409e41
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
push esi
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
mov dword [esp + 0x30], 0
call fcn.0040a070
mov byte [esp + 0x28], 1
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea ebx, [ebp - 0x10]
cmp eax, ebx
je 0x409d5a
cmp dword [ebx + 0xc], 0
lea ebp, [ebx + 0xc]
jl 0x409d48
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x409d48
push eax
call fcn.00402670
mov dword [esp + 0x1c], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x409d3b
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ebp, dword [esp + 0x18]
add ebp, 0x10
mov dword [esp + 0x14], ebp
jmp 0x409d5a
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401ef0
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409d7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 0xd4]
push eax
push 0
push ebp
push str.PortMap
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jbe 0x409da5
push 1
push esi
lea ecx, [edi + 0x7c]
call fcn.004190ea
jmp 0x409dad
mov dword [esp + 0x30], 0
add ebp, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409de1
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
jmp 0x409de1
lea ecx, [esp + 0x30]
push ecx
push eax
mov ecx, edi
call fcn.00409c50
mov edx, dword [esp + 0x30]
push edx
push esi
lea ecx, [edi + 0x7c]
call fcn.004190ea
mov eax, dword [edi + 0x9c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push esi
push 2
push 0x1102
push eax
call ebx
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
and dword [eax], ecx
mov edx, dword [edi + 0x9c]
push esi
push 1
push 0x110a
push edx
call ebx
mov esi, eax
test esi, esi
jne 0x409c90
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
push 0x80004005
call fcn.00401510
int3
Function at 0x40a6e0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x4a0a60]
mov edx, dword [esp + 8]
push esi
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a71a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a73a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
ret 8
Function at 0x412110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x412157
call fcn.0041770e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x412157
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x412173
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00411c88
mov esi, eax
test edi, edi
je 0x412171
test ebx, ebx
je 0x412171
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x412fa0
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4533ae
call fcn.0042b304
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x412fc5
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x41300b
lea ecx, [ebp - 0x10]
call fcn.00401a30
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040b683
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401530
mov eax, esi
call fcn.0042b3dc
ret 8

Function at 0x414670
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4146b8
call fcn.0041770e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4146b8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4146fb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4146e4
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4146e4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4146f8
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x428d44
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46f650]
jne 0x428d4e
repz ret
jmp fcn.00430b3e

Function at 0x43beb2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004304a2
and dword [ebp - 4], 0
cmp dword [0x480888], 0
mov ebx, eax
jne 0x43bf63
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43c014
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x43c014
push eax
call fcn.00430430
mov dword [esp], 0x45c664
push edi
mov dword [0x480888], eax
call esi
push eax
call fcn.00430430
mov dword [esp], 0x45c650
push edi
mov dword [0x48088c], eax
call esi
push eax
call fcn.00430430
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x480890], eax
call esi
push eax
call fcn.00430430
pop ecx
mov dword [0x480898], eax
test eax, eax
je 0x43bf63
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00430430
pop ecx
mov dword [0x480894], eax
mov eax, dword [0x480894]
cmp eax, ebx
je 0x43bfbb
cmp dword [0x480898], ebx
je 0x43bfbb
push eax
call fcn.004304ab
push dword [0x480898]
mov esi, eax
call fcn.004304ab
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43bfbb
test edi, edi
je 0x43bfbb
call esi
test eax, eax
je 0x43bfb2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43bfb2
test byte [ebp - 0xc], 1
jne 0x43bfbb
or dword [ebp + 0x10], 0x200000
jmp 0x43bff4
mov eax, dword [0x48088c]
cmp eax, ebx
je 0x43bff4
push eax
call fcn.004304ab
pop ecx
test eax, eax
je 0x43bff4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43bff4
mov eax, dword [0x480890]
cmp eax, ebx
je 0x43bff4
push eax
call fcn.004304ab
pop ecx
test eax, eax
je 0x43bff4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x480888]
call fcn.004304ab
pop ecx
test eax, eax
je 0x43c014
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43c016
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x442ed0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x204
mov eax, dword [0x46f650]
xor eax, esp
mov dword [esp + 0x200], eax
push 0x1ff
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.0042ac10
mov edx, dword [esp + 0x214]
lea ecx, [esp + 0x218]
push ecx
push edx
lea eax, [esp + 0x14]
push 0x200
push eax
call fcn.0044ce33
add esp, 0x1c
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.00428d44
add esp, 0x204
ret
Function at 0x442f40
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x404
mov eax, dword [0x46f650]
xor eax, esp
mov dword [esp + 0x400], eax
xor eax, eax
push 0x3fe
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.0042ac10
mov eax, dword [esp + 0x414]
lea edx, [esp + 0x418]
push edx
push eax
lea ecx, [esp + 0x14]
push 0x200
push ecx
call fcn.0042a259
add esp, 0x1c
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.00428d44
add esp, 0x404
ret
Function at 0x448df0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x46f650]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x414], ecx
mov eax, dword [ebp - 0x414]
add eax, 6
push eax
call fcn.00433380
add esp, 4
test eax, eax
jne 0x448e26
xor eax, eax
jmp 0x448f2c
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
mov ecx, dword [ebp - 0x414]
add ecx, 6
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x448f00
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
mov edx, dword [ebp - 0x414]
add edx, 6
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x448e81
xor eax, eax
jmp 0x448f2c
push 0
call fcn.00448f40
add esp, 4
push eax
call fcn.0042a0a2
add esp, 4
mov dword [ebp - 0x410], 0
jmp 0x448eaf
mov eax, dword [ebp - 0x410]
add eax, 1
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0x400
jge 0x448ecf
call fcn.0042a0b4
mov ecx, dword [ebp - 0x410]
mov byte [ebp + ecx - 0x408], al
jmp 0x448ea0
push 0
lea edx, [ebp - 0x40c]
push edx
push 0x400
lea eax, [ebp - 0x408]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x448f00
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x448f2c
push 0
push 0
push 0x300
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00428d44
mov esp, ebp
pop ebp
ret
Function at 0x44a580
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x46f650]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x44a59c
cmp dword [ebp + 8], 0xffffffff
jne 0x44a5a3
xor eax, eax
jmp 0x44a6c4
cmp dword [ebp + 0xc], 0
jne 0x44a5b0
xor eax, eax
jmp 0x44a6c4
cmp dword [ebp + 0x14], 0
jne 0x44a5c3
cmp dword [ebp + 0x18], 0
je 0x44a5c3
xor eax, eax
jmp 0x44a6c4
cmp dword [ebp + 0x20], 0
jne 0x44a5d0
mov dword [ebp + 0x20], 1
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
jmp 0x44a5e9
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x20]
jge 0x44a6c2
push 0x50
push 0
lea edx, [ebp - 0x60]
push edx
call fcn.0042ac10
add esp, 0xc
mov eax, 0x2c
mov word [ebp - 0x60], ax
mov byte [ebp - 0x5d], 0
mov byte [ebp - 0x5c], 0
mov byte [ebp - 0x5b], 0
mov byte [ebp - 0x59], 0x18
mov byte [ebp - 0x58], 0
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x54], ecx
movzx edx, byte [ebp + 0x1c]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
mov cl, byte [ebp + 0x10]
mov byte [ebp - 0x5a], cl
movzx edx, byte [ebp - 0x5a]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.0042a8a0
add esp, 0xc
mov dword [ebp - 0x48], 0x30
push 0
lea edx, [ebp - 4]
push edx
push 0x50
lea eax, [ebp - 0x60]
push eax
push 0x50
lea ecx, [ebp - 0x60]
push ecx
push 0x4d014
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x44a691
lea eax, [ebp - 0x30]
push eax
call fcn.0044a190
add esp, 4
test eax, eax
je 0x44a6b6
cmp dword [ebp - 0x64], 0
je 0x44a6a0
mov dword [ebp - 0x68], str.w1_retry_0_n
jmp 0x44a6a7
mov dword [ebp - 0x68], str.w1_retry_1_n
mov ecx, dword [ebp - 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x44a5e0
mov eax, 1
jmp 0x44a6c4
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00428d44
mov esp, ebp
pop ebp
ret