joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x40288e
pop dword [ebp - 0x14]
mov eax, 0x40288e
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x346dda5d
add dword [ebp - 0x24], 0x19e46aee
mov dword [ebp - 0x20], 0xd5aed828
add dword [ebp - 0x20], 0x5c84741d
mov dword [ebp - 0x1c], 0xf18fd1d8
add dword [ebp - 0x1c], 0x5abc7256
mov dword [ebp - 0x18], 0x2d7a854f
add dword [ebp - 0x18], 0xd2857ab1
lea eax, [ebp - 0x24]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x35794f43
sub dword [ebp - 0x24], 0xc106e5ed
mov dword [ebp - 0x20], 0xf89b28ab
add dword [ebp - 0x20], 0x48d138ca
mov dword [ebp - 0x1c], 0x89b14380
sub dword [ebp - 0x1c], 0x2641d714
mov dword [ebp - 0x18], 0xbeaf5c80
add dword [ebp - 0x18], 0x4150a380
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x251aa952
sub eax, 0x24da287e
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x3d566
push 0
call eax
mov ecx, 0xf1554b9
sub ecx, 0xf14f1c2
mov ebx, eax
mov esi, 0xcbe819aa
sub esi, 0xcba709aa
add esi, dword [ebp - 0x14]
mov edx, 0x8ff35699
add edx, 0x992b74c9
sub dword [ebp - 0xc], 0x75173bc3
mov edi, dword [esi]
add dword [ebp - 0xc], esi
sub edi, edx
mov dword [ebx], edi
xor dword [ebp - 0x10], esi
add ebx, 0xd4ed3568
add ebx, 0x2b12ca9c
add esi, 0xec94d42f
add esi, 0x136b2bd5
loop 0x4029a6
add eax, 0x4ae4228d
sub eax, 0x4ae2a3de
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x59c830
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x100000]
push edi
or ebp, 0xffffffff
jmp 0x59c852
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x59c859
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59c848
mov eax, 1
add ebx, ebx
jne 0x59c86b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x59c87c
jne 0x59c89b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59c89b
dec eax
add ebx, ebx
jne 0x59c888
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x59c860
add ebx, ebx
jne 0x59c897
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x59c8ed
xor ecx, ecx
sub eax, 3
jb 0x59c8b3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x59c922
sar eax, 1
mov ebp, eax
jmp 0x59c8be
add ebx, ebx
jne 0x59c8be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59c88c
inc ecx
add ebx, ebx
jne 0x59c8cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59c88c
add ebx, ebx
jne 0x59c8d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x59c8ce
jne 0x59c8ea
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x59c8ce
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x59c90c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x59c8fe
jmp 0x59c84e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x59c90c
add edi, ecx
jmp 0x59c84e
pop esi
mov edi, esi
mov ecx, 0x65ca
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x59c92a
cmp byte [edi], 0x13
jne 0x59c92a
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 0x59c92f
lea edi, [esi + 0x199000]
mov eax, dword [edi]
or eax, eax
je 0x59c9a7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a1e1c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a1f98]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x59c95c
mov ecx, edi
jns 0x59c98b
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 + 0x1a1fa0]
or eax, eax
je 0x59c9a1
mov dword [ebx], eax
add ebx, 4
jmp 0x59c979
call dword [esi + 0x1a1f9c]
mov ebp, dword [esi + 0x1a1fa4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x59c9db
sub esp, 0xffffff80
jmp 0x4e18f9
Function at 0x10001971
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x10001980
pop dword [ebp - 0xc]
mov eax, 0x10001980
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xc570b461
add dword [ebp - 0x1c], 0x88e190ea
mov dword [ebp - 0x18], 0xf5970efd
sub dword [ebp - 0x18], 0xc363c2b8
mov dword [ebp - 0x14], 0xa98d594c
add dword [ebp - 0x14], 0xa2beeae2
mov dword [ebp - 0x10], 0x4f609fda
sub dword [ebp - 0x10], 0x4f609fda
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x42bec83d
add eax, 0xcd4187db
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xefc130bf
add dword [ebp - 0x1c], 0x84b13897
mov dword [ebp - 0x18], 0xbdbfbe0
add dword [ebp - 0x18], 0x35906595
mov dword [ebp - 0x14], 0x2ae38f37
sub dword [ebp - 0x14], 0xc77422cb
mov dword [ebp - 0x10], 0xe55e580e
add dword [ebp - 0x10], 0x1aa1a7f2
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x49d32562
add eax, 0xc62d2ad2
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x39127
push 0
call eax
mov ecx, 0xae74f67b
add ecx, 0x518b5aec
mov edi, eax
mov ebx, 0x44b853e3
add ebx, 0xcb4bb21d
add ebx, dword [ebp - 0xc]
mov esi, 0xf8bbb00
xor dword [ebp - 8], edi
mov edx, dword [ebx]
sub dword [ebp - 8], 0xb168dcf7
add edx, esi
sub dword [ebp - 8], esi
mov dword [edi], edx
xor dword [ebp - 4], 0x3838c2d3
add edi, 4
add ebx, 0x87aab80c
add ebx, 0x785547f8
loop 0x10001a97
add eax, 0xa993d51c
add eax, 0x566d6353
mov ebx, eax
add eax, 0xf9431bd8
sub eax, 0xf9431bd3
mov ecx, 0x2cc5a09e
sub ecx, 0x1cc5a09e
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x66cc339b
Capabilities:
Log keystrokes via polling

Disassembly:
push 8
mov eax, 0x66cda31f
call fcn.66cd60eb
mov esi, ecx
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
push 0x10
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
call edi
mov ebx, 0x8000
test bx, ax
je 0x66cc33cc
mov dword [ebp - 0x14], 1
push 0x11
call edi
test bx, ax
je 0x66cc33d9
or dword [ebp - 0x14], 2
push 0x12
call edi
test bx, ax
je 0x66cc33e6
or dword [ebp - 0x14], 4
mov edi, dword [ebp + 8]
cmp edi, 0x1b
jne 0x66cc3402
push 0
push 0
push 0x1f
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x66cc34d0
mov ebx, dword [ebp - 0x14]
push ebx
push edi
push 0x3070
call fcn.66ccf167
test al, al
je 0x66cc3423
add esi, 0xb8
mov eax, dword [esi]
push esi
call dword [eax + 0x28]
jmp 0x66cc3499
push ebx
push edi
push 0x3071
call fcn.66ccf167
test al, al
je 0x66cc3441
add esi, 0xb8
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
jmp 0x66cc3499
push ebx
push edi
push 0x3072
call fcn.66ccf167
test al, al
je 0x66cc345f
add esi, 0xb8
mov eax, dword [esi]
push esi
call dword [eax + 0x24]
jmp 0x66cc3499
push ebx
push edi
push 0x3073
call fcn.66ccf167
test al, al
je 0x66cc347d
add esi, 0xb8
mov eax, dword [esi]
push esi
call dword [eax + 0x1c]
jmp 0x66cc3499
push ebx
push edi
push 0x3074
call fcn.66ccf167
test al, al
je 0x66cc34ab
add esi, 0xb8
mov eax, dword [esi]
push esi
call dword [eax + 0x20]
test eax, eax
jge 0x66cc34b1
push 0x66cdd8e8
push esi
push eax
call fcn.66ccf669
jmp 0x66cc34b1
mov eax, dword [ebp + 0xc]
and dword [eax], 0
or dword [ebp - 4], 0xffffffff
xor eax, eax
jmp 0x66cc34d0
call fcn.66cd6190
ret 8

Function at 0x66cd3f3c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x66cd3f4b
pop dword [ebp - 8]
mov eax, 0x9b7bebe4
sub eax, 0x34aeac99
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x3d88e
push 0
mov eax, 0x9108408d
add eax, 0xd5c56f87
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x5aab
xor esi, esi
add esi, eax
mov edi, 0x66cf1200
add edi, dword [ebp - 8]
mov edx, 0xd8698401
sub edx, 0x20bf9
sub dword [ebp - 4], edx
mov ebx, dword [edi]
add dword [ebp - 4], eax
xor ebx, edx
sub dword [ebp - 4], 0x9fca3f4c
mov dword [esi], ebx
sub dword [ebp - 4], edx
add esi, 0x9904c17b
add esi, 0x66fb3e89
add edi, 0x5fca1ca9
add edi, 0xa035e35b
loop 0x66cd3fa0
add eax, 0x15d7f
xor ebx, ebx
add ebx, eax
add eax, 0xc92eaf6b
add eax, 0x36d1509a
mov ecx, 0x655881d6
sub ecx, 0xfe8c81d6
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x66cd5441
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x66ce7018]
jne 0x66cd5945
repz ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x66ce7808], eax
mov dword [0x66ce7804], ecx
mov dword [0x66ce7800], edx
mov dword [0x66ce77fc], ebx
mov dword [0x66ce77f8], esi
mov dword [0x66ce77f4], edi
mov word [0x66ce7820], ss
mov word [0x66ce7814], cs
mov word [0x66ce77f0], ds
mov word [0x66ce77ec], es
mov word [0x66ce77e8], fs
mov word [0x66ce77e4], gs
pushfd
pop dword [0x66ce7818]
mov eax, dword [ebp]
mov dword [0x66ce780c], eax
mov eax, dword [ebp + 4]
mov dword [0x66ce7810], eax
lea eax, [ebp + 8]
mov dword [0x66ce781c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x66ce7758], 0x10001
mov eax, dword [0x66ce7810]
mov dword [0x66ce770c], eax
mov dword [0x66ce7700], 0xc0000409
mov dword [0x66ce7704], 1
mov eax, dword [0x66ce7018]
mov dword [ebp - 0x328], eax
mov eax, dword [0x66ce701c]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x66ce7750], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x66cdb65c
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x66ce7750], 0
jne 0x66cd5a35
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x1000f188
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x1000f197
pop dword [ebp - 0x48]
mov eax, 0xbfb43162
sub eax, 0xafb33fcb
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x3c991
push 0
mov eax, 0xdd70e26d
add eax, 0x32905df7
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x5612
xor ebx, ebx
add ebx, eax
mov esi, 0x5d90b9be
add esi, 0xb270cc42
add esi, dword [ebp - 0x48]
mov edx, 0x74ab597f
add dword [ebp - 0x44], 0x7e99ad2
mov edi, dword [esi]
add dword [ebp - 0xc], 0xf27fba57
xor edi, edx
xor dword [ebp - 0x30], ebx
mov dword [ebx], edi
add dword [ebp - 0x20], esi
add ebx, 4
add esi, 0xb3e27505
add esi, 0x4c1d8aff
loop 0x1000f1ec
add eax, 0xbb65fc89
sub eax, 0xbb64b16e
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x7db663cc
add ecx, 0x92499c34
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43200c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x402a7e
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0xc]
cmp dword [esp + 0x10], esi
jbe 0x402acb
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x58
push 0x41f390
push 0x4756b0
mov byte [edi + esi], al
call fcn.00401374
push eax
call fcn.004019f8
mov al, byte [edi + esi]
add esp, 0xc
sub al, 0x14
xor al, 0x74
add al, 0x4e
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
xor al, 0x2a
mov byte [edi + esi], al
inc esi
cmp esi, dword [esp + 0x10]
jb 0x402a8c
pop edi
pop esi
ret

