joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401120
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 0x401139
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40114d
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 0x40116e
cmp esi, eax
jae 0x401147
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401160
cmp esi, eax
jae 0x401147
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403050
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42def3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x41c
mov eax, dword [0x43d320]
push ebx
push ebp
push esi
mov dword [esp + 0x424], eax
push edi
mov esi, ecx
lea eax, [esp + 0x18]
push eax
xor ebx, ebx
push 0x104
mov dword [esp + 0x43c], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x220]
push ecx
push ebx
push 0x42fb24
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [esi + 0x148]
call fcn.00406260
call fcn.0041feee
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push 0x42fb2c
push eax
mov byte [esp + 0x43c], 1
call fcn.004026a0
mov edi, dword [esp + 0x18]
add esp, 8
push ebx
push ecx
add edi, 0xfffffff0
mov dword [esp + 0x1c], esp
mov ebp, esp
push edi
call fcn.00402040
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [ebp], eax
call fcn.00402b90
mov ecx, esi
mov dword [esi + 0x104], ebx
mov dword [esi + 0xf8], ebx
mov dword [esi + 0xf4], ebx
call fcn.00402e60
mov byte [esp + 0x434], bl
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403143
mov ecx, dword [edi]
mov eax, dword [ecx]
push edi
call dword [eax + 4]
mov eax, dword [esp + 0x43c]
add eax, 0xfffffff0
mov dword [esp + 0x434], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40316f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x42c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x428]
call fcn.0041088f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x428
ret 4

Function at 0x403ee0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
inc dword [esi + 0x34]
call fcn.00405440
mov byte [esi + 0x30], 0
mov ecx, esi
pop esi
jmp 0x4054d0
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x4054f7
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x405480
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 8], eax
je 0x405501
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 8]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x403f20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42e03a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x42fdf0
mov dword [esp + 0x10], 6
mov byte [esi + 0x30], 1
call fcn.00405440
mov eax, dword [esi + 0x44]
sub eax, 0x10
mov byte [esp + 0x10], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f76
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x2c]
sub eax, 0x10
mov byte [esp + 0x10], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x24]
sub eax, 0x10
mov byte [esp + 0x10], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403fba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x20]
sub eax, 0x10
mov byte [esp + 0x10], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403fdc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x1c]
sub eax, 0x10
mov byte [esp + 0x10], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403ffe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x10]
sub eax, 0x10
mov byte [esp + 0x10], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404020
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
call fcn.00405420
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x404300
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x42e03a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.004053f0
lea edi, [esi + 0x10]
xor ebx, ebx
push 0x42f8f0
mov ecx, edi
mov dword [esp + 0x20], ebx
mov dword [esi], 0x42fdf0
call fcn.00401840
push 0x42f8f0
lea ecx, [esi + 0x1c]
mov byte [esp + 0x20], 1
mov byte [esi + 0x14], bl
mov dword [esi + 0x18], 2
call fcn.00401840
push 0x42f8f0
lea ecx, [esi + 0x20]
mov byte [esp + 0x20], 2
call fcn.00401840
push 0x42f8f0
lea ecx, [esi + 0x24]
mov byte [esp + 0x20], 3
call fcn.00401840
push 0x42f8f0
lea ecx, [esi + 0x2c]
mov byte [esp + 0x20], 4
mov dword [esi + 0x28], ebx
call fcn.00401840
mov byte [esp + 0x1c], 5
mov byte [esi + 0x30], bl
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
lea ebp, [esi + 0x44]
call fcn.0041feee
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp], eax
push 0x42f8f0
mov byte [esp + 0x20], 6
mov byte [esi + 0x40], bl
mov byte [esi + 0x41], bl
mov byte [esi + 0x42], bl
mov byte [esi + 0x43], bl
call fcn.004108cf
add esp, 4
push eax
push 0x42f8f0
mov ecx, ebp
call fcn.00401690
push 0x42fdf8
call fcn.004108cf
add esp, 4
push eax
push 0x42fdf8
mov ecx, edi
call fcn.00401690
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x405d00
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x18]
push eax
push edi
mov ebx, ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x405d4f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x405d2d
call esi
jmp 0x405d39
call esi
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x405e2b
pop edi
pop esi
mov eax, 0x80004005
pop ebx
add esp, 8
ret 8
lea ecx, [esi + esi]
push ebp
push ecx
call fcn.0041ffee
mov edx, dword [esp + 0x20]
add esp, 4
mov ebp, eax
push ebp
push esi
push edx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x405da2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x405d7f
call esi
jmp 0x405d8b
call esi
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x405e2a
pop ebp
pop edi
pop esi
mov eax, 0x80004005
pop ebx
add esp, 8
ret 8
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x430038
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x405dcc
mov ecx, ebx
call fcn.00405a80
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
mov ecx, 0xd
push ebp
rep movsd dword es:[edi], dword [esi]
call fcn.0041fff3
movzx edx, word [ebx + 0x14]
movzx eax, word [ebx + 0x16]
movzx ecx, word [ebx + 0x10]
push edx
movzx edx, word [ebx + 0x12]
push eax
push ecx
push edx
lea eax, [ebx + 0x4c]
push 0x430020
push eax
call fcn.004026a0
movzx ecx, word [ebx + 0x1c]
movzx edx, word [ebx + 0x1e]
movzx eax, word [ebx + 0x18]
push ecx
movzx ecx, word [ebx + 0x1a]
push edx
push eax
push ecx
push 0x430020
add ebx, 0x50
push ebx
call fcn.004026a0
add esp, 0x34
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 8

Function at 0x4063a0
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov ecx, edi
mov dword [esi], 0x430054
call fcn.00405620
mov dword [edi + 4], eax
lea eax, [esi + 0x10]
push eax
mov dword [edi + 8], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.0041feee
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
push 0x208
lea edi, [esi + 0x28]
push edi
add eax, 0x10
push 0
mov dword [esi + 0x640], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push edi
call fcn.00411a26
add esp, 8
test eax, eax
je 0x406402
mov word [eax], 0
push 0x208
lea eax, [esi + 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x208
lea ecx, [esi + 0x438]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
pop edi
mov eax, esi
pop esi
ret
Function at 0x40760a
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 0x40765d
call fcn.0042aca9
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x40765d
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x407653
xor eax, eax
jmp 0x407776
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 0x40768d
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 0x40768d
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x407773
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x4076ba
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00408ef5
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x407773
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x407703
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x407703
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x4076fd
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00408ef5
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x407763
and dword [ebp + 0xc], 0
jmp 0x407763
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x407763
push 0xc
call fcn.0041ffc3
mov esi, eax
test esi, esi
pop ecx
je 0x407745
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 0x407747
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40775e
push dword [ebp - 8]
call fcn.0041f65f
jmp 0x407763
call fcn.0041f636
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x4076c8
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41068a
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4335d0
call fcn.004125dc
mov edi, 0x94
mov eax, edi
call fcn.00411440
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 [0x440568], ecx
mov eax, dword [esi + 4]
mov dword [0x440574], eax
mov edx, dword [esi + 8]
mov dword [0x440578], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x44056c], esi
cmp ecx, 2
je 0x4106ea
or esi, 0x8000
mov dword [0x44056c], esi
shl eax, 8
add eax, edx
mov dword [0x440570], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x410725
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x410725
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41073d
cmp eax, 0x20b
je 0x41072a
mov dword [ebp - 0x1c], esi
jmp 0x410751
cmp dword [ecx + 0x84], 0xe
jbe 0x410725
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41074b
cmp dword [ecx + 0x74], 0xe
jbe 0x410725
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00414c21
pop ecx
test eax, eax
jne 0x410765
push 0x1c
call fcn.00410666
pop ecx
call fcn.00414b18
test eax, eax
jne 0x410776
push 0x10
call fcn.00410666
pop ecx
call fcn.004148b2
mov dword [ebp - 4], esi
call fcn.004146b4
test eax, eax
jge 0x41078f
push 0x1b
call fcn.00410641
pop ecx
call fcn.00414615
mov dword [0x441f30], eax
call fcn.004144ab
mov dword [0x44054c], eax
call fcn.00414415
test eax, eax
jge 0x4107b4
push 8
call fcn.00410641
pop ecx
call fcn.004141e2
test eax, eax
jge 0x4107c5
push 9
call fcn.00410641
pop ecx
push 1
call fcn.00411b75
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4107db
push eax
call fcn.00410641
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.0041419c
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4107fc
movzx eax, word [ebp - 0x40]
jmp 0x4107ff
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041f209
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x41081d
push edi
call fcn.00411ca2
call fcn.00411cc4
jmp 0x41084f
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00412617
ret
Function at 0x411bdf
Capabilities:
Terminate process

