joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411821
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x456950]
je 0x41183c
inc edi
cmp edi, 0x17
jb 0x41182d
cmp edi, 0x17
jae 0x4119bc
push ebp
push 3
call fcn.00416fff
cmp eax, 1
pop ecx
je 0x411988
push 3
call fcn.00416fff
test eax, eax
pop ecx
jne 0x411870
cmp dword [0x456130], 1
je 0x411988
cmp ebx, 0xfc
je 0x4119bb
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x457ab8
push ebp
call fcn.0040f208
add esp, 0xc
test eax, eax
je 0x4118a6
push esi
push esi
push esi
push esi
push esi
call fcn.0040cb2d
add esp, 0x14
push 0x104
mov esi, 0x457ad1
push esi
push 0
mov byte [0x457bd5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4118ea
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040f208
add esp, 0xc
test eax, eax
je 0x4118ea
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040cb2d
add esp, 0x14
push esi
call fcn.0040f390
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41192f
push esi
call fcn.0040f390
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x457dcc
push 0x41b210
sub ecx, eax
push ecx
push eax
call fcn.0040f155
add esp, 0x14
test eax, eax
je 0x41192f
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040cb2d
add esp, 0x14
jmp 0x411931
xor esi, esi
push 0x41bdf0
push ebx
push ebp
call fcn.00415571
add esp, 0xc
test eax, eax
je 0x411951
push esi
push esi
push esi
push esi
push esi
call fcn.0040cb2d
add esp, 0x14
push dword [edi*8 + 0x456954]
push ebx
push ebp
call fcn.00415571
add esp, 0xc
test eax, eax
je 0x411973
push esi
push esi
push esi
push esi
push esi
call fcn.0040cb2d
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00416e42
add esp, 0xc
jmp 0x4119bb
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4119bb
cmp ebp, 0xffffffff
je 0x4119bb
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x456954]
push dword [esi]
call fcn.0040f390
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x412eda
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x412f07
call fcn.0040a591
mov dword [eax], esi
call fcn.0040a57e
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040cc29
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x412ee3
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x412f36
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040a5a4
pop ecx
call fcn.0040a57e
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x412f5d
test al, 1
je 0x412f5d
test byte [esp + 0xc], 2
je 0x412f5d
call fcn.0040a591
mov dword [eax], 5
call fcn.0040a57e
mov dword [eax], 0xd
jmp 0x412f2d
xor eax, eax
pop esi
ret
Function at 0x416e42
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040dcc7
xor ebx, ebx
cmp dword [0x457f18], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x416f18
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x416ff8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x416ff8
push eax
call fcn.0040dc59
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x457f18], eax
call esi
push eax
call fcn.0040dc59
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x457f1c], eax
call esi
push eax
call fcn.0040dc59
mov dword [0x457f20], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004106e5
test eax, eax
pop ecx
pop ecx
je 0x416ee6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040cb2d
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x416f18
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040dc59
cmp eax, ebx
pop ecx
mov dword [0x457f28], eax
je 0x416f18
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040dc59
pop ecx
mov dword [0x457f24], eax
mov eax, dword [0x457f24]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x416f9d
cmp dword [0x457f28], ecx
je 0x416f9d
push eax
call fcn.0040dcd0
push dword [0x457f28]
mov esi, eax
call fcn.0040dcd0
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x416f9d
cmp edi, ebx
je 0x416f9d
call esi
cmp eax, ebx
je 0x416f6a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x416f6a
test byte [ebp - 0x18], 1
jne 0x416f9d
lea eax, [ebp - 0x10]
push eax
call fcn.00410758
test eax, eax
pop ecx
je 0x416f85
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040cb2d
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x416f94
or dword [ebp + 0x10], 0x200000
jmp 0x416fd8
or dword [ebp + 0x10], 0x40000
jmp 0x416fd8
mov eax, dword [0x457f1c]
cmp eax, dword [ebp - 8]
je 0x416fd8
push eax
call fcn.0040dcd0
cmp eax, ebx
pop ecx
je 0x416fd8
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x416fd8
mov eax, dword [0x457f20]
cmp eax, dword [ebp - 8]
je 0x416fd8
push eax
call fcn.0040dcd0
cmp eax, ebx
pop ecx
je 0x416fd8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x457f18]
call fcn.0040dcd0
cmp eax, ebx
pop ecx
je 0x416ff8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x416ffa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f60
Capabilities:
Get mac address on windows

