joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c07b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.0041b3a5
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.0041b3e0
dec eax
rcr byte [edi + ebp*4 + 0x10468], cl
add byte [ebp - 0x3337b], cl
call dword [eax - 1]
jne 0x41c0a9
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x41c0d4
push 0xc6fffffc
test dword [edx + edi*8 - 0x7cfe0001], edi
mov ebp, 0xfffffc68
add byte [edi + edx - 0x7d], dh
mov ebp, 0xfffffc68
add byte [edi], cl
test ah, dl
add dword [eax], eax
add byte [ebx + 0xf010c7d], al
test dl, cl
add dword [eax], eax
add byte [ebx + 0xf080c7d], al
test dword [eax - 0x7fffffff], ecx
movsd dword es:[edi], dword [esi]
dec eax
stc
invalid
cmp dword [ebp - 0x398], 0
je 0x41c29e
cmp dword [ebp + 0xc], 1
je 0x41c29e
cmp dword [ebp + 0xc], 8
jne 0x41c266
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
mov byte [ebp - 0x6a4], 0x16
mov byte [ebp - 0x6a3], 0x1d
mov byte [ebp - 0x6a2], 0x64
lea eax, [ebp - 0x6b8]
push eax
call fcn.0041b3f0
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0041b3a5
add esp, 0xc
call fcn.0041b3e0
lodsb al, byte [esi]
int1
insb byte es:[edi], dx
out 0x80, eax
movsd dword es:[edi], dword [esi]
mov esp, 0xfffffa
push 0
call dword [ebp - 0x340]
sar ah, 0xff
dec dword [ecx + 0x4680845]
add dword [eax], eax
add byte [ebp - 0x3337b], cl
call dword [eax + 0x6a]
add bh, bh
xchg ebp, eax
enter 0xfffffffffffffffa, 0xffffffffffffffff
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
Function at 0x41c2be
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.0041b3be
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
add byte [eax - 0x36a5b], al
inc dword [eax]
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
jmp dword [esi]
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
invalid
call dword [eax - 0x18]
xor esi, eax
invalid
call [ecx + 0x50]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0041b3a5
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.0041b3e0
or byte [eax - 0x13], dl
dec ebx
push 0x104
lea eax, [ebp - 0x12c]
push eax
call dword [ebp - 0x3d4]
mov dword [ebp - 0x28], eax
call fcn.0041b3e0
sahf
stc
invalid

