joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ed0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x75df29da
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x582f2268
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
popal
nop
nop
nop
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
je 0x431072
nop
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x1a2a4b93
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x431060
nop
nop
mov eax, section..reloc
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x3b107e42
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x10081be8
Capabilities:
Execute anti-debugging instructions

Disassembly:
push eax
jmp 0x100821e6
push word [esp + 2]
lea ecx, [ebx*4]
lea esp, [esp + 2]
mov dword [esp + 0x20], ebp
jmp 0x100821ac
pushal
pushfd
jmp 0x10082131
jmp 0x10082103
call 0x100820d7
dec edx
iretd
mov eax, dword [ebp - 4]
jmp 0x10081be2
popal
rdtsc
bswap edx
jmp 0x1008201a
pushal
lea ecx, [eax + 0x99]
xchg dl, bl
lea ebp, [ecx + esi]
mov dl, byte [esp]
mov dword [esp + 0x10], eax
jmp 0x10081fc0
cdq
lea ebx, [eax + edi]
mov bx, 0x198
sub eax, edx
jmp 0x10081fd6
mov edx, dword [eax + ebx*4]
mov ax, 0x90f2
push edx
mov dword [esp], ebp
jmp 0x1008204c
mov eax, dword [ebp - 0x10]
sar ebx, 1
setg dl
neg dx
jmp 0x10082004
mov edi, ebp
lea edi, [edi + 0xc]
mov eax, dword [edi]
pop edi
jmp 0x10082035
call 0x1003c552
push bx
lea esp, [esp + 2]
jmp 0x10082058
lea esp, [esp + 4]
add edx, dword [ebp + 8]
mov ah, 0xd0
push edi
jmp 0x10082027
test eax, eax
je 0x10081c22
mov cl, ch
stc
jmp 0x10082069
mov ecx, 0xb75eb3a8
mov ecx, dword [ebp - 8]
jmp 0x10082148
xchg dh, bl
add eax, ecx
rcr dx, cl
mov bx, si
jmp 0x10081ff8
mov dword [ebp - 4], ebx
jmp 0x100820ed
jle 0x10081c4f
dec ebx
push edi
jmp 0x10082093
push word [esp + 1]
lea esp, [esp + 3]
lea esp, [esp + 0x10]
test eax, eax
jmp 0x100820a9
lea esp, [esp + 4]
jmp 0x10081c38
mov eax, dword [ebp - 4]
jmp 0x10082123
cmp dword [ebp - 8], eax
jle 0x10081c65
jmp 0x10081c0c
push ebx
mov ebx, ebp
jmp 0x10082171
cmp ecx, dword [ebp - 4]
je 0x10081c0c
sub esp, 0xf
push ax
jmp 0x100820c6
lea ebx, [ebx - 0xc]
mov eax, dword [ebx]
pop ebx
lea edi, reloc.KERNEL32.dll_WriteProcessMemory
call 0x1008215b
push edi
mov edi, ebx
lea edi, [edi + edi]
jmp 0x100821bc
mov edi, esi
add edi, 0x1c
mov ecx, dword [edi]
pop edi
jmp 0x100821c6
mov eax, dword [ebp + 8]
bsr edi, ebx
mov di, word [esp]
jmp 0x10082212
lea esp, [esp + 4]
popal
lea eax, [eax - 8]
mov ecx, dword [eax]
pop eax
jmp 0x10082084
lea edi, [eax + edi]
movzx eax, word [edi]
pop edi
push edi
jmp 0x1008218b
lea esp, [esp + 0x28]
lea ecx, [ecx + eax*4]
mov di, sp
mov ah, 0x9d
jmp 0x10082195
pushal
rdtsc
call fcn.10081be8
add edi, eax
lea esp, [esp + 4]
jne 0x10081bcc
je 0x10081c0c
dec ebx
ret 0x3750
mov edi, dword [eax + ecx]
push ecx
push ax
lea esp, [esp + 2]
jmp 0x100821ee

Function at 0x100d65f5
Capabilities:
Access peb ldr_data
Execute anti-debugging instructions

