joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4239f6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x423a05
pop dword [ebp - 0x24]
mov eax, 0x30b56998
sub eax, 0x30732f93
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x39c5d
push 0
mov eax, 0xdf9ab3e2
add eax, 0x20a8cc4e
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0xbd35b022
add ecx, 0x42ca9445
mov edi, eax
mov edx, 0x66e91305
add edx, 0x995bb2fb
add edx, dword [ebp - 0x24]
mov esi, 0x36c2e43b
add dword [ebp - 4], edx
mov ebx, dword [edx]
sub dword [ebp - 8], edi
xor ebx, esi
add dword [ebp - 0x10], 0x2b9955bd
mov dword [edi], ebx
xor dword [ebp - 4], 0xcd5d44a5
add edi, 4
add edx, 0x76a58526
add edx, 0x895a7ade
loop 0x423a5e
add eax, 0xaa1e5fb6
add eax, 0x55e2a4b9
xor ebx, ebx
add ebx, eax
add eax, 0x8c45625
add eax, 0xf73ba9e0
mov ecx, 0xacd1dccf
sub ecx, 0xac91dccf
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x4281f2
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov eax, 0x436de3
call fcn.004339e0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x43a908
mov dword [esi + 4], 0x43a8f4
mov dword [esi + 8], 0x438e70
mov dword [esi + 0xc], 0x43a8d8
mov dword [esi + 0x10], 0x43a8c4
mov dword [esi + 0x14], 0x43a8b4
mov dword [esi + 0x18], 0x438e60
mov dword [esi + 0x1c], 0x438e50
mov dword [esi + 0x20], 0x43a8ac
mov dword [esi + 0x24], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
or dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 4
call fcn.004028e9
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 5
call fcn.004028e9
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
or dword [esi + 0x9c], 0xffffffff
mov byte [ebp - 4], 7
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0xa0], ebx
mov byte [esi + 0xa4], bl
mov byte [esi + 0xa5], bl
mov byte [esi + 0xa6], bl
mov byte [esi + 0xa7], bl
mov byte [esi + 0xa8], bl
mov byte [esi + 0xa9], bl
mov byte [esi + 0xaa], bl
mov dword [esi + 0xac], ebx
mov dword [esi], 0x43a880
mov dword [esi + 4], 0x43a86c
mov dword [esi + 8], 0x43a854
mov dword [esi + 0xc], 0x43a838
mov dword [esi + 0x10], 0x43a824
mov dword [esi + 0x14], 0x43a814
mov dword [esi + 0x18], 0x43a804
mov dword [esi + 0x1c], 0x43a7f4
mov dword [esi + 0x20], 0x43a7ec
call fcn.0040d4f9
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x28], al
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4022d9
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x40c210
push str.FlsAlloc
push 0
call fcn.00402252
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40230b
push dword [ebp + 8]
mov ecx, esi
call fcn.00401844
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x40234d
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x40c240
push str.FlsSetValue
push 3
call fcn.00402252
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x402381
mov ecx, esi
call fcn.00401844
call esi
jmp 0x402387
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret
Function at 0x432110
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
test ebx, ebx
jle 0x432124
call fcn.00432090
xor byte [esi + edi], al
inc esi
cmp esi, ebx
jl 0x432117
pop esi
cmp ebx, 0x2d
jne 0x43213e
mov dword [0x2bdf6e8], 0xa62e7790
mov dword [0x2bdf6ec], 0xffffffff
ret

Function at 0x432140
Capabilities:
Create pipe

Disassembly:
sub esp, 0x24
mov eax, dword [0x437004]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [0x438210]
push ebx
mov ebx, dword [0x2bdf6dc]
push edi
mov edi, dword [0x2bdd25c]
call fcn.004320e0
cmp dword [0x2bdf6dc], 0x2f
jne 0x4321ad
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
call fcn.00432110
mov ecx, dword [esp + 0x24]
pop edi
pop ebx
xor ecx, esp
call fcn.004010e8
add esp, 0x24
ret
Function at 0x401060
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ebx, esi
xor esi, eax
mov esi, esi
xor eax, esi
xor eax, ebx
xor esi, ebx
mov ebx, esi
mov esi, esi
mov eax, eax
mov eax, 0x3a
sbb edx, 6
imul ebx
inc ebx
mov ebx, 0x98
bswap edi
sub eax, 0xa3
rol ebx, 0x34
bswap edx
imul eax
rcl edi, 0x10
rol eax, 0xbb
ror eax, 0xda
bswap eax
sub esi, 0x41
not esi
or esi, 0x4e
neg edx
and esi, 0xc8
rcr edx, 0x74
inc esi
sbb ebx, 0xd2
sub ebx, 0xbd
not esi
rcr edx, 0x41
rol edi, 0xe5
imul edi
rcl eax, 0xfa
rcl edx, 0xe8
sbb esi, 0x55
and edx, 0x97
rcl ebx, 0xf7
sub eax, 0x16
not ebx
and edx, 0x97
sub esi, 0xd7
bswap eax
inc edi
and edx, 0xee
inc edx
inc eax
inc esi
rol edx, 0x7d
rol eax, 0x91
add ebx, 0x74
ror esi, 0x5d
and eax, 0x64
rcr eax, 0x8e
rol ebx, 0xfa
inc ebx
xor ecx, ecx
xor edi, edi
xor eax, ebx
mov eax, ebx
mov esi, esi
xor esi, ebx
mov esi, ebx
xor eax, ebx
mov ebx, 0x36
rcr esi, 0xb7
sub eax, 0xde
bswap edx
mov eax, 0xc3
ror edi, 0xb1
inc edx
sub edi, 0x13
sub ebx, 0x36
dec eax
ror edx, 0xc7
not esi
inc edx
imul ebx
sub esi, 0x8a
imul edi
not eax
rcr eax, 0x39
rcl eax, 0
sub ebx, 0x1d
inc eax
inc edi
mov ebx, 0xb9
rol eax, 0x7d
or ebx, 0x4f
sbb ebx, 0xed
neg edx
rcr eax, 0x25
neg eax
neg edi
dec ebx
imul ebx
rcr edx, 0x2d
inc esi
ror esi, 0xb3
not edx
inc esi
bswap eax
not esi
and edx, 0x7b
mov edx, 4
rcr edx, 0xad
ror esi, 0xb0
or esi, 0x92
ror esi, 0x65
dec ebx
not eax
add edi, 0x20
neg edx
sbb eax, 0xb0
xor ebx, eax
mov ebx, ebx
xor ebx, eax
mov esi, eax
xor eax, ebx
mov ebx, ebx
mov ebx, eax
mov esi, eax
mov ebx, esi
mov ecx, dword [ebp + 0xc]
bswap esi
sbb edx, 0x78
dec esi
dec ebx
dec edx
sbb edi, 0x41
inc ebx
not edi
or ebx, 0x8a
neg edi
neg edx
dec edx
rcr edi, 0x1e
rol edx, 0x13
or esi, 0xa2
rcl esi, 0xb
and edx, 0x93
sbb edi, 0xef
sub eax, 0x84
and eax, 0xec
bswap eax
dec esi
add ebx, 0x6a
or ebx, 0xa0
neg eax
rcr ebx, 0xda
rcr edi, 0x1e
mov edi, 0x9a
not edx
neg edx
or ebx, 0x45
neg ebx
not esi
add ebx, 0xa
sub esi, 0x50
bswap edi
or eax, 0x59
and ebx, 0x14
sbb edx, 0x93
sbb eax, 0xb
not edi
dec edi
and ebx, 0x9b
neg esi
bswap edx
sub edi, 0x97
bswap edx
sbb eax, 0xa
and edx, 0x79
neg esi
mov edi, dword [ebp + 8]
mov ebx, esi
mov esi, ebx
mov esi, ebx
xor eax, eax
xor esi, esi
mov esi, eax
xor ebx, eax
xor eax, esi
xor esi, eax
not byte [edi]
mov ebx, esi
mov ebx, ebx
xor eax, eax
xor eax, ebx
xor esi, ebx
mov ebx, esi
xor ebx, esi
xor esi, ebx
mov eax, esi
xor eax, ebx
mov esi, ebx
xor esi, esi
add byte [edi], 0xff
sub byte [edi], 0x4a
xor esi, esi
mov ebx, esi
mov ebx, esi
xor ebx, ebx
mov ebx, ebx
xor esi, esi
xor ebx, esi
mov ebx, esi
mov eax, esi
imul byte [edi]
inc edi
loop 0x401265
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404210
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40424f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40424f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40424f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40424f
cmp dword [ecx + 0x74], 0xe
jbe 0x40424f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x409da3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x409e40
push ebx
push esi
call fcn.00409d6c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00409d00
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x409ded
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x409e3f
push edi
push eax
call fcn.0040a9c0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x409e0d
call fcn.00408861
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x409e3e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00409d00
add esp, 0x20
test eax, eax
jne 0x409e2c
push edi
call fcn.00408861
jmp 0x409e34
push ebx
call fcn.00408861
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40b13d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41b040
push 0x41b038
push str.FlsAlloc
push 0x1f
call fcn.0040affc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b171
push dword [ebp + 8]
mov ecx, esi
call dword [0x413154]
call esi
jmp 0x40b177
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40b1bb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41b050
push 0x41b048
push str.FlsGetValue
push 0x21
call fcn.0040affc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b1f2
push dword [ebp + 8]
mov ecx, esi
call dword [0x413154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40b1fa
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41b058
push 0x41b050
push str.FlsSetValue
push 0x22
call fcn.0040affc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b234
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x413154]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x410690
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4106bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4106bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40107e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x4326c8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4326cc]
xor esi, esi
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
call fcn.00401077
mov eax, dword [0x4326d0]
add dword [ebp - 0xc], 0x23f
mov dword [ebp - 0x20], eax
mov eax, dword [0x4326d4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0x20
jmp 0x4010ce
xor esi, esi
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, ebx
shl eax, 4
cmp dword [0x441914], 0xc
mov dword [ebp - 4], eax
jne 0x4010f8
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0x441914]
cmp eax, 0xfa9
jne 0x401114
mov dword [0x441910], 0xedeb2e40
cmp eax, 0x3eb
jne 0x401133
push str.komovavukuniburubawumukoni
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [0x441868], esi
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, ebx
add eax, ebx
shr edx, cl
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov dword [0x44190c], 0xf4ea3dee
add edx, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor eax, edx
sub edi, eax
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov esi, edi
shr esi, cl
add eax, edi
mov dword [ebp - 0x18], eax
add esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
cmp dword [0x441914], 0xb03
jne 0x4011ac
push str.ruyenemilimusibubigukexem
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
xor dword [ebp - 4], esi
sub ebx, dword [ebp - 4]
add dword [ebp - 0xc], 0x61c88647
dec dword [ebp - 0x1c]
jne 0x4010cc
mov eax, dword [ebp + 8]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ebx
pop ebx
leave
ret 4
Function at 0x4073c0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43183c]
jne 0x4073ca
repz ret
jmp fcn.0040b7cf

Function at 0x40b1bd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405d57
and dword [ebp - 4], 0
cmp dword [0x436904], 0
mov ebx, eax
jne 0x40b26e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b31f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b31f
push eax
call fcn.00405ce5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x436904], eax
call esi
push eax
call fcn.00405ce5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x436908], eax
call esi
push eax
call fcn.00405ce5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43690c], eax
call esi
push eax
call fcn.00405ce5
pop ecx
mov dword [0x436914], eax
test eax, eax
je 0x40b26e
push 0x42df18
push edi
call esi
push eax
call fcn.00405ce5
pop ecx
mov dword [0x436910], eax
mov eax, dword [0x436910]
cmp eax, ebx
je 0x40b2c6
cmp dword [0x436914], ebx
je 0x40b2c6
push eax
call fcn.00405d60
push dword [0x436914]
mov esi, eax
call fcn.00405d60
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b2c6
test edi, edi
je 0x40b2c6
call esi
test eax, eax
je 0x40b2bd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b2bd
test byte [ebp - 0xc], 1
jne 0x40b2c6
or dword [ebp + 0x10], 0x200000
jmp 0x40b2ff
mov eax, dword [0x436908]
cmp eax, ebx
je 0x40b2ff
push eax
call fcn.00405d60
pop ecx
test eax, eax
je 0x40b2ff
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b2ff
mov eax, dword [0x43690c]
cmp eax, ebx
je 0x40b2ff
push eax
call fcn.00405d60
pop ecx
test eax, eax
je 0x40b2ff
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x436904]
call fcn.00405d60
pop ecx
test eax, eax
je 0x40b31f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b321
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e0fc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call fcn.00414500
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call fcn.00414500
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x40ecd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40ecef
mov eax, 0
jmp 0x40ed33
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40ed12
mov eax, 0
jmp 0x40ed33
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x40ed2e
mov eax, 0
jmp 0x40ed33
mov eax, 1
leave
ret

