joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1013e92c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x103a9760
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x1054d6a0], 1
jge 0x103a97cf
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x103a97a5
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x103a97a5
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x103a9782
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x103a97bb
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x103a97c2
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x103a98bf
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movaps xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x103a9890
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x103a9885
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x103a9879
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x103a9880
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x103a98bf
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x103a98ba
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x103a98a3
mov eax, dword [ebx + 8]
jmp 0x103a98bf
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x103a98b1
xor eax, eax
jmp 0x103a98bf
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x103a97ef
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x1013ef94
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x101a40a0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
ret

Function at 0x1013f6d8
Capabilities:
Create thread

Disassembly:
jmp 0x10228c40
mov ecx, 0x10555108
call fcn.10140b69
push 0
push 0
push 0
push 0x10135598
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
Function at 0x1013f8cc
Capabilities:
Create thread

Disassembly:
jmp 0x10267920
push esi
mov ecx, 0x10555860
call fcn.10140b69
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x10135589
push 0
push 0
call esi
push 0
push 0
push 0
push 0x101422a2
push 0
push 0
call esi
push 0
push 0
push 0
push 0x1013d194
push 0
push 0
call esi
push 0
push 0
push 0
push 0x1013e44a
push 0
push 0
call esi
pop esi
ret

Function at 0x10140187
Capabilities:
Print debug messages

Disassembly:
jmp 0x102d47df
push esi
mov esi, ecx
call fcn.101410d2
mov eax, 0x10000000
mov dword [esi], 0x38
lea ecx, [esi + 0x14]
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], 0xe00
mov dword [esi + 0x10], 0x103e4af0
call fcn.10137f78
test eax, eax
jns 0x102d482e
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x102d4827
push str.ERROR_:_Unable_to_initialize_critical_section_in_CAtlBaseModule_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x1043c690], 1
mov eax, esi
pop esi
ret
Function at 0x1015a4f0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x1054d22c], 0
je 0x1015a509
mov eax, dword [0x1054d22c]
jmp 0x1015a6a6
mov dword [0x1054d22c], 0x1054d1fc
push 0x28
push 0
push 0x1054d1fc
call fcn.1013868a
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x1054d1fc], eax
push str.imagehlp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x1054d200], eax
cmp dword [0x1054d200], 0
jne 0x1015a54f
xor eax, eax
jmp 0x1015a6a6
push str.ImagehlpApiVersionEx
mov eax, dword [0x1054d200]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1054d204], eax
push str.SymInitialize
mov ecx, dword [0x1054d200]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1054d208], eax
push str.SymSetOptions
mov edx, dword [0x1054d200]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1054d20c], eax
push str.SymGetOptions
mov eax, dword [0x1054d200]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1054d210], eax
push str.SymLoadModule
mov ecx, dword [0x1054d200]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1054d214], eax
push str.SymGetModuleInfo
mov edx, dword [0x1054d200]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1054d218], eax
push str.SymGetSymFromName
mov eax, dword [0x1054d200]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1054d21c], eax
push str.BindImage
mov ecx, dword [0x1054d200]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1054d220], eax
push 8
push 0
lea edx, [ebp - 8]
push edx
call fcn.1013868a
add esp, 0xc
mov word [ebp - 8], 9
cmp dword [0x1054d204], 0
je 0x1015a62d
lea eax, [ebp - 8]
push eax
call dword [0x1054d204]
cmp dword [0x1054d204], 0
je 0x1015a63f
movzx ecx, word [ebp - 8]
cmp ecx, 9
jge 0x1015a65a
mov edx, dword [0x1054d200]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1054d200], 0
xor eax, eax
jmp 0x1015a6a6
cmp dword [0x1054d208], 0
je 0x1015a673
push 0
push 0
mov eax, dword [0x1054d1fc]
push eax
call dword [0x1054d208]
cmp dword [0x1054d210], 0
je 0x1015a6a1
cmp dword [0x1054d20c], 0
je 0x1015a6a1
call dword [0x1054d210]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
and ecx, 7
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [0x1054d20c]
mov eax, dword [0x1054d22c]
mov esp, ebp
pop ebp
ret
Function at 0x1015b040
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x103e3618
push 0x1013b27c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], 0
jne 0x1015b07d
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x1015b0b3
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
jmp 0x1015b211
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0x4550
je 0x1015b0eb
push 0xbf
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x38]
jmp 0x1015b211
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 0x14]
test ecx, ecx
jne 0x1015b117
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
jmp 0x1015b211
mov edx, dword [ebp - 0x24]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], 0
jmp 0x1015b13a
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x28], edx
jae 0x1015b1eb
push str..detour
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
add ecx, eax
push ecx
call fcn.10132bae
add esp, 8
test eax, eax
jne 0x1015b1e6
mov edx, dword [ebp - 0x28]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x20]
cmp dword [eax + edx + 0xc], 0
je 0x1015b187
mov ecx, dword [ebp - 0x28]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x20]
cmp dword [edx + ecx + 0x10], 0
jne 0x1015b189
jmp 0x1015b1eb
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx], 0x30
jb 0x1015b1b6
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 4], 0x727444
je 0x1015b1b8
jmp 0x1015b1eb
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 8], 0
jne 0x1015b1cc
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov dword [ecx + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
jmp 0x1015b211
jmp 0x1015b131
mov dword [ebp - 4], 0xffffffff
jmp 0x1015b204
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1017fce0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x10435f38]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x105530ab
call fcn.10140b69
push 0x90
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.1013868a
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 5
jb 0x1017fd77
cmp dword [ebp - 0x90], 1
jb 0x1017fd77
push str.CsrGetProcessId
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1017fd67
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101383fb
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101383fb
mov esp, ebp
pop ebp
ret
push str.csrss.exe
call fcn.10142c20
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
call fcn.101383fb
mov esp, ebp
pop ebp
ret

