joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4307e6
Capabilities:
Check os version
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x456178]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x11c], ebx
mov ecx, ebx
movzx eax, byte [ecx + str.cw]
mov byte [eax + 0x45ae40], cl
inc ecx
cmp ecx, 0x100
jb 0x430806
movzx edi, byte [ebx + str.cw]
mov eax, edi
mov ecx, edi
and al, 0x80
movzx esi, al
neg esi
lea eax, [edi + edi]
sbb esi, esi
shl ecx, 8
and esi, 0x1b
xor esi, eax
and esi, 0xff
mov edx, esi
xor edx, edi
mov eax, edx
shl eax, 8
or eax, edi
shl eax, 8
or eax, edi
shl eax, 8
or eax, esi
mov dword [ebx*4 + 0x45bf40], eax
mov eax, ecx
or ecx, esi
or eax, edi
shl eax, 8
or eax, esi
shl ecx, 8
shl esi, 8
or ecx, edx
or esi, edx
shl eax, 8
or eax, edx
shl esi, 8
or esi, edi
shl ecx, 8
mov dword [ebx*4 + 0x45c340], eax
or ecx, edi
shl esi, 8
or esi, edi
mov dword [ebx*4 + 0x45c740], ecx
movzx edi, byte [ebx + 0x45ae40]
mov dword [ebx*4 + 0x45cb40], esi
mov eax, edi
and al, 0x80
mov ebx, 0xff
movzx esi, al
neg esi
lea eax, [edi + edi]
sbb esi, esi
and esi, 0x1b
xor esi, eax
and esi, ebx
mov eax, esi
and al, 0x80
movzx ecx, al
neg ecx
lea eax, [esi + esi]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
and ecx, ebx
mov eax, ecx
and al, 0x80
movzx edx, al
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x1b
xor edx, eax
and edx, ebx
mov dword [ebp - 0x120], edx
mov ebx, edx
mov eax, dword [ebp - 0x120]
xor edx, esi
xor eax, ecx
xor ebx, edi
mov ecx, eax
mov dword [ebp - 0x120], eax
xor edx, edi
xor ecx, edi
mov edi, eax
mov eax, edx
shl eax, 8
xor edi, esi
mov esi, dword [ebp - 0x11c]
or eax, ecx
shl eax, 8
or eax, ebx
shl eax, 8
or eax, edi
mov dword [esi*4 + 0x45af40], eax
mov eax, ecx
shl eax, 8
or eax, ebx
shl eax, 8
or eax, edi
shl eax, 8
or eax, edx
mov dword [esi*4 + 0x45b340], eax
mov eax, ebx
shl eax, 8
or eax, edi
shl edi, 8
or edi, edx
shl eax, 8
shl edi, 8
or eax, edx
or edi, ecx
shl eax, 8
shl edi, 8
or eax, ecx
or edi, ebx
mov dword [esi*4 + 0x45b740], eax
mov ebx, esi
mov dword [ebx*4 + 0x45bb40], edi
inc ebx
mov dword [ebp - 0x11c], ebx
cmp ebx, 0x100
jb 0x43081c
lea eax, [ebp - 0x118]
mov dword [0x45e148], 0x431497
push eax
mov dword [0x45e140], 0x4314f1
mov dword [0x45e144], 0x43158d
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
pop edi
pop esi
pop ebx
test eax, eax
je 0x430a06
cmp dword [ebp - 0x114], 5
sbb eax, eax
inc eax
je 0x430a06
lea ecx, [ebp - 0x140]
call fcn.00413220
test eax, eax
je 0x430a06
mov eax, dword [ebp - 0x128]
shr eax, 0x19
and eax, 1
je 0x430a06
mov dword [0x45e148], 0x432238
mov dword [0x45e140], 0x432290
mov dword [0x45e144], 0x4323c1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043341a
mov esp, ebp
pop ebp
ret
Function at 0x430a14
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [edi + 0x1c]
shr edi, 2
mov eax, edi
mov dword [ebp - 0xc], ecx
shr eax, 1
add eax, 3
mov dword [ebx], eax
add ebx, 0x10
test edi, edi
je 0x430a4a
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jb 0x430a3d
cmp esi, ecx
jae 0x430b36
mov eax, esi
sub eax, edi
lea eax, [ebx + eax*4]
mov dword [ebp - 4], eax
xor edx, edx
mov ecx, dword [ebx + esi*4 - 4]
mov eax, esi
mov dword [ebp + 8], ecx
div edi
mov dword [ebp - 8], eax
test edx, edx
jne 0x430ac8
movzx ecx, cl
movzx edx, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
shr ecx, 0x18
shl edx, 8
movzx eax, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
or edx, eax
mov eax, ecx
shl edx, 8
shr eax, 0x10
and eax, 0xff
shr ecx, 8
and ecx, 0xff
movzx eax, byte [eax + str.cw]
movzx ecx, byte [ecx + str.cw]
or edx, eax
mov eax, dword [ebp - 8]
shl edx, 8
movzx eax, byte [eax + 0x44a650]
xor ecx, eax
or ecx, edx
jmp 0x430b1c
cmp edi, 6
jbe 0x430b1c
cmp edx, 4
jne 0x430b1c
mov edx, dword [ebp + 8]
mov eax, ecx
shr eax, 0x10
and eax, 0xff
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
and eax, 0xff
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add edx, 4
xor eax, ecx
mov dword [ebp - 4], edx
mov dword [ebx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x430a5c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x431e8a
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
push edi
mov edi, ecx
push ecx
lea esi, [edi + 4]
mov ecx, esi
call fcn.00408990
test al, al
je 0x431ea2
pop edi
xor al, al
pop esi
ret
push 0xc
call fcn.0043453f
pop ecx
test eax, eax
je 0x431ebd
push edi
push 0x431e3e
mov ecx, eax
call fcn.00411670
jmp 0x431ebf
xor eax, eax
push eax
mov ecx, esi
call fcn.0040bf3f
mov ecx, esi
call fcn.0040892a
pop edi
mov ecx, eax
pop esi
jmp fcn.004118c0
Function at 0x43d2b2
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x456178]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004367f2
mov dword [ebp - 0x14], eax
cmp dword [0x45a870], esi
jne 0x43d3a5
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x43d332
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x43d485
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x43d485
push 0x449580
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43d485
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x45a870], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x45a874], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x45a878], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45a880], eax
test eax, eax
je 0x43d3a2
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45a87c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x43d3ca
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x43d3bd
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x43d3df
push 4
pop eax
jmp 0x43d487
cmp dword [ebp - 0x14], esi
je 0x43d3df
push dword [0x45a870]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x43d3c4
mov eax, dword [0x45a87c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x43d43d
cmp dword [0x45a880], edi
je 0x43d43d
push eax
call ebx
push dword [0x45a880]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x43d43d
test eax, eax
je 0x43d43d
call ecx
test eax, eax
je 0x43d432
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x43d432
test byte [ebp - 8], 1
jne 0x43d43d
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x43d46d
mov eax, dword [0x45a874]
cmp eax, edi
je 0x43d46a
push eax
call ebx
test eax, eax
je 0x43d46a
call eax
mov esi, eax
test esi, esi
je 0x43d46a
mov eax, dword [0x45a878]
cmp eax, edi
je 0x43d46a
push eax
call ebx
test eax, eax
je 0x43d46a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x45a870]
call ebx
test eax, eax
je 0x43d485
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x43d487
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043341a
mov esp, ebp
pop ebp
ret
Function at 0x10014440
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0xf
mov dword [ebp - 4], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor esi, esi
cmp dword [0x100898d4], esi
jbe 0x10014496
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x100898d0]
push dword [eax + esi*4]
call ebx
mov eax, dword [0x100898d0]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [0x100898d4]
jb 0x10014474
pop ebx
push dword [0x100898d0]
call fcn.1001b6d7
add esp, 4
mov dword [0x100898d0], 0
push dword [ebp - 4]
mov dword [0x100898d4], 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10014540
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
mov eax, dword [0x100886d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100898e8]
mov ecx, dword [ebp + 8]
test eax, eax
jne 0x1001456d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001b7de
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
push ecx
push 0
push 0x1fffff
call eax
mov esi, eax
cmp esi, 0xffffffff
je 0x10014623
test esi, esi
je 0x10014623
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x1001461a
lea eax, [ebp - 0x2d0]
push eax
push esi
mov dword [ebp - 0x2d0], 0x10001
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x10014623
mov ebx, dword [ebp + 0xc]
mov edx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x218]
cmp ecx, ebx
jb 0x10014623
mov eax, dword [ebp + 0x10]
add eax, ebx
cmp ecx, eax
jae 0x10014623
push esi
call edx
cmp edi, 3
jge 0x1001461a
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2d0]
push eax
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov edx, dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jne 0x100145c4
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001b7de
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001b7de
mov esp, ebp
pop ebp
ret
Function at 0x10014970
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push edi
xor edi, edi
cmp dword [0x100898cc], 0x40
jae 0x10014a78
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
add esi, ecx
cmp esi, 0x80000000
jae 0x1001499c
lea esi, [edi + 1]
jmp 0x100149a2
sub esi, 0x7fff0000
push ebx
mov ebx, dword [ebp + 0x14]
add ebx, ecx
cmp ebx, 0x80000000
jae 0x100149b8
add ebx, 0x7ff80000
jmp 0x100149bd
mov ebx, 0xfff80000
xorps xmm0, xmm0
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], edi
movq qword [ebp - 0x3c], xmm0
movq qword [ebp - 0x34], xmm0
movq qword [ebp - 0x2c], xmm0
movq qword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, ebx
jae 0x10014a76
lea esp, [esp]
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10014a47
cmp dword [ebp - 0xc], 0x10000
jne 0x10014a3b
mov eax, dword [ebp - 0x10]
cmp eax, 0x6c
jb 0x10014a3e
mov ecx, dword [ebp - 0x24]
cmp eax, ecx
jb 0x10014a3e
lea eax, [ecx - 1]
add eax, esi
xor edx, edx
div ecx
push 0x20
push 0x3000
push 0x6c
imul eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x10014a4b
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x1c]
add esi, eax
cmp esi, ebx
jb 0x100149f0
test edi, edi
je 0x10014a76
xor eax, eax
lea ecx, [ecx]
cmp dword [eax*4 + 0x10089908], 0
je 0x10014a69
inc eax
cmp eax, 0x40
jb 0x10014a50
pop ebx
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
inc dword [0x100898cc]
mov dword [eax*4 + 0x10089908], edi
pop ebx
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x100198d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x100886d0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x310], ax
lea eax, [ebp - 0x30e]
push eax
call fcn.1001aa80
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.1001aa80
add esp, 0x18
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10019936
push 0x104
lea ecx, [ebp - 0x310]
push ecx
sub eax, edx
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
lea eax, [ebp - 0x310]
push eax
push 0x13
push 0x10089e40
push 0x10088178
call fcn.100011e5
mov ecx, dword [ebp - 4]
add esp, 0x14
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.1001b7de
mov esp, ebp
pop ebp
ret
Function at 0x1001f415
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100886d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.10027407
mov dword [ebp - 0x14], eax
cmp dword [0x10089f88], edi
jne 0x1001f506
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x1001f493
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1001f5e6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1001f5e6
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001f5e6
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x10089f88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x10089f8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x10089f90], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10089f98], eax
test eax, eax
je 0x1001f503
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10089f94], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1001f52b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1001f51e
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x1001f540
push 4
pop eax
jmp 0x1001f5e8
cmp dword [ebp - 0x14], edi
je 0x1001f540
push dword [0x10089f88]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1001f525
mov eax, dword [0x10089f94]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x1001f59e
cmp dword [0x10089f98], esi
je 0x1001f59e
push eax
call ebx
push dword [0x10089f98]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1001f59e
test eax, eax
je 0x1001f59e
call ecx
test eax, eax
je 0x1001f593
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1001f593
test byte [ebp - 8], 1
jne 0x1001f59e
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x1001f5ce
mov eax, dword [0x10089f8c]
cmp eax, esi
je 0x1001f5cb
push eax
call ebx
test eax, eax
je 0x1001f5cb
call eax
mov edi, eax
test edi, edi
je 0x1001f5cb
mov eax, dword [0x10089f90]
cmp eax, esi
je 0x1001f5cb
push eax
call ebx
test eax, eax
je 0x1001f5cb
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x10089f88]
call ebx
test eax, eax
je 0x1001f5e6
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x1001f5e8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001b7de
leave
ret
Function at 0x10032b66
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10022a9c
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x10032b9e
xor eax, eax
jmp 0x10032bca
cmp esi, dword [ebp - 4]
je 0x10032bc7
cmp dword [ebp + 0xc], 0
je 0x10032bc7
push dword [edi + 0x9c]
call fcn.10032774
push dword [edi + 0x9c]
mov esi, eax
call fcn.1001e037
pop ecx
pop ecx
cmp esi, eax
je 0x10032b9a
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x1004cad
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor ebx, ebx
xor edi, edi
cmp dword [ebp + 8], ebx
jne 0x1004cc5
xor eax, eax
jmp 0x1004d45
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x1004d43
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x7fff
jae 0x1004d39
push esi
call sub.cmutil.dll_CmMalloc
mov edi, eax
cmp edi, ebx
je 0x1004d39
push ebx
lea eax, [ebp - 4]
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004d39
cmp byte [edi], bl
mov eax, edi
je 0x1004d39
mov cl, byte [eax]
cmp cl, 9
je 0x1004d37
cmp cl, 0xa
je 0x1004d37
cmp cl, 0xd
je 0x1004d37
inc eax
cmp byte [eax], bl
jne 0x1004d1f
jmp 0x1004d39
mov byte [eax], bl
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret 4

