joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x10001071
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x10001071
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x1000105a
jmp 0x10001071
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x10002080
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10023300
push 0x1001d016
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100250c0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, edx
mov esi, ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x40
mov edi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub ebx, esi
sub ebx, 5
mov byte [esi], 0xe9
mov dword [esi + 1], ebx
mov eax, 5
mov dword [ebp - 0x28], eax
cmp eax, edi
jae 0x100020f0
mov byte [esi + eax], 0x90
inc eax
jmp 0x100020e2
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1000210a
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1001d045
mov esp, ebp
pop ebp
ret
Function at 0x10004600
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x100250c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov eax, dword [ecx]
push 0x1003e280
push ecx
call dword [eax + 0xc0]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0xa4]
push eax
push 0x40
push 0x40
lea eax, [ebp - 0xa0]
mov dword [0x1003e284], 0
push eax
mov dword [0x1003e280], 0
mov dword [0x1003e290], 0
mov dword [0x1003e294], 0x3f800000
call esi
movups xmm0, xmmword [0x10020590]
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0xa4]
movups xmmword [ebp - 0xa0], xmm0
push 0x40
movups xmm0, xmmword [0x100205a0]
lea eax, [ebp - 0xa0]
push eax
movups xmmword [ebp - 0x90], xmm0
movups xmm0, xmmword [0x100205b0]
movups xmmword [ebp - 0x80], xmm0
movups xmm0, xmmword [0x100205c0]
movups xmmword [ebp - 0x70], xmm0
call esi
mov eax, dword [0x1003e5dc]
mov eax, dword [eax]
mov dword [ebp - 0xa4], eax
mov eax, dword [0x1003e228]
mov eax, dword [eax]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa4]
add ecx, dword [ebp - 0xa8]
mov dword [ebp - 0xac], ecx
mov ecx, dword [ebp - 0xac]
mov eax, 0x1003e4cc
call eax
mov ecx, dword [0x1003e5dc]
mov esi, eax
mov ecx, dword [ecx]
mov dword [ebp - 0xa8], ecx
mov ecx, dword [0x1003e228]
mov ecx, dword [ecx]
mov dword [ebp - 0xa4], ecx
mov ecx, dword [ebp - 0xa8]
add ecx, dword [ebp - 0xa4]
mov dword [ebp - 0xb0], ecx
mov ecx, dword [ebp - 0xb0]
mov eax, 0x1003e58c
call eax
lea ecx, [ebp - 0xa0]
push ecx
push esi
push eax
push 0x1003e280
lea edx, [ebp + 8]
lea ecx, [ebp - 0xbc]
call fcn.10002880
movss xmm3, dword [ebp - 0xb4]
movss xmm0, dword [0x10021e98]
comiss xmm0, xmm3
jbe 0x100047e3
movss xmm1, dword [ebp - 0xbc]
xorps xmm0, xmm0
comiss xmm1, xmm0
jbe 0x100047e3
movss xmm2, dword [ebp - 0xb8]
comiss xmm2, xmm0
jbe 0x100047e3
mov eax, dword [0x1003e288]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10022b20]
cvtpd2ps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x100047e3
mov eax, dword [0x1003e28c]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10022b20]
cvtpd2ps xmm0, xmm0
comiss xmm0, xmm2
jbe 0x100047e3
movss dword [edi], xmm1
mov al, 1
movss dword [edi + 4], xmm2
movss dword [edi + 8], xmm3
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001d045
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.1001d045
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1001af10
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
mov eax, dword [0x100250c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.ntdll
mov dword [ebp - 0x2d8], edx
mov dword [ebp - 0x2dc], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor esi, esi
push esi
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 8
lea ebx, [esi + 8]
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movzx edi, al
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movzx eax, al
mov ecx, ebx
or eax, edi
shl eax, cl
or esi, eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov ecx, ebx
movzx eax, al
shl eax, cl
add ebx, 8
or esi, eax
cmp ebx, 0x20
jl 0x1001af53
cmp esi, 0x7fffffff
jbe 0x1001afab
lea eax, [esi - 0x80000000]
shr eax, 0xc
inc eax
nop word [eax + eax]
sub esi, 0x1000
sub eax, 1
jne 0x1001afa0
push 0
push 0x40
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push str.RtlCreateUserThread
push str.ntdll
mov dword [ebp - 0x2d4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [ebp - 0x2d8]
mov ebx, eax
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
lea ecx, [ebp - 0x2d4]
push ecx
push edi
push esi
push 0
push 0
push 0
push 1
push 0
push eax
call ebx
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d0], 0x10003
push eax
push dword [ebp - 0x2d4]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov eax, dword [ebp - 0x2dc]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x2d0]
push eax
push dword [ebp - 0x2d4]
mov dword [ebp - 0x2d0], 0x10003
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x2d4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001d045
mov esp, ebp
pop ebp
ret
Function at 0x1001c250
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100250c0]
xor eax, ebp
mov dword [ebp - 4], eax
sub dword [ebp + 0xc], 1
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
jne 0x1001c38c
lea edx, [ebp - 8]
mov ecx, 0x1001c060
call fcn.1001af10
lea edx, [ebp - 8]
mov ecx, 0x1001c070
call fcn.1001af10
mov ecx, dword [0x11dd4ac4]
mov eax, dword [0x11dd4ac0]
cmp eax, ecx
je 0x1001c2b3
mov edx, dword [ebp - 8]
nop dword [eax]
cmp dword [eax], edx
je 0x1001c2ab
add eax, 0x14
cmp eax, ecx
jne 0x1001c2a0
cmp eax, ecx
jne 0x1001c38c
mov eax, dword fs:[0x30]
push esi
mov eax, dword [eax + 0xc]
add eax, 0xc
mov esi, dword [eax]
cmp esi, eax
je 0x1001c2df
mov ecx, dword [ebp - 8]
nop dword [eax]
test esi, esi
je 0x1001c2df
cmp dword [esi + 0x18], ecx
je 0x1001c2f5
mov esi, dword [esi]
cmp esi, eax
jne 0x1001c2d0
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001d045
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi + 4]
push ebx
push edi
mov dword [ebp - 0x1c], ecx
mov edx, dword [eax]
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0xc], esi
mov edi, dword [eax]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x10], edi
mov ebx, dword [eax]
mov eax, dword [0x11dd4ac4]
mov dword [ebp - 0x14], ebx
cmp eax, dword [0x11dd4ac8]
je 0x1001c339
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], esi
add dword [0x11dd4ac4], 0x14
jmp 0x1001c343
lea ecx, [ebp - 0x1c]
push ecx
push eax
call fcn.1001c950
mov ecx, dword [esi]
mov eax, dword [esi + 4]
pop edi
pop ebx
mov dword [ecx + 4], eax
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
mov dword [ecx + 4], eax
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov dword [ecx], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov dword [ecx + 4], eax
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
pop esi
mov dword [ecx], eax
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001d045
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.1001d045
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1001c900
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 2
xor eax, eax
mov dl, byte [edi + eax + 0x2c81f264]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
and ecx, 0x800000ff
jns 0x1001c92e
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x26
jl 0x1001c911
pop edi
mov byte [esi + 0x26], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x1001cb20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], 0
mov ebx, dword fs:[0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x14]
mov ebx, dword [ebx]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x10]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405c8c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422aa4], 0
push esi
jne 0x405cc3
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 0x405c9d
mov dword [ecx*4 + 0x422aa0], eax
inc ecx
cmp ecx, 0x100
jl 0x405c98
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405cf4
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 + 0x422aa0]
xor eax, esi
inc ecx
dec edx
jne 0x405cd6
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4028f0
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.00403c88
test esi, esi
jne 0x402926
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.00403d78
jmp 0x402944
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402804
mov edi, eax
test esi, esi
je 0x402944
cmp dword [ebx], 0
je 0x402944
dec esi
jmp 0x40292d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402ed8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x417020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402f70
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402f50
xor eax, eax
push ebp
push 0x402f49
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 0x402f8c
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 0x402f50
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x417020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x417020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403b0c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x418044], 0
je 0x403b6d
cmp word [0x418218], 0xd7b2
jne 0x403b35
cmp dword [0x418220], 0
jbe 0x403b35
mov eax, 0x418214
call dword [0x418230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41706c
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 0x403b94
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x417030], 0
jne 0x403b89
push 0
push 0x417064
push 0x41706c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404e4c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40507c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404ecf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40507c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404ecf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405098
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404f58
xor eax, eax
push ebp
push 0x404f51
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404c94
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404f36
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4050b8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404f36
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404f58
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405072
cmp byte [ebp - 0xd], 0
jne 0x404f9f
cmp byte [ebp - 0x12], 0
je 0x405072
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404fb8
dec ebx
cmp byte [ebx], 0x2e
je 0x404fc7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404fb7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405072
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405004
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405072
cmp byte [ebp - 0xd], 0
je 0x405072
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405072
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404f58
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40507c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404ecf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40507c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404ecf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405098
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404f58
xor eax, eax
push ebp
push 0x404f51
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404c94
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404f36
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4050b8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404f36
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404f58
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405072
cmp byte [ebp - 0xd], 0
jne 0x404f9f
cmp byte [ebp - 0x12], 0
je 0x405072
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404fb8
dec ebx
cmp byte [ebx], 0x2e
je 0x404fc7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404fb7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405072
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405004
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405072
cmp byte [ebp - 0xd], 0
je 0x405072
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405072
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405708
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 0x40576e
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.00403ef8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402acc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405758
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405775
lea eax, [ebp - 0x10]
call fcn.00403c88
ret

