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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x62a8d87b
cmp byte [esi + ebx - 1], 0xa
je 0x62a8d84f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x62a8e138], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
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 0x1000cac3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword fs:[0x2c]
push ebx
push esi
mov esi, dword [0x100139e8]
mov ebx, ecx
push edi
mov edi, edx
mov dword [ebp - 8], edi
mov esi, dword [eax + esi*4]
mov eax, dword [0x10013e80]
cmp eax, dword [esi + 4]
jg 0x1000cb78
lea eax, [ebx + edi]
cmp eax, ebx
ja 0x1000cb01
mov eax, 0x10dd
jmp 0x1000cb71
mov eax, dword [0x10013e7c]
cmp edi, eax
jbe 0x1000cb0f
push 0x32
pop eax
jmp 0x1000cb71
mov edi, dword [ebp + 8]
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
lea esi, [eax - 1]
push ecx
not esi
push dword [edi]
and esi, ebx
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x1000cb37
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x1000cb71
mov ecx, dword [0x10013e7c]
mov eax, dword [ebp - 8]
dec ecx
mov edx, dword [ebp - 4]
dec eax
add eax, ebx
mov dword [edi], edx
not ecx
and ecx, eax
cmp ecx, esi
je 0x1000cb6c
lea eax, [ebp - 4]
push eax
push dword [edi + 4]
push dword [0x10013e7c]
push ecx
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
je 0x1000cb2f
mov edx, dword [ebp - 4]
mov dword [edi + 4], edx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov esi, 0x10013e80
push esi
call fcn.1000cd54
cmp dword [0x10013e80], 0xffffffff
pop ecx
jne 0x1000caf3
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x28]
push esi
mov dword [0x10013e7c], eax
call fcn.1000cd54
mov edi, dword [ebp - 8]
pop ecx
jmp 0x1000caf3

Function at 0x1000cd54
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x1000cd63
pop dword [ebp - 0x4c]
mov eax, 0x1000cd63
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x3455f
push 0
mov eax, 0xd5fea34f
sub eax, 0xc5fd62eb
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0xe505b8ab
sub ecx, 0xe505835d
xor esi, esi
add esi, eax
mov edx, 0xd7a9783d
add edx, 0x38580dc3
add edx, dword [ebp - 0x4c]
mov edi, 0xe0b05128
sub edi, 0x353e950c
xor dword [ebp - 0x34], ebx
mov ebx, dword [edx]
sub ebx, edi
sub dword [ebp - 0x40], esi
mov dword [esi], ebx
add dword [ebp - 0x44], 0x19c43123
add esi, 4
add edx, 0x9422c85a
sub edx, 0x9422c856
loop 0x1000cdbf
add eax, 0xc80b
mov ebx, eax
add eax, 0x3f292a1
sub eax, 0x3f2929c
mov ecx, 0x8279e1ce
sub ecx, 0x7279e1ce
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x401443
pop dword [ebp - 0x24]
mov eax, 0xaa8c0964
add eax, 0x55b40adf
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xdf4ee6e3
add dword [ebp - 0x34], 0x6f035e68
mov dword [ebp - 0x30], 0xf52ba535
sub dword [ebp - 0x30], 0xc2f858f0
mov dword [ebp - 0x2c], 0x298b5c0d
add dword [ebp - 0x2c], 0x22c0e821
mov dword [ebp - 0x28], 0xc09c9bfb
sub dword [ebp - 0x28], 0xc09c9bfb
lea eax, [ebp - 0x34]
push eax
mov eax, 0xe48abad
add eax, 0xf1f7d557
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xdf7892d3
sub dword [ebp - 0x34], 0x6b06297d
mov dword [ebp - 0x30], 0xcdc658a9
sub dword [ebp - 0x30], 0x8c59f734
mov dword [ebp - 0x2c], 0x25ba2665
add dword [ebp - 0x2c], 0x3db54607
mov dword [ebp - 0x28], 0x5150a1b0
add dword [ebp - 0x28], 0xaeaf5e50
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0xdc2ef09f
sub eax, 0xdbee6f9f
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x36152
push 0
call eax
mov ecx, 0x3f2b
mov edx, eax
mov edi, 0xe629b164
sub edi, 0xe5e2cd64
add edi, dword [ebp - 0x24]
mov esi, 0x7321e4f9
sub esi, 0xeb1745
xor dword [ebp - 8], ecx
mov ebx, dword [edi]
add ebx, esi
mov dword [edx], ebx
sub dword [ebp - 0x20], ebx
add edx, 0x7788bdd6
add edx, 0x8877422e
add edi, 0xa9b476dd
sub edi, 0xa9b476d9
loop 0x40155f
add eax, 0x965c5ba
add eax, 0xf69b29c5
mov ebx, eax
add eax, 5
mov ecx, 0x89d0cb6e
sub ecx, 0x8990cb6e
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42a2f0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004065ec
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x42a2f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42a2f0], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0x40669d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x4066d4
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4066ae
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x4066a9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406705
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x4066e7
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x19464488
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x54b6288a
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x1d74f9
Capabilities:
Parse pe header

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