Disassembly:
jmp 0x100d662c
lea esp, [esp + 6]
lea esp, [esp + 2]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], edi
lea esp, [esp + 0x48]
jmp 0x100d667e
mov dword [esp + 0x38], ebp
pushal
mov byte [esp + 0x19], ah
mov dword [esp + 5], esi
mov dword [esp + 0x17], esi
mov byte [esp + 4], dh
jmp 0x100d65f7
mov eax, dword [eax]
mov eax, dword [eax + 8]
jmp 0x100d664e
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x100d6664
Function at 0x410c70
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4025e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x70
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401f20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.00404fd8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x64]
push eax
push 0x28
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00405038
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x70], 0
setne dl
neg edx
movsx eax, dx
test eax, eax
je 0x410e25
mov dword [ebp - 4], 4
xor ecx, ecx
test ecx, ecx
je 0x410d46
mov dword [ebp - 4], 6
mov dword [ebp - 0x6c], 0x1c
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0x1c
lea ecx, [ebp - 0x60]
push ecx
push 0
mov edx, dword [ebp - 0x64]
push edx
call fcn.00405088
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
jmp 0x410e25
mov dword [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
push 0x404ae4
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0
call fcn.004050e8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x6c], 0
setne dl
neg edx
mov word [ebp - 0x74], dx
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0x74]
test eax, eax
je 0x410e25
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x60], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410dc3
invalid
test dword [edi + edi*8 - 1], esi
inc dword [eax]
invalid
Function at 0x411590
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x411525
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x411543
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4115a1
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x411588
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x411591
or byte [eax + ecx], 2
add bh, byte [ecx]
pop ebp
adc byte [ebp + eax + 3], dh
enter 0x980, 4
cmp dword [ebp + 0x10], ebx
je 0x41159b
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x41157d
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x411507
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4115ee
dec eax
je 0x4115e5
sub eax, 3
je 0x4115dc
mov dword [ebp - 4], 0x40
jmp 0x41160b
mov dword [ebp - 4], 4
jmp 0x4115f1
mov dword [ebp - 4], 0x20
jmp 0x4115f1
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x41163d
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4115bd
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00410e4e
invalid
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10024a30
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084c70
mov eax, dword fs:[0]
push eax
mov eax, 0x1170
call fcn.10030d40
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x117c]
mov ecx, 0x45c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x100a2784]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1120], 0
push 0x10087ea3
lea ecx, [ebp - 0x1048]
call fcn.10002170
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x350], 0xffffffff
je 0x10024b6d
push 0x1000
push 0
lea eax, [ebp - 0x1020]
push eax
call fcn.100338b0
add esp, 0xc
mov esi, esp
push 0
push 0x1000
lea eax, [ebp - 0x1020]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x350]
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp esi, esp
call fcn.1002ec40
mov dword [ebp - 0x1054], eax
cmp dword [ebp - 0x1054], 0
jle 0x10024b6d
lea eax, [ebp - 0x1020]
push eax
lea ecx, [ebp - 0x1148]
call fcn.10002170
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1054]
push ecx
push 0
lea edx, [ebp - 0x1148]
push edx
lea ecx, [ebp - 0x1170]
call fcn.10028440
mov dword [ebp - 0x1178], eax
mov eax, dword [ebp - 0x1178]
mov dword [ebp - 0x117c], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x117c]
push ecx
lea ecx, [ebp - 0x1048]
call fcn.1001dac0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1170]
call fcn.10002220
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1148]
call fcn.10002220
lea eax, [ebp - 0x1048]
push eax
mov ecx, dword [ebp + 8]
call fcn.100107c0
mov ecx, dword [ebp - 0x1120]
or ecx, 1
mov dword [ebp - 0x1120], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1048]
call fcn.10002220
mov eax, dword [ebp + 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x10024bdc]
call fcn.1002ec70
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002f700
add esp, 0x117c
cmp ebp, esp
call fcn.1002ec40
mov esp, ebp
pop ebp
ret 4

Function at 0x100253b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
lea edi, [ebp - 0xcc]
mov ecx, 0x33
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc8], 0
mov esi, esp
push str.._Config1.txt
push 0xff
push 0x100a3f90
push str.148.251.64.98
push 0x1008a5c8
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp esi, esp
call fcn.1002ec40
push 0x100a3f90
mov ecx, dword [ebp + 8]
call fcn.10002170
mov eax, dword [ebp - 0xc8]
or eax, 1
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
add esp, 0xcc
cmp ebp, esp
call fcn.1002ec40
mov esp, ebp
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
mov ecx, 0x7e7560db
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..text_1
nop
nop
mov ebx, 0x42e3d0
mov ecx, 0x33291985
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x404cbe
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 0x404cdf
jl 0x404cd6
test edi, edi
jne 0x404cdf
xor eax, eax
xor edx, edx
jmp 0x404da0
cmp dword [ebx + 0x38], 0
je 0x404cf4
push eax
push edi
push dword [ebp + 8]
call fcn.00404da6
jmp 0x404da0
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x404d3b
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x404d3b
cmp eax, edi
jb 0x404d15
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00406b80
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 0x404d41
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x404d95
mov ecx, ebx
call fcn.00404493
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x404d80
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040b9b4
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 0x404d95
jmp 0x404d53
test edx, edx
je 0x404d95
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040b9b4
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 0x40636f
Capabilities:
Parse pe header

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

Function at 0x410d1a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43e738
push 0x43e730
push str.FlsAlloc
push 0x1f
call fcn.00410b85
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410d4e
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d130]
call esi
jmp 0x410d54
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x410d98
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43e748
push 0x43e740
push str.FlsGetValue
push 0x21
call fcn.00410b85
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410dcf
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x410dd7
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43e750
push 0x43e748
push str.FlsSetValue
push 0x22
call fcn.00410b85
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410e11
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41d130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4134e5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004064e0
mov eax, dword [0x445040]
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.0041212c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x413527
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x413683
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041c480
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 + 0x446ad8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004144e2
mov ecx, dword [esi*4 + 0x446ad8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x41367c
cmp eax, dword [ecx + edi + 0x24]
jne 0x41367c
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41367c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004144e2
add esp, 0x14
test edx, edx
jl 0x41367c
jg 0x4135f2
test eax, eax
jb 0x41367c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41367c
jl 0x41360c
cmp dword [ebp - 0x1008], eax
ja 0x41367c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41362a
test ebx, ebx
je 0x413663
cmp ecx, edi
jae 0x413663
mov al, byte [ecx]
cmp al, 0xd
jne 0x413644
lea eax, [edi - 1]
cmp ecx, eax
jae 0x413650
cmp byte [ecx + 1], 0xa
jne 0x413650
inc ecx
jmp 0x413650
movzx eax, al
movsx eax, byte [eax + 0x445310]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41362a
cmp edx, ebx
jne 0x41362a
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x413681
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00405780
leave
ret
Function at 0x41397a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x446ad8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4139ba
cmp byte [ebx], 0xa
jne 0x4139ba
or byte [edi + eax + 0x28], 4
jmp 0x4139bf
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x413abe
mov dl, byte [eax]
cmp dl, 0x1a
je 0x413aa1
inc eax
cmp dl, 0xd
je 0x4139eb
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x413a11
cmp eax, ecx
jae 0x413a1f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4139d3
jmp 0x413abe
push 0
lea eax, [ebp - 0x10]
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 0x413a9c
cmp dword [ebp - 0x10], 0
je 0x413a9c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x446ad8]
test byte [eax + edi + 0x28], 0x48
je 0x413a76
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x413a61
mov byte [esi], dl
jmp 0x413a72
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x446ad8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x413abe
cmp byte [ebp - 1], 0xa
jne 0x413a85
cmp esi, ebx
jne 0x413a85
mov byte [esi], 0xa
jmp 0x413abd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00414500
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x413abe
mov byte [esi], 0xd
jmp 0x413abd
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x446ad8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x413abb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x413abe
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x413ac7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x446ad8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x413b0d
cmp word [ebx], dx
jne 0x413b0d
or byte [eax + edi + 0x28], 4
jmp 0x413b12
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x413c75
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x413c55
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x413b53
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x413b89
cmp eax, edx
jae 0x413b97
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x413b2e
jmp 0x413c75
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413c50
cmp dword [ebp - 0x18], 0
je 0x413c50
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x446ad8]
test byte [eax + edi + 0x28], 0x48
je 0x413c26
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x413bea
mov word [esi], cx
jmp 0x413c21
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x446ad8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x446ad8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x446ad8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x413c75
pop eax
cmp word [ebp - 4], ax
jne 0x413c36
cmp esi, ebx
jne 0x413c36
mov word [esi], ax
jmp 0x413c72
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00414500
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x413c75
push 0xd
pop eax
jmp 0x413c31
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x446ad8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x413c6f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x413c75
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret