joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010af0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [0x1011e2e4]
push edi
cmp esi, dword [0x1011e2e8]
je 0x10010bbe
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
nop
cmp byte [esi], 2
jne 0x10010b2e
lea eax, [ebp - 4]
push eax
lea ecx, [esi + 1]
push ecx
xor ebx, ebx
push closesocket
mov dword [ebp - 4], ebx
call edi
cmp dword [ebp - 4], ebx
jne 0x10010b43
add esi, 0x105
cmp esi, dword [0x1011e2e8]
jne 0x10010b10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x1011e2e8]
mov esi, dword [0x1011e2e4]
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10010ba6
xor edi, edi
cmp byte [edi + esi], 2
jne 0x10010b82
lea ecx, [edi + esi + 1]
push ecx
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov esi, dword [0x1011e2e4]
mov ecx, dword [0x1011e2e8]
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
add edi, 0x105
cmp ebx, eax
jb 0x10010b66
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 6
call fcn.100032d0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10010d20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10010ec0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10010de4
cmp dword [ebp - 4], 0x50000000
jb 0x10010d61
cmp dword [ebp - 4], 0x80000000
ja 0x10010d61
mov dword [ebp - 4], 0x4fff0000
jmp 0x10010d3a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10010d87
jmp 0x10010de4
cmp dword [ebp - 0x14], 0x10000
jne 0x10010dca
cmp dword [ebp - 0x18], 0x10000
jb 0x10010dca
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10010dbd
mov eax, dword [ebp - 8]
jmp 0x10010de6
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10010ddf
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10010ec0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10010d3a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10010df0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10010ef0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10010eac
cmp dword [ebp - 4], 0x50000000
jb 0x10010e2c
cmp dword [ebp - 4], 0x80000000
ja 0x10010e2c
mov dword [ebp - 4], 0x80010000
jmp 0x10010e05
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10010e52
jmp 0x10010eac
cmp dword [ebp - 0x14], 0x10000
jne 0x10010e95
cmp dword [ebp - 0x18], 0x10000
jb 0x10010e95
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10010e88
mov eax, dword [ebp - 8]
jmp 0x10010eae
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10010ea7
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10010ef0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10010e05
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10011620
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x10011635
xor eax, eax
jmp 0x100116aa
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 0x10000
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x10011662
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x38d
jae 0x100116a5
mov edx, dword [ebp - 4]
imul edx, edx, 0x48
mov eax, dword [ebp - 8]
cmp dword [eax + edx + 0x40], 0
je 0x100116a3
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0xc]
jb 0x1001169f
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0x10]
jb 0x100116a3
xor eax, eax
jmp 0x100116aa
jmp 0x10011659
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10011870
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10123b10]
mov dword [ebp - 4], eax
jmp 0x10011889
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x100118a6
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10011880
mov esp, ebp
pop ebp
ret
Function at 0x10011cf0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10123b20], eax
je 0x10011d0e
mov eax, 0x10dd
jmp 0x10011def
mov eax, dword [0x10123b30]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10011d8c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x10011d6a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x10011d6a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10011390
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10011d16
mov dword [0x10123b30], 0
call fcn.100116b0
mov ecx, dword [0x10123b2c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10011dd9
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10011da4
mov dword [0x10123b2c], 0
mov dword [0x10123b20], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100122e0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10123b24], 0
je 0x100122f9
mov eax, dword [0x10123b24]
jmp 0x10012399
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x1001230b
xor eax, eax
jmp 0x10012399
push 8
call fcn.10012e08
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10012361
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1001234a
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10123b24], eax
mov dword [0x10123b28], 0
mov eax, dword [ebp - 8]
jmp 0x10012399
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1001237b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1001232b
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10123b2c]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10123b2c], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x10012cf4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001e018]
jne 0x10012cfe
repz ret
jmp fcn.10013237
Function at 0x51dea0
Capabilities:
Terminate process

