joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10026a7
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
inc eax
cmp dword [0x1005338], eax
mov dword [ebp - 8], 0x37
mov dword [ebp - 0xc], eax
jl 0x100272a
push ebx
push esi
mov ebx, 0x1005360
xor esi, esi
inc esi
cmp dword [0x1005334], esi
mov dword [ebp - 4], 0xc
jl 0x1002713
push 0xcc0020
xor eax, eax
mov al, byte [ebx + esi]
push 0
push 0
and eax, 0x1f
push dword [eax*4 + 0x1005a20]
push 0x10
push 0x10
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_BitBlt]
add dword [ebp - 4], 0x10
inc esi
cmp esi, dword [0x1005334]
jle 0x10026db
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], 0x10
add ebx, 0x20
cmp eax, dword [0x1005338]
jle 0x10026c9
pop esi
pop ebx
leave
ret 4

Function at 0x1002d55
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [eax*4 + 0x10050d0]
push dword [0x1005950]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x1002d7a
Capabilities:
Set registry value

Disassembly:
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0xc]
mov eax, dword [esp + 0xc]
push 1
push 0
push dword [eax*4 + 0x10050d0]
push dword [0x1005950]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x10040fb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x10013b0
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1004153
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x10013ec
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1004146
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1004155
xor eax, eax
pop esi
leave
ret 4
Function at 0x42c0f0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x42c115
xor eax, eax
jmp 0x42c16c
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
jne 0x42c12a
xor eax, eax
jmp 0x42c16c
push ebp
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
call fcn.0042bb60
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0x3000
mov dword [ebp - 4], 0x40
mov dword [ebp - 8], 0
push str.VirtualAlloc
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42e0fc], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [0x42e0fc]
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
call 0x43100c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x431030
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
popal
nop
nop
nop
nop
jmp loc.00401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x45cbb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x431015
lea edi, [esi - 0x30015]
push edi
or ebp, 0xffffffff
jmp 0x45cbd2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45cbd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45cbc8
mov eax, 1
add ebx, ebx
jne 0x45cbeb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45cbe0
jne 0x45cbfc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45cbe0
xor ecx, ecx
sub eax, 3
jb 0x45cc10
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45cc82
mov ebp, eax
add ebx, ebx
jne 0x45cc1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x45cc28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x45cc4c
inc ecx
add ebx, ebx
jne 0x45cc38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45cc2d
jne 0x45cc49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45cc2d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45cc6c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45cc5d
jmp 0x45cbce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45cc6c
add edi, ecx
jmp 0x45cbce
pop esi
lea edi, [esi + 0x2e000]
mov ecx, 0x18
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45cc8e
cmp byte [edi], 0
jne 0x45cc8e
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 0x45cc93
lea edi, [esi + 0x5a000]
mov eax, dword [edi]
or eax, eax
je 0x45cd02
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x62074]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x620cc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45ccc0
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x620d4]
or eax, eax
je 0x45ccfc
mov dword [ebx], eax
add ebx, 4
jmp 0x45ccdd
call dword [esi + 0x620d0]
mov ebp, dword [esi + 0x620d8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x45cd36
sub esp, 0xffffff80
jmp 0x42f180
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, 0x4e235d5
add eax, 0xfb5dde6e
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xd4fb578f
add dword [ebp - 0x34], 0x7956edbc
mov dword [ebp - 0x30], 0xa07c96d1
sub dword [ebp - 0x30], 0x6e494a8c
mov dword [ebp - 0x2c], 0x8953a206
sub dword [ebp - 0x2c], 0x3d075dd8
mov dword [ebp - 0x28], 0xbc021338
add dword [ebp - 0x28], 0x43fdecc8
lea eax, [ebp - 0x34]
push eax
mov eax, 0xde53e3c9
sub eax, 0xde1362c5
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x8d3ca41d
add dword [ebp - 0x34], 0xe735c539
mov dword [ebp - 0x30], 0xc2bad64b
sub dword [ebp - 0x30], 0x814e74d6
mov dword [ebp - 0x2c], 0x477266cb
add dword [ebp - 0x2c], 0x1bfd05a1
mov dword [ebp - 0x28], 0x8382ec7f
sub dword [ebp - 0x28], 0x8382ec7f
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0xb51498ea
sub eax, 0xb4d417ea
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3aa16
push 0
call eax
mov ecx, 0x5003582d
sub ecx, 0x500306d1
mov esi, eax
mov edx, 0x535f499d
add edx, 0xace79a63
add edx, dword [ebp - 0x24]
mov edi, 0x3206211a
mov dword [ebp - 0x14], 0xff2e4e34
mov ebx, dword [edx]
xor dword [ebp - 0xc], 0xcef3d740
sub ebx, edi
add dword [ebp - 8], 0x3c60b0eb
mov dword [esi], ebx
sub dword [ebp - 0x18], ecx
add esi, 0xa6760485
add esi, 0x5989fb7f
add edx, 0xeedfc89c
sub edx, 0xeedfc898
loop 0x40155f
add eax, 0x13843
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
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 0x404700
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x30
mov eax, dword [0x43601c]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x10], ebx
mov eax, dword [ebx + 0x3c]
push edi
mov dword [esp + 0x18], 0
mov ecx, dword [eax + ebx + 0x78]
mov eax, dword [ecx + ebx + 0x20]
add ecx, ebx
mov dword [esp + 0x20], ecx
add eax, ebx
mov dword [esp + 0x10], eax
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x40489b
mov edi, dword [esp + 0x48]
nop
mov edx, dword [eax]
xorps xmm0, xmm0
add edx, ebx
mov dword [esp + 0x34], 0
mov eax, edx
mov dword [esp + 0x38], 0
movups xmmword [esp + 0x24], xmm0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404771
sub eax, esi
lea ecx, [esp + 0x24]
push eax
push edx
call fcn.00401350
test ebx, ebx
je 0x40484b
cmp edi, 3
jbe 0x40484b
mov edi, dword [esp + 0x34]
lea ebx, [esp + 0x24]
mov esi, edi
xor esi, 0x14d
cmp dword [esp + 0x38], 0x10
cmovae ebx, dword [esp + 0x24]
push ebx
shr edi, 2
push edi
push str._x_and__p
call fcn.00407f10
add esp, 0xc
xor edx, edx
test edi, edi
je 0x4047f1
nop dword [eax + eax]
imul ecx, dword [ebx + edx*4], 0x5bd1e991
inc edx
imul esi, esi, 0x5bd1e991
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e991
xor esi, ecx
cmp edx, edi
jl 0x4047d0
mov eax, dword [esp + 0x34]
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x40481b
sub eax, 1
je 0x404811
sub eax, 1
jne 0x404829
movsx ecx, byte [ebx + edi*4 + 2]
shl ecx, 0x10
movsx eax, byte [ebx + edi*4 + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [ebx + edi*4]
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor esi, eax
mov edi, dword [esp + 0x48]
mov eax, esi
shr eax, 0xd
xor eax, esi
imul eax, eax, 0x5bd1e991
mov ecx, eax
shr ecx, 0xf
xor ecx, eax
je 0x404847
cmp ecx, edi
je 0x4048b4
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
add eax, 4
mov dword [esp + 0x10], eax
cmp ecx, 0x10
jb 0x404890
mov edx, dword [esp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404882
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404907
push ecx
push edx
call fcn.0040a3d5
mov eax, dword [esp + 0x18]
add esp, 8
inc ebp
cmp ebp, dword [esp + 0x1c]
jb 0x404750
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
add eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a3e8
add esp, 0x30
ret
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov eax, dword [edx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + ebx]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x38]
cmp ecx, 0x10
jb 0x40489b
mov edx, dword [esp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4048fb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404907
push ecx
push edx
call fcn.0040a3d5
add esp, 8
jmp 0x40489b
call fcn.0040ebcf
int3
Function at 0x409905
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 0x409926
jl 0x40991d
test edi, edi
jne 0x409926
xor eax, eax
xor edx, edx
jmp 0x4099e7
cmp dword [ebx + 0x38], 0
je 0x40993b
push eax
push edi
push dword [ebp + 8]
call fcn.004099ed
jmp 0x4099e7
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x409982
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x409982
cmp eax, edi
jb 0x40995c
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040b400
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 0x409988
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4099dc
mov ecx, ebx
call fcn.0040916d
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4099c7
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00412d16
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 0x4099dc
jmp 0x40999a
test edx, edx
je 0x4099dc
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00412d16
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 0x40ab8a
Capabilities:
Parse pe header

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

Function at 0x418a2a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c3ac
push 0x42c3a4
push str.FlsAlloc
push 0x1e
call fcn.00418857
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418a5e
push dword [ebp + 8]
mov ecx, esi
call dword [0x428154]
call esi
jmp 0x418a64
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x418aa8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c3bc
push 0x42c3b4
push str.FlsGetValue
push 0x20
call fcn.00418857
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418adf
push dword [ebp + 8]
mov ecx, esi
call dword [0x428154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41c1b7
Capabilities:
Read file on windows

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

Function at 0x41c5b1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040af00
mov eax, dword [0x43601c]
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.00419fb7
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41c5f3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41c74f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004270d0
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 + 0x437b90]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041d5a8
mov ecx, dword [esi*4 + 0x437b90]
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 0x41c748
cmp eax, dword [edi + ecx + 0x24]
jne 0x41c748
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 0x41c748
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041d5a8
add esp, 0x14
test edx, edx
jl 0x41c748
jg 0x41c6be
test eax, eax
jb 0x41c748
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41c748
jl 0x41c6d8
cmp dword [ebp - 0x1008], eax
ja 0x41c748
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41c6f6
test ebx, ebx
je 0x41c72f
cmp ecx, edi
jae 0x41c72f
mov al, byte [ecx]
cmp al, 0xd
jne 0x41c710
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41c71c
cmp byte [ecx + 1], 0xa
jne 0x41c71c
inc ecx
jmp 0x41c71c
movzx eax, al
movsx eax, byte [eax + 0x4362b8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41c6f6
cmp edx, ebx
jne 0x41c6f6
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41c74d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a3e8
leave
ret
Function at 0x41ca46
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 + 0x437b90]
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 0x41ca86
cmp byte [ebx], 0xa
jne 0x41ca86
or byte [eax + edi + 0x28], 4
jmp 0x41ca8b
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41cb89
mov al, byte [edx]
cmp al, 0x1a
je 0x41cb6b
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41caba
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41cadf
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41cae9
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 0x41ca9c
jmp 0x41cb89
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 0x41cb66
cmp dword [ebp - 0xc], 0
je 0x41cb66
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x437b90]
test byte [eax + edi + 0x28], 0x48
je 0x41cb40
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41cb2b
mov byte [esi], dl
jmp 0x41cb3c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x437b90]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41cb89
cmp byte [ebp - 1], 0xa
jne 0x41cb4f
cmp esi, ebx
jne 0x41cb4f
mov byte [esi], 0xa
jmp 0x41cb88
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041d5c6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41cb89
mov byte [esi], 0xd
jmp 0x41cb88
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x437b90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41cb85
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41cb89
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41cb92
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 + 0x437b90]
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 0x41cbd5
cmp word [esi], dx
jne 0x41cbd5
or byte [edi + eax + 0x28], 4
jmp 0x41cbda
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 0x41cd2d
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 0x41cd0d
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41cc1c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41cc52
cmp eax, edx
jae 0x41cc5e
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 0x41cbf4
jmp 0x41cd2d
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 0x41cd09
cmp dword [ebp - 0x14], 0
je 0x41cd09
mov eax, dword [ebx*4 + 0x437b90]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41cce1
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41ccaa
mov word [esi], cx
jmp 0x41ccdd
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x437b90]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x437b90]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x437b90]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41cd2d
pop ebx
cmp word [ebp - 4], bx
jne 0x41ccf2
cmp esi, dword [ebp + 0xc]
jne 0x41ccf2
mov word [esi], bx
jmp 0x41cd2a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041d5c6
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41cd2d
push 0xd
jmp 0x41cd26
mov ecx, dword [ebx*4 + 0x437b90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41cd24
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41cd2d
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