joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405f41
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42bdd4], 0
push esi
jne 0x405f78
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f52
mov dword [ecx*4 + 0x42bdd0], eax
inc ecx
cmp ecx, 0x100
jl 0x405f4d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405fa9
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42bdd0]
xor eax, esi
inc ecx
dec edx
jne 0x405f8b
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x38306664
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x5d9e1702
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x10020e4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
xor esi, esi
push 0xfffffffffffffff5
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp - 0x28]
push ecx
push eax
mov dword [0x100c350], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov eax, dword [ebp - 0x1a]
sub eax, dword [ebp - 0x1e]
mov word [0x100c35c], ax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
mov word [0x100c348], ax
lea eax, [ebp - 8]
push eax
push 0xf003f
push esi
push 0x1001274
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x10021cc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x1001260
push dword [ebp - 8]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x10021cc
mov eax, 0xff
cmp dword [ebp - 4], eax
jne 0x10021a0
mov ecx, dword [ebp - 0x20]
mov edx, ecx
or edx, 8
mov ax, cx
and ecx, 0xf0
mov word [0x100c358], dx
mov edx, ecx
or edx, 0xc
mov word [0x100c344], dx
or ecx, 8
jmp 0x10021c3
mov cl, byte [ebp - 4]
and ax, cx
movzx cx, byte [ebp - 3]
mov word [0x100c344], cx
movzx cx, byte [ebp - 2]
mov word [0x100c358], cx
movzx cx, byte [ebp - 1]
mov word [0x100c354], cx
jmp 0x10021e1
mov eax, dword [ebp - 0x20]
mov word [0x100c344], ax
mov word [0x100c358], ax
mov word [0x100c354], ax
mov ecx, dword [0x100c354]
shr ecx, 4
xor cl, byte [0x100c354]
mov word [0x100c340], ax
test cl, 0xf
jne 0x1002201
mov word [0x100c354], ax
mov ecx, dword [0x100c358]
shr ecx, 4
xor cl, byte [0x100c358]
test cl, 0xf
jne 0x100221b
mov word [0x100c358], ax
mov ecx, dword [0x100c344]
shr ecx, 4
xor cl, byte [0x100c344]
test cl, 0xf
jne 0x1002235
mov word [0x100c344], ax
cmp dword [ebp - 8], esi
pop esi
je 0x1002244
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x1002d45
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa68
mov eax, dword [0x100bb2c]
and dword [ebp - 0xa68], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx]
test esi, esi
mov dword [ebp - 4], eax
push edi
je 0x1002e75
cmp word [esi], 0
je 0x1002e53
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.msvcrt.dll__wsplitpath]
add esp, 0x14
lea eax, [ebp - 0xa64]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1002e86
lea eax, [ebp - 0xa38]
push 0x1001350
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x1002e1f
lea eax, [ebp - 0xa38]
push 0x1001348
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x1002e1f
push 0x100123c
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.msvcrt.dll__wmakepath]
add esp, 0x14
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xa68]
push eax
call fcn.01002bcb
lea eax, [ebp - 0xa64]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x1002db5
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0xc], 0
je 0x1002e53
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
lea esi, [esi + eax*2 + 2]
test esi, esi
pop ecx
jne 0x1002d6f
mov esi, dword [ebp - 0xa68]
test esi, esi
je 0x1002e75
mov eax, dword [ebx]
test eax, eax
je 0x1002e73
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebx], esi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01009ab2
leave
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1002e77
Function at 0x1002fdc
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x100bb2c]
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x34], esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x28], 0x409
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
cmp dword [0x100d374], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, dword [sym.imp.msvcrt.dll__wtol]
mov dword [ebp - 0x3c], eax
jne 0x1003074
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov ebx, eax
test ebx, ebx
je 0x1003074
push 0x10
lea eax, [ebp - 0x24]
push eax
push 0x1004
push ebx
call esi
lea eax, [ebp - 0x24]
push eax
call edi
pop ecx
push 0x10
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x24]
push eax
push 0xb
push ebx
call esi
lea eax, [ebp - 0x24]
push eax
call edi
and ebx, 0x3ff
pop ecx
mov dword [0x100d370], eax
mov dword [0x100d36c], ebx
cmp word [ebp - 0x30], 0
je 0x10030ac
movzx ebx, word [ebp - 0x30]
push 0x10
lea eax, [ebp - 0x24]
push eax
push 0x1004
push ebx
call esi
lea eax, [ebp - 0x24]
push eax
call edi
pop ecx
push 0x10
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x24]
push eax
push 0xb
push ebx
call esi
lea eax, [ebp - 0x24]
push eax
call edi
pop ecx
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x10030ed
mov eax, dword [0x100d36c]
cmp eax, 1
je 0x10030ed
cmp eax, 0xd
je 0x10030ed
cmp eax, 0x2a
je 0x10030ed
cmp eax, 0x1e
je 0x10030ed
cmp ecx, dword [0x100d374]
je 0x10030dc
cmp ecx, dword [0x100d370]
jne 0x10030ed
cmp ecx, dword [ebp - 0x2c]
je 0x10030e6
cmp ecx, dword [ebp - 0x34]
jne 0x10030ed
movzx eax, word [ebp - 0x30]
mov dword [ebp - 0x28], eax
mov esi, dword [ebp - 0x38]
cmp dword [ebp - 0x28], esi
je 0x1003105
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
test eax, eax
jne 0x1003105
mov dword [ebp - 0x28], esi
mov ecx, dword [ebp - 4]
mov ax, word [ebp - 0x28]
pop edi
pop esi
pop ebx
call fcn.01009ab2
leave
ret 4
Function at 0x100361d
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x100bb2c]
push ebx
push esi
xor esi, esi
cmp dword [0x100b358], esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x808], esi
push 0x10013c0
je 0x100366d
push dword [0x100b348]
lea eax, [ebp - 0x804]
push 0x10013b0
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push esi
mov dword [ebp - 0x80c], eax
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x808]
push eax
push 0x1001c1c
push 1
push esi
push 0x1001cec
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
cmp ebx, esi
jne 0x10036e7
cmp dword [0x100b998], esi
mov eax, dword [ebp - 0x808]
mov ecx, dword [eax]
push edi
push esi
push esi
push esi
push esi
je 0x10036c1
push 0x100bb40
push 0x100c360
jmp 0x10036c3
push esi
push esi
push dword [ebp - 0x80c]
push eax
call dword [ecx + 0xc]
mov ebx, eax
cmp ebx, esi
jne 0x10036e7
push esi
push esi
push 3
push 4
push esi
push esi
push 0xa
push dword [edi]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov ebx, eax
push dword [ebp - 0x80c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x808]
cmp eax, esi
je 0x1003703
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.01009ab2
leave
ret 4
Function at 0x1003890
Capabilities:
Write file on windows

