joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53ccb0
Capabilities:
Get file version info

Disassembly:
push edi
push esi
xor eax, eax
push ebx
mov esi, ecx
mov ecx, 0x200
sub esp, 0x820
lea ebx, [esp + 0x20]
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x830]
mov eax, dword [eax]
mov edx, dword [eax + 4]
add eax, dword [eax + 0xc]
mov dword [esp], ebx
add edx, edx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
lea eax, [esp + 0x14]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
sub esp, 8
xor eax, eax
test edi, edi
jne 0x53cd12
add esp, 0x820
pop ebx
pop esi
pop edi
ret 4
mov dword [esp], edi
call fcn.0063fc00
mov dword [esi], eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 8], edi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.VERSION.dll_GetFileVersionInfoW
sub esp, 0x10
test eax, eax
jne 0x53cd64
mov eax, dword [esi]
test eax, eax
je 0x53cd49
mov dword [esp], eax
call fcn.0063fbd0
mov dword [esi], 0
mov dword [esi + 4], 0
add esp, 0x820
pop ebx
xor eax, eax
pop esi
pop edi
ret 4
lea eax, [esp + 0x18]
mov dword [esp + 4], str.VarFileInfoTranslation
mov dword [esp + 0xc], eax
lea eax, [esp + 0x1c]
mov dword [esp + 8], eax
mov eax, dword [esi]
mov dword [esp], eax
call sub.VERSION.dll_VerQueryValueW
sub esp, 0x10
test eax, eax
je 0x53cd3b
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
rol eax, 0x10
mov dword [esi + 4], eax
mov eax, 1
jmp 0x53cd06

Function at 0x53da90
Capabilities:
Check os version