Disassembly:
test byte [0x5cc2e8], 0x20
jne 0x51debe
vmovq xmm0, xmm0
vcvttpd2qq xmm0, xmm0
vmovd eax, xmm0
vpextrd edx, xmm0, 1
ret
mov ecx, esp
add esp, 0xfffffff8
and esp, 0xfffffff8
movsd qword [esp], xmm0
mov eax, dword [esp]
mov edx, dword [esp + 4]
mov esp, ecx
btr edx, 0x1f
sbb ecx, ecx
cmp edx, 0x41e00000
jae 0x51df1e
cvttsd2si eax, xmm0
cdq
ret
mov ecx, edx
bts edx, 0x14
shr ecx, 0x14
and edx, 0x1fffff
sub ecx, 0x433
jge 0x51df18
neg ecx
push ebx
xor ebx, ebx
shrd ebx, eax, cl
je 0x51df11
cvttss2si ebx, dword [0x532bec]
pop ebx
shrd eax, edx, cl
shr edx, cl
ret
shld edx, eax, cl
shl eax, cl
ret
cmp edx, 0x43e00000
jae 0x51df37
test ecx, ecx
je 0x51dee8
call 0x51dee8
neg eax
adc edx, 0
neg edx
ret
jecxz 0x51df3f
ja 0x51df3f
test eax, eax
je 0x51df47
cvttss2si ecx, dword [0x532be8]
mov edx, SysReAllocStringLen
xor eax, eax
ret

Function at 0x51e623
Capabilities:
Parse pe header

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

Function at 0x52adc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x52aded
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x52aded
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x48a3b2
Capabilities:
Parse pe header

Disassembly:
pushal
xor edx, edx
mov esi, dword fs:[edx]
lodsd eax, dword [esi]
cmp eax, 0xffffffff
je 0x48a3c2
mov esi, eax
jmp 0x48a3b8
mov edi, dword [esi + 4]
and edi, 0xffff0000
cmp word [edi], 0x5a4d
je 0x48a3da
sub edi, 0x10000
jmp 0x48a3cb
mov ebx, edi
add ebx, dword [ebx + 0x3c]
cmp word [ebx], 0x4550
je 0x48a3e8
jmp 0x48a3cb
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x48a3ee
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
pushal
mov ebx, dword [esp + 0x24]
mov ecx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
add ebx, ecx
mov edi, dword [ebx + 0x20]
add edi, ecx
xor esi, esi
lea edx, [edi + esi*4]
mov edx, dword [edx]
add edx, ecx
xor eax, eax
rol eax, 7
xor al, byte [edx]
inc edx
cmp byte [edx], 0
jne 0x48a40d
cmp eax, dword [esp + 0x28]
je 0x48a424
inc esi
cmp esi, dword [ebx + 0x18]
jb 0x48a404
mov edx, dword [ebx + 0x24]
add edx, ecx
movzx edx, word [edx + esi*2]
mov eax, dword [ebx + 0x1c]
add eax, ecx
mov eax, dword [eax + edx*4]
add eax, ecx
mov dword [esp + 0x1c], eax
popal
ret 8
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x40c279
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x40c288
pop dword [ebp - 0x50]
mov eax, 0x7f8c623
add eax, 0xf847fc65
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xcc966b68
add dword [ebp - 0x60], 0x81bbd9e3
mov dword [ebp - 0x5c], 0x7d851ce8
add dword [ebp - 0x5c], 0xb4ae2f5d
mov dword [ebp - 0x58], 0x639bff13
add dword [ebp - 0x58], 0xe8b0451b
mov dword [ebp - 0x54], 0xb5c86f24
add dword [ebp - 0x54], 0x4a3790dc
lea eax, [ebp - 0x60]
push eax
mov eax, 0x5ce5a2b3
add eax, 0xa35c8dc1
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x6f2c2549
add dword [ebp - 0x60], 0x546440d
mov dword [ebp - 0x5c], 0x4dac7db9
sub dword [ebp - 0x5c], 0xc401c44
mov dword [ebp - 0x58], 0x441c8abe
sub dword [ebp - 0x58], 0xe0ad1e52
mov dword [ebp - 0x54], 0xd50669b5
sub dword [ebp - 0x54], 0xd50669b5
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x29fdfa16
add eax, 0xd644370e
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x40253
push 0
call eax
mov ecx, 0x245d20a
sub ecx, 0x2458034
xor edi, edi
add edi, eax
mov ebx, 0x81956b25
add ebx, 0x7eadd8db
add ebx, dword [ebp - 0x50]
mov esi, 0xdb18252e
mov dword [ebp - 0x4c], 0x290a199c
mov edx, dword [ebx]
mov dword [ebp - 0x40], 0xcae76d19
sub edx, esi
mov dword [ebp - 0x10], 0xc3d74b40
mov dword [edi], edx
xor dword [ebp - 0x44], 0xe296fb28
add edi, 0x3a8ac921
sub edi, 0x3a8ac91d
add ebx, 4
loop 0x40c3a6
add eax, 0x13a2b
xor ebx, ebx
add ebx, eax
add eax, 0x6acd4621
sub eax, 0x6acd461c
mov ecx, 0x2b5e0ccc
sub ecx, 0x2b1e0ccc
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x409809
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 0x40982a
jl 0x409821
test edi, edi
jne 0x40982a
xor eax, eax
xor edx, edx
jmp 0x4098eb
cmp dword [ebx + 0x38], 0
je 0x40983f
push eax
push edi
push dword [ebp + 8]
call fcn.004098f1
jmp 0x4098eb
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x409886
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x409886
cmp eax, edi
jb 0x409860
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040c140
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 0x40988c
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4098e0
mov ecx, ebx
call fcn.004090a3
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4098cb
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004147f3
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 0x4098e0
jmp 0x40989e
test edx, edx
je 0x4098e0
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004147f3
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 0x40bca0
Capabilities:
Parse pe header

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

