joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405280
Capabilities:
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x201c
call fcn.00411290
mov eax, dword [0x437a30]
mov ecx, dword [ecx + 8]
push ebx
push esi
push edi
push 0
push 0x40cc200
push 0
push 0
push 0
mov dword [esp + 0x2038], eax
mov eax, dword [ebp + 8]
push eax
push 0x42ba4c
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
je 0x4052e3
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push 0
push 0
push edx
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x4052fa
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
mov ecx, dword [esp + 0x2024]
call fcn.004105a4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov byte [esp + 0x20], 0
xor eax, eax
mov ecx, 0x7ff
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
push 0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
stosw word es:[edi], ax
push 5
push ebx
stosb byte es:[edi], al
mov dword [esp + 0x24], 0x2000
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov esi, eax
test esi, esi
je 0x4053d7
lea eax, [esp + 0x20]
push eax
call fcn.0041177d
mov edx, eax
add esp, 4
test edx, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], 0
jbe 0x40544e
jmp 0x405360
mov edx, dword [esp + 0x1c]
nop
xor eax, eax
mov ecx, 0x800
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov eax, edx
sub eax, dword [esp + 0x18]
cmp eax, 0x1ffe
mov dword [esp + 0x10], eax
jbe 0x405387
mov eax, 0x1ffe
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x14]
push ecx
push eax
lea edx, [esp + 0x28]
push edx
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, eax
test esi, esi
je 0x40544e
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40544e
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x20]
push eax
call fcn.00405860
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
add eax, edx
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x40535b
jmp 0x40544e
xor eax, eax
mov ecx, 0x800
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
push 0x1ffe
lea edx, [esp + 0x28]
push edx
push ebx
mov dword [esp + 0x20], 0x1ffe
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, eax
test esi, esi
je 0x40544e
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40544e
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x20]
push eax
call fcn.00405860
xor eax, eax
mov ecx, 0x800
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
push 0x1ffe
lea edx, [esp + 0x28]
push edx
push ebx
mov dword [esp + 0x20], 0x1ffe
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, eax
test esi, esi
jne 0x405408
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [esp + 0x2024]
xor eax, eax
cmp esi, 1
sete al
call fcn.004105a4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x406388
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x42a63a
call fcn.00412250
sub esp, 0x150
push ebx
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x5c], bl
push 0xf
xor eax, eax
pop ecx
lea edi, [ebp - 0x5b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x10], ebx
stosb byte es:[edi], al
call fcn.004067ed
lea eax, [ebp - 0x5c]
push eax
push str.U09GVFdBUkVcSGludHNvZnQxXFh1blNoYW5Qcm8
call fcn.004069d3
pop ecx
pop ecx
call fcn.0041e45f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
push 1
push ebx
lea eax, [ebp - 0x5c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406466
push 0x40
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.004121f0
add esp, 0xc
push 0x3f
pop ecx
xor eax, eax
mov byte [ebp - 0x15c], bl
lea edi, [ebp - 0x15b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push str.RegID
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40645a
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00403190
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.00402580
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401260
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4067ed
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
mov eax, 0x42a654
call fcn.00412250
sub esp, 0x1c
push ebx
lea eax, [ebp - 0x1c]
xor ebx, ebx
push eax
push ebx
mov dword [ebp - 0x1c], ebx
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, ebx
je 0x406817
cmp eax, 0x6f
jne 0x4069b1
push esi
push dword [ebp - 0x1c]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x20], esi
je 0x4069b0
lea eax, [ebp - 0x1c]
push eax
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, ebx
je 0x40684a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4069b0
push edi
cmp dword [esi + 0x1a0], 6
jne 0x40699c
call fcn.0041e45f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [esi + 0x10c]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00403190
lea ecx, [ebp - 0x10]
call fcn.00402c70
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00403860
push ebx
push str.virtual
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004024d0
test eax, eax
jl 0x4068aa
mov esi, dword [esi]
jmp 0x4068d9
lea eax, [esi + 0x1b0]
push eax
lea ecx, [ebp - 0x14]
call fcn.00403860
push str.0.0.0.0
push dword [ebp - 0x14]
call fcn.00410e28
test eax, eax
pop ecx
pop ecx
jne 0x4068f8
mov ecx, dword [ebp - 0x14]
mov esi, dword [esi]
add ecx, 0xfffffff0
call fcn.00401260
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401260
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00401260
jmp 0x40699e
xor eax, eax
mov byte [ebp - 0x28], bl
lea edi, [ebp - 0x27]
stosd dword es:[edi], eax
stosb byte es:[edi], al
push 6
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x194]
push eax
call fcn.00412580
add esp, 0xc
test eax, eax
je 0x4068cc
push 0x14
lea eax, [esi + 0x1b0]
push eax
push 0x43893c
call fcn.004112d0
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
push str._02X_02X_02X_02X_02X_02X
push 0x438928
call fcn.004107ad
add esp, 0x2c
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401260
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401260
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401260
jmp 0x4069af
mov esi, dword [esi]
cmp esi, ebx
jne 0x40684b
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4069d3
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x406b1b
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x406b1b
mov al, byte [esi]
test al, al
je 0x406b13
push ebx
cmp al, 0xa
jne 0x406a00
inc esi
mov al, byte [esi]
mov cl, byte [esi + 3]
mov byte [ebp - 0xc], al
mov al, byte [esi + 1]
mov byte [ebp - 0xb], al
mov al, byte [esi + 2]
cmp al, 0x3d
mov byte [ebp - 0xa], al
mov byte [ebp - 9], cl
je 0x406a98
cmp cl, 0x3d
push dword [ebp - 0xc]
je 0x406ac3
call fcn.004069be
push dword [ebp - 0xb]
mov byte [ebp - 0xc], al
call fcn.004069be
push dword [ebp - 0xa]
mov bl, al
call fcn.004069be
push dword [ebp - 9]
mov byte [ebp - 0xa], al
call fcn.004069be
mov byte [ebp - 9], al
mov al, byte [ebp - 0xc]
shl al, 2
mov cl, bl
shr cl, 4
and cl, 3
or cl, al
mov al, byte [ebp - 0xa]
shr al, 2
and al, 0xf
shl bl, 4
or al, bl
mov byte [ebp - 3], al
mov al, byte [ebp - 9]
mov byte [ebp + 0xb], bl
mov bl, byte [ebp - 0xa]
shl bl, 6
and al, 0x3f
mov byte [edx], cl
mov cl, byte [ebp - 3]
or al, bl
add esp, 0x10
mov byte [edx + 1], cl
mov byte [edx + 2], al
add esi, 4
mov byte [ebp + 0xb], bl
add edx, 3
jmp 0x406b08
cmp cl, 0x3d
jne 0x406b08
push dword [ebp - 0xc]
call fcn.004069be
push dword [ebp - 0xb]
mov bl, al
call fcn.004069be
shr al, 4
and al, 3
shl bl, 2
or al, bl
pop ecx
mov byte [edx], al
add esi, 4
pop ecx
inc edx
jmp 0x406b08
call fcn.004069be
push dword [ebp - 0xb]
mov bl, al
call fcn.004069be
push dword [ebp - 0xa]
mov byte [ebp - 0xb], al
call fcn.004069be
mov cl, byte [ebp - 0xb]
shr cl, 4
shl bl, 2
and cl, 3
or cl, bl
mov bl, byte [ebp - 0xb]
shr al, 2
shl bl, 4
and al, 0xf
or al, bl
add esp, 0xc
mov byte [edx], cl
mov byte [edx + 1], al
add esi, 4
inc edx
mov byte [ebp + 0xb], bl
inc edx
mov al, byte [esi]
test al, al
jne 0x4069fb
pop ebx
xor eax, eax
mov byte [edx], 0
inc eax
jmp 0x406b1d
xor eax, eax
pop esi
leave
ret
Function at 0x408c42
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 esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x408c95
call fcn.004277dd
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x408c95
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x408c8b
xor eax, eax
jmp 0x408dae
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x408cc5
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x408cc5
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x408dab
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x408cf2
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0040776d
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x408dab
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x408d3b
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x408d3b
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x408d35
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0040776d
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x408d9b
and dword [ebp + 0xc], 0
jmp 0x408d9b
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x408d9b
push 0xc
call fcn.0041e6dd
mov esi, eax
test esi, esi
pop ecx
je 0x408d7d
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
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 + 0x10]
mov dword [esi], eax
jmp 0x408d7f
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x408d96
push dword [ebp - 8]
call fcn.0041d1b8
jmp 0x408d9b
call fcn.0041d18f
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x408d00
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4115f6
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00411290
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x411691
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x43aaa8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x411691
cmp eax, 1
je 0x4116b2
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x411691
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41165e
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41168d
xor eax, eax
inc eax
jmp 0x4116d1
cmp edi, eax
jae 0x411695
xor eax, eax
jmp 0x4116d1
cmp eax, esi
jae 0x41169c
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x43aaa8]
jmp 0x4116b5
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411c3f
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42e918
call fcn.00412270
mov edi, 0x94
mov eax, edi
call fcn.00411290
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 [0x43aaa8], ecx
mov eax, dword [esi + 4]
mov dword [0x43aab4], eax
mov edx, dword [esi + 8]
mov dword [0x43aab8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x43aaac], esi
cmp ecx, 2
je 0x411c9f
or esi, 0x8000
mov dword [0x43aaac], esi
shl eax, 8
add eax, edx
mov dword [0x43aab0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x411cda
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x411cda
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x411cf2
cmp eax, 0x20b
je 0x411cdf
mov dword [ebp - 0x1c], esi
jmp 0x411d06
cmp dword [ecx + 0x84], 0xe
jbe 0x411cda
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x411d00
cmp dword [ecx + 0x74], 0xe
jbe 0x411cda
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00415896
pop ecx
test eax, eax
jne 0x411d1a
push 0x1c
call fcn.00411c1b
pop ecx
call fcn.00413b4f
test eax, eax
jne 0x411d2b
push 0x10
call fcn.00411c1b
pop ecx
call fcn.004174ba
mov dword [ebp - 4], esi
call fcn.004172bc
test eax, eax
jge 0x411d44
push 0x1b
call fcn.00411bf6
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x43c370], eax
call fcn.0041719a
mov dword [0x43aa90], eax
call fcn.004170f8
test eax, eax
jge 0x411d6a
push 8
call fcn.00411bf6
pop ecx
call fcn.00416ec5
test eax, eax
jge 0x411d7b
push 9
call fcn.00411bf6
pop ecx
push 1
call fcn.004126c6
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x411d91
push eax
call fcn.00411bf6
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00416e68
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x411db2
movzx eax, word [ebp - 0x40]
jmp 0x411db5
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041ca16
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x411dd3
push edi
call fcn.004127f3
call fcn.00412815
jmp 0x411e05
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004122ab
ret
Function at 0x412730
Capabilities:
Terminate process