Disassembly:
sub esp, 0x13c
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x114
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
sub esp, 4
cmp dword [esp + 0x20], 5
seta al
add esp, 0x13c
ret
Function at 0x5414b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea esi, [ebp - 0x220]
sub esp, 0x24c
mov eax, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x230], 0x104
mov dword [esp + 4], 0x104
mov dword [esp], esi
mov dword [ebp - 0x23c], eax
call eax
sub esp, 8
cmp eax, 0x104
mov ebx, eax
mov edi, dword [ebp - 0x228]
jbe 0x5415bf
cmp dword [ebp - 0x22c], eax
cmovle eax, dword [ebp - 0x22c]
cmp dword [ebp - 0x230], ebx
mov dword [ebp - 0x240], eax
jge 0x5415a1
cmp ebx, 0x104
jg 0x5415f0
mov dword [ebp - 0x228], esi
lea esi, [ebp - 0x220]
mov dword [ebp - 0x230], 0x104
mov dword [ebp - 0x244], esi
mov eax, dword [ebp - 0x240]
mov edx, dword [ebp - 0x244]
mov dword [esp + 4], edi
mov dword [ebp - 0x22c], 0
add eax, eax
mov dword [esp], edx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 0x240]
cmp edi, esi
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x22c], ecx
je 0x541620
cmp edi, eax
je 0x5415a1
mov dword [esp], edi
call fcn.00566588
mov edi, dword [ebp - 0x228]
mov dword [ebp - 0x22c], ebx
mov dword [esp + 4], ebx
mov dword [esp], edi
mov eax, dword [ebp - 0x23c]
call eax
mov edi, dword [ebp - 0x228]
sub esp, 8
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [method.QString.fromUtf16_unsigned_short_const__int_]
mov eax, dword [ebp - 0x228]
cmp eax, esi
je 0x5415e5
mov dword [esp], eax
call fcn.00566588
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + ebx]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [ebp - 0x244], eax
je 0x541627
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x228], eax
jmp 0x54154d
mov edi, eax
jmp 0x5415a1
call dword [sym.imp.Qt5Core.dll_qBadAlloc__]
jmp 0x541605
Function at 0x550b50
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x7639c0]
test esi, esi
jle 0x550c60
mov edi, dword [0x7639c4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x550b84
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x550c05
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x550b70
mov dword [esp], eax
mov ebx, eax
call fcn.00551440
test eax, eax
mov edi, eax
je 0x550c87
mov eax, dword [0x7639c4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00551540
add eax, dword [edi + 0xc]
mov edx, dword [0x7639c4]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x550c67
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x550bfe
sub eax, 4
and eax, 0xfffffffb
jne 0x550c10
add dword [0x7639c0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x7639c4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x550bfe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00644690
lea esi, [esi]
xor esi, esi
jmp 0x550b8e
mov eax, dword [0x7639c4]
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 fcn.00644690
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00644690
mov esi, esi
lea edi, [edi]

Function at 0x5510c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x7639d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x7639d0]
sub esp, 4
test ebx, ebx
je 0x551115
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x55110e
test esi, esi
je 0x55110e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x5510f0
mov dword [esp], 0x7639d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x5516a0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
sub esp, 8
test eax, eax
mov dword [esp + 0x2c], eax
je 0x55182c
mov eax, dword [esp + 0x3c]
add eax, 1
lea edx, [eax*4]
cmp eax, 0x20000000
mov eax, 0xffffffff
cmovb eax, edx
mov dword [esp], eax
call fcn.0063fc00
mov edx, dword [esp + 0x3c]
mov edi, eax
test edx, edx
je 0x5517bc
xor ebx, ebx
nop
lea esi, [esi]
mov eax, dword [esp + 0x2c]
mov ebp, dword [eax + ebx*4]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [esp], eax
mov dword [esp + 0x28], eax
call fcn.0063fc00
mov ecx, dword [esp + 0x28]
mov esi, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [edi + ebx*4], esi
add ebx, 1
cmp dword [esp + 0x3c], ebx
jne 0x551710
lea eax, [edi + ebx*4]
mov dword [eax], 0
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.004e0420
mov esi, eax
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x551818
mov eax, dword [edi]
test eax, eax
je 0x551818
xor ebx, ebx
jmp 0x551807
mov eax, dword [edi + ebx*4]
test eax, eax
je 0x551818
mov dword [esp], eax
add ebx, 1
call fcn.0063fbd0
cmp dword [esp + 0x3c], ebx
jne 0x551800
mov dword [esp], edi
call fcn.0063fbd0
add esp, 0x4c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov esi, 0xffffffff
jmp 0x551820
Function at 0x5615c0
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
lea ebx, [ecx - 1]
mov ecx, 0x66666667
sub esp, 0x2c
mov dword [esp + 0x1c], eax
mov eax, ebx
mov dword [esp + 0x10], ebx
sar eax, 0x1f
mov esi, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, ebx
sar ebx, 0x1f
imul ecx
mov ecx, edx
sar ecx, 2
sub ecx, ebx
mov ebx, 1
je 0x561613
mov ebp, 0x66666667
mov eax, ecx
sar ecx, 0x1f
add ebx, 1
imul ebp
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x561600
mov edx, dword [esi + 0x28]
cmp edx, 0xffffffff
je 0x561690
mov ecx, dword [esi + 8]
cmp ebx, edx
cmovl ebx, edx
lea edx, [ebx + 2]
mov eax, ecx
sub eax, edx
cmp ecx, edx
mov edx, 0xffffffff
cmovle eax, edx
mov ecx, 1
mov edx, edi
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
add ebx, 1
mov dword [esp], esi
call fcn.00560e70
mov eax, dword [esi + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
mov edx, eax
and eax, 0x20
or edx, 0x1c0
or eax, 0x45
mov dword [esi + 4], edx
mov edx, esi
call fcn.00560a40
add dword [esi + 8], ebx
mov eax, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [esp + 0x14]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.005612b0
mov eax, dword [0x66213c]
cmp eax, 0xffffffff
je 0x5616c5
test eax, eax
je 0x5616b5
mov edx, 2
mov dword [esi + 0x28], edx
jmp 0x56161b
mov dword [0x66213c], 0
call fcn.00566780
test al, 1
mov edx, 3
jne 0x56169e
jmp 0x5616a3
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test eax, eax
je 0x5616ab
movsx eax, byte [eax]
sub eax, 0x30
cmp eax, 2
ja 0x5616ab
mov dword [0x66213c], 1
jmp 0x56169e
Function at 0x58b830
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ecx + 8]
mov ebx, ecx
lea esi, [ebx + 0x2c]
sub esp, 0x2c
mov dword [ecx], method.0RIPEMD_128E.virtual_0
mov dword [ecx + 4], 0x6e27d4
mov dword [esp], 0x40
mov ecx, edi
call fcn.00580ce0
sub esp, 4
mov byte [ebx + 0x24], 0
mov byte [ebx + 0x25], 1
mov dword [ebx + 0x28], 8
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx], 0x6e3640
mov dword [ebx + 4], 0x6e3678
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x30], 0
mov dword [esp], 1
call fcn.00478890
mov dword [ebx + 0x38], eax
mov dword [esp], 0x10
mov ecx, esi
call fcn.00580450
sub esp, 4
lea eax, [ebx + 0x3c]
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x40], 0
mov dword [esp], 1
mov dword [ebp - 0x1c], eax
call fcn.00478890
lea ecx, [ebx + 0x3c]
mov dword [ebx + 0x48], eax
mov dword [esp], 4
call fcn.00580450
sub esp, 4
lea esp, [ebp - 0xc]
mov ecx, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0040e640

Function at 0x58e5c0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ecx + 8]
mov ebx, ecx
lea esi, [ebx + 0x2c]
sub esp, 0x2c
mov dword [ecx], method.0RIPEMD_128E.virtual_0
mov dword [ecx + 4], 0x6e27d4
mov dword [esp], 0x40
mov ecx, edi
call fcn.00580ce0
sub esp, 4
mov byte [ebx + 0x24], 1
mov byte [ebx + 0x25], 1
mov dword [ebx + 0x28], 8
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx], 0x6e3ff8
mov dword [ebx + 4], 0x6e4030
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x30], 0
mov dword [esp], 1
call fcn.00478890
mov dword [ebx + 0x38], eax
mov dword [esp], 5
mov ecx, esi
call fcn.00580450
sub esp, 4
lea eax, [ebx + 0x3c]
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x40], 0
mov dword [esp], 1
mov dword [ebp - 0x1c], eax
call fcn.00478890
lea ecx, [ebx + 0x3c]
mov dword [ebx + 0x48], eax
mov dword [esp], 0x50
call fcn.00580450
sub esp, 4
lea esp, [ebp - 0xc]
mov ecx, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0040e820

Function at 0x58e890
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea esi, [ecx + 8]
mov ebx, ecx
lea edi, [ebx + 0x2c]
sub esp, 0x2c
mov dword [ecx], method.0RIPEMD_128E.virtual_0
mov dword [ecx + 4], 0x6e27d4
mov dword [esp], 0x40
mov ecx, esi
call fcn.00580ce0
sub esp, 4
mov byte [ebx + 0x24], 1
mov byte [ebx + 0x25], 1
mov dword [ebx + 0x28], 8
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx], 0x6e4098
mov dword [ebx + 4], 0x6e40d0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x30], 0
mov dword [esp], 1
call fcn.00478890
mov dword [ebx + 0x38], eax
mov dword [esp], 8
mov ecx, edi
call fcn.00580450
sub esp, 4
lea esp, [ebp - 0xc]
mov ecx, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0040d930
Function at 0x58efc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
cmp esi, 7
jbe 0x58f018
lea edx, [esi - 8]
mov ecx, dword [esp + 0x1c]
shr edx, 3
lea ebp, [edx*8 + 8]
mov edx, dword [esp + 0x18]
lea edi, [eax + ebp]
lea esi, [esi]
mov ebx, dword [edx]
xor ebx, dword [ecx]
add eax, 8
add edx, 8
add ecx, 8
mov dword [eax - 8], ebx
mov ebx, dword [edx - 4]
xor ebx, dword [ecx - 4]
mov dword [eax - 4], ebx
cmp eax, edi
jne 0x58eff0
add dword [esp + 0x18], ebp
add dword [esp + 0x1c], ebp
and esi, 7
test esi, esi
je 0x58f046
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
add esi, edx
lea esi, [esi]
lea edi, [edi]
movzx ecx, byte [edx]
add edx, 1
add ebx, 1
xor cl, byte [ebx - 1]
add eax, 1
mov byte [eax - 1], cl
cmp edx, esi
jne 0x58f030
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x58f050
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
cmp ebx, 7
jbe 0x58f099
lea edx, [ebx - 8]
shr edx, 3
lea ebp, [edx*8 + 8]
mov edx, esi
lea edi, [eax + ebp]
mov esi, esi
lea edi, [edi]
mov ecx, dword [edx]
xor dword [eax], ecx
add edx, 8
mov ecx, dword [edx - 4]
xor dword [eax + 4], ecx
add eax, 8
cmp eax, edi
jne 0x58f080
add esi, ebp
and ebx, 7
test ebx, ebx
je 0x58f0ae
xor edx, edx
nop
movzx ecx, byte [esi + edx]
xor byte [eax + edx], cl
add edx, 1
cmp edx, ebx
jne 0x58f0a0
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x59d0f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1a
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ebp - 0x80]
mov esi, 0x6d199d
sub esp, 0x9c
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
lea eax, [edx + 1]
mov dword [ebp - 0x8c], eax
mov eax, dword [str.not_enough_space_for_format_expansion__Please_submit_full_bug_report_at_https:__gcc.gnu.org_bugs__:_n]
mov dword [ebp - 0x81], eax
mov eax, dword [0x6d1a01]
mov dword [ebp - 0x1c], eax
lea eax, [edx + 0x87]
rep movsd dword es:[edi], dword [esi]
and eax, 0xfffffff0
call fcn.0055af68
mov ecx, 0x1a
sub esp, eax
lea esi, [ebp - 0x81]
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov edi, ebx
lea eax, [ebx + 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x8c]
mov byte [ebx + eax + 0x67], 0
mov dword [esp], ebx
call fcn.006314b0
nop
nop
nop
nop
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x663bb4], 0
jne 0x59d1dd
mov byte [0x663bb4], 1
call fcn.0063ff90
test eax, eax
je 0x59d221
mov ebx, dword [eax + 4]
cmp byte [ebx], 0x2a
je 0x59d20f
lea eax, [esp + 0x1c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
call fcn.0055ad50
mov dword [esp], 2
mov edi, eax
mov esi, dword [fcn.00566690]
call esi
mov dword [esp + 8], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sub.msvcrt.dll_fwrite
cmp dword [esp + 0x1c], 0
mov dword [esp], 2
je 0x59d1cd
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x6d0a91
call sub.msvcrt.dll_fwrite
cmp dword [esp + 0x1c], 0
je 0x59d217
call fcn.00640470
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x59d198
mov dword [esp], 2
call dword [0x66215c]
mov dword [esp + 8], 0x1d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
add ebx, 1
jmp 0x59d123
mov dword [esp], edi
call fcn.00566588
jmp 0x59d1c8
mov dword [esp], 2
call dword [0x66215c]
mov dword [esp + 8], 0x2d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
sub edx, 1
mov dword [esp], eax
jne 0x59d2c7
call fcn.0063fe00
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
mov dword [esp], 2
mov ebx, eax
call esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xb
mov dword [esp + 4], 1
mov dword [esp], str.__what__:
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call esi
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_fputs
mov dword [esp], 2
call esi
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sub.msvcrt.dll_fputc
call fcn.0063fff0
jmp 0x59d24e
call fcn.0063fe00
call fcn.0063fff0
jmp 0x59d24e
Function at 0x644690
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00566690
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 sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00566690
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
sub esp, 0x1c
mov dword [esp + 4], 0
mov dword [esp], 0x6623dc
call sub.libwinpthread_1.dll_pthread_mutex_init
mov dword [esp], 0x4a00
mov dword [0x6623e8], 0x4a00
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [0x6623e4], eax
je 0x644748
mov dword [0x6623e0], eax
mov dword [eax], 0x4a00
mov dword [eax + 4], 0
mov dword [esp], 0x640cd0
call fcn.004014c0
add esp, 0x1c
ret
mov dword [0x6623e8], 0
mov dword [0x6623e0], 0
jmp 0x644738
Function at 0x415050
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x414f90
sub esp, 0x6c
mov eax, dword [0x694164]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00401343
mov ebx, eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x18], ebx
call fcn.004026e4
add esp, 4
mov edi, 0x4b814e
cmp byte [esp + 0x84], 0
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x4c], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esp + 0x5c], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esp + 0x6c], xmm0
mov eax, dword [eax + 0x28]
mov dword [esp + 0x74], eax
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
jne 0x415006
mov edi, dword [ebx + 8]
lea eax, [esp + 0x20]
push eax
call fcn.004026e4
mov ecx, edi
add esp, 4
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415018
sub ecx, edx
push 1
lea ebx, [ecx + 1]
push ebx
call fcn.00403387
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x415122
test ebx, ebx
je 0x415048
push ebx
push edi
push ebp
call fcn.00405759
add esp, 0xc
lea eax, [esp + 0x4c]
mov dword [esi + 8], ebp
push eax
push 0
push str.false
call fcn.004031a2
mov dword [esi + 0x10], eax
lea eax, [esp + 0x58]
push eax
push 0
push str.true
call fcn.004031a2
add esp, 0x18
mov dword [esi + 0x14], eax
cmp byte [esp + 0x84], 0
je 0x4150f5
lea eax, [esp + 0x4c]
mov byte [esp + 0x10], 0x2e
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0
push eax
push 1
lea eax, [esp + 0x1c]
xorps xmm0, xmm0
push eax
lea eax, [esp + 0x24]
movlpd qword [esp + 0x28], xmm0
push eax
call fcn.00403cc9
movzx eax, word [esp + 0x28]
xorps xmm0, xmm0
mov word [esi + 0xc], ax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x30]
mov byte [esp + 0x28], 0x2c
push eax
push 1
lea eax, [esp + 0x30]
mov dword [esp + 0x34], 0
push eax
lea eax, [esp + 0x38]
movlpd qword [esp + 0x3c], xmm0
push eax
call fcn.00403cc9
movzx eax, word [esp + 0x3c]
add esp, 0x28
jmp 0x415109
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
movzx eax, word [eax]
mov word [esi + 0xc], ax
mov eax, dword [ecx + 0x34]
movzx eax, word [eax]
mov ecx, dword [esp + 0x78]
pop edi
mov word [esi + 0xe], ax
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403085
add esp, 0x6c
ret 8
call fcn.004010aa
int3
Function at 0x496ee4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401dc0
mov eax, dword [0x694164]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00405ede
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x496f26
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x497082
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406041
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x697cb8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403292
mov ecx, dword [esi*4 + 0x697cb8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x49707b
cmp eax, dword [edi + ecx + 0x24]
jne 0x49707b
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49707b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403292
add esp, 0x14
test edx, edx
jl 0x49707b
jg 0x496ff1
test eax, eax
jb 0x49707b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49707b
jl 0x49700b
cmp dword [ebp - 0x1008], eax
ja 0x49707b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x497029
test ebx, ebx
je 0x497062
cmp ecx, edi
jae 0x497062
mov al, byte [ecx]
cmp al, 0xd
jne 0x497043
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49704f
cmp byte [ecx + 1], 0xa
jne 0x49704f
inc ecx
jmp 0x49704f
movzx eax, al
movsx eax, byte [eax + 0x694cc8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x497029
cmp edx, ebx
jne 0x497029
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x497080
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403085
leave
ret