Function at 0x41af91
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42e910
push 0x42e908
push str.FlsAlloc
push 0x1e
call fcn.0041ae7a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41afc5
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a178]
call esi
jmp 0x41afcb
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41b00f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42e920
push 0x42e918
push str.FlsGetValue
push 0x20
call fcn.0041ae7a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41b046
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a178]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41e855
Capabilities:
Read file on windows

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

Function at 0x41e860
Capabilities:
Read file on windows

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

Function at 0x41ec5a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040c0f0
mov eax, dword [0x480e00]
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.0041c46a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41ec9c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41edf8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004276f0
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 + 0x483720]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041f9f9
mov ecx, dword [esi*4 + 0x483720]
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 0x41edf1
cmp eax, dword [edi + ecx + 0x24]
jne 0x41edf1
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 0x41edf1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041f9f9
add esp, 0x14
test edx, edx
jl 0x41edf1
jg 0x41ed67
test eax, eax
jb 0x41edf1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41edf1
jl 0x41ed81
cmp dword [ebp - 0x1008], eax
ja 0x41edf1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41ed9f
test ebx, ebx
je 0x41edd8
cmp ecx, edi
jae 0x41edd8
mov al, byte [ecx]
cmp al, 0xd
jne 0x41edb9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41edc5
cmp byte [ecx + 1], 0xa
jne 0x41edc5
inc ecx
jmp 0x41edc5
movzx eax, al
movsx eax, byte [eax + 0x4810c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41ed9f
cmp edx, ebx
jne 0x41ed9f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41edf6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040b4e1
leave
ret
Function at 0x41ee97
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 + 0x483720]
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 0x41eed7
cmp byte [ebx], 0xa
jne 0x41eed7
or byte [eax + edi + 0x28], 4
jmp 0x41eedc
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41efda
mov al, byte [edx]
cmp al, 0x1a
je 0x41efbc
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41ef0b
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41ef30
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41ef3a
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 0x41eeed
jmp 0x41efda
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 0x41efb7
cmp dword [ebp - 0xc], 0
je 0x41efb7
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x483720]
test byte [eax + edi + 0x28], 0x48
je 0x41ef91
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ef7c
mov byte [esi], dl
jmp 0x41ef8d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x483720]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41efda
cmp byte [ebp - 1], 0xa
jne 0x41efa0
cmp esi, ebx
jne 0x41efa0
mov byte [esi], 0xa
jmp 0x41efd9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041fa17
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41efda
mov byte [esi], 0xd
jmp 0x41efd9
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x483720]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41efd6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41efda
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41efe3
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 + 0x483720]
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 0x41f026
cmp word [esi], dx
jne 0x41f026
or byte [edi + eax + 0x28], 4
jmp 0x41f02b
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 0x41f17e
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 0x41f15e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41f06d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41f0a3
cmp eax, edx
jae 0x41f0af
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 0x41f045
jmp 0x41f17e
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 0x41f15a
cmp dword [ebp - 0x14], 0
je 0x41f15a
mov eax, dword [ebx*4 + 0x483720]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41f132
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41f0fb
mov word [esi], cx
jmp 0x41f12e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x483720]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x483720]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x483720]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41f17e
pop ebx
cmp word [ebp - 4], bx
jne 0x41f143
cmp esi, dword [ebp + 0xc]
jne 0x41f143
mov word [esi], bx
jmp 0x41f17b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041fa17
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41f17e
push 0xd
jmp 0x41f177
mov ecx, dword [ebx*4 + 0x483720]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f175
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f17e
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