Function at 0x1017fdc0
Capabilities:
Get explorer pid

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x105530ab
call fcn.10140b69
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.USER32.dll_GetShellWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10216f50
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov ecx, 0x10554f40
call fcn.10140b69
mov edi, dword [ebp + 8]
xor esi, esi
lea eax, [esi + edi]
push eax
call fcn.10142518
add esp, 4
cmp al, 0xcc
jne 0x10216f89
lea eax, [edi + 1]
add eax, esi
push eax
call fcn.1013e18e
add esp, 4
cmp eax, 0xcccccccc
je 0x10216f98
inc esi
cmp esi, 0x2710
jl 0x10216f64
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
lea eax, [esi - 4]
pop esi
pop ebp
ret
Function at 0x10371910
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.10134a99
mov eax, dword [0x10435f38]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x1054de98]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1420], ecx
mov edx, dword [ebp - 0x1420]
cmp edx, dword [ebp - 0x1424]
jae 0x10371ae8
lea eax, [ebp - 5]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1418], ecx
mov edx, dword [ebp - 0x1418]
cmp edx, dword [ebp - 0x1430]
jae 0x10371a37
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x10371a37
mov ecx, dword [ebp - 0x1420]
mov dl, byte [ecx]
mov byte [ebp - 0x1419], dl
mov eax, dword [ebp - 0x1420]
add eax, 1
mov dword [ebp - 0x1420], eax
mov cl, byte [ebp - 0x1419]
mov byte [ebp - 0x1411], cl
movsx edx, byte [ebp - 0x1411]
cmp edx, 0xa
jne 0x10371a15
mov eax, dword [ebp - 0x1408]
add eax, 1
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp - 0x1418]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
mov eax, dword [ebp - 0x1418]
mov cl, byte [ebp - 0x1411]
mov byte [eax], cl
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
jmp 0x10371999
mov eax, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1404]
sub eax, ecx
mov dword [ebp - 0x142c], eax
push 0
lea edx, [ebp - 0x1428]
push edx
mov eax, dword [ebp - 0x142c]
push eax
lea ecx, [ebp - 0x1404]
push ecx
mov edx, dword [ebp - 0x1434]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10371aa1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
jmp 0x10371b08
mov edx, dword [ebp - 0x140c]
add edx, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], edx
mov eax, dword [ebp - 0x1428]
cmp eax, dword [ebp - 0x142c]
jae 0x10371ae3
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x10371b08
jmp 0x10371972
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101383fb
mov esp, ebp
pop ebp
ret
Function at 0x10371ba0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.10134a99
mov eax, dword [0x10435f38]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x1054de98]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x141c], ecx
mov edx, dword [ebp - 0x141c]
cmp edx, dword [ebp - 0x1424]
jae 0x10371d8b
lea eax, [ebp - 6]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1414], ecx
mov edx, dword [ebp - 0x1414]
cmp edx, dword [ebp - 0x1430]
jae 0x10371cd6
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x10371cd6
mov ecx, dword [ebp - 0x141c]
mov dx, word [ecx]
mov word [ebp - 0x141e], dx
mov eax, dword [ebp - 0x141c]
add eax, 2
mov dword [ebp - 0x141c], eax
mov cx, word [ebp - 0x141e]
mov word [ebp - 0x1418], cx
movzx edx, word [ebp - 0x1418]
cmp edx, 0xa
jne 0x10371cb2
mov eax, dword [ebp - 0x1408]
add eax, 2
mov dword [ebp - 0x1408], eax
mov ecx, 0xd
mov edx, dword [ebp - 0x1414]
mov word [edx], cx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
mov ecx, dword [ebp - 0x1414]
mov dx, word [ebp - 0x1418]
mov word [ecx], dx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
jmp 0x10371c29
mov ecx, dword [ebp - 0x1414]
lea edx, [ebp - 0x1404]
sub ecx, edx
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x142c], ecx
push 0
lea eax, [ebp - 0x1428]
push eax
mov ecx, dword [ebp - 0x142c]
push ecx
lea edx, [ebp - 0x1404]
push edx
mov eax, dword [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10371d44
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x10371dab
mov eax, dword [ebp - 0x140c]
add eax, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], eax
mov ecx, dword [ebp - 0x1428]
cmp ecx, dword [ebp - 0x142c]
jae 0x10371d86
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1410]
mov dword [edx], eax
mov ecx, dword [ebp - 0x140c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1408]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
jmp 0x10371dab
jmp 0x10371c02
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101383fb
mov esp, ebp
pop ebp
ret
Function at 0x402b2c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404350
test esi, esi
jne 0x402b62
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404440
jmp 0x402b80
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a40
mov edi, eax
test esi, esi
je 0x402b80
cmp dword [ebx], 0
je 0x402b80
dec esi
jmp 0x402b69
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403370
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x525020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403408
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4033e8
xor eax, eax
push ebp
push 0x4033e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403424
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4033e8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x525020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x525020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404130
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x52a04c], 0
je 0x404191
cmp word [0x52a220], 0xd7b2
jne 0x404159
cmp dword [0x52a228], 0
jbe 0x404159
mov eax, 0x52a21c
call dword [0x52a238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x52506c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4041b8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x525030], 0
jne 0x4041ad
push 0
push 0x525064
push 0x52506c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404304
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004027f8
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x52a04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4042cc
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406498
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4064fe
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004045c0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402edc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4064e8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406505
lea eax, [ebp - 0x10]
call fcn.00404350
ret

Function at 0x409514
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404810
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40952d
test al, 0x10
jne 0x409531
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40ced8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40cf11
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404440
jmp 0x40cf1a
mov eax, ebx
mov edx, esi
call fcn.004043a4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40cf24
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40cf45
mov al, byte [esp]
jmp 0x40cf47
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d5cc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d444
mov eax, dword [0x529298]
cmp byte [eax], 0
je 0x40d648
mov eax, dword [0x528da4]
call fcn.00402ca0
call fcn.0040296c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004098b4
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40d690
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d67e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x528d0c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x52a668]
call fcn.00405990
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret