joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411845
Capabilities:
Check os version

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
xor ebx, ebx
mov esi, 0xc8
and dword [esp + 0x10], ebx
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4119bb
mov eax, dword [esp + 0x24]
dec eax
je 0x41199e
dec eax
jne 0x4119bb
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.004117fe
pop ecx
test eax, eax
je 0x4118fc
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x4118bf
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x41199a
dec ebx
je 0x411996
dec ebx
je 0x411975
dec ebx
je 0x41192f
sub ebx, 4
jne 0x4119bb
test edi, edi
jne 0x4119bb
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x4119bb
lea eax, [esp + 0x244]
mov dword [esp + 0x244], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x4118bf
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x4118ba
sub edi, 0
je 0x411967
dec edi
je 0x411959
dec edi
je 0x41194b
dec edi
jne 0x4119bb
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x4119bb
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x4119bb
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x4119bb
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x4119bb
sub edi, 0
je 0x411992
dec edi
je 0x41198e
dec edi
jne 0x4119bb
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x4119bb
push 0x3c
jmp 0x4119ba
push 0x32
jmp 0x4119ba
push 0x14
jmp 0x4119ba
push 5
jmp 0x4119ba
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4119b8
cmp eax, 0xa
je 0x4119b4
cmp eax, 0x5a
jne 0x4119bb
push 0x28
jmp 0x4119ba
push 0x1e
jmp 0x4119ba
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x412f72
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x42365c]
call fcn.0041b948
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x413072
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x412fc8
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x412fc0
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x413008
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x41304a
push 0x22
pop edx
cmp cx, dx
je 0x412ffa
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x412fea
xor ecx, ecx
cmp word [eax], cx
je 0x41304a
mov ecx, eax
add eax, 2
jmp 0x41304c
test dx, dx
je 0x413052
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x412ffa
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x413040
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x41304a
cmp cx, dx
je 0x41303d
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x41302d
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x413012
jmp 0x412ffa
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x413054
xor edx, edx
cmp dword [ebp], ebx
jne 0x41305d
test edi, edi
jne 0x41307a
test edx, edx
je 0x413062
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x412fb6
test edi, edi
jne 0x41308b
mov eax, ebx
jmp 0x41308f
test esi, esi
je 0x41308b
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x41308f
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x41319f
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebp
push esi
push edi
push dword [esp + 0x38]
xor esi, esi
mov dword [esp + 0x10], esi
call fcn.0041dbd0
mov edi, dword [esp + 0x34]
mov dword [esp + 0x10], eax
lea eax, [edi + 0x18]
push eax
push esi
push dword [0x422b10]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x41329e
push ebx
mov ebx, dword [esp + 0x30]
lea eax, [edi + 0x18]
push esi
push dword [ebx + 0x18]
push eax
push ebp
push edi
push dword [esp + 0x48]
call fcn.0041368e
mov esi, eax
add esp, 0x18
test esi, esi
je 0x413202
cmp esi, edi
jge 0x413202
mov dword [esp + 0x34], ebp
jmp 0x413204
mov esi, edi
push dword [esp + 0x14]
call sub.MSVCRT.dll_strlen
mov word [esp + 0x2c], ax
mov eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cdq
mov dword [esp + 0x1c], eax
mov eax, esi
pop ecx
mov dword [esp + 0x1c], edx
cdq
push 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x40]
push eax
push 0x12
lea eax, [esp + 0x24]
mov dword [esp + 0x30], edx
push eax
push dword [ebx]
call edi
cmp dword [esp + 0x3c], 0x12
jne 0x413283
push 0
lea eax, [esp + 0x40]
push eax
movsx eax, word [esp + 0x30]
push eax
push dword [esp + 0x20]
push dword [ebx]
call edi
movsx eax, word [esp + 0x28]
cmp eax, dword [esp + 0x3c]
jne 0x413283
push 0
lea eax, [esp + 0x40]
push eax
push esi
push dword [esp + 0x40]
push dword [ebx]
call edi
cmp esi, dword [esp + 0x3c]
jne 0x413283
xor esi, esi
inc esi
jmp 0x413287
mov esi, dword [esp + 0x10]
push ebx
call fcn.004138a8
pop ecx
push ebp
push 0
push dword [0x422b10]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
push dword [esp + 0x10]
call fcn.0041dbc0
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x1c
ret 0x10
Function at 0x4134d9
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
or dword [esp], 0xffffffff
xor edx, edx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
mov esi, edx
test edi, edi
je 0x413510
cmp word [edi], dx
je 0x413510
push edi
call fcn.0041dbd0
mov ebp, dword [esp + 0x20]
mov edi, eax
push edi
push ebp
call fcn.004138ed
pop ecx
pop ecx
mov esi, eax
xor edx, edx
jmp 0x413526
mov ebp, dword [esp + 0x20]
cmp dword [ebp + 8], edx
je 0x41363b
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 4]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x41363b
cmp dword [esp + 0x30], 0
je 0x41354a
push dword [esi]
push edx
push dword [0x422b10]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov eax, dword [esi]
jmp 0x413552
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x41363f
cdq
cmp edx, dword [esi + 4]
jl 0x41363f
jg 0x413572
cmp eax, dword [esi]
jb 0x41363f
push 0
lea eax, [esi + 0x14]
push eax
push dword [esi + 0x10]
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
cmp eax, dword [esi]
jne 0x4135c4
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 4]
jne 0x4135c4
push 0
lea eax, [esp + 0x30]
push eax
push dword [esi]
push ebx
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebp, dword [esp + 0x2c]
mov eax, ebp
cdq
cmp dword [esi], eax
jne 0x41363f
cmp dword [esi + 4], edx
jne 0x41363f
mov dword [esp + 0x10], ebp
jmp 0x413643
push dword [esi + 8]
push 0
push dword [0x422b10]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x41363f
push 0
lea ecx, [esp + 0x30]
push ecx
push dword [esi + 8]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x2c]
cdq
cmp dword [esi + 8], eax
jne 0x413623
cmp dword [esi + 0xc], edx
jne 0x413623
push dword [esp + 0x14]
push ebx
push dword [esp + 0x20]
call fcn.00413b4e
cdq
add esp, 0xc
cmp eax, dword [esi]
jne 0x413623
cmp edx, dword [esi + 4]
jne 0x413623
mov ebp, dword [esi]
mov dword [esp + 0x10], ebp
jmp 0x413627
mov ebp, dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [0x422b10]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x413643
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x41366f
cmp ebp, 0xffffffff
jne 0x413669
test ebx, ebx
je 0x413663
push ebx
push 0
push dword [0x422b10]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov ebx, eax
jmp 0x413675
mov eax, dword [esi]
mov dword [ecx], eax
jmp 0x413673
mov ebx, dword [esp + 0x10]
xor eax, eax
test edi, edi
je 0x413684
cmp word [edi], ax
je 0x413684
push edi
call fcn.0041dbc0
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret
Function at 0x41392d
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, dword [esp + 0x48]
xor ebx, ebx
push 0x40
pop ebp
cmp dword [esi + 4], ebx
jne 0x413ab0
push edi
push 0x100
push ebx
push dword [0x422b10]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebx
push ebx
push 4
pop edi
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esi + 0x14], 0x706c7a31
lea eax, [esp + 0x4c]
push 0
push eax
jne 0x4139c2
push 0x18
lea eax, [esp + 0x3c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x4c], 0x18
jne 0x413aaf
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
mov ax, word [esp + 0x40]
mov word [esp + 0x2c], ax
jmp 0x4139dc
push 0x12
lea eax, [esp + 0x28]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x4c], 0x12
jne 0x413aaf
cmp dword [esi + 0xc], ebp
jl 0x4139fe
add ebp, 0x40
mov eax, ebp
shl eax, 2
push eax
push dword [esi + 4]
push 8
push dword [0x422b10]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [esi + 4], eax
movsx eax, word [esp + 0x2c]
add eax, 0x19
push eax
push 0
push dword [0x422b10]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [esp + 0x1c]
mov edx, eax
push 0
lea eax, [esp + 0x50]
mov dword [esp + 0x14], edx
push eax
mov dword [edx], ecx
mov ecx, dword [esp + 0x28]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x30]
mov dword [edx + 0xc], ecx
movsx eax, word [esp + 0x34]
push eax
lea eax, [edx + 0x18]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, word [esp + 0x2c]
xor ecx, ecx
mov edx, dword [esp + 0x10]
mov byte [eax + edx + 0x18], cl
cmp dword [esi + 0x14], 0x706c7a31
movsx eax, word [esp + 0x2c]
jne 0x413a71
add eax, 0x18
jmp 0x413a74
add eax, 0x12
add edi, eax
mov dword [edx + 0x10], edi
adc ebx, ecx
mov dword [edx + 0x14], ebx
mov ecx, dword [esi + 0xc]
add edi, dword [esp + 0x24]
mov eax, dword [esi + 4]
adc ebx, dword [esp + 0x28]
push 1
mov dword [eax + ecx*4], edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
inc dword [esi + 0xc]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x1c], ecx
push ecx
jmp 0x413964
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
Function at 0x414130
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x422ea8], 0
jne 0x41413e
call fcn.004140d0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x422eac]
call esi
test eax, eax
jne 0x414161
call fcn.004140d0
push dword [0x422eac]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x414170
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x4141d0
mov ebx, 0x10
test edi, edi
jns 0x4141d9
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x4141a2
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4141f0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x422ea8], 0
jne 0x4141fe
call fcn.004140d0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x422eac]
call esi
mov edx, eax
test edx, edx
jne 0x414225
call fcn.004140d0
push dword [0x422eac]
call esi
mov edx, eax
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov ebp, dword [esp + 0x14]
inc ebp
mov edi, dword [edx + ebx*4 + 0x4c]
mov eax, dword [edx + ebx*4 + 8]
mov ecx, dword [edx + esi*4 + 8]
ror edi, 0xd
add edi, dword [edx + esi*4 + 0x4c]
dec esi
ror eax, 5
add eax, ecx
mov dword [edx + ebx*4 + 8], edi
mov dword [edx + ebx*4 + 0x4c], eax
dec ebx
jns 0x414258
mov ebx, 0x10
test esi, esi
jns 0x414261
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x414270
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x414e43
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x414f8b
xor ecx, ecx
cmp word [eax], cx
je 0x414f8b
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x414e9c
cmp eax, 3
jne 0x414ed6
cmp word [esp + 0xa], 0x3a
jne 0x414ed6
cmp eax, 2
jne 0x414eba
lea eax, [esp + 8]
push 0x41f058
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x414f8b
push 0xfffffffffffffffe
pop edi
jmp 0x414f8b
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x414eeb
cmp ax, bx
jne 0x414ef5
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x414ede
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x414f34
test byte [esp + 0x21c], 0x10
je 0x414f1b
push 0xfffffffffffffffe
pop edi
jmp 0x414f2b
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x414f89
cmp word [esp + 0x10], bp
jne 0x414f42
cmp word [esp + 0x12], bp
je 0x414f61
cmp word [esp + 0x10], bx
jne 0x414f50
cmp word [esp + 0x12], bx
je 0x414f61
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x414f89
cmp word [esp + 0x12], ax
jne 0x414f89
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x414f76
test al, 0x10
je 0x414f89
jmp 0x414f86
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x414f89
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x415069
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x4150e1
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x4150c2
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x4150bf
cmp ecx, 0x5c
je 0x4150bf
cmp ecx, 0x2f
jne 0x4150cc
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x4150ac
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4150e3
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x415260
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x41529c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4
Function at 0x4157a0
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov dword [esp + 4], 0
push dword [0x4236c0]
call fcn.0041bab9
test eax, eax
je 0x4157ec
cmp dword [eax + 4], 0
je 0x4157d6
push 4
lea ecx, [esp + 4]
push ecx
push eax
call fcn.00415b80
mov eax, dword [esp]
pop ecx
ret 4
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
lea ecx, [esp + 0xc]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
pop ecx
ret 4

Function at 0x415b80
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0
jne 0x415ba1
push esi
call fcn.00415260
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
cmp ebx, edi
jl 0x415c15
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x415c02
dec ecx
je 0x415bed
sub ecx, 2
je 0x415bda
push edi
push eax
push dword [esp + 0x1c]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x14]
mov word [eax], cx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esp + 0x14]
mov dl, byte [eax]
mov eax, edi
mov byte [ecx], dl
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
push ebp
mov ebp, dword [esp + 0x18]
sub eax, ebx
add eax, dword [esi + 4]
push ebx
push eax
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
push 0
cmp edi, eax
jl 0x415c5a
lea eax, [esp + 0x18]
push eax
push edi
push ebp
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
add eax, ebx
pop esi
pop ebx
ret 0xc
lea ecx, [esp + 0x18]
push ecx
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp edi, eax
jle 0x415c7b
mov edi, eax
push edi
push dword [esi + 4]
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
lea eax, [ebx + edi]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x415ca0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x422b10]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x415e24
mov cl, byte [esp + 3]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov esi, edx
mov edi, edi
cmp ebp, 0xffffffff
je 0x415cee
test ebp, ebp
je 0x415d90
dec ebp
cmp dword [ebx + 4], 0
je 0x415d07
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00415b80
mov dword [esp + 0x14], eax
jmp 0x415d21
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x13]
cmp eax, 1
jne 0x415d90
test cl, cl
je 0x415d35
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x13]
mov eax, dword [esp + 0x18]
mov edi, esi
mov edx, dword [esp + 0x20]
dec eax
sub edi, edx
cmp edi, eax
jle 0x415d70
mov eax, dword [esp + 0x18]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x422b10]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x20], edx
lea esi, [edi + edx]
test cl, cl
je 0x415d90
cmp dword [esp + 0x2c], 0
jne 0x415ce0
cmp cl, 0xd
je 0x415d97
cmp cl, 0xa
jne 0x415ce0
dec esi
jmp 0x415e07
cmp dword [esp + 0x2c], 0
jne 0x415e07
cmp cl, 0xa
jne 0x415d9f
dec esi
jmp 0x415e07
cmp cl, 0xd
jne 0x415e07
dec esi
cmp dword [ebx + 4], 0
je 0x415dbe
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00415b80
mov dword [esp + 0x14], eax
jmp 0x415dd4
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x415e07
cmp dword [ebx + 4], 0
je 0x415de6
inc dword [ebx + 0xc]
jmp 0x415e07
push 1
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x20]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x415e30
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push 0x1000
push 0
push dword [0x422b10]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [esp + 8], ecx
test ecx, ecx
je 0x415fdd
mov ax, word [esp]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], 0x1000
mov dword [esp + 0x1c], 0x7ff
cmp ebp, 0xffffffff
je 0x415e84
test ebp, ebp
je 0x415f3d
dec ebp
cmp dword [ebx + 4], 0
je 0x415e9d
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00415b80
mov dword [esp + 0x14], eax
jmp 0x415eb7
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
cmp eax, 2
mov ax, word [esp + 0x10]
jne 0x415f3d
test ax, ax
je 0x415ed1
mov word [edi], ax
add edi, 2
mov ax, word [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov esi, edi
mov edx, dword [esp + 0x1c]
sub esi, ecx
sar esi, 1
cmp esi, edx
jle 0x415f18
mov eax, dword [esp + 0x20]
add edx, 0x800
add eax, 0x1000
mov dword [esp + 0x1c], edx
push eax
push ecx
push 8
push dword [0x422b10]
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
mov ax, word [esp + 0x10]
mov dword [esp + 0x18], ecx
lea edi, [ecx + esi*2]
test ax, ax
je 0x415f3d
cmp dword [esp + 0x30], 0
jne 0x415e76
cmp ax, 0xd
je 0x415f44
cmp ax, 0xa
jne 0x415e76
sub edi, 2
jmp 0x415fbc
cmp dword [esp + 0x30], 0
jne 0x415fbc
cmp ax, 0xa
jne 0x415f4f
sub edi, 2
jmp 0x415fbc
cmp ax, 0xd
jne 0x415fbc
sub edi, 2
cmp dword [ebx + 4], 0
je 0x415f71
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00415b80
mov dword [esp + 0x14], eax
jmp 0x415f87
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esp + 0x10], 0xa
je 0x415fbc
cmp dword [ebx + 4], 0
je 0x415f9b
add dword [ebx + 0xc], 2
jmp 0x415fbc
push 1
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0xfffffffe
push eax
push 0xfffffffffffffffe
push dword [ebx]
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x38]
mov ecx, edi
sub ecx, dword [esp + 0x18]
sar ecx, 1
mov dword [eax], ecx
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
xor eax, eax
add esp, 0x18
ret 0x10