Function at 0x40ed35
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x40ed94
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x40ed8c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x40ed8c
mov eax, dword [ebp - 4]
jmp 0x40eda8
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x40ed69
mov eax, 0
leave
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x43acf8], 1
mov dword [0x43acf4], 1
mov dword [0x43acf0], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x43100c], eax
mov eax, dword [0x43ad04]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x43ad18]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x43ad00]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x426084], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056
Function at 0x40441b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x54
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x2c], str.echoBinSafe
mov dword [ebp - 0x24], str._usr_lib_nim_lib_system_io.nim
mov dword [ebp - 0x28], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x30]
mov dword [esp], eax
call sym._nimFrame_4
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], 8
mov dword [ebp - 0x24], 0x4274cc
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x28], 9
mov dword [ebp - 0x24], 0x4274cc
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x40]
jge 0x40452d
mov dword [ebp - 0x28], 0x333
mov dword [ebp - 0x24], str._usr_lib_nim_lib_system_io.nim
cmp dword [ebp - 0xc], 0
js 0x4044a0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x40]
jl 0x4044b5
mov eax, dword [ebp - 0x40]
sub eax, 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._raiseIndexError2
mov eax, dword [ebp - 0xc]
lea edx, [eax*4]
mov eax, dword [ebp - 0x3c]
add eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
mov dword [esp], 1
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [esp], 0
mov edx, ebx
mov ecx, eax
call sym._writeWindows__systemZio_205_12
sub esp, 4
mov dword [ebp - 0x28], 0xb
mov dword [ebp - 0x24], 0x4274cc
mov edx, 0
mov eax, dword [ebp - 0xc]
add eax, 1
jno 0x40450d
mov edx, 1
mov ecx, eax
lea eax, [ebp - 0x34]
mov dword [eax], ecx
mov eax, edx
and eax, 1
test al, al
je 0x404522
call sym._raiseOverflow
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
jmp 0x404478
nop
mov dword [ebp - 0x28], 0x339
mov dword [ebp - 0x24], str._usr_lib_nim_lib_system_io.nim
mov dword [ebp - 0x14], 0
mov dword [esp], 1
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], 0x4274f2
call sym._fwrite
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], 0x33a
mov dword [ebp - 0x24], str._usr_lib_nim_lib_system_io.nim
mov dword [ebp - 0x18], 0
mov dword [esp], 1
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [esp], eax
call sym._fflush
mov dword [ebp - 0x18], eax
call sym._popFrame_4
nop
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x405cce
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0xc], 0
je 0x405cf0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._nimCStrLen_1
mov edx, eax
jmp 0x405cf5
mov edx, 0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 1
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fwrite
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fflush
mov dword [ebp - 0x10], eax
nop
leave
ret
Function at 0x40c698
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fwrite
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fflush
mov dword [ebp - 0x10], eax
nop
leave
ret

Function at 0x41ee70
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x41eed0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x43ad0c]
test esi, esi
jle 0x41eff0
mov eax, dword [0x43ad10]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x41ef04
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x41ef87
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x41eef0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x41f017
mov eax, dword [0x43ad10]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x43ad10]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x41eff7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x41ef80
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x41ef90
add dword [0x43ad0c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x43ad10]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x41ef80
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x41ef0e
mov eax, dword [0x43ad10]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop