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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x23c
mov eax, dword [0x481610]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov dword [esp + 0x244], eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push ebx
push 2
mov dword [esp + 0x14], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4056fd
push ebx
push ebx
push str.CreateToolhelp32Snapshot_failed
call fcn.004596c8
xor eax, eax
mov ecx, dword [esp + 0x244]
xor ecx, dword [ebp + 4]
call fcn.004380c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, 0x8b
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x18], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x405745
push eax
push eax
push str.Call_Process32First_API_failed
call fcn.004596c8
xor eax, eax
mov ecx, dword [esp + 0x244]
xor ecx, dword [ebp + 4]
call fcn.004380c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4800d0]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.0043805d
add esp, 8
test eax, eax
je 0x405774
mov eax, dword [0x4800d4]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.0043805d
add esp, 8
test eax, eax
jne 0x40577e
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0xc]
jne 0x405790
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x405745
jmp 0x4057b0
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
jne 0x4057b0
push eax
push eax
push str.GFI
call fcn.004596c8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x244]
xor ecx, dword [ebp + 4]
mov eax, ebx
call fcn.004380c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405850
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 8]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp]
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
add esp, 0x14
ret
Function at 0x4058b0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x234
mov eax, dword [0x481610]
xor eax, dword [esp + 0x234]
mov dword [esp + 0x230], eax
call fcn.00405850
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
test eax, eax
mov dword [esp], eax
je 0x40594b
lea ecx, [esp + 4]
push ecx
push eax
mov dword [esp + 0xc], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40594b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
lea esp, [esp]
mov edx, dword [esp + 0x1c]
push edx
push 1
push 0x1f0fff
call edi
mov esi, eax
test esi, esi
je 0x405934
push 0
push 0
push esi
call ebx
push esi
call sub.PSAPI.DLL_EmptyWorkingSet
push esi
call ebp
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x405910
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, dword [esp + 0x234]
add esp, 0x234
jmp fcn.004380c0