Disassembly:
push 8
push 0x433670
call fcn.004125dc
push 8
call fcn.00416c43
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4405a8], esi
jne 0x411c13
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4405a4], esi
mov al, byte [ebp + 0x10]
mov byte [0x4405a0], al
cmp dword [ebp + 0xc], edi
jne 0x411c5d
cmp dword [0x441f28], edi
je 0x411c4d
mov eax, dword [0x441f24]
sub eax, 4
mov dword [0x441f24], eax
cmp eax, dword [0x441f28]
jb 0x411c4d
mov eax, dword [eax]
cmp eax, edi
je 0x411c2e
call eax
jmp 0x411c2e
push 0x43c098
mov eax, 0x43c090
call fcn.00411b5d
pop ecx
push 0x43c0a4
mov eax, 0x43c09c
call fcn.00411b5d
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x411c8e
cmp dword [ebp + 0x10], edi
jne 0x411c9c
mov dword [0x4405a8], esi
push dword [ebp + 8]
call fcn.00411b1b
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x411c9b
push 8
call fcn.00416b8e
pop ecx
ret
call fcn.00412617
ret

Function at 0x4124f8
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.00411440
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x412593
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 [0x440568]
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 0x412593
cmp eax, 1
je 0x4125b4
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 0x412593
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x412560
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41258f
xor eax, eax
inc eax
jmp 0x4125d3
cmp edi, eax
jae 0x412597
xor eax, eax
jmp 0x4125d3
cmp eax, esi
jae 0x41259e
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 [0x440568]
jmp 0x4125b7
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 0x413e88
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x43d320]
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 + 0x43d4e0]
je 0x413ebd
inc eax
cmp eax, 0x13
jb 0x413eae
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x43d4e0]
jne 0x413fe3
mov eax, dword [0x440550]
cmp eax, 1
je 0x413fbb
cmp eax, edx
jne 0x413eed
cmp dword [0x43d31c], 1
je 0x413fbb
cmp ecx, 0xfc
je 0x413fe3
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 0x413f23
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00416fc0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004123b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x413f57
mov eax, edi
push eax
call fcn.004123b0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x433bb8
push edi
call fcn.0041af40
add esp, 0x10
push edi
call fcn.004123b0
push dword [esi + 0x43d4e4]
mov ebx, eax
call fcn.004123b0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00411440
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00416fc0
push edi
push ebx
call fcn.00416fd0
push 0x433b98
push ebx
call fcn.00416fd0
push dword [esi + 0x43d4e4]
push ebx
call fcn.00416fd0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041ae3e
add esp, 0x2c
jmp 0x413fe3
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x43d4e4]
push dword [esi]
call fcn.004123b0
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.0041088f
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4144ab
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x4407c4]
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 0x4144f4
call ebp
mov esi, eax
cmp esi, ebx
je 0x4144da
mov dword [0x4407c4], 1
jmp 0x4144f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4144ef
push 2
pop eax
mov dword [0x4407c4], eax
jmp 0x4144f4
mov eax, dword [0x4407c4]
cmp eax, 1
jne 0x414551
cmp esi, ebx
jne 0x41450c
call ebp
mov esi, eax
cmp esi, ebx
jne 0x41450c
xor eax, eax
jmp 0x4145f8
cmp word [esi], bx
mov eax, esi
je 0x414521
inc eax
inc eax
cmp word [eax], bx
jne 0x414513
inc eax
inc eax
cmp word [eax], bx
jne 0x414513
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.004121e7
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x414544
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x4145f8
push ebp
push esi
push edi
call fcn.00411d60
add esp, 0xc
jmp 0x414536
cmp eax, 2
je 0x41455a
cmp eax, ebx
jne 0x414505
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x414505
cmp byte [ebp], bl
mov esi, ebp
je 0x414590
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x414505
push esi
add edi, eax
call fcn.004123b0
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x41456d
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.004121e7
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x414609
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x4145ea
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 0x4145ff
push edi
call fcn.004123b0
push esi
lea edi, [edi + eax + 1]
call fcn.004108cf
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x4145b0
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.00411ce2
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x414505
Function at 0x414615
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x4407c8]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x414655
call esi
test eax, eax
je 0x41463a
mov dword [0x4407c8], 1
jmp 0x41465a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x414651
mov dword [0x4407c8], 2
jmp 0x414663
xor eax, eax
jmp 0x4146b1
cmp eax, 1
jne 0x41465e
call esi
jmp 0x4146b1
cmp eax, 2
jne 0x414651
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
je 0x4146a9
lea eax, [esi + esi]
push eax
call fcn.004121e7
mov ebp, eax
test ebp, ebp
pop ecx
je 0x4146a9
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x4146ad
push ebp
call fcn.00411ce2
pop ecx
xor eax, eax
jmp 0x4146af
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret