joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408820
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40dca0]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40883f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x40dc9c], 1
mov byte [0x40dc98], bl
jne 0x408899
mov ecx, dword [0x40f5a8]
test ecx, ecx
je 0x408887
mov esi, dword [0x40f5a4]
sub esi, 4
cmp esi, ecx
jb 0x408887
mov eax, dword [esi]
test eax, eax
je 0x408880
call eax
mov ecx, dword [0x40f5a8]
sub esi, 4
cmp esi, ecx
jae 0x408872
push 0x40b014
push 0x40b010
call fcn.004088d0
add esp, 8
push 0x40b01c
push 0x40b018
call fcn.004088d0
add esp, 8
test ebx, ebx
jne 0x4088c0
push ebp
mov dword [0x40dca0], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x408e80
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x40ddb0]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x408ec2
call edi
mov esi, eax
test esi, esi
je 0x408eac
mov eax, 1
jmp 0x408ebd
call ebp
mov ebx, eax
test ebx, ebx
je 0x408fcf
mov eax, 2
mov dword [0x40ddb0], eax
cmp eax, 1
jne 0x408f62
test esi, esi
jne 0x408edb
call edi
mov esi, eax
test esi, esi
je 0x408fcf
cmp word [esi], 0
mov eax, esi
je 0x408ef5
add eax, 2
cmp word [eax], 0
jne 0x408ee3
add eax, 2
cmp word [eax], 0
jne 0x408ee3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x408f54
push edi
call fcn.00407340
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x408f54
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x408f46
push ebx
call fcn.004072f0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x408fcf
test ebx, ebx
jne 0x408f73
call ebp
mov ebx, eax
test ebx, ebx
je 0x408fcf
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x408f8b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x408f7b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x408f7b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00407340
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x408fad
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4096d0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x40d7c8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4096f4
add eax, 8
inc ebp
cmp eax, 0x40d858
jb 0x4096e5
cmp ecx, dword [ebp*8 + 0x40d7c8]
jne 0x40989b
mov eax, dword [0x40dc20]
cmp eax, 1
je 0x40985d
test eax, eax
jne 0x409720
cmp dword [0x40b3d4], 1
je 0x40985d
cmp ecx, 0xfc
je 0x40989b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40975b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4097a4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x40a4c0
add ebx, ecx
push ebx
call fcn.004098b0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40a4a0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x40d7cc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00409ae0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40f4a0]
test eax, eax
je 0x40986e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x409878
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x40d7cc]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x77004b8d
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x132c08b1
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x886f6a
Capabilities:
Execute anti-debugging instructions

Disassembly:
push dword [esp + 4]
ror esi, 0x15
mov eax, dword [esp + 2]
push dword [esp]
pop bp
jmp 0x886f70
mov si, di
inc edi
jmp 0x886f53
xchg bh, cl
cpuid
neg eax
mov si, word [esp + 3]
neg edx
sub esp, 2
jmp 0x886fdb
mov edi, 0x9bc34c4c
not esi
xchg bh, cl
xchg dx, bx
mov edx, 0x5e9d2b60
add esp, 9
jmp 0x88714d
rdtsc
pop ebx
clc
xchg edi, ebp
xchg dword [esp + 0xc], edi
push dword [esp + 9]
jmp 0x887054
cld
setle ah
mov ebx, 0xc1676952
pop eax
xchg di, ax
inc esi
jmp 0x887014
pushal
pop ebx
xchg si, ax
bswap eax
mov dword [esp + 0x1b], esi
lea esp, [esp + 0xa]
jmp 0x88702a
btc ecx, edi
mov bx, sp
pop dword [esp + 6]
xchg dh, al
pop word [esp + 5]
add esp, 4
jmp 0x887082
push word [esp + 2]
push edx
xchg edx, esi
not ch
pop si
bswap eax
jmp 0x887043
neg ebx
mov dword [esp + 3], esi
mov esi, 0x730adce4
mov ebp, eax
cmc
rdtsc
jmp 0x8870fa
rdtsc
mov bx, 0xfedf
rdtsc
pop edi
neg ebp
bswap ebp
jmp 0x8870e2
xchg word [esp + 1], cx
lea esp, [esp + 1]
not edx
xchg dh, al
lea edi, [esi - 0xa5]
mov word [esp], bx
jmp 0x887072
xchg ecx, ebx
mov bx, word [esp + 0xa]
call fcn.008870c3
jmp 0x84fd836f
lea edx, [ecx*4]
xchg byte [esp + 8], dl
mov dl, dh
push dword [esp + 5]
sete bh
mov edi, dword [esp + 0xd]
jmp 0x887094
lea edx, [edi*4]
setno bh
rdtsc
inc esi
ror esi, 0xd
mov al, ah
jmp 0x8870aa

Function at 0x887232
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov cl, ch
xchg bh, cl
bswap edx
shr edi, 9
lea ecx, [esp + ecx]
lea eax, [ecx + 0xb3]
jmp 0x886d9e
shr edx, 7
bswap ebx
bsf di, ax
bsf bp, si
pop dx
rdtsc
jmp 0x886d47
setns ah
rcl bx, cl
lea ebx, [eax*4]
pop di
lea esp, [esp + 1]
lea ebp, [edi*4]
jmp 0x886d6a
mov dl, dh
xchg ch, dl
neg dx
lea ebx, [ebp - 0xdf]
neg ebx
bswap eax
jmp 0x886dd8
mov ebx, esi
mov byte [esp], ch
push edx
xor ecx, esi
btr eax, edx
lea ebp, [ebx*4]
jmp 0x886d82
setbe bh
cld
rol ax, cl
pushal
mov byte [esp + 1], ah
popal
jmp 0x886e20
mov eax, ebp
mov dl, dh
lea esp, [esp + 0xd]
add esp, 4
xor edx, esi
bswap ebp
jmp 0x886dc4
clc
btc eax, ebx
xchg bh, cl
mov dl, dh
pop ax
mov dword [esp + 0xd], ecx
jmp 0x886df3
lea esi, [esp + edx]
setnp ch
mov dl, 0x44
not cx
mov si, word [esp]
mov di, word [esp]
jmp 0x886e9b
xchg bp, dx
mov edx, 0x6fb2f6be
mov cl, ch
pop cx
xchg word [esp + 7], si
mov di, 0x7405
jmp 0x886e10
neg edi
xchg ch, dl
setge bh
mov edi, dword [esp]
mov ebx, eax
bswap ecx
jmp 0x886edc
xchg ebx, edi
ror ah, 1
xchg ebx, ecx
xchg ebx, ebp
bswap eax
mov bl, bh
jmp 0x886e60
inc di
xchg bh, cl
inc edx
mov bl, bh
mov dl, dh
and esi, ecx
jmp 0x886e7c
mov cl, ch
pop word [esp]
neg bh
sub esp, 0xc
pop cx
mov dx, word [esp]
call fcn.00886f08
mov esi, 0xdbbb0f89
btc ebx, ebx
mov bl, 0xe8
push edx
xchg byte [esp + 1], cl
mov dword [esp], ebp
mov eax, 0x59a7c778
jmp 0x886ea8
mov dl, 0x7c
mov dl, dh
xchg edi, esi
xchg cx, ax
rdtsc
lea esi, [edx + edi]
jmp 0x886ec0
inc dx
bswap edi
xchg dword [esp + 2], eax
pop bp
lea eax, [esi + 0x4d]
pop word [esp + 5]
jmp 0x886e49
pop si
bswap eax
jmp 0x886f3c
Function at 0x8872dc
Capabilities:
Execute anti-debugging instructions

Disassembly:
cpuid
bswap edi
push word [esp + 0x13]
mov dword [esp + 5], esi
jmp 0x8872c0
bsr cx, bp
bswap esi
lea ecx, [eax + ebx]
push dword [esp + 0x12]
lea eax, [ebp - 0xd7]
cld
jmp 0x88723b
pop di
pop eax
rdtsc
cld
mov al, ah
mov dword [esp + 0xd], ecx
jmp 0x887252
mov dword [esp + 0x19], ebp
pop dword [esp + 0xe]
not esi
mov al, 0x86
pop word [esp + 0xb]
clc
jmp 0x88726c
mov di, word [esp + 0x1a]
cpuid
lea edx, [edi + edi]
lea edi, [eax - 0x49]
mov ch, byte [esp + 0x19]
xchg ecx, edx
jmp 0x8873b0
push word [esp + 0x19]
mov dword [esp + 1], ebp
xchg dword [esp + 0xc], eax
xchg edx, edi
mov bl, bh
bswap ebp
jmp 0x8872a3
lea ebp, [esp + eax]
xchg byte [esp + 0x16], cl
xchg dh, al
xchg byte [esp + 5], bl
pop dword [esp]
jmp 0x88728f
mov cl, byte [esp]
sub esp, 4
cpuid
push esp
mov ah, byte [esp + 1]
sub esp, 0xa
jmp 0x887370
rdtsc
mov ch, byte [esp + 0xd]
mov ebx, dword [esp + 7]
pushal
lea esp, [esp + 0x46]
xchg ah, bl
jmp 0x8872ee
pop word [esp + 0xb]
btr edx, esp
btc ebp, ebx
mov dword [esp + 1], eax
bsf bp, si
neg cx
mov cl, 0x2a
jmp 0x887342
shl ax, cl
neg ch
xchg word [esp + 3], cx
not eax
mov byte [esp + 0x1b], bh
mov edx, ebp
jmp 0x88730f
not eax
sub esp, 0xe
btc esi, ebx
cld
not ax
pop dword [esp + 0xa]
jmp 0x88738b
Function at 0x887922
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov word [esp + 7], bx
setns dh
rdtsc
mov edi, ebp
xchg ah, bl
neg ch
jmp 0x88794f
rdtsc
lea esp, [esp + 3]
pop eax
pop ebx
jmp 0x88790c
neg bp
push edx
mov bp, word [esp + 0xe]
add al, dh
pop dword [esp + 0xa]
mov byte [esp + 0xb], ch
jmp 0x88797a
bswap esi
push word [esp + 0x14]
cpuid
lea edi, [ebp - 0xb7]
not edx
lea edx, [ebp + 0xdf]
jmp 0x88792c

