joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6a7d4e70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov ebx, dword [ebp + 0xc]
mov dword [esp], ebx
call sym.___wine_dbg_get_channel_flags
movzx ecx, byte [ebp + 8]
movzx eax, al
sar eax, cl
test al, 1
je 0x6a7d5048
mov edx, dword [0x6a7df604]
mov eax, dword fs:[0x18]
cmp dword [eax + 0x24], edx
je 0x6a7d5038
test byte [0x6a7d6158], 8
jne 0x6a7d4fe0
lea edi, [esp + 0x28]
mov esi, edi
test byte [0x6a7d6168], 8
jne 0x6a7d4fa0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov ecx, str._04x:
mov dword [esp + 4], ecx
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x6a7d4efb
cmp dword [ebp + 8], 3
jbe 0x6a7d4f60
mov dword [esp], 2
mov ebx, edi
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov esi, dword [ebx]
add ebx, 4
lea ecx, [esi - 0x1010101]
not esi
and ecx, esi
and ecx, 0x80808080
je 0x6a7d4f0a
mov dword [esp + 0xc], eax
mov esi, ecx
mov eax, 1
mov dword [esp + 4], eax
shr esi, 0x10
test ecx, 0x8080
mov dword [esp], edi
cmove ecx, esi
lea esi, [ebx + 2]
mov dl, cl
cmove ebx, esi
add dl, cl
sbb ebx, 3
sub ebx, edi
mov dword [esp + 8], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp + 0x10]
add eax, esi
inc ebx
mov dword [esp + 0x10], ebx
mov dword [esp], eax
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 8]
mov ecx, dword [edx*4 + 0x6a7dd548]
mov edx, str._s:_s:_s
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov ecx, edi
sub ecx, eax
add ecx, 0xc8
mov dword [esp + 4], ecx
call sym._snprintf.constprop.0
jmp 0x6a7d4efb
mov dword [esp], 0x6a7d6168
call sym.___wine_dbg_get_channel_flags
and al, 8
je 0x6a7d4ed0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov ecx, str._04x:
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sym._sprintf
add esi, eax
jmp 0x6a7d4ed0
mov dword [esp], 0x6a7d6158
call sym.___wine_dbg_get_channel_flags
and al, 8
je 0x6a7d4ebd
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
mov esi, str._3u._03u:
mov dword [esp + 4], esi
lea edi, [esp + 0x28]
mov dword [esp], edi
mov ecx, eax
mul edx
shr edx, 6
mov dword [esp + 8], edx
imul eax, edx, 0x3e8
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea esi, [edi + eax]
jmp 0x6a7d4ec3
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xffffffff
jmp 0x6a7d4f58
Function at 0x6a7d5130
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x22c
mov dword [esp + 0x224], esi
mov esi, eax
mov eax, dword [0x6a7df620]
mov dword [esp + 0x220], ebx
mov ebx, edx
mov dword [esp + 0x228], edi
test eax, eax
je 0x6a7d5208
mov dword [esp], ebx
call eax
mov dword [ebx + 8], eax
sub esp, 4
test eax, eax
jns 0x6a7d5190
mov eax, dword [ebx]
mov ebx, dword [esp + 0x220]
mov esi, dword [esp + 0x224]
mov edi, dword [esp + 0x228]
add esp, 0x22c
ret
mov dword [esp], esi
lea edi, [esp + 0x18]
mov eax, 0x104
mov dword [esp + 4], edi
mov esi, 0x104
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
mov ecx, str.MODULE
mov edx, dword [eax]
sub esp, 0xc
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 4], edi
mov dword [esp + 8], esi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
mov edx, dword [eax]
sub esp, 0xc
mov dword [esp + 8], edi
mov edi, str.SystemRoot
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x6a7d516b
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x6a7d523e
mov dword [esp], eax
mov edx, 0x6a7dd558
mov dword [esp + 4], edx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x6a7df620], eax
sub esp, 8
test eax, eax
jne 0x6a7d515c
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x6a7d516d
Function at 0x6a7d5250
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get process heap flags
Get process heap force flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov edi, dword [ecx]
mov edx, dword [ecx + 4]
mov eax, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
mov dword [esp], edi
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
mov dword [ebp - 0x1c], eax
sub esp, 0xc
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edx, dword [ebp - 0x1c]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
sub esp, 8
test ebx, ebx
je 0x6a7d53e0
mov ecx, dword [esi]
test ecx, ecx
je 0x6a7d53c8
xor eax, eax
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
xor edi, edi
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x14], edi
mov dword [esp + 8], ebx
mov dword [esp], 0xfde9
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 4], eax
mov dword [ebp - 0x28], edx
call edx
xor edx, edx
lea ecx, [eax + 1]
sub esp, 0x18
mov dword [esp + 4], edx
lea eax, [ecx + ecx]
mov dword [ebp - 0x20], eax
mov edi, eax
mov dword [esp + 8], edi
mov eax, dword fs:[0x18]
mov dword [ebp - 0x24], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x6a7d53f0
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp + 0xc], eax
mov dword [esp], 0xfde9
call edx
mov eax, dword [ebp - 0x20]
mov ebx, dword [esi + 4]
mov word [edi + eax - 2], 0
mov eax, dword [esi]
sub esp, 0x18
test ebx, ebx
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
jne 0x6a7d53b8
call dword [edx + 0x28]
mov dword [esi + 8], eax
sub esp, 8
mov dword [esp + 8], edi
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 8]
not eax
shr eax, 0x1f
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
call dword [edx + 0x24]
mov dword [esi + 8], eax
sub esp, 8
jmp 0x6a7d537c
mov edx, esi
mov eax, edi
call sym._create_registrar
test eax, eax
jne 0x6a7d52c0
lea esi, [esi]
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esi + 8], 0x8007000e
xor eax, eax
jmp 0x6a7d53e2
Function at 0x40bd70
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40be24
jmp 0x40be19
cmp dword [esi + 0x10], 0x1000
jne 0x40be05
test byte [esi + 0x15], 1
jne 0x40be05
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x40bdc4
cmp eax, 2
je 0x40bdc4
cmp eax, 0x10
je 0x40bdc4
cmp eax, 0x20
jne 0x40bdd9
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40bdd9
mov bl, 1
xor ebp, ebp
jmp 0x40bdea
mov eax, dword [esi]
add eax, ebp
call fcn.0040bd68
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x40bddd
test bl, bl
je 0x40be05
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40be24
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40bd9c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x405eb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x40]
movzx esi, byte [edi]
test esi, esi
je 0x40600d
lea ecx, [edi + 1]
xor eax, eax
nop
mov edx, esi
add ecx, 1
shl edx, 0x11
add edx, esi
movzx esi, byte [ecx - 1]
add eax, edx
mov edx, eax
shr edx, 2
xor eax, edx
test esi, esi
jne 0x405ed0
sub ecx, edi
mov dword [esp + 0x14], ecx
sub ecx, 1
mov edx, ecx
shl edx, 0x11
add edx, ecx
add eax, edx
mov esi, eax
shr esi, 2
xor esi, eax
mov eax, esi
xor edx, edx
div dword [ebp + 4]
lea eax, [edx*4]
mov dword [esp + 0x10], eax
mov eax, dword [ebp]
mov ebx, dword [eax + edx*4]
test ebx, ebx
jne 0x405f2e
jmp 0x405f50
mov ebx, dword [ebx]
test ebx, ebx
je 0x405f50
cmp dword [ebx + 8], esi
jne 0x405f28
mov dword [esp + 4], edi
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x405f28
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x406030
mov dword [esp + 8], edi
mov dword [esp + 4], ebp
mov dword [esp], 0
call dword [ebp + 8]
mov ebx, eax
test eax, eax
je 0x406030
mov edx, dword [esp + 0x4c]
test edx, edx
je 0x405fd5
mov ecx, dword [esp + 0x14]
mov eax, 1
mov edx, dword [ebp + 0xc]
test ecx, ecx
cmovne eax, ecx
mov ecx, dword [edx + 4]
add eax, 7
mov dword [esp + 0x1c], ecx
and eax, 0xfffffff8
cmp ecx, eax
jb 0x405ffb
mov ecx, dword [edx]
mov dword [esp + 0x18], ecx
add ecx, eax
mov dword [edx], ecx
mov ecx, dword [esp + 0x1c]
sub ecx, eax
mov dword [edx + 4], ecx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40601a
mov dword [esp + 4], edi
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov dword [esp + 8], eax
mov dword [esp], edi
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x10]
add eax, dword [ebp]
movd xmm1, edi
mov dword [ebx + 8], esi
movd xmm0, dword [eax]
punpckldq xmm0, xmm1
movq qword [ebx], xmm0
mov dword [eax], ebx
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00473440
mov dword [esp + 0x18], eax
jmp 0x405fb5
mov dword [esp + 0x14], 1
jmp 0x405f04
mov dword [esp], 6
call fcn.00402b90
lea esi, cs:[esi]
nop
xor ebx, ebx
jmp 0x405f46
Function at 0x41eef0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov dword [esp + 0x18], eax
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], edx
mov eax, dword [eax + 0x178]
mov dword [esp + 0x20], ecx
mov ecx, dword [edx + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [edx + 0x20]
mov edx, eax
xor edx, 8
or edx, ecx
je 0x41f058
xor eax, 0xc
or eax, ecx
jne 0x41f091
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xd4]
mov edi, dword [eax + 0x3c]
mov dword [esp + 0x28], edi
mov edi, dword [eax + 0x40]
mov dword [esp + 0x2c], edi
cmp byte [eax + 9], 3
ja 0x41f075
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
xor ebp, ebp
mov edi, dword [eax + 0x40]
test edx, edx
je 0x41f028
mov ebx, edi
lea esi, [esi]
mov eax, dword [esp + 0xa0]
mov eax, dword [eax + ebp*4]
test eax, eax
je 0x41f014
mov eax, dword [eax + 0x28]
test eax, eax
js 0x41f038
lea eax, [esp + 0x38]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
mov eax, dword [esp + 0x28]
call eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xd4]
movzx eax, byte [eax + 9]
test al, al
je 0x41effb
mov edi, dword [esp + 0xa0]
lea eax, [eax + eax*2]
lea ecx, [esp + 0x38]
lea eax, [esp + eax*8 + 0x38]
mov edx, dword [edi + ebp*4]
mov dword [esp + 0x14], eax
mov edx, dword [edx + 0x28]
shl edx, 8
mov edi, edx
mov esi, edx
sar edi, 0x1f
mov eax, dword [ecx + 8]
xor edx, edx
and eax, 0xff
add eax, esi
adc edx, edi
mov dword [ecx + 8], eax
add ecx, 0x18
mov dword [ecx - 0xc], edx
cmp dword [esp + 0x14], ecx
jne 0x41efde
lea eax, [esp + 0x38]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
call eax
mov eax, dword [esp + 0x1c]
add ebp, 1
add ebx, dword [eax + 0x20]
cmp dword [esp + 0x20], ebp
jne 0x41ef70
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x1312
mov dword [esp], 0x488dee
call fcn.00402e90
jmp 0x41ef8d
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xd4]
mov edi, dword [eax + 0x34]
mov dword [esp + 0x28], edi
mov edi, dword [eax + 0x38]
mov dword [esp + 0x2c], edi
jmp 0x41ef49
mov dword [esp + 8], 0x489340
mov dword [esp + 4], 0x1307
mov dword [esp], 0x488dee
call fcn.00402ec0
mov dword [esp + 8], 0x489340
mov dword [esp + 4], 0x1304
mov dword [esp], 0x488dee
call fcn.00402ec0
lea esi, [esi]
Function at 0x45a310
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
test byte [ebp + 0x41], 8
jne 0x45a3f8
cmp dword [0x4b23e4], ebp
je 0x45a3d8
mov dword [esp], ebp
xor esi, esi
xor edi, edi
call fcn.0045aea0
mov ecx, dword [esp + 0x18]
mov edx, eax
test ecx, ecx
je 0x45a3eb
mov eax, dword [esp + 0x50]
mov dword [esp + 0xc], edx
mov esi, 0xffffffff
xor edi, edi
mov dword [esp + 8], ecx
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, 0xffffffff
jne 0x45a4d0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, esi
xor eax, ecx
xor edx, edi
or eax, edx
je 0x45a3c9
cmp dword [0x4b23e4], ebp
je 0x45a480
mov dword [esp], ebp
call fcn.0045aea0
mov dword [esp], eax
call sub.msvcrt.dll_ferror
test eax, eax
je 0x45a460
mov dword [esp], 1
call fcn.00402b90
add esp, 0x3c
mov eax, esi
mov edx, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 0xc]
xor esi, esi
xor edi, edi
test ecx, ecx
jne 0x45a35b
add dword [ebp + 0x20], esi
adc dword [ebp + 0x24], edi
jmp 0x45a387
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
mov esi, dword [edi]
mov dword [esp + 0x2c], edi
mov ecx, eax
mov edi, dword [edi + 4]
add ecx, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov ebx, edx
adc ebx, dword [esp + 0x1c]
cmp esi, ecx
mov dword [esp + 0x24], edx
mov eax, edi
sbb eax, ebx
jae 0x45a490
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov eax, edi
cmp esi, ecx
sbb eax, ebx
jb 0x45a4e0
sub esi, ecx
sbb edi, ebx
mov ebx, esi
mov dword [esp], 0x11
call fcn.00402b90
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
jmp 0x45a49a
mov dword [esp], 0x11
call fcn.00402b90
add esp, 0x3c
mov eax, esi
mov edx, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
jmp 0x45a3ad
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ebx, esi
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
add edx, dword [eax + 8]
mov eax, dword [esp + 0x50]
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
add dword [ebp + 0x20], esi
mov eax, esi
mov edx, edi
adc dword [ebp + 0x24], edi
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
xor edi, edi
mov esi, eax
add dword [ebp + 0x20], esi
adc dword [ebp + 0x24], edi
jmp 0x45a387
xor ebx, ebx
xor esi, esi
xor edi, edi
jmp 0x45a440
Function at 0x45a4f0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x18], edx
test byte [ebx + 0x41], 8
je 0x45a5d0
mov esi, dword [ebx + 0xc]
mov eax, dword [ebx + 0x20]
mov edi, edx
xor ebp, ebp
mov edx, dword [ebx + 0x24]
mov ecx, dword [esi + 8]
mov dword [esp + 0x20], eax
add eax, edi
mov dword [esp + 0x24], edx
adc edx, ebp
mov dword [esp + 0x10], eax
mov eax, dword [esi]
mov dword [esp + 0x14], edx
mov edx, dword [esi + 4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], edx
cmp eax, ecx
sbb edx, dword [esp + 0x14]
mov dword [esp + 0x28], eax
jae 0x45a599
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi], eax
add eax, 0x7f
mov dword [esi + 4], edx
adc edx, 0
and eax, 0xffffff80
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x2c]
add eax, 0x7f
mov ecx, dword [esp + 0x10]
adc edx, 0
and eax, 0xffffff80
cmp eax, ecx
mov ecx, edx
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
sbb ecx, edx
jb 0x45a680
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add eax, esi
mov esi, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 8], esi
mov esi, dword [esp + 0x50]
mov dword [esp + 4], esi
call sub.msvcrt.dll_memcpy
add dword [ebx + 0x20], edi
adc dword [ebx + 0x24], ebp
add esp, 0x3c
mov eax, edi
mov edx, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [0x4b23e4], ebx
je 0x45a670
mov dword [esp], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
call fcn.0045aea0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
xor ebp, ebp
mov edi, 0xffffffff
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x10], edx
mov dword [esp], eax
mov dword [esp + 0x14], ecx
call sub.msvcrt.dll_fwrite
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x45a63a
xor ebp, ebp
add dword [ebx + 0x20], eax
mov edi, eax
adc dword [ebx + 0x24], ebp
mov eax, edx
mov edx, ecx
xor eax, edi
xor edx, ebp
or eax, edx
je 0x45a5c1
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0x1c
mov dword [esp], 1
call fcn.00402b90
add esp, 0x3c
mov eax, edi
mov edx, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0xc]
jmp 0x45a5f4
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.00403ea0
mov dword [esp + 0x1c], eax
mov dword [esi + 8], eax
test eax, eax
je 0x45a6b8
mov eax, dword [ebx + 0x20]
mov edx, dword [ebx + 0x24]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
jmp 0x45a599
mov dword [esi], 0
xor edi, edi
xor ebp, ebp
mov dword [esi + 4], 0
jmp 0x45a5c1
Function at 0x45f4c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov dword [esp + 0x38], eax
mov esi, dword [esp + 0x78]
mov eax, dword [esp + 0x70]
lea eax, [esi + eax*4]
mov dword [esp + 0x34], eax
cmp esi, eax
jae 0x45f5f8
mov dword [esp + 0x3c], edx
jmp 0x45f521
cmp edx, 0x485080
je 0x45f608
test byte [edx + 0x11], 0x80
jne 0x45f608
cmp edx, 0x484f00
je 0x45f6c0
mov eax, dword [esp + 0x34]
add esi, 4
cmp esi, eax
jae 0x45f5f8
mov ebx, dword [esi]
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
test eax, 0x3882
je 0x45f4f0
mov ecx, dword [ebx + 4]
test ah, 0x20
je 0x45f650
mov edi, dword [esp + 0x34]
lea ebp, [esi + 4]
mov dword [esp + 0x30], 0
cmp ebp, edi
jae 0x45f55b
mov esi, dword [esi + 4]
mov esi, dword [esi + 4]
mov dword [esp + 0x30], esi
mov esi, ebp
lea ebp, [esp + 0x4c]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], ebp
mov edi, dword [ebx + 8]
mov ebp, dword [ebx + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], edx
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 0x4c], 0
call fcn.0045e8b0
test eax, eax
je 0x45f5fd
mov edx, dword [ebx + 0x10]
mov eax, dword [esp + 0x4c]
test dh, 8
je 0x45f5cc
test eax, eax
je 0x45f5df
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x45f648
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov ecx, dword [ecx + 0x14]
mov edi, dword [edi + 8]
cmp dword [ecx + 0x10], edi
je 0x45f628
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x34]
add esi, 4
cmp esi, eax
jb 0x45f521
lea esi, [esi]
mov eax, 1
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebx + 4]
cmp edx, 0x484f00
je 0x45f53c
mov dword [esp + 0x30], 0
jmp 0x45f55b
mov edi, dword [eax + 0x2c]
mov ecx, dword [ebx + 0x14]
test edi, edi
je 0x45f680
cmp ecx, 0x485080
je 0x45f5df
test byte [ecx + 0x11], 0x80
jne 0x45f6a0
mov dword [eax + 0x2c], ebx
jmp 0x45f5df
xor eax, eax
jmp 0x45f5df
cmp edx, 0x484f00
je 0x45f53c
test ah, 0x10
je 0x45f617
mov ebp, dword [esp + 0x34]
lea edi, [esi + 4]
cmp edi, ebp
jae 0x45f617
mov esi, dword [esi + 4]
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 4]
mov esi, edi
jmp 0x45f55b
mov dword [eax + 0x2c], ebx
test byte [ecx + 0x11], 0x80
je 0x45f5df
or dh, 2
mov dword [ebx + 0x10], edx
jmp 0x45f5df
cmp dword [edi + 0x14], 0x485080
jne 0x45f5df
or dh, 2
mov dword [eax + 0x2c], ebx
mov dword [ebx + 0x10], edx
jmp 0x45f5df
mov ecx, dword [ebx + 4]
jmp 0x45f53c
Function at 0x4602c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x6c]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 4]
cmp eax, 1
je 0x4603a8
cmp eax, 2
jne 0x460480
mov eax, dword [esp + 0x28]
test byte [eax + 0x11], 2
je 0x460448
mov esi, dword [ebx + 0x10]
mov edi, dword [ebx + 0x14]
mov ebp, 1
mov eax, esi
or eax, edi
je 0x460397
mov eax, dword [ebx + 0x1c]
mov ebp, dword [ebx + 0x18]
mov dword [esp + 0x38], eax
test ebp, ebp
je 0x46033b
xor edx, edx
cmp ebp, esi
mov dword [esp + 0x30], ebp
mov eax, edx
mov dword [esp + 0x34], edx
sbb eax, edi
jb 0x4603d0
mov eax, dword [esp + 0x2c]
mov ebp, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov dword [esp], eax
mov dword [esp + 0x30], ecx
call fcn.004029e0
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov esi, dword [esp + 0x28]
imul ecx, eax
mov edi, dword [esp + 0x38]
mul ebp
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
add edx, ecx
mov dword [esp + 0x10], edx
mov dword [esp], eax
call fcn.00405760
mov ebp, eax
cmp edi, dword [ebx + 0x1c]
je 0x460397
mov dword [esp], edi
call sub.msvcrt.dll_free
add esp, 0x4c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], 0
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0045e0b0
mov dword [esp], esi
mov dword [esp + 4], edi
call fcn.00403e60
mov dword [esp + 0x38], eax
mov edx, eax
test eax, eax
je 0x4604b8
mov eax, dword [ebx + 0x1c]
cmp ebp, 1
je 0x460468
mov dword [esp + 0x3c], ebx
mov ebx, ebp
mov ebp, edx
jmp 0x460407
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x1c]
mov dword [esp], ebp
add ebp, ebx
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
sub esi, eax
sbb edi, edx
cmp esi, eax
mov ecx, edi
sbb ecx, edx
jae 0x460400
mov eax, esi
mov ebx, dword [esp + 0x3c]
or eax, edi
jne 0x4604a0
mov esi, dword [ebx + 0x10]
mov edi, dword [ebx + 0x14]
jmp 0x46033b
mov dword [esp + 4], 0xa8c
mov dword [esp], str..._.._bfd_linker.c
call fcn.00402e90
jmp 0x460302
mov dword [esp + 8], esi
movzx eax, byte [eax]
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memset
jmp 0x46033b
mov dword [esp + 8], str._bfd_default_link_order
mov dword [esp + 4], 0xa74
mov dword [esp], str..._.._bfd_linker.c
call fcn.00402ec0
lea esi, [esi]
mov eax, dword [ebx + 0x1c]
mov dword [esp + 8], esi
mov dword [esp], ebp
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
jmp 0x460437
xor ebp, ebp
jmp 0x460397