Function at 0x1e7124
Capabilities:
Read file on windows

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

Function at 0x1e712f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.001e6f55
Function at 0x4058d5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x4058e4
pop dword [ebp - 0xc]
mov eax, 0x108483f4
sub eax, 0x10442b10
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x89d95caa
sub dword [ebp - 0x1c], 0x3b87175f
mov dword [ebp - 0x18], 0xf49a6d11
add dword [ebp - 0x18], 0x3d98df34
mov dword [ebp - 0x14], 0x99e7d65d
add dword [ebp - 0x14], 0xb2646dd1
mov dword [ebp - 0x10], 0x191efdde
add dword [ebp - 0x10], 0xe6e10222
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x31a8a473
sub dword [ebp - 0x1c], 0xbd363b1d
mov dword [ebp - 0x18], 0xe6e41ef9
add dword [ebp - 0x18], 0x5a88427c
mov dword [ebp - 0x14], 0x26b28bfb
sub dword [ebp - 0x14], 0xc3431f8f
mov dword [ebp - 0x10], 0x2f6e6f17
add dword [ebp - 0x10], 0xd09190e9
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x39580
push 0
call eax
mov ecx, 0x5183
mov edx, eax
mov esi, 0xd26bfe0b
add esi, 0x2dd943f5
add esi, dword [ebp - 0xc]
mov ebx, 0xbb88d07a
add ebx, 0x5823b4ff
add dword [ebp - 8], 0x1a253a7b
mov edi, dword [esi]
sub dword [ebp - 4], 0xb21c92b3
xor edi, ebx
add dword [ebp - 4], 0xc7e959f3
mov dword [edx], edi
add edx, 0x6aeb9b55
add edx, 0x951464af
add esi, 0x5ec5b8b4
add esi, 0xa13a4750
loop 0x4059f6
add eax, 0xb48d17bc
add eax, 0x4b742123
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x405ba0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42fa50
push esi
call fcn.004060e4
push esi
call fcn.00405b43
mov edi, eax
test edi, edi
jne 0x405bc1
xor eax, eax
jmp 0x405c19
push edi
call fcn.00406378
test byte [0x434ef8], 0x80
je 0x405bde
mov ax, word [edi]
test ax, ax
je 0x405bbd
cmp ax, 0x5c
je 0x405bbd
sub edi, esi
sar edi, 1
jmp 0x405bf8
call fcn.00406427
test eax, eax
je 0x405bf2
test byte [eax], 0x10
je 0x405bbd
push esi
call fcn.00405ae4
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405be4
call fcn.00405a98
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405c94
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405cb3
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405cb9
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc
Function at 0x700eed6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x700eee5
pop dword [ebp - 0x3c]
mov eax, 0xb5697300
add eax, 0x51977be5
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xcc795f96
sub dword [ebp - 0x4c], 0x7e271a4b
mov dword [ebp - 0x48], 0x475bd6b0
sub dword [ebp - 0x48], 0x15288a6b
mov dword [ebp - 0x44], 0xf5969c6d
sub dword [ebp - 0x44], 0xa94a583f
mov dword [ebp - 0x40], 0x9b34a049
add dword [ebp - 0x40], 0x64cb5fb7
lea eax, [ebp - 0x4c]
push eax
mov eax, 0xa8190206
sub eax, 0xa117d1d6
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x46d40aac
add dword [ebp - 0x4c], 0x2d9e5eaa
mov dword [ebp - 0x48], 0xb47667e8
add dword [ebp - 0x48], 0x8cf5f98d
mov dword [ebp - 0x44], 0x9f56457e
sub dword [ebp - 0x44], 0x3be6d912
mov dword [ebp - 0x40], 0xd4c32ced
add dword [ebp - 0x40], 0x2b3cd313
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0xd8410194
sub eax, 0xd13fd160
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x3bd42
push 0
call eax
mov ecx, 0x4d1d
mov edx, eax
mov esi, 0xde53d898
add esi, 0x28ae2968
add esi, dword [ebp - 0x3c]
mov ebx, 0x1eee34e7
sub ebx, 0xf6701953
add dword [ebp - 0x14], ecx
mov edi, dword [esi]
sub dword [ebp - 0x24], 0x14dea428
sub edi, ebx
mov dword [edx], edi
xor dword [ebp - 0x30], 0x20642d5d
add edx, 0xff4c5f60
add edx, 0xb3a0a4
add esi, 4
loop 0x700f001
add eax, 0xd60e28c9
sub eax, 0xd60d0182
mov ebx, eax
add eax, 5
mov ecx, 0x88ab2919
sub ecx, 0x81ab2919
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x403992
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
jbe 0x4039e2
push ebx
mov ebx, dword [esp + 0x14]
and ebx, 1
mov al, byte [esi + ebp]
mov ecx, 0x47a958
xor al, 0x73
sub al, 0x58
push ebx
mov byte [esi + ebp], al
call fcn.00402696
push eax
call fcn.00401e6b
mov al, byte [esi + ebp]
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 [esi + ebp], al
inc esi
pop ecx
cmp esi, dword [esp + 0x14]
jb 0x4039a8
pop ebx
pop esi
pop ebp
ret

