joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a9d8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40aa3c
cmp dword [ebp + 0xc], 1
je 0x40aa14
cmp dword [ebp + 0xc], 2
je 0x40aa14
push 0xd
pop eax
jmp 0x40aa3c
mov eax, dword [ebp - 4]
test edi, edi
je 0x40aa36
test eax, eax
je 0x40aa31
test al, 1
jne 0x40aa0f
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x40aa36
jmp 0x40aa0f
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

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

Disassembly:
cmp dword [0x4770e0], 0
push esi
push edi
jne 0x410232
call fcn.0041019e
test eax, eax
je 0x410277
mov eax, dword [0x4770e0]
cmp eax, 1
jne 0x410253
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x410277
jmp 0x4102b9
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x4102b9
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x41027b
xor eax, eax
jmp 0x4102b9
mov eax, dword [esi]
push dword [0x4770e0]
call edi
mov edi, eax
test edi, edi
je 0x41029d
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4102b9
lea edi, [esi + 0xff0]
push esi
push dword [0x4770e0]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x4102a3
mov eax, esi
pop edi
pop esi
ret
jmp 0x41021e

Function at 0x4105e9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x475084]
jne 0x4105f3
repz ret
jmp fcn.00413882
Function at 0x41df8b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x475084]
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.00416a1d
and dword [ebp - 0x14], 0
cmp dword [0x477f24], 0
mov dword [ebp - 0x18], eax
jne 0x41e03e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41e0e6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x454c94
push ebx
call edi
test eax, eax
je 0x41e0e6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x477f24], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x477f28], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x477f2c], eax
call edi
push eax
call esi
mov dword [0x477f34], eax
test eax, eax
je 0x41e03e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x477f30], eax
mov eax, dword [0x477f30]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41e097
cmp dword [0x477f34], ecx
je 0x41e097
push eax
call esi
push dword [0x477f34]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41e097
test ebx, ebx
je 0x41e097
call edi
test eax, eax
je 0x41e08e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41e08e
test byte [ebp - 8], 1
jne 0x41e097
or dword [ebp + 0x10], 0x200000
jmp 0x41e0ca
mov eax, dword [0x477f28]
cmp eax, dword [ebp - 0x18]
je 0x41e0ca
push eax
call esi
test eax, eax
je 0x41e0ca
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41e0ca
mov eax, dword [0x477f2c]
cmp eax, dword [ebp - 0x18]
je 0x41e0ca
push eax
call esi
test eax, eax
je 0x41e0ca
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x477f24]
call esi
test eax, eax
je 0x41e0e6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41e0e8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004105e9
leave
ret
Function at 0x420563
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, edx
not eax
mov edx, 0xff
cmp edi, 8
jb 0x42061f
mov esi, edi
shr esi, 3
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x455c60]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x455c60]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x455c60]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x455c60]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x455c60]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x455c60]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x455c60]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x455c60]
add ecx, 8
sub edi, 8
dec esi
jne 0x420583
test edi, edi
je 0x420694
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x455c60]
mov dword [ebp - 4], 0x51
mov dword [ebp - 0x10], 0x47
mov dword [ebp - 0xc], 0x2b
mov dword [ebp - 0x10], 0x4b
mov dword [ebp - 8], 0x3e
mov dword [ebp - 0x10], 0x5b
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0xc]
inc ecx
cmp esi, ebx
jle 0x420691
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
imul esi, esi, 0x5f
sub esi, ebx
mov ebx, dword [ebp - 0x10]
sub esi, ebx
add esi, dword [ebp - 4]
add esi, dword [ebp - 4]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 8]
imul esi, ebx
imul esi, esi, 0x5a
mov dword [ebp - 0xc], esi
dec edi
jne 0x420623
pop edi
pop esi
not eax
pop ebx
leave
ret
Function at 0x438d14
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x451845
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x475084]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x475084]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x14]
mov esi, edx
mov dword [esp + 0x18], esi
cmp eax, 8
jb 0x438d5d
mov ecx, dword [ebx]
test ecx, ecx
je 0x438d6e
cmp eax, 8
jb 0x438d6a
mov eax, dword [ebx]
jmp 0x438d73
mov eax, ebx
jmp 0x438d73
mov eax, dword [0x4768a8]
push eax
lea eax, [esp + 0x24]
call fcn.00404ca1
and dword [esp + 0x68], 0
lea eax, [esp + 0x3c]
push eax
mov edx, 0xfde9
lea ecx, [esp + 0x24]
call fcn.00446c6b
pop ecx
mov byte [esp + 0x68], 1
cmp dword [eax + 0x14], 0x10
mov ecx, dword [esi + 0x10]
jb 0x438da6
mov eax, dword [eax]
push ecx
push eax
push dword [0x47623c]
push dword [0x476238]
push 0
call fcn.0043a027
add esp, 0x14
push 1
xor edi, edi
lea esi, [esp + 0x40]
call fcn.00404836
or dword [esp + 0x68], 0xffffffff
push 1
lea esi, [esp + 0x24]
call fcn.00404b7a
mov eax, dword [0x4768b0]
push eax
mov esi, eax
call fcn.00411e89
pop ecx
push esi
push 6
mov edi, eax
pop eax
mov ecx, ebx
call fcn.00405118
test eax, eax
jne 0x438e01
xor al, al
jmp 0x438eb8
cmp dword [ebx + 0x14], 8
jb 0x438e09
mov ebx, dword [ebx]
push 0x80
push 2
pop esi
push esi
push 0
push 0x40000000
push ebx
call fcn.0043a6b1
mov edi, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x68], esi
cmp edi, 0xffffffff
jne 0x438e54
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [0x476230]
push dword [0x47622c]
push 1
call fcn.0043a027
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x438dfa
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
and dword [esp + 0x14], 0
test eax, eax
je 0x438ea1
cmp dword [esi + 0x14], 0x10
jb 0x438e6e
mov ecx, dword [esi]
jmp 0x438e70
mov ecx, esi
push 0
lea edx, [esp + 0x18]
push edx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x438ea1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [0x476240]
push dword [0x47622c]
push 1
call fcn.0043a027
add esp, 0x10
mov eax, dword [esp + 0x14]
cmp eax, dword [esi + 0x10]
sete bl
test edi, edi
je 0x438eb6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.004105e9
mov esp, ebp
pop ebp
ret
Function at 0x43a2b3
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0x13
mov dword [ebp - 8], 0x63
mov dword [ebp - 4], 0x29
mov dword [ebp - 0x10], 0x57
mov dword [ebp - 8], 0x17
mov dword [ebp - 8], 0x11
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
imul eax, ecx
mov ecx, dword [ebp - 4]
imul eax, ecx
mov ecx, dword [ebp - 0xc]
imul eax, ecx
mov ecx, dword [ebp - 8]
imul ecx, ecx, 0xffffffda
sub ecx, eax
mov eax, dword [ebp - 4]
sub ecx, eax
mov eax, dword [ebp - 4]
sub ecx, eax
mov eax, dword [ebp - 8]
sub ecx, eax
add ecx, dword [ebp - 8]
push 0x45
add ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
imul eax, ecx
cdq
pop ecx
idiv ecx
mov ecx, dword [ebp - 8]
push dword [ebp + 8]
imul eax, ecx
mov dword [ebp - 8], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
leave
ret 4