Disassembly:
sub esp, 0x298
mov eax, dword [0x44a630]
xor eax, esp
mov dword [esp + 0x294], eax
push ebx
push ebp
mov ebp, dword [esp + 0x2a4]
push esi
push edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
xor ebx, ebx
push ecx
mov dword [esp + 0x1c], ebx
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x402032
mov edx, dword [esp + 0x14]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x40202e
lea eax, [esp + 0x14]
push eax
push edi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x402016
mov esi, edi
jmp 0x401fd0
lea ecx, [esi + 0x10c]
push 0x440950
push ecx
call fcn.00423900
add esp, 8
test eax, eax
jne 0x401ff5
mov esi, dword [esi]
test esi, esi
jne 0x401fd0
mov ebx, 0xf0000000
jmp 0x40201c
mov edx, dword [esi + 0x190]
mov eax, dword [ebp + 0x800]
push edx
add esi, 0x194
add eax, ebp
push esi
push eax
call fcn.00429770
add esp, 0xc
jmp 0x40201c
lea ebx, [eax - 0x10000000]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x402038
xor eax, eax
jmp 0x40203f
lea ebx, [eax - 0x20000000]
xor eax, eax
test ebx, ebx
sete al
mov ecx, dword [esp + 0x2a4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004230ad
add esp, 0x298
ret 4

Function at 0x402dc0
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 0x402dd9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402e14
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402e10
lea ebx, [ebx]
cmp esi, eax
jae 0x402e14
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402e00
cmp esi, eax
jb 0x402e1a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x404680
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43a478
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push edi
mov eax, dword [0x44a630]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push 0x440ba0
lea ecx, [esp + 0xc]
call fcn.00402b80
mov dword [esp + 0x28], 0
mov edx, dword [esp + 8]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
mov edi, 0x104
sub eax, edi
or eax, ecx
jge 0x4046e2
push edi
lea ecx, [esp + 0xc]
call fcn.00401ce0
mov edx, dword [esp + 8]
cmp dword [edx - 8], edi
mov eax, edx
jge 0x4046f3
push 0x80070057
call fcn.00401b10
mov dword [edx - 0xc], edi
mov ecx, dword [esp + 8]
push eax
push edi
mov byte [ecx + 0x104], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [esp + 8]
test edx, edx
jne 0x404715
xor eax, eax
jmp 0x40472d
mov eax, edx
lea edi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404720
sub eax, edi
js 0x4046e9
cmp eax, dword [edx - 8]
jg 0x4046e9
mov dword [edx - 0xc], eax
mov edx, dword [esp + 8]
mov byte [eax + edx], 0
lea eax, [esi + 0x1160]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.004017d0
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.004116c1
mov byte [esp + 0x28], 2
mov eax, dword [esp + 0xc]
push 0
push eax
call fcn.00423f83
add esp, 8
cmp eax, 0xffffffff
je 0x404787
mov ecx, dword [esp + 0xc]
push ecx
call fcn.004113a8
mov eax, dword [esi + 0x1150]
mov ecx, dword [esi + 0x114c]
push str.ac59075b964b0715
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProfileStringA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.004117ce
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4047d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
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 0x4047fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x24
ret
Function at 0x405cc0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x138
mov eax, dword [0x44a630]
xor eax, esp
mov dword [esp + 0x130], eax
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x405d31
push 0x124
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x14], 0x128
call fcn.00425510
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x405d31
lea edx, [esp + 0x2c]
push edi
push edx
call fcn.00423775
add esp, 8
test eax, eax
je 0x405d49
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x405d10
xor eax, eax
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.004230ad
add esp, 0x138
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [esp + 0x134]
pop esi
xor ecx, esp
call fcn.004230ad
add esp, 0x138
ret

Function at 0x405d80
Capabilities:
Create process on windows
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43a378
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push esi
mov eax, dword [0x44a630]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
push 0x440ba0
lea ecx, [esp + 0x10]
call fcn.00402b80
mov dword [esp + 0x78], 0
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
mov esi, 0x104
sub eax, esi
or eax, edx
jge 0x405de2
push esi
lea ecx, [esp + 0x10]
call fcn.00401ce0
mov ecx, dword [esp + 0xc]
cmp dword [ecx - 8], esi
mov eax, ecx
jge 0x405df3
push 0x80070057
call fcn.00401b10
mov dword [ecx - 0xc], esi
mov ecx, dword [esp + 0xc]
push eax
push esi
mov byte [ecx + 0x104], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [esp + 0xc]
test edx, edx
jne 0x405e15
xor eax, eax
jmp 0x405e2d
mov eax, edx
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405e20
sub eax, esi
js 0x405de9
cmp eax, dword [edx - 8]
jg 0x405de9
mov dword [edx - 0xc], eax
mov edx, dword [esp + 0xc]
mov byte [eax + edx], 0
push 0x44f5a8
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004017d0
push 0x44
lea edx, [esp + 0x34]
push 0
push edx
call fcn.00425510
mov edx, dword [esp + 0x28]
add esp, 0x18
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edx
mov dword [esp + 0x4c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
or edx, 0xffffffff
test eax, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405eaf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x78], 0xffffffff
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 0x405ed7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x74
ret
Function at 0x40cec2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40cf05
call fcn.00413ac1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40cf05
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40cf20
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040ca79
test ebx, ebx
mov esi, eax
je 0x40cf1e
test edi, edi
je 0x40cf1e
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40ea24
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x40ea4d
call fcn.00413ac1
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x40ea70
push eax
push dword [esi + 4]
call fcn.0040e9af
push esi
push eax
mov ecx, 0x44d43c
call fcn.0040e689
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x41063f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x410685
call fcn.00413ac1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x410685
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x4106c8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x4106b1
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 0x4106b1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4106c5
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 0x41512c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41515a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x415178
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00415096
jmp 0x415178
mov eax, dword [esi + 0x14]
test eax, eax
je 0x415178
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00415096
test edi, edi
mov eax, edi
jne 0x415162
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x44d648]
test ecx, ecx
je 0x41523b
jmp 0x41512b
ret 8