Function at 0x4046c6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x479700]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x425390
lea ecx, [ebp - 0x1c]
call fcn.00402057
push 0xc
call fcn.00407dde
pop ecx
test eax, eax
je 0x4046fd
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.00402109
jmp 0x4046ff
xor eax, eax
mov eax, dword [eax + 4]
shl eax, 2
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0x40
push 0x4ac
push 0x479230
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
call dword [sym.imp.KERNEL32.DLL_FreeConsole]
call fcn.00403969
mov edx, 0x479230
add edx, 0x188
mov esi, 0x430030
push esi
call edx
lea ecx, [ebp - 0x1c]
call fcn.00403767
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00407e1c
leave
ret

Function at 0x408a22
Capabilities:
Parse pe header

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

Function at 0x417ced
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4292d0
push 0x4292c8
push 0x426e14
push 0x1e
call fcn.00417b5a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417d21
push dword [ebp + 8]
mov ecx, esi
call dword [0x425138]
call esi
jmp 0x417d27
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x419f56
Capabilities:
Read file on windows

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

Function at 0x419f61
Capabilities:
Read file on windows

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

Function at 0x41a35b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408b90
mov eax, dword [0x479700]
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.00417566
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41a39d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41a4f9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00424250
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 + 0x47b208]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041b52b
mov ecx, dword [esi*4 + 0x47b208]
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 0x41a4f2
cmp eax, dword [edi + ecx + 0x24]
jne 0x41a4f2
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 0x41a4f2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041b52b
add esp, 0x14
test edx, edx
jl 0x41a4f2
jg 0x41a468
test eax, eax
jb 0x41a4f2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41a4f2
jl 0x41a482
cmp dword [ebp - 0x1008], eax
ja 0x41a4f2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41a4a0
test ebx, ebx
je 0x41a4d9
cmp ecx, edi
jae 0x41a4d9
mov al, byte [ecx]
cmp al, 0xd
jne 0x41a4ba
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41a4c6
cmp byte [ecx + 1], 0xa
jne 0x41a4c6
inc ecx
jmp 0x41a4c6
movzx eax, al
movsx eax, byte [eax + 0x4799c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41a4a0
cmp edx, ebx
jne 0x41a4a0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41a4f7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407e1c
leave
ret
Function at 0x41a9c9
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 + 0x47b208]
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 0x41aa09
cmp byte [ebx], 0xa
jne 0x41aa09
or byte [eax + edi + 0x28], 4
jmp 0x41aa0e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41ab0c
mov al, byte [edx]
cmp al, 0x1a
je 0x41aaee
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41aa3d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41aa62
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41aa6c
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 0x41aa1f
jmp 0x41ab0c
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 0x41aae9
cmp dword [ebp - 0xc], 0
je 0x41aae9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47b208]
test byte [eax + edi + 0x28], 0x48
je 0x41aac3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41aaae
mov byte [esi], dl
jmp 0x41aabf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47b208]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ab0c
cmp byte [ebp - 1], 0xa
jne 0x41aad2
cmp esi, ebx
jne 0x41aad2
mov byte [esi], 0xa
jmp 0x41ab0b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041b549
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ab0c
mov byte [esi], 0xd
jmp 0x41ab0b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47b208]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ab08
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ab0c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ab15
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 + 0x47b208]
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 0x41ab58
cmp word [esi], dx
jne 0x41ab58
or byte [edi + eax + 0x28], 4
jmp 0x41ab5d
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 0x41acb0
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 0x41ac90
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41ab9f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41abd5
cmp eax, edx
jae 0x41abe1
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 0x41ab77
jmp 0x41acb0
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 0x41ac8c
cmp dword [ebp - 0x14], 0
je 0x41ac8c
mov eax, dword [ebx*4 + 0x47b208]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41ac64
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41ac2d
mov word [esi], cx
jmp 0x41ac60
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47b208]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47b208]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47b208]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41acb0
pop ebx
cmp word [ebp - 4], bx
jne 0x41ac75
cmp esi, dword [ebp + 0xc]
jne 0x41ac75
mov word [esi], bx
jmp 0x41acad
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041b549
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41acb0
push 0xd
jmp 0x41aca9
mov ecx, dword [ebx*4 + 0x47b208]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41aca7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41acb0
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