joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5667d0
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
cmp word [edx], 0x5a4d
je 0x5667e0
repz ret
add edx, dword [edx + 0x3c]
cmp dword [edx], 0x4550
jne 0x5667dd
xor eax, eax
cmp word [edx + 0x18], 0x10b
sete al
ret

Function at 0x566800
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x566838
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x56682e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x56683a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x566820
xor eax, eax
pop ebx
pop esi
ret

Function at 0x566d80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6383e4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6383fc]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 4
test ebx, ebx
je 0x566dd5
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x566dce
test esi, esi
je 0x566dce
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x566db0
mov dword [esp], 0x6383e4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x5a6480
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
sub esp, 0x64
lea edx, [esp + 0x2c]
mov dword [esp + 0x44], 0x567468
lea eax, [esp + 0x60]
mov dword [esp], edx
mov dword [esp + 0x48], 0x5c09d8
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0x5a6645
mov dword [esp + 0x54], esp
call sub.libgcc_s_sjlj_1.dll__Unwind_SjLj_Register
mov ecx, dword [esp + 0x74]
cmp dword [esp + 0x70], ecx
je 0x5a663b
mov ebx, dword [esp + 0x70]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x5a660d
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x1c]
mov dword [eax], 0x636300
movzx eax, byte [edx + 4]
sub edx, dword [esp + 0x70]
mov byte [ecx + 4], al
sub ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x78]
mov dword [ebx + 8], 0
mov dword [esp + 0x28], edx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
mov dword [eax + ecx + 0x10], 0
mov dword [eax + ecx + 0xc], 0
mov ecx, dword [esp + 0x70]
mov edx, dword [edx + ecx + 0x14]
mov ecx, dword [esp + 0x20]
mov dword [eax + ecx + 0x14], edx
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x30], 2
add ecx, 8
mov dword [esp], eax
call fcn.005769c0
sub esp, 4
mov edx, dword [ebx + 0xc]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0xc]
cmp edx, eax
cmovbe eax, edx
mov dword [esp + 8], eax
mov eax, dword [ebx + 8]
mov dword [esp + 4], eax
mov eax, dword [ecx + 8]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x78]
mov dword [ebx + 0x18], 0x636468
mov ebx, dword [esp + 0x28]
mov ecx, dword [edx + ebx + 0x1c]
mov ebx, dword [esp + 0x20]
mov dword [eax + ebx + 0x1c], ecx
mov ebx, dword [esp + 0x28]
mov ecx, dword [edx + ebx + 0x20]
mov ebx, dword [esp + 0x20]
mov dword [eax + ebx + 0x20], ecx
mov ebx, dword [esp + 0x28]
mov ecx, dword [edx + ebx + 0x24]
mov ebx, dword [esp + 0x20]
mov dword [eax + ebx + 0x24], ecx
mov ebx, dword [esp + 0x28]
mov ecx, dword [edx + ebx + 0x28]
mov ebx, dword [esp + 0x20]
mov dword [eax + ebx + 0x28], ecx
mov ebx, dword [esp + 0x28]
mov ecx, dword [edx + ebx + 0x2c]
mov ebx, dword [esp + 0x20]
mov dword [eax + ebx + 0x2c], ecx
mov ebx, dword [esp + 0x28]
mov ecx, dword [edx + ebx + 0x30]
add edx, 0x18
mov ebx, dword [esp + 0x20]
mov dword [eax + ebx + 0x30], ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + edx + 0x1c]
mov dword [eax + ebx + 0x34], edx
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x38]
mov dword [edx + 0x38], eax
add dword [esp + 0x24], 0x3c
add dword [esp + 0x1c], 0x3c
mov edx, dword [esp + 0x24]
cmp dword [esp + 0x74], edx
jne 0x5a64d3
lea edx, [esp + 0x2c]
mov dword [esp], edx
call sub.libgcc_s_sjlj_1.dll__Unwind_SjLj_Unregister
mov eax, dword [esp + 0x1c]
add esp, 0x64
pop ebx
pop ebp
ret
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x1c], ecx
jmp 0x5a6625
Function at 0x5a67e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
sub esp, 0x68
lea edx, [esp + 0x2c]
mov dword [esp + 0x44], 0x567468
lea eax, [esp + 0x60]
mov dword [esp], edx
mov dword [esp + 0x48], 0x5c11e4
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0x5a69b8
mov dword [esp + 0x54], esp
call sub.libgcc_s_sjlj_1.dll__Unwind_SjLj_Register
mov ecx, dword [esp + 0x74]
cmp dword [esp + 0x70], ecx
je 0x5a69ae
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x78]
add eax, 0x3c
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x70]
add edx, 0x2c
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
nop
lea esi, [esi]
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x5a6977
mov edx, dword [esp + 0x18]
mov dword [esp + 0x30], 1
mov ecx, dword [esp + 0x1c]
mov dword [esp], edx
call fcn.00592130
sub esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x70]
sub eax, dword [esp + 0x70]
mov dword [ecx], 0
mov dword [ecx + 8], 0
mov dword [ecx + 4], 0
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
mov eax, dword [eax + edx + 0x38]
mov edx, dword [esp + 0x20]
add ecx, 0x2c
mov dword [edx + 0xc], eax
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x30]
mov dword [esp + 0x30], 3
mov dword [esp], eax
call fcn.005769c0
sub esp, 4
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x30]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x30]
mov ecx, dword [esp + 0x20]
cmp edx, eax
cmovbe eax, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 8], eax
mov eax, dword [edx + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ecx]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x70]
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov eax, dword [ecx + edx + 0x48]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov dword [edx + 0xc], eax
mov edx, dword [esp + 0x18]
add ecx, 0x3c
mov eax, dword [edx + 0x40]
mov dword [esp + 0x30], 4
mov dword [esp], eax
call fcn.005769c0
sub esp, 4
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x40]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x40]
mov ecx, dword [esp + 0x24]
cmp edx, eax
cmovbe eax, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 8], eax
mov eax, dword [edx + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [ecx]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
add dword [esp + 0x18], 0x4c
add dword [esp + 0x1c], 0x4c
add dword [esp + 0x24], 0x4c
add dword [esp + 0x20], 0x4c
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x74], eax
jne 0x5a6850
lea ecx, [esp + 0x2c]
mov dword [esp], ecx
call sub.libgcc_s_sjlj_1.dll__Unwind_SjLj_Unregister
mov eax, dword [esp + 0x1c]
add esp, 0x68
pop ebp
ret
mov edx, dword [esp + 0x78]
mov dword [esp + 0x1c], edx
jmp 0x5a6999
Function at 0x5a7ca0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
sub esp, 0x64
lea edx, [esp + 0x2c]
mov dword [esp + 0x44], 0x567468
lea eax, [esp + 0x60]
mov dword [esp], edx
mov dword [esp + 0x48], 0x5c09c4
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0x5a7e65
mov dword [esp + 0x54], esp
call sub.libgcc_s_sjlj_1.dll__Unwind_SjLj_Register
mov ecx, dword [esp + 0x74]
cmp dword [esp + 0x70], ecx
je 0x5a7e5b
mov ebx, dword [esp + 0x78]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5a7e2d
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x1c]
mov dword [eax], 0x636300
movzx eax, byte [edx + 4]
sub edx, dword [esp + 0x70]
mov byte [ecx + 4], al
sub ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x78]
mov dword [ebx + 8], 0
mov dword [esp + 0x28], edx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
mov dword [eax + ecx + 0x10], 0
mov dword [eax + ecx + 0xc], 0
mov ecx, dword [esp + 0x70]
mov edx, dword [edx + ecx + 0x14]
mov ecx, dword [esp + 0x20]
mov dword [eax + ecx + 0x14], edx
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x30], 2
add ecx, 8
mov dword [esp], eax
call fcn.005769c0
sub esp, 4
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0xc]
cmp edx, eax
cmovbe eax, edx
mov dword [esp + 8], eax
mov eax, dword [ebx + 8]
mov dword [esp + 4], eax
mov eax, dword [ecx + 8]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x78]
mov dword [ebx + 0x18], 0x636468
mov ebx, dword [esp + 0x28]
mov ecx, dword [edx + ebx + 0x1c]
mov ebx, dword [esp + 0x20]
mov dword [eax + ebx + 0x1c], ecx
mov ebx, dword [esp + 0x28]
mov ecx, dword [edx + ebx + 0x20]
mov ebx, dword [esp + 0x20]
mov dword [eax + ebx + 0x20], ecx
mov ebx, dword [esp + 0x28]
mov ecx, dword [edx + ebx + 0x24]
mov ebx, dword [esp + 0x20]
mov dword [eax + ebx + 0x24], ecx
mov ebx, dword [esp + 0x28]
mov ecx, dword [edx + ebx + 0x28]
mov ebx, dword [esp + 0x20]
mov dword [eax + ebx + 0x28], ecx
mov ebx, dword [esp + 0x28]
mov ecx, dword [edx + ebx + 0x2c]
mov ebx, dword [esp + 0x20]
mov dword [eax + ebx + 0x2c], ecx
mov ebx, dword [esp + 0x28]
mov ecx, dword [edx + ebx + 0x30]
add edx, 0x18
mov ebx, dword [esp + 0x20]
mov dword [eax + ebx + 0x30], ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + edx + 0x1c]
mov dword [eax + ebx + 0x34], edx
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x38]
mov dword [edx + 0x38], eax
add dword [esp + 0x24], 0x3c
add dword [esp + 0x1c], 0x3c
mov edx, dword [esp + 0x24]
cmp dword [esp + 0x74], edx
jne 0x5a7cf3
lea edx, [esp + 0x2c]
mov dword [esp], edx
call sub.libgcc_s_sjlj_1.dll__Unwind_SjLj_Unregister
mov eax, dword [esp + 0x1c]
add esp, 0x64
pop ebx
pop ebp
ret
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x1c], ecx
jmp 0x5a7e45
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, reloc.shell32.dll_SHFree
nop
sub eax, 0x40a009
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
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4926fe
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401db6
mov eax, dword [0x500d00]
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.00405eb1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x492740
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49289c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406014
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 + 0x504970]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403279
mov ecx, dword [esi*4 + 0x504970]
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 0x492895
cmp eax, dword [edi + ecx + 0x24]
jne 0x492895
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 0x492895
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403279
add esp, 0x14
test edx, edx
jl 0x492895
jg 0x49280b
test eax, eax
jb 0x492895
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x492895
jl 0x492825
cmp dword [ebp - 0x1008], eax
ja 0x492895
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x492843
test ebx, ebx
je 0x49287c
cmp ecx, edi
jae 0x49287c
mov al, byte [ecx]
cmp al, 0xd
jne 0x49285d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x492869
cmp byte [ecx + 1], 0xa
jne 0x492869
inc ecx
jmp 0x492869
movzx eax, al
movsx eax, byte [eax + 0x501868]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x492843
cmp edx, ebx
jne 0x492843
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49289a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040306c
leave
ret
Function at 0x498fd1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x500d00]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49901c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00499493
test al, al
jne 0x499016
sub edx, 2
cmp edx, edi
jne 0x498ffc
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49903e
lea eax, [edi + 2]
cmp edx, eax
je 0x49903e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00498bca
add esp, 0x10
jmp 0x499138
push esi
lea ecx, [ebp - 0x255]
call fcn.00499493
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x499081
push dword [ebp - 0x25c]
jmp 0x49902e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4990be
cmp word [ebp - 0x226], 0
je 0x4990df
cmp word [ebp - 0x226], ax
jne 0x4990be
cmp word [ebp - 0x224], 0
je 0x4990df
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00498bca
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49912b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x499098
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x499113
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x499138
push 0x4985b2
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040556a
add esp, 0x10
jmp 0x499108
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040306c
leave
ret
Function at 0x4a11fc
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 + 0x504970]
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 0x4a123c
cmp byte [ebx], 0xa
jne 0x4a123c
or byte [eax + edi + 0x28], 4
jmp 0x4a1241
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a133f
mov al, byte [edx]
cmp al, 0x1a
je 0x4a1321
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a1270
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a1295
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a129f
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 0x4a1252
jmp 0x4a133f
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 0x4a131c
cmp dword [ebp - 0xc], 0
je 0x4a131c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x504970]
test byte [eax + edi + 0x28], 0x48
je 0x4a12f6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a12e1
mov byte [esi], dl
jmp 0x4a12f2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x504970]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a133f
cmp byte [ebp - 1], 0xa
jne 0x4a1305
cmp esi, ebx
jne 0x4a1305
mov byte [esi], 0xa
jmp 0x4a133e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040194c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a133f
mov byte [esi], 0xd
jmp 0x4a133e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x504970]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a133b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a133f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a139b
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 + 0x504970]
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 0x4a13de
cmp word [esi], dx
jne 0x4a13de
or byte [edi + eax + 0x28], 4
jmp 0x4a13e3
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 0x4a1536
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 0x4a1516
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a1425
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a145b
cmp eax, edx
jae 0x4a1467
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 0x4a13fd
jmp 0x4a1536
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 0x4a1512
cmp dword [ebp - 0x14], 0
je 0x4a1512
mov eax, dword [ebx*4 + 0x504970]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a14ea
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a14b3
mov word [esi], cx
jmp 0x4a14e6
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x504970]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x504970]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x504970]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a1536
pop ebx
cmp word [ebp - 4], bx
jne 0x4a14fb
cmp esi, dword [ebp + 0xc]
jne 0x4a14fb
mov word [esi], bx
jmp 0x4a1533
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040194c
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a1536
push 0xd
jmp 0x4a152f
mov ecx, dword [ebx*4 + 0x504970]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a152d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a1536
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
Function at 0x406730
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x42e80b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x40465c
call fcn.0040791b
push 4
mov dword [esp + 0x18], 0
call fcn.00408a34
mov edi, eax
add esp, 4
test edi, edi
je 0x4067a4
push ebx
call fcn.00407716
mov dword [edi], eax
call fcn.004074d5
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.004078dc
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406798
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00407904
pop ebx
jmp 0x4067a6
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40960b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431354]
jne 0x409615
repz ret
jmp fcn.0040dc5c
Function at 0x412952
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x431354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040c1cf
and dword [ebp - 0x14], 0
cmp dword [0x43390c], 0
mov dword [ebp - 0x18], eax
jne 0x412a05
push 0x404008
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x412aad
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403ffc
push ebx
call edi
test eax, eax
je 0x412aad
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403fec
push ebx
mov dword [0x43390c], eax
call edi
push eax
call esi
push 0x403fd8
push ebx
mov dword [0x433910], eax
call edi
push eax
call esi
push 0x403fbc
push ebx
mov dword [0x433914], eax
call edi
push eax
call esi
mov dword [0x43391c], eax
test eax, eax
je 0x412a05
push 0x403fa4
push ebx
call edi
push eax
call esi
mov dword [0x433918], eax
mov eax, dword [0x433918]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x412a5e
cmp dword [0x43391c], ecx
je 0x412a5e
push eax
call esi
push dword [0x43391c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x412a5e
test ebx, ebx
je 0x412a5e
call edi
test eax, eax
je 0x412a55
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x412a55
test byte [ebp - 8], 1
jne 0x412a5e
or dword [ebp + 0x10], 0x200000
jmp 0x412a91
mov eax, dword [0x433910]
cmp eax, dword [ebp - 0x18]
je 0x412a91
push eax
call esi
test eax, eax
je 0x412a91
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x412a91
mov eax, dword [0x433914]
cmp eax, dword [ebp - 0x18]
je 0x412a91
push eax
call esi
test eax, eax
je 0x412a91
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43390c]
call esi
test eax, eax
je 0x412aad
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x412aaf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040960b
leave
ret