Function at 0x43a476
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret 8

Function at 0x43a592
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0x13
mov dword [ebp - 8], 0x63
mov dword [ebp - 4], 0x29
mov dword [ebp - 0x10], 0x57
mov dword [ebp - 8], 0x17
mov dword [ebp - 8], 0x11
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
imul eax, ecx
mov ecx, dword [ebp - 4]
imul eax, ecx
mov ecx, dword [ebp - 0xc]
imul eax, ecx
mov ecx, dword [ebp - 8]
imul ecx, ecx, 0xffffffda
sub ecx, eax
mov eax, dword [ebp - 4]
sub ecx, eax
mov eax, dword [ebp - 4]
sub ecx, eax
mov eax, dword [ebp - 8]
sub ecx, eax
add ecx, dword [ebp - 8]
push 0x45
add ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
imul eax, ecx
cdq
pop ecx
idiv ecx
mov ecx, dword [ebp - 8]
push dword [ebp + 8]
imul eax, ecx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
leave
ret 4
Function at 0x43ceac
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5a4d
sub esp, 0x18
cmp word [ecx], ax
je 0x43cec0
xor eax, eax
leave
ret
mov dword [ebp - 4], 0x51
mov dword [ebp - 0x14], 0x47
mov dword [ebp - 0xc], 0x2b
mov dword [ebp - 0x14], 0x4b
mov dword [ebp - 8], 0x3e
mov dword [ebp - 0x14], 0x5b
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
cmp eax, edx
jle 0x43cf1c
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
imul eax, eax, 0x5f
sub eax, edx
mov edx, dword [ebp - 0x14]
sub eax, edx
add eax, dword [ebp - 4]
add eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
imul eax, edx
imul eax, eax, 0x5a
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x43cebc
fld qword [0x46f8c8]
fstp qword [ebp - 0x18]
fld qword [0x46f8c0]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fmul qword [ebp - 0x18]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x18]
fsub qword [0x46f8b8]
fadd qword [ebp - 0x18]
fsub qword [ebp - 0x18]
fld qword [ebp - 0x18]
fmul qword [0x46f8b0]
fsubp st(1)
fld qword [ebp - 0x10]
fmul qword [ebp - 0x18]
fsubp st(1)
fsub qword [ebp - 0x10]
fsub qword [0x46f8a8]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x18]
fmul qword [ebp - 0x18]
fadd qword [0x46f8a0]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x10]
fld qword [ebp - 0x18]
fmul qword [0x46f898]
fsubp st(1)
fadd qword [ebp - 0x18]
fld qword [ebp - 0x18]
fld qword [0x46f890]
fmul st(1), st(0)
fxch st(2)
faddp st(1)
fsubrp st(1)
fadd qword [ebp - 0x18]
mov eax, dword [eax + ecx + 0x98]
fstp qword [ebp - 0x18]
test eax, eax
je 0x43cebc
add eax, ecx
leave
ret
Function at 0x401fee
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x428040]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [0x4824b0]
xor ecx, ecx
push edi
mov dword [esp + 0xc], ecx
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x402063
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.004029b8
lea ecx, [esp + 0x14]
call fcn.00401e1e
cmp eax, 0x8aafdc01
je 0x40207a
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402a45
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
cmp eax, dword [esp + 0x10]
jb 0x40202a
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406c93
mov esp, ebp
pop ebp
ret
mov edx, str.QwruxAA
call fcn.00402d84
push eax
call fcn.00402ffd
mov eax, dword [ebx + 0x24]
pop ecx
mov ecx, dword [esp + 0xc]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402a45
jmp 0x402065
Function at 0x413736
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004133d8