Function at 0x4016ee
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, esp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4050b2], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4051a0], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x405134], eax
mov dword [0x4050aa], eax
mov dword [0x405120], 0x30
mov dword [0x405124], 2
jmp 0x401733
mov dword [0x405128], 0x4030e0
mov dword [0x40512c], 0
mov dword [0x405130], 0
mov dword [0x405148], 0x404182
mov dword [0x405140], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x405138], eax
mov dword [0x40514c], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x40513c], eax
push 0x405120
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4050aa]
push 0
push 0
push 0x1e0
push 0x1fe
push 0xfffff862
push 0xfffff8f8
push 0xcf0000
push str.5_minutes
push str.return
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405198], eax
push 5
push dword [0x405198]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405198]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x405150]
jmp 0x401807
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x4017f9
mov eax, dword [0x405158]
jmp 0x401822
call 0x402c71
ret
Function at 0x29a0f42d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x29a0f43c
pop dword [ebp - 0x14]
mov eax, 0xaafa3f42
add eax, 0x7ea6b4fa
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x3b5b104
add dword [ebp - 0x24], 0x4a9c9447
mov dword [ebp - 0x20], 0x44a925f2
add dword [ebp - 0x20], 0xed8a2653
mov dword [ebp - 0x1c], 0x89e8336d
sub dword [ebp - 0x1c], 0x3d9bef3f
mov dword [ebp - 0x18], 0xbbd68d62
add dword [ebp - 0x18], 0x4429729e
lea eax, [ebp - 0x24]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xc181e428
sub dword [ebp - 0x24], 0x4d0f7ad2
mov dword [ebp - 0x20], 0x277595d4
sub dword [ebp - 0x20], 0xe609345f
mov dword [ebp - 0x1c], 0x341baaf2
add dword [ebp - 0x1c], 0x2f53c17a
mov dword [ebp - 0x18], 0x7c52c5ce
add dword [ebp - 0x18], 0x83ad3a32
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x8394d38c
sub eax, 0x59f39348
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x373a7
push 0
call eax
mov ecx, 0x3b79
mov edi, eax
mov esi, 0x3e3aa0a
add esi, 0x25be75f6
add esi, dword [ebp - 0x14]
mov ebx, 0x9e85642a
add ebx, 0x5af8264a
sub dword [ebp - 0x10], ebx
mov edx, dword [esi]
xor dword [ebp - 0xc], 0xabdc58ed
add edx, ebx
xor dword [ebp - 0xc], ecx
mov dword [edi], edx
xor dword [ebp - 8], 0x4ecbfa58
add edi, 0x26c62244
add edi, 0xd939ddc0
add esi, 0x89db6338
add esi, 0x76249ccc
loop 0x29a0f553
add eax, 0xe0b7
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x29a00000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x4afce4
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 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
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 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
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 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push esi
push edi
push 0x40
push 0x3000
push 0x163
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
mov ecx, 0x58
mov esi, 0x403058
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call eax
pop edi
xor eax, eax
pop esi
ret

Function at 0x401833
Capabilities:
Parse pe header

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