Function at 0x409e00
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 0x409e39
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403d78
jmp 0x409e42
mov eax, ebx
mov edx, esi
call fcn.00403cdc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409e4c
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 0x409e6d
mov al, byte [esp]
jmp 0x409e6f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a4f4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a36c
mov eax, dword [0x4175ac]
cmp byte [eax], 0
je 0x40a570
mov eax, dword [0x4174cc]
call fcn.004029d8
call fcn.00402730
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.00407678
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 0x40a5b8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a5a6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4174a4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x418660]
call fcn.00404c58
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
Function at 0x40b254
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40b2b8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403ef8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040718c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b2bf
lea eax, [ebp - 0xc]
call fcn.00403c88
ret
Function at 0x4142f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bdc
xor eax, eax
push ebp
push 0x4143b4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, dword [0x413cac]
call fcn.00404b78
mov bl, 1
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00413ea4
push 0
mov eax, dword [ebp - 0x10]
call fcn.004048c4
inc eax
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x4188ac]
push eax
call sub.wsock32.dll_send
inc eax
cmp byte [ebp - 5], 0
je 0x414385
xor ebx, ebx
mov esi, 3
lea eax, [ebp - 0xc]
call fcn.00414030
mov eax, dword [ebp - 0xc]
call fcn.004048c4
cmp eax, 5
jle 0x414382
mov eax, dword [ebp - 0xc]
cmp byte [eax + 5], 6
jne 0x414382
mov bl, 1
jmp 0x414385
dec esi
jne 0x414360
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4143bb
lea eax, [ebp - 0x10]
mov edx, dword [0x413cac]
mov ecx, 2
call fcn.00404570
lea eax, [ebp - 4]
mov edx, dword [0x413cac]
call fcn.00404b78
ret

Function at 0x414408
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
fild dword [0x4188d8]
fmul qword [ebp + 8]
fstp qword [ebp + 8]
wait
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
fld qword [ebp + 8]
fmul qword [0x4188c8]
call fcn.00402950
add eax, dword [ebp - 0x10]
adc edx, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 4]
jne 0x414459
cmp eax, dword [ebp - 8]
jb 0x41443e
jmp 0x41445b
jl 0x41443e
mov esp, ebp
pop ebp
ret 8