Function at 0x413741
Capabilities:
Read file on windows

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

Function at 0x413b3b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407bb0
mov eax, dword [0x428040]
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.004125cd
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x413b7d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x413cd9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041d260
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 + 0x482178]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00414d0b
mov ecx, dword [esi*4 + 0x482178]
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 0x413cd2
cmp eax, dword [edi + ecx + 0x24]
jne 0x413cd2
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 0x413cd2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00414d0b
add esp, 0x14
test edx, edx
jl 0x413cd2
jg 0x413c48
test eax, eax
jb 0x413cd2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x413cd2
jl 0x413c62
cmp dword [ebp - 0x1008], eax
ja 0x413cd2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x413c80
test ebx, ebx
je 0x413cb9
cmp ecx, edi
jae 0x413cb9
mov al, byte [ecx]
cmp al, 0xd
jne 0x413c9a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x413ca6
cmp byte [ecx + 1], 0xa
jne 0x413ca6
inc ecx
jmp 0x413ca6
movzx eax, al
movsx eax, byte [eax + 0x4282f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x413c80
cmp edx, ebx
jne 0x413c80
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x413cd7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406c93
leave
ret
Function at 0x4141a9
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 + 0x482178]
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 0x4141e9
cmp byte [ebx], 0xa
jne 0x4141e9
or byte [eax + edi + 0x28], 4
jmp 0x4141ee
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4142ec
mov al, byte [edx]
cmp al, 0x1a
je 0x4142ce
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41421d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x414242
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41424c
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 0x4141ff
jmp 0x4142ec
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 0x4142c9
cmp dword [ebp - 0xc], 0
je 0x4142c9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x482178]
test byte [eax + edi + 0x28], 0x48
je 0x4142a3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41428e
mov byte [esi], dl
jmp 0x41429f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x482178]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4142ec
cmp byte [ebp - 1], 0xa
jne 0x4142b2
cmp esi, ebx
jne 0x4142b2
mov byte [esi], 0xa
jmp 0x4142eb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00414d29
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4142ec
mov byte [esi], 0xd
jmp 0x4142eb
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x482178]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4142e8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4142ec
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4142f5
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 + 0x482178]
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 0x414338
cmp word [esi], dx
jne 0x414338
or byte [edi + eax + 0x28], 4
jmp 0x41433d
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 0x414490
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 0x414470
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41437f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4143b5
cmp eax, edx
jae 0x4143c1
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 0x414357
jmp 0x414490
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 0x41446c
cmp dword [ebp - 0x14], 0
je 0x41446c
mov eax, dword [ebx*4 + 0x482178]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x414444
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41440d
mov word [esi], cx
jmp 0x414440
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x482178]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x482178]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x482178]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x414490
pop ebx
cmp word [ebp - 4], bx
jne 0x414455
cmp esi, dword [ebp + 0xc]
jne 0x414455
mov word [esi], bx
jmp 0x41448d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00414d29
add esp, 0x10
cmp word [ebp - 4], bx
je 0x414490
push 0xd
jmp 0x414489
mov ecx, dword [ebx*4 + 0x482178]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414487
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x414490
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 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..pdata
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x51df48dc
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..pdata_1
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x215f693d
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219