Function at 0x412500
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x465240
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
call fcn.0044ff32
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
push 0xccff
push 0x126
push 0x1e4
push 0x11d
lea eax, [esp + 0x1c]
push 0x1d3
push eax
mov dword [esp + 0x30], 0
call fcn.004051f0
add esp, 0x18
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call fcn.00402c70
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
or ebp, 0xffffffff
mov byte [esp + 0x18], 0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41258f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x20
lea ecx, [esp + 0xc]
call fcn.004109b0
mov esi, dword [esp + 8]
mov eax, dword [esi - 0xc]
test eax, eax
je 0x4125e0
push edi
push esi
call fcn.00438f09
mov edi, eax
lea eax, [esi - 0x10]
add esp, 4
mov dword [esp + 0x1c], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4125cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea eax, [esi - 0x10]
mov dword [esp + 0x18], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4125fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
pop esi
mov eax, 0x270f
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x412f10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4651f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
call fcn.0044ff32
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
push 0xffff
lea ecx, [eax + 0x1c]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [ecx + 0xc8]
push edx
add eax, 0x15
push eax
add ecx, 0x96
push ecx
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x28], 0
call fcn.004051f0
add esp, 0x18
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x14], 1
call fcn.00402c70
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or esi, 0xffffffff
mov byte [esp + 0x10], 0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412fa6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x20
lea ecx, [esp + 8]
call fcn.004109b0
mov eax, dword [esp + 4]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff0
test ecx, ecx
mov dword [esp + 0x10], esi
lea ecx, [eax + 0xc]
je 0x412fec
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x412fd7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x412ffd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 8]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x42c6b0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [str..plugindefurl.ini]
mov ecx, dword [str.default]
push eax
push 0x64
push 0x482c30
push ecx
push str.defurl
push 0x468624
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, dword [str.default]
push edx
push 0x482c30
call fcn.0043805d
add esp, 8
neg eax
sbb eax, eax
neg eax
ret
Function at 0x42cd10
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x4c4
mov eax, dword [0x481610]
xor eax, dword [ebp + 0x7c]
push ebx
push esi
push edi
mov dword [ebp + 0x74], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004383ff
call fcn.0043840c
cdq
mov ecx, 0x31
idiv ecx
mov eax, dword [str.02b4158eO32c44bfdOcd5ea6b6O15a972caO90ca28a5O1d7ee270Oe005be76Oba04a1e1Of743123eOaad69147Oe0acc2b5O1808f86aO7e6b15d5O8064bf21Od492e1a4O19c2b564Od4a6c78dOae9b66adO689cbe96O51ac728dOc559220bO0cb96db3O80b17f39Od4dac9b5O80da83d9Obe574d4bOc7f8de5bOe795f2baO6ce98773Oa3131b29O790fc9b9Oae3dfba3Oa5a2d189Od5a88882O7a1bece2Off87c5efO6f28a27fOace9c0afOb06de241O5aac2135O9b263713O7b3a9150Ode51b2d9Ofb3378b2O5e7d2b19Oe6a8e5a3O6d5e04f1Od913a8a6O1712dc4dO8c34aa4aO5045a58eO61b64c17]
mov esi, edx
push esi
lea edx, [ebp + 0x54]
push edx
push eax
call fcn.0042cc80
add esp, 0x10
push 0
lea ecx, [ebp + 0x54]
push ecx
call dword [0x4841c4]
lea edx, [ebp - 0x4c]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x42cd66
lea eax, [ebp - 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42cd76
sub eax, edx
cmp eax, 3
jne 0x42ce1e
lea edx, [ebp - 0x4c]
push edx
mov dword [0x482dd4], 1
mov dword [0x482bdc], 0
call fcn.00438337
add esp, 4
push eax
call dword [0x4841b0]
lea edx, [ebp - 0x44c]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x42cdb5
call dword [0x4800f0]
mov ebx, eax
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.00438180
mov edi, esp
test edi, edi
jne 0x42cdf7
push esp
push edi
push edi
call fcn.004596c8
xor eax, eax
jmp 0x42ce74
push esi
push edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x44c]
push ecx
push 0
push ebx
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push edi
call fcn.004596c8
xor eax, eax
jmp 0x42ce74
mov eax, dword [0x48025c]
push esi
lea edx, [ebp + 0x64]
push edx
push eax
call fcn.0042cc80
add esp, 0xc
lea esi, [ebp - 0x4c]
lea eax, [ebp + 0x64]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x42ce5f
test cl, cl
je 0x42ce5b
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x42ce5f
add eax, 2
add esi, 2
test cl, cl
jne 0x42ce37
xor eax, eax
jmp 0x42ce64
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42ce6f
push 1
call fcn.0043925e
mov eax, 1
lea esp, [ebp - 0x458]
mov ecx, dword [ebp + 0x74]
xor ecx, dword [ebp + 0x7c]
call fcn.004380c0
pop edi
pop esi
pop ebx
add ebp, 0x78
mov esp, ebp
pop ebp
ret
Function at 0x42e0bd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x42e110
call fcn.00460a1c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x42e110
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x42e106
xor eax, eax
jmp 0x42e225
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x42e13f
mov eax, dword [edi]
push ebx
push dword [ebp - 4]
mov ecx, edi
push dword [ebp + 8]
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x42e13f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
test eax, eax
je 0x42e222
mov edi, dword [eax + 0x40]
and dword [ebp + 0x10], 0
xor eax, eax
cmp edi, eax
mov dword [ebp + 0xc], edi
mov dword [ebp - 8], edi
je 0x42e16e
mov ecx, dword [edi]
mov dword [ebp + 0xc], ecx
mov ecx, dword [edi + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], ecx
cmp dword [ebx + 8], eax
mov dword [ebp - 4], eax
jbe 0x42e222
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42e1ac
mov ecx, dword [ecx + 4]
mov edx, dword [ebx + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x42e1ac
test edi, edi
mov dword [ebp - 8], edi
je 0x42e1a6
mov eax, dword [edi]
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
jmp 0x42e212
and dword [ebp + 0x10], 0
jmp 0x42e212
mov ecx, dword [ebx + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x42e212
push 0xc
call fcn.0044ed50
mov esi, eax
test esi, esi
pop ecx
je 0x42e1f1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebx + 0xc]
mov edx, dword [ebp - 0x10]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0xc]
mov dword [esi], eax
jmp 0x42e1f3
xor esi, esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x42e20d
push dword [ebp - 8]
call fcn.00449890
jmp 0x42e212
call fcn.00449867
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jb 0x42e17a
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x437444
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4722d0
call fcn.0043b258
mov edi, 0x94
mov eax, edi
call fcn.00438180
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 [0x486324], ecx
mov eax, dword [esi + 4]
mov dword [0x486330], eax
mov edx, dword [esi + 8]
mov dword [0x486334], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x486328], esi
cmp ecx, 2
je 0x4374a4
or esi, 0x8000
mov dword [0x486328], esi
shl eax, 8
add eax, edx
mov dword [0x48632c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4374df
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4374df
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4374f7
cmp eax, 0x20b
je 0x4374e4
mov dword [ebp - 0x1c], esi
jmp 0x43750b
cmp dword [ecx + 0x84], 0xe
jbe 0x4374df
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x437505
cmp dword [ecx + 0x74], 0xe
jbe 0x4374df
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0043b205
pop ecx
test eax, eax
jne 0x43751f
push 0x1c
call fcn.00437420
pop ecx
call fcn.0043b17c
test eax, eax
jne 0x437530
push 0x10
call fcn.00437420
pop ecx
call fcn.0043aee7
mov dword [ebp - 4], esi
call fcn.0043ace9
test eax, eax
jge 0x437549
push 0x1b
call fcn.004373fb
pop ecx
call fcn.0043ac48
mov dword [0x487c90], eax
call fcn.0043aade
mov dword [0x486310], eax
call fcn.0043aa48
test eax, eax
jge 0x43756e
push 8
call fcn.004373fb
pop ecx
call fcn.0043a815
test eax, eax
jge 0x43757f
push 9
call fcn.004373fb
pop ecx
call fcn.00439126
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x437592
push eax
call fcn.004373fb
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.0043a7c1
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x4375b3
movzx eax, word [ebp - 0x34]
jmp 0x4375b6
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.004481d4
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4375d4
push edi
call fcn.0043925e
call fcn.00439280
jmp 0x437606
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0043b293
ret
Function at 0x43918b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.0043fb27
xor esi, esi
inc esi
cmp dword [0x486364], esi
pop ecx
jne 0x4391b3
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 [0x486360], esi
mov byte [0x48635c], al
jne 0x439219
mov ecx, dword [0x487c88]
test ecx, ecx
je 0x4391fa
mov eax, dword [0x487c84]
sub eax, 4
cmp eax, ecx
jmp 0x4391f3
mov eax, dword [eax]
test eax, eax
je 0x4391e5
call eax
mov eax, dword [0x487c84]
sub eax, 4
cmp eax, dword [0x487c88]
mov dword [0x487c84], eax
jae 0x4391dd
mov eax, 0x480090
mov esi, 0x480098
cmp eax, esi
mov edi, eax
jae 0x439219
mov eax, dword [edi]
test eax, eax
je 0x439212
call eax
add edi, 4
cmp edi, esi
jb 0x43920a
mov eax, 0x48009c
mov esi, 0x4800a4
cmp eax, esi
mov edi, eax
jae 0x439238
mov eax, dword [edi]
test eax, eax
je 0x439231
call eax
add edi, 4
cmp edi, esi
jb 0x439229
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x439249
push 8
call fcn.0043fa93
jmp 0x43925b
push dword [ebp + 8]
mov dword [0x486364], 1
call fcn.004390e4
pop ecx
pop ebp
ret

Function at 0x439af6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x439b13
call fcn.0043a428
mov dword [eax], 0x16
xor eax, eax
jmp 0x439b7d
push esi
push 0x88
push 1
call fcn.00439743
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x439b68
push esi
call fcn.0043af8d
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x439b46
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x439a52
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x439b7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.004396d2
test ebx, ebx
pop ecx
je 0x439b7a
push ebx
call fcn.0043a43a
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43a4ad
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x481610]
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 + 0x4817e8]
je 0x43a4da
inc eax
cmp eax, 0x12
jb 0x43a4cb
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4817e8]
jne 0x43a60e
mov eax, dword [0x486314]
cmp eax, 1
je 0x43a5e9
cmp eax, edx
jne 0x43a50a
cmp dword [0x4815f0], 1
je 0x43a5e9
cmp ecx, 0xfc
je 0x43a60e
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 0x43a543
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00441400
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00439d30
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43a585
lea eax, [ebp - 0x10c]
push eax
call fcn.00439d30
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x472760
push edi
call fcn.00441500
add esp, 0x10
push edi
call fcn.00439d30
push dword [esi + 0x4817ec]
mov ebx, eax
call fcn.00439d30
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00438180
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00441400
push edi
push ebx
call fcn.00441410
push 0x472740
push ebx
call fcn.00441410
push dword [esi + 0x4817ec]
push ebx
call fcn.00441410
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00441301
add esp, 0x2c
jmp 0x43a60e
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x4817ec]
push dword [esi]
call fcn.00439d30
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.004380c0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43aade
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x48657c]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x43ab27
call ebp
mov esi, eax
cmp esi, ebx
je 0x43ab0d
mov dword [0x48657c], 1
jmp 0x43ab2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x43ab22
push 2
pop eax
mov dword [0x48657c], eax
jmp 0x43ab27
mov eax, dword [0x48657c]
cmp eax, 1
jne 0x43ab84
cmp esi, ebx
jne 0x43ab3f
call ebp
mov esi, eax
cmp esi, ebx
jne 0x43ab3f
xor eax, eax
jmp 0x43ac2b
cmp word [esi], bx
mov eax, esi
je 0x43ab54
inc eax
inc eax
cmp word [eax], bx
jne 0x43ab46
inc eax
inc eax
cmp word [eax], bx
jne 0x43ab46
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.00439a0f
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x43ab77
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x43ac2b
push ebp
push esi
push edi
call fcn.004392a0
add esp, 0xc
jmp 0x43ab69
cmp eax, 2
je 0x43ab8d
cmp eax, ebx
jne 0x43ab38
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x43ab38
cmp byte [ebp], bl
mov esi, ebp
je 0x43abc3
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x43ab38
push esi
add edi, eax
call fcn.00439d30
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x43aba0
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.00439a0f
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x43ac3c
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x43ac1d
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x43ac32
push edi
call fcn.00439d30
push esi
lea edi, [edi + eax + 1]
call fcn.00437d04
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x43abe3
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.004396d2
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x43ab38
Function at 0x43ac48
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x486580]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x43ac88
call esi
test eax, eax
je 0x43ac6d
mov dword [0x486580], 1
jmp 0x43ac8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x43ac84
mov dword [0x486580], 2
jmp 0x43ac96
xor eax, eax
jmp 0x43ace6
cmp eax, 1
jne 0x43ac91
call esi
jmp 0x43ace6
cmp eax, 2
jne 0x43ac84
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
jne 0x43acba
xor eax, eax
jmp 0x43ace4
lea eax, [esi + esi]
push eax
call fcn.00439a0f
mov ebp, eax
test ebp, ebp
pop ecx
je 0x43acb6
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x43ace2
push ebp
call fcn.004396d2
pop ecx
jmp 0x43acb6
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x441301
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4867d4], ebx
push esi
push edi
jne 0x441381
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4413bc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4867d4], eax
je 0x4413bc
push 0x476a64
push edi
call esi
push 0x476a50
push edi
mov dword [0x4867d8], eax
call esi
cmp dword [0x486324], 2
mov dword [0x4867dc], eax
jne 0x441381
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4867e4], eax
je 0x441381
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4867e0], eax
mov eax, dword [0x4867e0]
test eax, eax
je 0x4413c6
call eax
test eax, eax
je 0x4413ad
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4867e4]
test eax, eax
je 0x4413ad
test byte [ebp - 8], 1
jne 0x4413c6
cmp dword [0x486330], 4
jb 0x4413c0
or byte [ebp + 0x12], 0x20
jmp 0x4413e5
xor eax, eax
jmp 0x4413f5
or byte [ebp + 0x12], 4
jmp 0x4413e5
mov eax, dword [0x4867d8]
test eax, eax
je 0x4413e5
call eax
mov ebx, eax
test ebx, ebx
je 0x4413e5
mov eax, dword [0x4867dc]
test eax, eax
je 0x4413e5
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4867d4]
pop edi
pop esi
pop ebx
leave
ret