joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d030
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 0x40d049
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40d05d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40d07e
cmp esi, eax
jae 0x40d057
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40d070
cmp esi, eax
jae 0x40d057
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40f3d0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46c768
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0040dbd0
push 0x40d8d0
push 0x40d880
push 5
push 0x1fd0
lea eax, [esi + 0x48]
xor edi, edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esi], 0x473980
call fcn.00437721
mov ecx, 1
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], 0xa
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], 0x64
lea eax, [esi + 0x1fe0]
mov edx, 5
mov ebp, 0x42c80000
mov dword [eax - 0x1f98], edi
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], ebp
mov dword [eax + 0xc], 0xff
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], ebp
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], 0xffff
mov byte [eax - 0x1f74], cl
mov byte [eax - 0x1f73], 3
mov word [eax - 0x1f72], cx
mov word [eax - 0x1f70], cx
add eax, 0x1fd0
dec edx
jne 0x40f452
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x419280
Capabilities:
Set registry value

Disassembly:
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push str.CLSID
push SysReAllocString
mov ebx, ecx
call esi
test eax, eax
je 0x4192b1
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret
mov edx, dword [esp + 8]
push edi
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push str.87BE8515_2CB4_11d4_80DD_00C04F790F3B
push edx
call esi
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
je 0x41930c
mov ecx, dword [esp + 0xc]
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.87BE8515_2CB4_11d4_80DD_00C04F790F3B
push ecx
call edi
test eax, eax
je 0x41930c
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 2
push 0
push str.Version
push ecx
call esi
test eax, eax
je 0x419366
mov eax, dword [esp + 0x10]
push 0
lea edx, [esp + 0x18]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.Version
push eax
call edi
test eax, eax
je 0x419366
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 0xc0]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [esp + 0x1c]
push ecx
push 4
push 0
push str.Revision
push edx
mov dword [esp + 0x30], eax
call esi
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 0xc8]
push 4
lea ecx, [esp + 0x20]
push ecx
push 4
push 0
push str.Extended
push edx
mov dword [esp + 0x34], eax
call esi
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x14
ret

Function at 0x41aa30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46cf38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.0041a9b0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00403100
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x41aac2
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x428b30
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x46dbb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], ecx
call fcn.00449a21
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x40]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x14], ebx
jg 0x428bb1
add ebp, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x428b98
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 0xc
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
cmp ebx, dword [eax + 8]
jge 0x428c05
mov eax, dword [eax + 4]
lea eax, [eax + ebx*4]
mov eax, dword [eax]
lea ecx, [eax - 0x10]
lea esi, [ebp - 0x10]
cmp ecx, esi
je 0x428c2c
mov edx, dword [esi + 0xc]
test edx, edx
lea edi, [esi + 0xc]
jge 0x428bdd
mov ecx, dword [eax - 0xc]
push ecx
push eax
jmp 0x428c1f
push ecx
call fcn.00403100
add esp, 4
mov ebp, eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x428bfc
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add ebp, 0x10
mov dword [esp + 0x10], ebp
jmp 0x428c2c
mov eax, 0x473ae4
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428c10
sub eax, edx
push eax
push 0x473ae4
lea ecx, [esp + 0x18]
call fcn.00401570
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push ecx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
lea esi, [ebp - 0x10]
inc ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], esp
mov ebx, esp
call dword [edx + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x428c63
cmp eax, dword [esi]
jne 0x428c63
mov eax, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x428c91
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x428ce4
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
add eax, 0x10
mov dword [ebx], eax
call fcn.004285f0
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x14]
sub eax, edx
cmp eax, 4
jle 0x428cb3
mov eax, 4
mov edi, dword [esp + 0x3c]
mov ecx, eax
mov ebx, ecx
shr ecx, 2
add edi, edx
lea esi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
add edx, eax
mov eax, dword [esp + 0x40]
mov ecx, ebx
and ecx, 3
cmp edx, eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x14], edx
jl 0x428bad
jmp 0x428b75
call fcn.00401380
int3
Function at 0x434a65
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x46e7bc
call fcn.004387c0
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
cmp dword [ebx + 0xc], edi
jne 0x434a83
call fcn.00433b05
push 3
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.0043222b
push edi
push edi
mov ecx, dword [ebx + 0xc]
push edi
push edi
mov edx, dword [ecx]
push edi
lea esi, [ebp - 0x10]
push esi
mov dword [ebp - 4], edi
sub esp, 0x10
mov edi, esp
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ecx
movsd dword es:[edi], dword [esi]
call dword [edx + 0x30]
push eax
call fcn.0043391b
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call fcn.00433b20
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc

Function at 0x435f61
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x46e7bc
call fcn.004387c0
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
cmp dword [ebx + 0xc], edi
jne 0x435f7f
call fcn.00433f3f
push 3
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.0043222b
push edi
push edi
mov ecx, dword [ebx + 0xc]
push edi
push edi
mov edx, dword [ecx]
push edi
lea esi, [ebp - 0x10]
push esi
mov dword [ebp - 4], edi
sub esp, 0x10
mov edi, esp
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ecx
movsd dword es:[edi], dword [esi]
call dword [edx + 0x30]
push eax
call fcn.0043391b
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call fcn.00435860
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
add esp, 0xc
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
Function at 0x438546
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4800a8
call fcn.0043d96c
mov edi, 0x94
mov eax, edi
call fcn.004384c0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x491758], ecx
mov eax, dword [esi + 4]
mov dword [0x491764], eax
mov edx, dword [esi + 8]
mov dword [0x491768], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x49175c], esi
cmp ecx, 2
je 0x4385a6
or esi, 0x8000
mov dword [0x49175c], esi
shl eax, 8
add eax, edx
mov dword [0x491760], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4385e1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4385e1
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4385f9
cmp eax, 0x20b
je 0x4385e6
mov dword [ebp - 0x1c], esi
jmp 0x43860d
cmp dword [ecx + 0x84], 0xe
jbe 0x4385e1
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x438607
cmp dword [ecx + 0x74], 0xe
jbe 0x4385e1
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0043cdf5
pop ecx
test eax, eax
jne 0x438621
push 0x1c
call fcn.00438522
pop ecx
call fcn.0043b209
test eax, eax
jne 0x438632
push 0x10
call fcn.00438522
pop ecx
call fcn.0043e838
mov dword [ebp - 4], esi
call fcn.0043e63a
test eax, eax
jge 0x43864b
push 0x1b
call fcn.004384fd
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x492fa0], eax
call fcn.0043e518
mov dword [0x491744], eax
call fcn.0043e476
test eax, eax
jge 0x438671
push 8
call fcn.004384fd
pop ecx
call fcn.0043e243
test eax, eax
jge 0x438682
push 9
call fcn.004384fd
pop ecx
call fcn.00439767
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x438695
push eax
call fcn.004384fd
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0043e1da
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x4386b6
movzx eax, word [ebp - 0x34]
jmp 0x4386b9
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00442a76
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4386d7
push edi
call fcn.0043989f
call fcn.004398c1
jmp 0x438709
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0043d9a7
ret
Function at 0x4397cc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.0043cdaa
xor esi, esi
inc esi
cmp dword [0x491798], esi
pop ecx
jne 0x4397f4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x491794], esi
mov byte [0x491790], al
jne 0x43985a
mov ecx, dword [0x492d6c]
test ecx, ecx
je 0x43983b
mov eax, dword [0x492d68]
sub eax, 4
cmp eax, ecx
jmp 0x439834
mov eax, dword [eax]
test eax, eax
je 0x439826
call eax
mov eax, dword [0x492d68]
sub eax, 4
cmp eax, dword [0x492d6c]
mov dword [0x492d68], eax
jae 0x43981e
mov eax, 0x48d0c4
mov esi, 0x48d0cc
cmp eax, esi
mov edi, eax
jae 0x43985a
mov eax, dword [edi]
test eax, eax
je 0x439853
call eax
add edi, 4
cmp edi, esi
jb 0x43984b
mov eax, 0x48d0d0
mov esi, 0x48d0d8
cmp eax, esi
mov edi, eax
jae 0x439879
mov eax, dword [edi]
test eax, eax
je 0x439872
call eax
add edi, 4
cmp edi, esi
jb 0x43986a
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x43988a
push 8
call fcn.0043cd16
jmp 0x43989c
push dword [ebp + 8]
mov dword [0x491798], 1
call fcn.00439725
pop ecx
pop ebp
ret

Function at 0x43dc2e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.004384c0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43dcc3
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x491758]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x43dcc3
cmp eax, 1
je 0x43dcdb
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43dcc3
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x43dc98
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x43dcbf
xor eax, eax
inc eax
jmp 0x43dcf7
cmp esi, ebx
jae 0x43dcc7
xor eax, eax
jmp 0x43dcf7
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x491758]
jmp 0x43dcdd
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43dec6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x48e4f8]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x48eb30]
je 0x43def3
inc eax
cmp eax, 0x12
jb 0x43dee4
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x48eb30]
jne 0x43e027
mov eax, dword [0x49174c]
cmp eax, 1
je 0x43e002
cmp eax, edx
jne 0x43df23
cmp dword [0x48e4f4], 1
je 0x43e002
cmp ecx, 0xfc
je 0x43e027
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43df5c
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.0043dae0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00438b60
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43df9e
lea eax, [ebp - 0x10c]
push eax
call fcn.00438b60
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x480bb8
push edi
call fcn.004378b0
add esp, 0x10
push edi
call fcn.00438b60
push dword [esi + 0x48eb34]
mov ebx, eax
call fcn.00438b60
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004384c0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0043dae0
push edi
push ebx
call fcn.0043daf0
push 0x480b98
push ebx
call fcn.0043daf0
push dword [esi + 0x48eb34]
push ebx
call fcn.0043daf0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00440874
add esp, 0x2c
jmp 0x43e027
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x48eb34]
push dword [esi]
call fcn.00438b60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00438749
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43f41f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x48e4f8]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x43f448
xor eax, eax
jmp 0x43f5b6
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x492c40]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x43f47b
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00440d7e
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x43f54d
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x43f588
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x43f4d6
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x43f4c7
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x43f4aa
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43f516
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x43f51f
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x43f49b
jmp 0x43f521
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x43f5b1
cmp dword [ebp - 8], edi
je 0x43f588
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x43f57a
call fcn.004395e5
mov dword [eax], 9
call fcn.004395ee
mov dword [eax], esi
jmp 0x43f583
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43f56f
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x43f521
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x43f521
push dword [ebp - 8]
call fcn.004395f7
pop ecx
or eax, 0xffffffff
jmp 0x43f5b4
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x43f59d
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x43f59d
xor eax, eax
jmp 0x43f5b4
call fcn.004395e5
mov dword [eax], 0x1c
call fcn.004395ee
mov dword [eax], edi
jmp 0x43f583
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.00438749
leave
ret
Function at 0x440874
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x491b80], ebx
push esi
push edi
jne 0x4408f4
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x44092f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x480e8c
push edi
call esi
test eax, eax
mov dword [0x491b80], eax
je 0x44092f
push 0x480e7c
push edi
call esi
push 0x480e68
push edi
mov dword [0x491b84], eax
call esi
cmp dword [0x491758], 2
mov dword [0x491b88], eax
jne 0x4408f4
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x491b90], eax
je 0x4408f4
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x491b8c], eax
mov eax, dword [0x491b8c]
test eax, eax
je 0x440939
call eax
test eax, eax
je 0x440920
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x491b90]
test eax, eax
je 0x440920
test byte [ebp - 8], 1
jne 0x440939
cmp dword [0x491764], 4
jb 0x440933
or byte [ebp + 0x12], 0x20
jmp 0x440958
xor eax, eax
jmp 0x440968
or byte [ebp + 0x12], 4
jmp 0x440958
mov eax, dword [0x491b84]
test eax, eax
je 0x440958
call eax
mov ebx, eax
test ebx, ebx
je 0x440958
mov eax, dword [0x491b88]
test eax, eax
je 0x440958
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x491b80]
pop edi
pop esi
pop ebx
leave
ret