Disassembly:
push 0x24
push 0x1001400
call fcn.01009db4
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x24], eax
push dword [ebp + 8]
push dword [0x100c350]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp + 0x10]
push eax
push 0x1000
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push dword [ebp + 0xc]
push 0x500
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], ebx
je 0x10039a3
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileType]
and eax, 0xffff7fff
cmp eax, 2
jne 0x1003910
push ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x100396f
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x20]
lea eax, [eax + eax + 2]
push eax
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, ebx
je 0x100396f
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_CharToOemW]
test eax, eax
je 0x1003960
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1003947
sub eax, edx
push ebx
lea ecx, [ebp - 0x2c]
push ecx
push eax
push esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, ebx
je 0x100396f
push esi
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
call fcn.01002cb0
test eax, eax
je 0x100398d
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10039a3
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ax, word [0x100c340]
push eax
push dword [0x100c350]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, dword [ebp - 0x20]
call fcn.01009def
ret 0xc
Function at 0x1003dcf
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.01009d70
mov eax, dword [0x100bb2c]
push esi
mov dword [ebp - 4], eax
push 0x400
xor esi, esi
lea eax, [ebp - 0xc04]
push eax
push esi
mov dword [ebp - 0x1010], esi
mov dword [ebp - 0x1014], esi
mov dword [ebp - 0x1018], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x200
mov dword [ebp - 0x1008], eax
lea eax, [ebp - 0x1004]
push eax
push 0x23a
push esi
call dword [sym.imp.USER32.dll_LoadStringW]
cmp dword [ebp - 0x1008], esi
jbe 0x1003fd0
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0xc04]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, esi
mov dword [ebp - 0x1008], eax
jbe 0x1003fd0
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
cmp ebx, esi
je 0x1003fcf
push ebx
push dword [ebp - 0x1008]
lea eax, [ebp - 0xc04]
push esi
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1003fc0
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x100c]
push eax
push 0x10014fc
push ebx
mov dword [ebp - 0x100c], esi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0x100c]
cmp eax, esi
je 0x1003f79
movzx ecx, word [eax + 2]
movzx eax, word [eax]
mov esi, dword [sym.imp.msvcrt.dll_swprintf]
push edi
push 0x10014dc
push ecx
push eax
mov edi, 0x10014a4
lea eax, [ebp - 0x404]
push edi
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x404]
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0x100c]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push 0x1001480
push ecx
push eax
lea eax, [ebp - 0x404]
push edi
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x404]
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0x100c]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push 0x1001460
push ecx
push eax
lea eax, [ebp - 0x404]
push edi
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x1018]
push eax
lea eax, [ebp - 0x404]
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
xor esi, esi
pop edi
cmp dword [ebp - 0x1014], esi
je 0x1003fc0
cmp dword [ebp - 0x1010], esi
je 0x1003fc0
cmp dword [ebp - 0x1018], esi
je 0x1003fc0
push dword [ebp - 0x1018]
lea eax, [ebp - 0x1004]
push dword [ebp - 0x1010]
push dword [ebp - 0x1014]
push eax
xor eax, eax
mov ax, word [0x100c340]
push 0x1001424
push eax
call fcn.010039cc
add esp, 0x18
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.01009ab2
leave
ret
Function at 0x10045e0
Capabilities:
Read file on windows
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0xfffffffffffffff6
xor edi, edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov eax, dword [ebp - 0x14]
and eax, 0xfffffff9
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
and eax, 0xffff7fff
push edi
cmp eax, 2
lea eax, [ebp - 0x10]
push eax
push 1
je 0x1004685
lea eax, [ebp - 1]
push eax
push dword [ebp - 8]
call ebx
cmp dword [ebp - 0x10], edi
je 0x100467c
cmp eax, edi
je 0x100467c
push 1
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push edi
call dword [sym.imp.msvcrt.dll__getmbcp]
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp word [ebp - 0xc], 0xd
jne 0x1004692
push edi
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 8]
call ebx
jmp 0x1004692
mov dword [ebp - 0xc], 0xa
jmp 0x1004692
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
mov edx, dword [ebp - 0xc]
movzx ecx, dx
mov eax, ecx
sub eax, 3
je 0x100473f
sub eax, 5
je 0x10046ea
dec eax
dec eax
je 0x1004714
sub eax, 3
je 0x1004714
mov eax, dword [ebp + 0xc]
dec eax
cmp esi, eax
jae 0x100461d
mov eax, dword [ebp + 8]
mov word [eax + esi*2], dx
inc esi
cmp dword [ebp + 0x10], edi
je 0x100461d
xor eax, eax
mov ax, word [0x100c340]
push ecx
push 0x1001574
push eax
call fcn.010039cc
add esp, 0xc
jmp 0x100461d
cmp esi, edi
jbe 0x100461d
mov eax, dword [ebp + 8]
mov word [eax + esi*2], di
dec esi
cmp dword [ebp + 0x10], edi
je 0x100461d
push 8
push 8
push 0x100159c
call dword [sym.imp.msvcrt.dll_wprintf]
jmp 0x10046e2
xor eax, eax
mov ax, word [0x100c340]
push 0x1001420
push eax
call fcn.010039cc
pop ecx
pop ecx
push dword [ebp - 0x14]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
cmp esi, dword [ebp + 0xc]
jbe 0x1004757
push 0x7a
pop eax
jmp 0x1004760
call fcn.0100224b
push dword [ebp - 0x14]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push edi
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp + 8]
mov word [eax + esi*2], di
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1004daf
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x100bb2c]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x14], 0x2f
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov esi, dword [ebp + 0xc]
and dword [ebp - 0x82c], 0
and dword [ebp - 0x828], 0
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x24], 0x3a
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0x400
push edi
lea eax, [ebp - 0x824]
push eax
push 0x21
push edi
call ebx
test eax, eax
jle 0x1004e24
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
mov dword [ebp - 0x82c], eax
push 8
lea eax, [ebp - 0x824]
push eax
push 0x1e
push edi
call ebx
test eax, eax
jle 0x1004e49
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push 8
lea eax, [ebp - 0x824]
push eax
push 0x1d
push edi
call ebx
test eax, eax
jle 0x1004e6e
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
mov ax, word [esi + 2]
test ax, ax
mov edi, dword [ebp + 8]
je 0x1004ede
mov ecx, dword [ebp - 0x82c]
sub ecx, 0
je 0x1004eb5
dec ecx
je 0x1004ea0
dec ecx
jne 0x1004ede
movzx ecx, word [esi + 6]
push ecx
movzx eax, ax
lea ecx, [ebp - 0x14]
push ecx
push eax
mov eax, ecx
push eax
movzx eax, word [esi]
jmp 0x1004ec9
movzx ecx, word [esi]
push ecx
movzx eax, ax
lea ecx, [ebp - 0x14]
push ecx
push eax
mov eax, ecx
push eax
movzx eax, word [esi + 6]
jmp 0x1004ec9
movzx ecx, word [esi]
push ecx
lea ecx, [ebp - 0x14]
push ecx
movzx ecx, word [esi + 6]
push ecx
lea ecx, [ebp - 0x14]
push ecx
movzx eax, ax
push eax
push 0x1001610
push edi
call fcn.010039cc
add esp, 0x1c
mov dword [ebp - 0x828], eax
movzx eax, word [esi + 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
movzx eax, word [esi + 0xa]
push eax
lea eax, [ebp - 0x24]
push eax
movzx eax, word [esi + 8]
push eax
push 0x10015d4
push edi
call fcn.010039cc
mov ecx, dword [ebp - 4]
add eax, dword [ebp - 0x828]
add esp, 0x1c
pop edi
pop esi
pop ebx
call fcn.01009ab2
leave
ret 8
Function at 0x1009bca
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001bc0
call fcn.01009db4
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1009c05
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1009c05
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1009c1d
cmp eax, 0x20b
je 0x1009c0a
mov dword [ebp - 0x1c], edi
jmp 0x1009c31
cmp dword [ecx + 0x84], 0xe
jbe 0x1009c05
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1009c2b
cmp dword [ecx + 0x74], 0xe
jbe 0x1009c05
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100d388], 0xffffffff
or dword [0x100d38c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100d384]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100d380]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100d390], eax
call fcn.0100a0e8
cmp dword [0x100bb30], edi
jne 0x1009c8c
push fcn.0100a0e8
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100a0d1
push 0x100b010
push 0x100b00c
call sub.msvcrt.dll__initterm
mov eax, dword [0x100d37c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100d378]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x34], eax
push 0x100b008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010095f6
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x1009d03
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1009d38
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01009def
ret
Function at 0x401c59
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
mov dword [ebp - 4], ecx
push edi
lea ecx, [ebp - 0x10]
mov ebx, edx
call fcn.004147df
lea ecx, [ebp - 0x1c]
call fcn.004147df
push 0x3c
xor edi, edi
lea eax, [ebp - 0x58]
push edi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x54], 0x740
mov dword [ebp - 0x3c], 0xa
test bl, 1
je 0x401cb1
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x54], 0x8740
test bl, 2
je 0x401cbd
mov dword [ebp - 0x4c], str.runas
and ebx, 0x10000
jne 0x401ccc
or dword [ebp - 0x54], 0x100
mov eax, dword [0x42272c]
push 5
push eax
mov dword [ebp - 0x50], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x10]
call fcn.00403022
push eax
lea ecx, [ebp - 0x1c]
call fcn.00414864
cmp dword [ebp - 0xc], edi
jne 0x401d14
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x401d5b
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x401d49
cmp ebx, edi
jne 0x401d3d
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
inc edi
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, edi
pop ecx
pop ecx
pop edi
pop ebx
leave
ret 4

Function at 0x402cb1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.004028d6
push eax
push esi
push dword [ebp + 8]
call fcn.0040288b
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.004028d6
push eax
push esi
push dword [ebp + 8]
call fcn.0040288b
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004028c6
retf 0xe116