Function at 0x887d9d
Capabilities:
Parse pe header

Disassembly:
call fcn.008867ca
pop word [esp + 1]
pop word [esp + 2]
push edx
lea esp, [esp + 1]
mov dword [esp + 0x8c], edi
jmp 0x887e08
mov eax, dword fs:[0x30]
jmp 0x887f1a
lea esp, [esp + 0x8c]
jmp 0x887df0
mov eax, dword [eax + 8]
push eax
jmp 0x8867c5
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
jmp 0x887e69

Function at 0x40152e
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
lea eax, [ebp - 0x124]
mov dword [esp + 8], 1
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x120]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x10c]
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [ebp - 0x124], 0x14
mov byte [ebp - 0x10c], 0
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
movzx eax, word [ebp - 0x120]
sub esp, 0x14
leave
sub eax, 0x41
ret

Function at 0x40158a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xa0
mov dword [ebp - 0x88], 0
call fcn.0040152e
mov dword [esp], 0x401664
mov dword [ebp - 0x8c], 0
mov ebx, eax
lea eax, [ebp - 0x8c]
mov dword [esp + 0xc], eax
mov eax, ebx
or eax, 0x40
mov dword [esp + 8], eax
mov eax, 0x4020c6
sub eax, 0x401664
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x40162d
mov dword [esp], ebx
lea esi, [ebp - 0x88]
call fcn.0040144c
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.004014ad
lea eax, [ebx + 0x1b600]
mov cl, bl
mov edx, 0x40300c
shl eax, cl
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov eax, edx
or eax, 1
imul ebx, eax
sub edx, ebx
mov dword [esp], edx
call fcn.00401dc9
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x402a14
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.004040e0
test esi, esi
jne 0x402a4a
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.004041d0
jmp 0x402a68
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402928
mov edi, eax
test esi, esi
je 0x402a68
cmp dword [ebx], 0
je 0x402a68
dec esi
jmp 0x402a51
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402d38
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x470008], 0x8088405
inc edx
mov dword [ebx + 0x470008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x40319c
Capabilities:
Query or enumerate registry value

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

Function at 0x403ee0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x472048], 0
je 0x403f41
cmp word [0x47221c], 0xd7b2
jne 0x403f09
cmp dword [0x472224], 0
jbe 0x403f09
mov eax, 0x472218
call dword [0x472234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x470070
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 0x403f68
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x470034], 0
jne 0x403f5d
push 0
push 0x470068
push 0x470070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404094
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.004026ec
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x472049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40405c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405474
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 0x4056a4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4054f7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4056a4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4054f7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4056c0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405580
xor eax, eax
push ebp
push 0x405579
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004052bc
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 0x40555e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4056e0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40555e
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 0x405580
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 0x40569a
cmp byte [ebp - 0xd], 0
jne 0x4055c7
cmp byte [ebp - 0x12], 0
je 0x40569a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4055e0
dec ebx
cmp byte [ebx], 0x2e
je 0x4055ef
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4055df
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40569a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40562c
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 0x40569a
cmp byte [ebp - 0xd], 0
je 0x40569a
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 0x40569a
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 0x405d6c
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 0x405dd2
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.00404350
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d54
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405dbc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405dd9
lea eax, [ebp - 0x10]
call fcn.004040e0
ret

Function at 0x40b058
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 0x40b091
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004041d0
jmp 0x40b09a
mov eax, ebx
mov edx, esi
call fcn.00404134
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b74c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b5c4
mov eax, dword [0x47199c]
cmp byte [eax], 0
je 0x40b7c8
mov eax, dword [0x471654]
call fcn.00402b68
call fcn.00402854
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.004087f8
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 0x40b810
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b7fe
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4715dc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x472664]
call fcn.00405280
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