Function at 0x416ace
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x416ad7
xor eax, eax
jmp 0x416b40
cmp dword [esp + 8], 0
jne 0x416ae3
call fcn.00406d73
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.00428042
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x416b1e
push dword [esi + 0x10]
call fcn.00427d87
test eax, eax
pop ecx
jne 0x416b1e
mov esi, dword [esi + 0xc]
call fcn.0042547a
push esi
push dword [eax]
push 1
call fcn.0041fed1
push dword [esi + 0x10]
call fcn.00427db6
test eax, eax
pop ecx
je 0x416b3d
push dword [esi + 0x10]
call fcn.00427cdb
push eax
call fcn.00401bf0
pop ecx
pop ecx
jmp 0x416b0c
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x416b49
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x416b53
call fcn.00406d73
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.00428177
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x416b80
mov esi, dword [esi + 0xc]
call fcn.0042547a
push esi
push dword [eax]
push 1
call fcn.0041fed1
pop esi
ret 8

Function at 0x4230ad
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44a630]
jne 0x4230b7
repz ret
jmp fcn.004291dc

Function at 0x423efc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x423f29
call fcn.0042547a
mov dword [eax], esi
call fcn.00425467
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0042974b
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x423f05
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x423f58
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042548d
pop ecx
call fcn.00425467
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x423f7f
test al, 1
je 0x423f7f
test byte [esp + 0xc], 2
je 0x423f7f
call fcn.0042547a
mov dword [eax], 5
call fcn.00425467
mov dword [eax], 0xd
jmp 0x423f4f
xor eax, eax
pop esi
ret
Function at 0x434c41
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042a4cd
xor ebx, ebx
cmp dword [0x44e3a0], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x434d16
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x434c81
xor eax, eax
jmp 0x434dda
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x440078
push edi
call esi
cmp eax, ebx
je 0x434c7a
push eax
call fcn.0042a46a
mov dword [esp], 0x440068
push edi
mov dword [0x44e3a0], eax
call esi
push eax
call fcn.0042a46a
mov dword [esp], 0x440054
push edi
mov dword [0x44e3a4], eax
call esi
push eax
call fcn.0042a46a
mov dword [0x44e3a8], eax
lea eax, [ebp - 8]
push eax
call fcn.00423c9d
test eax, eax
pop ecx
pop ecx
je 0x434ce4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042964f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x434d16
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042a46a
cmp eax, ebx
pop ecx
mov dword [0x44e3b0], eax
je 0x434d16
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042a46a
pop ecx
mov dword [0x44e3ac], eax
mov eax, dword [0x44e3ac]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x434d8f
cmp dword [0x44e3b0], esi
je 0x434d8f
push eax
call fcn.0042a4d6
pop ecx
call eax
cmp eax, ebx
je 0x434d5c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x44e3b0]
call fcn.0042a4d6
pop ecx
call eax
test eax, eax
je 0x434d5c
test byte [ebp - 0x18], 1
jne 0x434d8f
lea eax, [ebp - 0xc]
push eax
call fcn.00423cd4
test eax, eax
pop ecx
je 0x434d77
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042964f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x434d86
or dword [ebp + 0x10], 0x200000
jmp 0x434dc0
or dword [ebp + 0x10], 0x40000
jmp 0x434dc0
mov eax, dword [0x44e3a4]
cmp eax, esi
je 0x434dc0
push eax
call fcn.0042a4d6
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x434dc0
mov eax, dword [0x44e3a8]
cmp eax, esi
je 0x434dc0
push dword [ebp - 4]
push eax
call fcn.0042a4d6
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x44e3a0]
call fcn.0042a4d6
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x438910
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x44a630]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004388a5
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00425510
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x43895f
cmp dword [ebp - 0x1c], 5
jb 0x438977
jmp 0x438973
cmp dword [ebp - 0x10], 1
jne 0x438977
cmp dword [ebp - 0x1c], 4
ja 0x438973
jne 0x438977
cmp dword [ebp - 0x18], 0
jbe 0x438977
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x44091c
call fcn.00438779
test eax, eax
jge 0x438998
mov byte [0x44f5ac], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004230ad
add ebp, 0x78
leave
ret