Function at 0x4351d4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, dword [esi + 4]
push eax
push dword [ebp + 0xc]
call fcn.004113e5
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x435210
call fcn.004353ef
mov dword [esi + 0xc], 1
jmp 0x435215
call fcn.004353ef
cmp dword [esi], 0
je 0x43525e
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x435238
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.004057a4
jmp 0x435249
push 0xff
mov ecx, esi
call fcn.004023c0
push pe_nt_image_headers32
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004057c7
jmp 0x435282
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x435282
push dword [esi]
push dword [ebp - 4]
call fcn.004142d5
pop esi
leave
ret 0xc
Function at 0x435346
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.004353ef
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x43538e
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004057a4
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004057c7
jmp 0x435399
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004142d5
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x46bc32
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x46bc4a
call fcn.004082d5
mov esi, dword [eax + 0xc]
push 0x54e168
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x46bca0
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x46bc9f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x46bc80
xor esi, esi
jmp 0x46bc96
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.0046bca6
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4f817d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
test byte [esi + 4], 1
push edi
mov dword [ebp - 4], ebx
je 0x4f8197
mov edi, dword [esi + 0xc]
jmp 0x4f81d7
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4f81b0
call fcn.00409cf4
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4f81c5
call fcn.00409cf4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4f81d7
call fcn.00409cf4
call fcn.004082d5
cmp dword [eax + 0x3c], 0
je 0x4f81ec
push edi
mov ecx, ebx
call fcn.004f7a97
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004f83af
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x4f820f
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x7c], 0
test ebx, ebx
je 0x4f8218
mov edi, ebx
mov dword [eax + 0x7c], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x52bb78
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5928e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00520405
mov dword [ebp - 0x14], eax
cmp dword [0x59a300], edi
jne 0x52bc69
push 0x800
push edi
push 0x56dc50
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x52bbf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x52bd49
push 0x56dc50
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x52bd49
push 0x56dc68
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x52bd49
push eax
call ebx
push 0x56dc74
push esi
mov dword [0x59a300], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x56dc84
push esi
mov dword [0x59a304], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x59a308], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x59a310], eax
test eax, eax
je 0x52bc66
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x59a30c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x52bc8e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x52bc81
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x52bca3
push 4
pop eax
jmp 0x52bd4b
cmp dword [ebp - 0x14], edi
je 0x52bca3
push dword [0x59a300]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x52bc88
mov eax, dword [0x59a30c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x52bd01
cmp dword [0x59a310], esi
je 0x52bd01
push eax
call ebx
push dword [0x59a310]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x52bd01
test eax, eax
je 0x52bd01
call ecx
test eax, eax
je 0x52bcf6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x52bcf6
test byte [ebp - 8], 1
jne 0x52bd01
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x52bd31
mov eax, dword [0x59a304]
cmp eax, esi
je 0x52bd2e
push eax
call ebx
test eax, eax
je 0x52bd2e
call eax
mov edi, eax
test edi, edi
je 0x52bd2e
mov eax, dword [0x59a308]
cmp eax, esi
je 0x52bd2e
push eax
call ebx
test eax, eax
je 0x52bd2e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x59a300]
call ebx
test eax, eax
je 0x52bd49
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x52bd4b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051914c
leave
ret
Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x79d12f49
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..rdata
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x28b159c6
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4045d0
Capabilities:
Hash data using djb2
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push esi
jmp 0x4045e6
push 0x2a13
pop eax
jmp 0x4045e9
jmp 0x4045dc
jmp 0x4045f9
mov ecx, 0x9f
jmp 0x4045fc
jmp 0x4045f0
jmp 0x40460b
mov edx, 0x6d
jmp 0x40460e
jmp 0x404602
call fcn.00402d93
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, dword [eax + 0x3c]
mov eax, dword [eax + 0x78]
add eax, dword [ebp + 8]
push eax
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x20]
add edx, dword [ebp + 8]
dec ecx
mov esi, dword [edx + ecx*4]
add esi, dword [ebp + 8]
push edx
mov edx, 0x1505
mov eax, edx
shl edx, 5
add edx, eax
xor eax, eax
lodsb al, byte [esi]
add edx, eax
test eax, eax
jne 0x40463d
mov eax, edx
pop edx
cmp dword [ebp + 0xc], eax
je 0x404659
loop 0x404631
xor eax, eax
pop esi
test eax, eax
je 0x404677
mov eax, dword [esi + 0x24]
add eax, dword [ebp + 8]
movzx ecx, word [eax + ecx*2]
mov eax, dword [esi + 0x1c]
add eax, dword [ebp + 8]
mov eax, dword [eax + ecx*4]
add eax, dword [ebp + 8]
mov dword [ebp - 4], eax
jmp 0x404685
mov eax, 0x2a13
jmp 0x404688
jmp 0x40467c
jmp 0x404696
mov ecx, 0x9f
jmp 0x404699
jmp 0x40468d
jmp 0x4046aa
push 0x6d
mov edx, dword [esp]
add esp, 4
jmp 0x4046ad
jmp 0x40469e
call fcn.00402d93
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
Function at 0x4010f4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push edi
push 0x40ea64
lea eax, [ebp - 4]
xor edi, edi
push 0x411b68
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call fcn.00401a7e
xor ecx, ecx
cmp eax, edi
sete cl
push str.Failed_to_open_executable
push ecx
call fcn.00401059
push 2
push edi
push dword [ebp - 4]
call fcn.004029b5
push dword [ebp - 4]
call fcn.004028c6
cdq
mov dword [ebp - 0x18], eax
add eax, 0xfffffefc
add esp, 0x24
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], eax
cmp eax, edi
jge 0x401154
mov dword [ebp - 8], edi
push ebx
push esi
push edi
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.004029b5
push dword [ebp - 4]
mov ebx, 0x104
push ebx
push 1
push dword [ebp + 8]
call fcn.004025e2
push dword [ebp + 8]
mov esi, eax
call fcn.004010b2
add esp, 0x20
cmp eax, edi
je 0x4011a3
mov esi, eax
push 5
pop ecx
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
sub eax, edi
add eax, dword [ebp - 8]
cdq
mov esi, eax
mov dword [ebp - 0x14], edx
jmp 0x401224
mov esi, 0x4100000
push esi
call fcn.0040205b
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
add eax, 0xfbf00000
pop ecx
mov dword [ebp - 8], eax
cmp eax, edi
jge 0x4011c4
mov dword [ebp - 8], edi
push edi
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.004029b5
push dword [ebp - 4]
push esi
push 1
push dword [ebp - 0xc]
call fcn.004025e2
push dword [ebp - 0xc]
mov esi, eax
call fcn.004010b2
mov esi, eax
xor eax, eax
cmp esi, edi
setne al
push str.Unable_to_find_an_appended_archive.
mov dword [ebp - 0x14], esi
push eax
call fcn.00401059
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0xc]
push 5
add eax, dword [ebp - 8]
pop ecx
push dword [ebp - 0xc]
cdq
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov esi, eax
mov dword [ebp - 0x14], edx
call fcn.00401dd7
mov edi, dword [ebp + 8]
add esp, 0x2c
sub esi, dword [ebp - 0x1c]
sub esi, dword [ebp - 0x20]
sub esi, ebx
jns 0x401230
xor esi, esi
push 0
push esi
push dword [ebp - 4]
call fcn.004029b5
push dword [ebp - 4]
push ebx
push 1
push edi
call fcn.004025e2
mov esi, eax
xor eax, eax
cmp eax, esi
sbb eax, eax
neg eax
push str.Unable_to_read_from_file
push eax
call fcn.00401059
add esp, 0x24
lea eax, [esi + edi - 1]
pop esi
pop ebx
jmp 0x401275
mov dx, word [eax]
mov ecx, 0x40eac8
cmp dx, word [ecx]
je 0x40127b
dec eax
cmp eax, edi
jae 0x401267
jmp 0x40127e
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
call fcn.00402c10
mov eax, dword [ebp - 0x10]
pop ecx
pop edi
leave
ret
Function at 0x41a000
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0x44]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
push 0
push eax
push 0x40
push ecx
push esi
call ebx
test eax, eax
je 0x41a175
cmp dword [esp + 0x54], 0x40
jne 0x41a175
cmp word [esp + 0x10], 0x5a4d
jne 0x41a175
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x41a175
lea eax, [esp + 0x54]
push 0
push eax
push pe_nt_image_headers32
push 0x420960
push esi
call ebx
test eax, eax
je 0x41a175
cmp dword [esp + 0x54], 0xf8
jne 0x41a175
cmp dword [0x420960], 0x4550
jne 0x41a175
mov eax, dword [0x420976]
test ah, 0x20
jne 0x41a175
mov edx, dword [0x420a80]
xor eax, eax
mov ax, word [0x420966]
add eax, edx
lea eax, [eax + eax*4]
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x420a58], eax
je 0x41a175
push 1
push 0
push 0
push esi
call ebp
mov dword [0x420a6c], eax
xor eax, eax
mov ax, word [0x420966]
mov edx, dword [0x420a58]
lea ecx, [esp + 0x54]
push 0
lea edi, [eax + eax*4]
push ecx
shl edi, 3
push edi
push edx
push esi
call ebx
test eax, eax
je 0x41a175
cmp dword [esp + 0x54], edi
jne 0x41a175
push 1
push 0
push 0
push esi
call ebp
mov ecx, dword [0x420a80]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [0x4209b4]
cmp edx, eax
ja 0x41a175
mov edi, dword [0x420a58]
mov ecx, dword [0x420988]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
jae 0x41a175
xor eax, eax
push 2
mov ax, word [0x420966]
push 0
push 0
push esi
lea ecx, [eax + eax*4]
mov ebx, dword [edi + ecx*8 - 0x18]
lea edi, [edi + ecx*8]
call ebp
mov edx, dword [edi - 0x14]
add edx, ebx
cmp eax, edx
jne 0x41a175
cmp dword [edi - 0x20], ebx
ja 0x41a175
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x403470
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x443630]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x4034ac
xor eax, eax
jmp 0x403631
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x4034d5
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x4034d5
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 1]
mov dword [edi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x403631
cmp dword [edi + 0x54], 0
je 0x40362e
mov ecx, dword [edi + 0x10]
lea edx, [edi + 0x48]
cmp dword [ecx], edx
jne 0x4034fd
mov edx, dword [edi + 0x3c]
mov eax, dword [edi + 0x40]
mov dword [ecx], edx
mov ecx, dword [edi + 0x20]
mov dword [ecx], eax
mov edx, dword [edi + 0x30]
sub eax, eax
mov dword [edx], eax
cmp dword [edi + 0x44], 0
jne 0x403523
mov edi, dword [edi + 0x54]
movsx eax, bl
push edi
push eax
call fcn.0041f161
add esp, 8
cmp eax, 0xffffffff
je 0x40362e
mov eax, ebx
jmp 0x403631
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
call fcn.00403de0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
jmp 0x403540
mov edx, eax
cmp ebx, 0x10
jae 0x40354c
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push edx
push eax
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x2d]
push edx
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x14]
call eax
test eax, eax
js 0x403626
cmp eax, 1
jg 0x4035e0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x40358c
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, ecx
je 0x4035b5
cmp ebx, 0x10
jae 0x40359b
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004202c5
add esp, 0x10
cmp esi, eax
jne 0x403626
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x2d]
mov byte [edi + 0x49], 1
cmp dword [ebp - 0x38], edx
jne 0x403619
test esi, esi
jne 0x403540
cmp dword [ebp - 0x1c], 0x20
jae 0x403626
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.004027a0
jmp 0x403535
cmp eax, 3
jne 0x403626
mov edi, dword [edi + 0x54]
movsx eax, byte [ebp - 0x2d]
push edi
push eax
call fcn.0041f161
add esp, 8
cmp eax, 0xffffffff
je 0x40360a
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.004026e0
mov eax, esi
jmp 0x403631
lea ecx, [ebp - 0x2c]
or esi, 0xffffffff
call fcn.004026e0
mov eax, esi
jmp 0x403631
lea ecx, [ebp - 0x2c]
call fcn.004026e0
mov eax, dword [ebp + 8]
jmp 0x403631
lea ecx, [ebp - 0x2c]
call fcn.004026e0
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041f152
mov esp, ebp
pop ebp
ret 4
Function at 0x4043c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4348f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x443630]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x4044c8
cmp byte [edi + 0x49], 0
je 0x4044c8
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x4044bc
lea esi, [ebp - 0x2c]
call fcn.00403de0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x404433
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x40445c
dec eax
je 0x404460
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x4044b7
jmp 0x4044c3
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x404470
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x404499
cmp ebx, 0x10
jae 0x40447f
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004202c5
add esp, 0x10
cmp esi, eax
jne 0x4044b4
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x4044c0
test esi, esi
jne 0x404427
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.004027a0
jmp 0x404421
lea ecx, [ebp - 0x2c]
call fcn.004026e0
xor al, al
jmp 0x4044ca
lea ecx, [ebp - 0x2c]
call fcn.004026e0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041f152
mov esp, ebp
pop ebp
ret
Function at 0x4047d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433a3b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x443630]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0041eb85
push 4
mov dword [ebp - 4], 0
call fcn.00420505
mov edi, eax
add esp, 4
test edi, edi
je 0x40484c
call fcn.0041ea5d
mov dword [edi], eax
call fcn.0041e81c
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0041eb46
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x404842
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0041eb6e
jmp 0x40484e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4