joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455200
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x84], ebx
test ebx, 0xffff0000
jne 0x45522b
cmp dword [edi + 0x80], 0
jne 0x45522b
movzx eax, bx
mov dword [edi + 0x80], eax
call fcn.0045da33
push 5
push ebx
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.00455466
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x458abf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x458afe
call fcn.0045da33
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x458afe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x458b06
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.0044e0e7
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x459223
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4592af
cmp dword [esi + 0x20], 0
je 0x4592af
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4592af
cmp dword [ebp + 8], 0
je 0x4592af
xor edi, edi
mov ebx, edi
call fcn.0045da33
push 0x4bc720
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x459293
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4592af
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.004668ed
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4592ab
mov ecx, esi
call fcn.00458ff1
mov eax, edi
jmp 0x4592b1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x45d05c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.0045cdf5
invalid
Function at 0x45d124
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
into
jl 0x45d0ed
inc ebp
iretd
jo 0x45d0f1
inc ebp
rcl byte [ebx]
call fcn.0045cdf5
shl edx, 1
jecxz 0x45d157
into
jl 0x45d0ed
inc ebp
iretd
lea eax, [ebp - 0x40]
push eax
call fcn.0045ce05
push eax
push esi
push dword [ebp + 8]
call fcn.0045cdba
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.0045cdf5
call 0x8d7cbd8e
inc ebp
call 0x512e2eeb
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.0045ce05
push eax
push esi
push dword [ebp + 8]
call fcn.0045cdba
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
xor eax, esi
inc ebp
wait
xor eax, 0x349c45c6
invalid

Function at 0x45d1cb
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xor eax, esi
inc ebp
wait
xor eax, 0x349c45c6
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0045ce05
push eax
push esi
push dword [ebp + 8]
call fcn.0045cdba
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0045ce05
push eax
push esi
push dword [ebp + 8]
call fcn.0045cdba
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0045cdf5
imul edx, dword [ebp + 0x29], 0x7c9d883c
cmp al, 0x88
popfd
invalid
Function at 0x45d2bb
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
ja 0x45d283
inc ebp
mov edi, dword [eax - 0x3a]
inc ebp
invalid
jb 0x45d28b
inc ebp
lea edi, [edx - 0x3a]
inc ebp
invalid
jae 0x45d293
inc ebp
invalid
push edi
mov byte [ebp - 0x70], 0x16
call fcn.0045cdf5
push ss
int3
ja 0x45d283
inc ebp
mov edi, dword [eax - 0x3a]
inc ebp
invalid