Function at 0x402f68
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x474500]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x41f3b0
lea ecx, [ebp - 0x1c]
call fcn.00401af2
push 0xc
call fcn.004065e4
xor esi, esi
pop ecx
test eax, eax
je 0x402fa1
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.00401b4b
jmp 0x402fa3
mov eax, esi
mov eax, dword [eax + 4]
shl eax, 2
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0x40
push 0x4ac
push 0x474020
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
call dword [sym.imp.KERNEL32.DLL_FreeConsole]
push esi
push esi
push esi
push 0x402a6c
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
call fcn.00402a52
mov edx, 0x474020
add edx, 0x188
mov esi, 0x429020
push esi
call edx
lea ecx, [ebp - 0x1c]
call fcn.00402918
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00406622
leave
ret

Function at 0x4071ff
Capabilities:
Parse pe header

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

Function at 0x411ef9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x422500
push 0x4224f8
push 0x420d94
push 0x1e
call fcn.00411d66
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411f2d
push dword [ebp + 8]
mov ecx, esi
call dword [0x41f140]
call esi
jmp 0x411f33
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x414426
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004140c8

Function at 0x414431
Capabilities:
Read file on windows

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

Function at 0x41482b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407370
mov eax, dword [0x474500]
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.004132bd
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41486d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4149c9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041dd40
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 + 0x476048]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004159fb
mov ecx, dword [esi*4 + 0x476048]
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 0x4149c2
cmp eax, dword [edi + ecx + 0x24]
jne 0x4149c2
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 0x4149c2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004159fb
add esp, 0x14
test edx, edx
jl 0x4149c2
jg 0x414938
test eax, eax
jb 0x4149c2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4149c2
jl 0x414952
cmp dword [ebp - 0x1008], eax
ja 0x4149c2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x414970
test ebx, ebx
je 0x4149a9
cmp ecx, edi
jae 0x4149a9
mov al, byte [ecx]
cmp al, 0xd
jne 0x41498a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x414996
cmp byte [ecx + 1], 0xa
jne 0x414996
inc ecx
jmp 0x414996
movzx eax, al
movsx eax, byte [eax + 0x4747d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x414970
cmp edx, ebx
jne 0x414970
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4149c7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406622
leave
ret
Function at 0x414e99
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 + 0x476048]
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 0x414ed9
cmp byte [ebx], 0xa
jne 0x414ed9
or byte [eax + edi + 0x28], 4
jmp 0x414ede
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x414fdc
mov al, byte [edx]
cmp al, 0x1a
je 0x414fbe
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x414f0d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x414f32
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x414f3c
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 0x414eef
jmp 0x414fdc
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 0x414fb9
cmp dword [ebp - 0xc], 0
je 0x414fb9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x476048]
test byte [eax + edi + 0x28], 0x48
je 0x414f93
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x414f7e
mov byte [esi], dl
jmp 0x414f8f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x476048]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x414fdc
cmp byte [ebp - 1], 0xa
jne 0x414fa2
cmp esi, ebx
jne 0x414fa2
mov byte [esi], 0xa
jmp 0x414fdb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00415a19
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x414fdc
mov byte [esi], 0xd
jmp 0x414fdb
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x476048]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414fd8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x414fdc
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x414fe5
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 + 0x476048]
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 0x415028
cmp word [esi], dx
jne 0x415028
or byte [edi + eax + 0x28], 4
jmp 0x41502d
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 0x415180
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 0x415160
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41506f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4150a5
cmp eax, edx
jae 0x4150b1
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 0x415047
jmp 0x415180
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 0x41515c
cmp dword [ebp - 0x14], 0
je 0x41515c
mov eax, dword [ebx*4 + 0x476048]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x415134
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4150fd
mov word [esi], cx
jmp 0x415130
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x476048]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x476048]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x476048]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x415180
pop ebx
cmp word [ebp - 4], bx
jne 0x415145
cmp esi, dword [ebp + 0xc]
jne 0x415145
mov word [esi], bx
jmp 0x41517d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00415a19
add esp, 0x10
cmp word [ebp - 4], bx
je 0x415180
push 0xd
jmp 0x415179
mov ecx, dword [ebx*4 + 0x476048]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x415177
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x415180
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