Disassembly:
push 8
push 0x42e940
call fcn.00412270
push 8
call fcn.00415a3a
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x43aae8], esi
jne 0x412764
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x43aae4], esi
mov al, byte [ebp + 0x10]
mov byte [0x43aae0], al
cmp dword [ebp + 0xc], edi
jne 0x4127ae
cmp dword [0x43c368], edi
je 0x41279e
mov eax, dword [0x43c364]
sub eax, 4
mov dword [0x43c364], eax
cmp eax, dword [0x43c368]
jb 0x41279e
mov eax, dword [eax]
cmp eax, edi
je 0x41277f
call eax
jmp 0x41277f
push 0x4360a8
mov eax, 0x4360a0
call fcn.004126ae
pop ecx
push 0x4360b4
mov eax, 0x4360ac
call fcn.004126ae
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4127df
cmp dword [ebp + 0x10], edi
jne 0x4127ed
mov dword [0x43aae8], esi
push dword [ebp + 8]
call fcn.0041266c
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4127ec
push 8
call fcn.00415985
pop ecx
ret
call fcn.004122ab
ret
Function at 0x41434b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x414379
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x414380
cmp ebx, dword [eax + 4]
jae 0x414380
xor eax, eax
jmp 0x414570
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x414391
xor eax, eax
inc eax
jmp 0x41456f
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4143a7
cmp ecx, edx
jae 0x4144ec
cmp dword [eax + 4], 0
je 0x4143b0
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x414398
cmp dword [ebp + 8], 0
je 0x4143d2
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4144ec
cmp eax, esi
jae 0x4144ec
mov eax, dword [0x43ab10]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4143f7
cmp dword [esi*4 + 0x43ab18], edi
je 0x4144f0
inc esi
cmp esi, eax
jl 0x4143e5
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41456c
cmp dword [ebp - 8], 0x1000000
jne 0x41456c
test byte [ebp - 0xc], 0xcc
je 0x414475
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41456c
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41456c
cmp word [eax + 0x18], 0x10b
jne 0x41456c
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41456c
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x414475
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x414475
test byte [ecx + 0x27], 0x80
jne 0x4144ec
push 1
push 0x43ab58
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x414389
mov ecx, dword [0x43ab10]
test ecx, ecx
mov edx, ecx
jle 0x4144a9
lea eax, [ecx*4 + 0x43ab14]
cmp dword [eax], edi
je 0x4144a9
dec edx
sub eax, 4
test edx, edx
jg 0x41449d
test edx, edx
jne 0x4144da
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4144b6
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4144ce
lea eax, [edx*4 + 0x43ab18]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4144bc
cmp ecx, 0x10
jge 0x4144da
inc ecx
mov dword [0x43ab10], ecx
push 0
push 0x43ab58
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x414389
xor eax, eax
jmp 0x41456f
test esi, esi
jle 0x414389
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x43ab58
call ebx
test eax, eax
jne 0x414389
cmp dword [esi*4 + 0x43ab18], edi
je 0x414546
mov eax, dword [0x43ab10]
lea esi, [eax - 1]
test esi, esi
jl 0x414534
cmp dword [esi*4 + 0x43ab18], edi
je 0x414530
dec esi
jns 0x414524
test esi, esi
jge 0x414544
cmp eax, 0x10
jge 0x41453f
inc eax
mov dword [0x43ab10], eax
lea esi, [eax - 1]
jmp 0x414546
je 0x41455e
xor ecx, ecx
test esi, esi
jl 0x41455e
lea eax, [ecx*4 + 0x43ab18]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41454c
push 0
push 0x43ab58
call ebx
jmp 0x414389
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416b54
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x437a30]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x437fe8]
je 0x416b89
inc eax
cmp eax, 0x13
jb 0x416b7a
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x437fe8]
jne 0x416caf
mov eax, dword [0x43aa98]
cmp eax, 1
je 0x416c87
cmp eax, edx
jne 0x416bb9
cmp dword [0x437a70], 1
je 0x416c87
cmp ecx, 0xfc
je 0x416caf
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x416bef
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00412480
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00412160
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x416c23
mov eax, edi
push eax
call fcn.00412160
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x42ea44
push edi
call fcn.004112d0
add esp, 0x10
push edi
call fcn.00412160
push dword [esi + 0x437fec]
mov ebx, eax
call fcn.00412160
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00411290
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00412480
push edi
push ebx
call fcn.00412490
push 0x42ea40
push ebx
call fcn.00412490
push dword [esi + 0x437fec]
push ebx
call fcn.00412490
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004194be
add esp, 0x2c
jmp 0x416caf
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x437fec]
push dword [esi]
call fcn.00412160
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 - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004105a4
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4194be
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x43aed8], ebx
push esi
push edi
jne 0x41953e
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x419579
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42f8b4
push edi
call esi
test eax, eax
mov dword [0x43aed8], eax
je 0x419579
push 0x42f8a4
push edi
call esi
push 0x42f890
push edi
mov dword [0x43aedc], eax
call esi
cmp dword [0x43aaa8], 2
mov dword [0x43aee0], eax
jne 0x41953e
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x43aee8], eax
je 0x41953e
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x43aee4], eax
mov eax, dword [0x43aee4]
test eax, eax
je 0x419583
call eax
test eax, eax
je 0x41956a
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x43aee8]
test eax, eax
je 0x41956a
test byte [ebp - 8], 1
jne 0x419583
cmp dword [0x43aab4], 4
jb 0x41957d
or byte [ebp + 0x12], 0x20
jmp 0x4195a2
xor eax, eax
jmp 0x4195b2
or byte [ebp + 0x12], 4
jmp 0x4195a2
mov eax, dword [0x43aedc]
test eax, eax
je 0x4195a2
call eax
mov ebx, eax
test ebx, ebx
je 0x4195a2
mov eax, dword [0x43aee0]
test eax, eax
je 0x4195a2
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x43aed8]
pop edi
pop esi
pop ebx
leave
ret