Function at 0x45d65e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x56fffffc
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.0045ce05
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0045cdba
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
test dword [ebx - 4], eax
invalid
jmp [ebx]
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
inc dword [ebx]
Function at 0x45f39b
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x50e554]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x230
xor edi, edi
push edi
push esi
call fcn.00481070
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.00490143
push eax
call fcn.0040295f
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x4ba940]
je 0x45f505
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x45f519
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x45f519
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
jne 0x45f434
mov eax, edi
jmp 0x45f463
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x45f451
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.0045f18e
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 0x28]
jmp 0x45f45a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
lea eax, [ecx + 1]
neg eax
sbb eax, eax
and eax, ecx
mov dword [esi + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.0045201c
test eax, eax
je 0x45f488
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.0045188b
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x45f48c
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.0045201c
test eax, eax
je 0x45f4b3
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.0045188b
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x45f4b7
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.0045201c
test eax, eax
je 0x45f4df
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.0045188b
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x45f4e1
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x45f4f3
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x45f505
mov eax, edi
mov dword [esi + 0x10], eax
mov eax, ecx
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046863a
leave
ret 4
xor eax, eax
jmp 0x45f508
Function at 0x460690
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x4b3b9b
call fcn.00468c83
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [esi + 0x1c]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 8]
test ebx, ebx
jle 0x46079a
cmp ebx, dword [esi + 0xc]
jge 0x46079a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x4606e7
cmp ebx, dword [edi + 8]
jl 0x460788
cmp dword [ebp + 0xc], 0
je 0x460788
xor ebx, ebx
jmp 0x460721
xor ebx, ebx
push 0x10
mov dword [ebp - 4], ebx
call fcn.00460137
mov edi, eax
test edi, edi
je 0x460701
mov dword [edi], vtable.CThreadData.0
jmp 0x460703
mov edi, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x14]
push edi
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
call fcn.004605bc
mov ecx, dword [esi + 0x14]
mov dword [eax], ecx
mov dword [esi + 0x14], edi
mov esi, dword [ebp - 0x14]
cmp dword [edi + 0xc], ebx
jne 0x46073c
push 4
push dword [esi + 0xc]
call fcn.00415d89
pop ecx
pop ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x460754
push 2
push 4
push dword [esi + 0xc]
call fcn.00415d89
pop ecx
pop ecx
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x4607c1
mov ecx, dword [edi + 8]
mov dword [edi + 0xc], edx
mov eax, dword [esi + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push ebx
push eax
call fcn.00481070
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [edi + 8], eax
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x46079a
cmp ebx, dword [edi + 8]
jge 0x46079a
mov eax, dword [ebp + 0xc]
mov dword [ecx + ebx*4], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00468be1
ret 8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0044e8ae
int3

Function at 0x49da3d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049d6ee

Function at 0x49da48
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049d878
Function at 0x402faa
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40d2f0
call fcn.00406cb4
mov edi, 0x94
mov eax, edi
call fcn.00406e10
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 [0x40fd9c], ecx
mov eax, dword [esi + 4]
mov dword [0x40fda8], eax
mov edx, dword [esi + 8]
mov dword [0x40fdac], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40fda0], esi
cmp ecx, 2
je 0x40300a
or esi, 0x8000
mov dword [0x40fda0], esi
shl eax, 8
add eax, edx
mov dword [0x40fda4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x403045
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403045
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40305d
cmp eax, 0x20b
je 0x40304a
mov dword [ebp - 0x1c], esi
jmp 0x403071
cmp dword [ecx + 0x84], 0xe
jbe 0x403045
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40306b
cmp dword [ecx + 0x74], 0xe
jbe 0x403045
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00406bdd
pop ecx
test eax, eax
jne 0x40309d
cmp dword [0x40fd60], 1
jne 0x40308a
call fcn.0040631d
push 0x1c
call fcn.0040617c
push 0xff
call fcn.004047e1
pop ecx
pop ecx
call fcn.00406b3b
mov dword [ebp - 4], esi
call fcn.0040696d
test eax, eax
jge 0x4030b6
push 0x1b
call fcn.00402f0b
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4113f4], eax
call fcn.0040684b
mov dword [0x40fd58], eax
call fcn.004067a9
test eax, eax
jge 0x4030dc
push 8
call fcn.00402f0b
pop ecx
call fcn.00406576
test eax, eax
jge 0x4030ed
push 9
call fcn.00402f0b
pop ecx
push 1
call fcn.00404847
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x403103
push eax
call fcn.00402f0b
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00406519
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x403124
movzx eax, word [ebp - 0x40]
jmp 0x403127
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401beb
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x403145
push edi
call fcn.00404972
call fcn.00404994
jmp 0x403177
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00406cef
ret
Function at 0x403e77
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x4102a8]
mov eax, dword [0x40f4d4]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x40403d
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x4102c0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x40403d
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x403ee1
xor eax, eax
jmp 0x404051
test al, 0x20
je 0x403ef2
push 2
push edi
push edi
push ecx
call fcn.004096bd
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x403fc7
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x40400e
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x403f54
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x403f45
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x403f27
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403f94
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x403fa0
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x403f1b
jmp 0x403fa2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x404038
cmp dword [ebp + 0x3a4], edi
je 0x40400e
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x404000
mov dword [0x40fd94], eax
jmp 0x404044
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403ff2
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x403fa2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x403fa2
push dword [ebp + 0x3a4]
call fcn.00404a24
pop ecx
jmp 0x40404e
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x404026
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x403eda
mov dword [0x40fd90], 0x1c
mov dword [0x40fd94], edi
jmp 0x40404e
sub eax, dword [ebp - 0x7c]
jmp 0x404051
and dword [0x40fd94], 0
mov dword [0x40fd90], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0040978d
add ebp, 0x39c
leave
ret
Function at 0x40448b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x4102a8]
push edi
jae 0x404660
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x4102c0]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x404660
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x404536
test dl, 2
jne 0x404536
test dl, 0x48
je 0x404500
cmp byte [eax + 5], 0xa
je 0x404500
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404549
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x404531
mov dword [0x40fd94], ecx
jmp 0x404667
cmp eax, 0x6d
jne 0x40453d
xor eax, eax
jmp 0x404674
push eax
call fcn.00404a24
pop ecx
jmp 0x404671
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x40465b
test eax, eax
je 0x404570
cmp byte [ebx], 0xa
jne 0x404570
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x404579
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x404655
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x404645
cmp al, 0xd
je 0x4045ab
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x404637
dec ecx
cmp dword [ebp - 8], ecx
jae 0x4045c5
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x4045c0
add dword [ebp - 8], 2
jmp 0x404619
mov dword [ebp - 8], eax
jmp 0x404633
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4045ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x404633
cmp dword [ebp - 0x10], 0
je 0x404633
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x40460e
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x404619
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x404636
cmp ebx, dword [ebp + 0xc]
jne 0x40461e
cmp byte [ebp - 1], 0xa
jne 0x40461e
mov byte [ebx], 0xa
jmp 0x404636
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004095c6
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x404637
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x40458f
jmp 0x404655
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x404655
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x404674
and dword [0x40fd94], 0
mov dword [0x40fd90], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4048b1
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40fddc], esi
push edi
jne 0x4048d1
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 [0x40fdd8], esi
mov byte [0x40fdd4], al
jne 0x404937
mov ecx, dword [0x4113ec]
test ecx, ecx
je 0x404918
mov eax, dword [0x4113e8]
sub eax, 4
cmp eax, ecx
jmp 0x404911
mov eax, dword [eax]
test eax, eax
je 0x404903
call eax
mov eax, dword [0x4113e8]
sub eax, 4
cmp eax, dword [0x4113ec]
mov dword [0x4113e8], eax
jae 0x4048fb
mov eax, 0x40f024
mov esi, 0x40f02c
cmp eax, esi
mov edi, eax
jae 0x404937
mov eax, dword [edi]
test eax, eax
je 0x404930
call eax
add edi, 4
cmp edi, esi
jb 0x404928
mov eax, 0x40f030
mov esi, 0x40f038
cmp eax, esi
mov edi, eax
jae 0x404956
mov eax, dword [edi]
test eax, eax
je 0x40494f
call eax
add edi, 4
cmp edi, esi
jb 0x404947
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x404970
push dword [ebp + 8]
mov dword [0x40fddc], 1
call fcn.004047e1
pop ebp
ret

Function at 0x40617c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40f4d4]
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 + 0x40f4e0]
je 0x4061b1
inc eax
cmp eax, 0x13
jb 0x4061a2
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40f4e0]
jne 0x4062d7
mov eax, dword [0x40fd60]
cmp eax, 1
je 0x4062af
cmp eax, edx
jne 0x4061e1
cmp dword [0x40f074], 1
je 0x4062af
cmp ecx, 0xfc
je 0x4062d7
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 0x406217
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00407f50
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00402750
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40624b
mov eax, edi
push eax
call fcn.00402750
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40dcb0
push edi
call fcn.00409f70
add esp, 0x10
push edi
call fcn.00402750
push dword [esi + 0x40f4e4]
mov ebx, eax
call fcn.00402750
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00406e10
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00407f50
push edi
push ebx
call fcn.00407f60
push 0x40dc90
push ebx
call fcn.00407f60
push dword [esi + 0x40f4e4]
push ebx
call fcn.00407f60
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00409e6b
add esp, 0x2c
jmp 0x4062d7
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40f4e4]
push dword [esi]
call fcn.00402750
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.0040978d
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret