joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10062380
Capabilities:
Check for peb ntglobalflag flag
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101495b9
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1021eb80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [0x101a70f4]
push 3
call esi
push 4
lea ecx, [edi + 8]
mov dword [ebp - 4], 0
call esi
push 5
lea ecx, [edi + 0x10]
mov byte [ebp - 4], 1
call esi
push 6
lea ecx, [edi + 0x18]
mov byte [ebp - 4], 2
call esi
push 7
lea ecx, [edi + 0x20]
mov byte [ebp - 4], 3
call esi
push 8
lea ecx, [edi + 0x28]
mov byte [ebp - 4], 4
call esi
push 9
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 5
call esi
push 0xa
lea ecx, [edi + 0x38]
mov byte [ebp - 4], 6
call esi
push 0xb
lea ecx, [edi + 0x40]
mov byte [ebp - 4], 7
call esi
push 0xc
lea ecx, [edi + 0x48]
mov byte [ebp - 4], 8
call esi
push 0xd
lea ecx, [edi + 0x50]
mov byte [ebp - 4], 9
call esi
push 0xe
lea ecx, [edi + 0x58]
mov byte [ebp - 4], 0xa
call esi
push 0xf
lea ecx, [edi + 0x60]
mov byte [ebp - 4], 0xb
call esi
push 0x10
lea ecx, [edi + 0x68]
mov byte [ebp - 4], 0xc
call esi
push 0x16
lea ecx, [edi + 0x70]
mov byte [ebp - 4], 0xd
call esi
push 0x17
lea ecx, [edi + 0x78]
mov byte [ebp - 4], 0xe
call esi
mov byte [ebp - 4], 0xf
push 0x2fde
lea ecx, [edi + 0x80]
call esi
push 0x2fdf
lea ecx, [edi + 0x88]
mov byte [ebp - 4], 0x10
call esi
push 0x2fe0
lea ecx, [edi + 0x90]
mov byte [ebp - 4], 0x11
call esi
push 0x2fe1
lea ecx, [edi + 0x98]
mov byte [ebp - 4], 0x12
call esi
push 0x2fe2
lea ecx, [edi + 0xa0]
mov byte [ebp - 4], 0x13
call esi
push 0x2fe3
lea ecx, [edi + 0xa8]
mov byte [ebp - 4], 0x14
call esi
push 0x227d9
lea ecx, [edi + 0xb0]
mov byte [ebp - 4], 0x15
call esi
push 0x3548f
lea ecx, [edi + 0xb8]
mov byte [ebp - 4], 0x16
call esi
push 0x35490
lea ecx, [edi + 0xc0]
mov byte [ebp - 4], 0x17
call esi
push 0x35491
lea ecx, [edi + 0xc8]
mov byte [ebp - 4], 0x18
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1009d780
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101573ae
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1021eb80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov ecx, esi
mov edi, dword [ebp + 0x10]
push edi
mov dword [ebp + 0xc], esi
call dword [0x101a7098]
mov ax, word [edi + 0xc]
lea ecx, [esi + 0x10]
mov word [esi + 0xc], ax
lea eax, [edi + 0x10]
push eax
mov dword [ebp - 4], 0
call dword [0x101a70ec]
mov dword [esi + 0x18], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
movups xmm0, xmmword [edi + 0x18]
movups xmmword [esi + 0x18], xmm0
movq xmm0, qword [edi + 0x28]
movq qword [esi + 0x28], xmm0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xf
mov byte [edi + 0x18], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
movups xmm0, xmmword [edi + 0x30]
movups xmmword [esi + 0x30], xmm0
movq xmm0, qword [edi + 0x40]
movq qword [esi + 0x40], xmm0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0xf
mov byte [edi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1009e0d0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101575b7
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x1021eb80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
lea eax, [ebp + 8]
mov dword [ebp - 4], 3
push eax
call dword [0x101a7098]
mov ax, word [ebp + 0x14]
lea ecx, [esi + 0x10]
mov word [esi + 0xc], ax
lea eax, [ebp + 0x18]
push eax
mov byte [ebp - 4], 4
call dword [0x101a70ec]
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 5
lea eax, [ebp + 0x20]
mov dword [ecx], 0
push eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call sym.MITax.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Construct_lv_contents_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 6
lea eax, [ebp + 0x38]
mov dword [ecx], 0
push eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call sym.MITax.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Construct_lv_contents_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
lea ecx, [ebp + 8]
call dword [0x101a70d8]
lea ecx, [ebp + 0x18]
call dword [0x101a70f0]
mov ecx, dword [ebp + 0x34]
cmp ecx, 0x10
jb 0x1009e1b2
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1009e1a8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009e1ea
push ecx
push edx
call fcn.101349c3
add esp, 8
mov ecx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp ecx, 0x10
jb 0x1009e1fa
mov edx, dword [ebp + 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1009e1f0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1009e1f0
call dword [0x101a7194]
push ecx
push edx
call fcn.101349c3
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x48
Function at 0x100e3500
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101616ce
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1021eb80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [0x101a70f4]
push 0x8010
call esi
push 0x8011
lea ecx, [edi + 8]
mov dword [ebp - 4], 0
call esi
push 0x8012
lea ecx, [edi + 0x10]
mov byte [ebp - 4], 1
call esi
push 0x8013
lea ecx, [edi + 0x18]
mov byte [ebp - 4], 2
call esi
push 0xdae7
lea ecx, [edi + 0x20]
mov byte [ebp - 4], 3
call esi
push 0x13e56
lea ecx, [edi + 0x28]
mov byte [ebp - 4], 4
call esi
push 0x13e57
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 5
call esi
push 0x20a0d
lea ecx, [edi + 0x38]
mov byte [ebp - 4], 6
call esi
push 0x20a0e
lea ecx, [edi + 0x40]
mov byte [ebp - 4], 7
call esi
push 0x20a0f
lea ecx, [edi + 0x48]
mov byte [ebp - 4], 8
call esi
push 0x34491
lea ecx, [edi + 0x50]
mov byte [ebp - 4], 9
call esi
push 0x34492
lea ecx, [edi + 0x58]
mov byte [ebp - 4], 0xa
call esi
push 0x34493
lea ecx, [edi + 0x60]
mov byte [ebp - 4], 0xb
call esi
push 0x34919
lea ecx, [edi + 0x68]
mov byte [ebp - 4], 0xc
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100e3610
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016175e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1021eb80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [0x101a70f4]
push 1
call esi
push 2
lea ecx, [edi + 8]
mov dword [ebp - 4], 0
call esi
push 3
lea ecx, [edi + 0x10]
mov byte [ebp - 4], 1
call esi
push 4
lea ecx, [edi + 0x18]
mov byte [ebp - 4], 2
call esi
push 5
lea ecx, [edi + 0x20]
mov byte [ebp - 4], 3
call esi
push 6
lea ecx, [edi + 0x28]
mov byte [ebp - 4], 4
call esi
push 7
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 5
call esi
push 8
lea ecx, [edi + 0x38]
mov byte [ebp - 4], 6
call esi
push 9
lea ecx, [edi + 0x40]
mov byte [ebp - 4], 7
call esi
push 0xa
lea ecx, [edi + 0x48]
mov byte [ebp - 4], 8
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1011cf80
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101834ce
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1021eb80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [0x101a70f4]
push 0x20a0d
call esi
push 0x20a0e
lea ecx, [edi + 8]
mov dword [ebp - 4], 0
call esi
push 0x20a0f
lea ecx, [edi + 0x10]
mov byte [ebp - 4], 1
call esi
push 0x20a10
lea ecx, [edi + 0x18]
mov byte [ebp - 4], 2
call esi
push 0x20a11
lea ecx, [edi + 0x20]
mov byte [ebp - 4], 3
call esi
push 0x20a12
lea ecx, [edi + 0x28]
mov byte [ebp - 4], 4
call esi
push 0x20a13
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 5
call esi
push 0x20a14
lea ecx, [edi + 0x38]
mov byte [ebp - 4], 6
call esi
push 0x20a15
lea ecx, [edi + 0x40]
mov byte [ebp - 4], 7
call esi
push 0x20a16
lea ecx, [edi + 0x48]
mov byte [ebp - 4], 8
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10134100
Capabilities:
Check for peb ntglobalflag flag
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101917ed
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1021eb80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [0x101a70f4]
push 0x8000
call esi
push 0x8001
lea ecx, [edi + 8]
mov dword [ebp - 4], 0
call esi
push 0x8002
lea ecx, [edi + 0x10]
mov byte [ebp - 4], 1
call esi
push 0x8010
lea ecx, [edi + 0x18]
mov byte [ebp - 4], 2
call esi
push 0x8011
lea ecx, [edi + 0x20]
mov byte [ebp - 4], 3
call esi
push 0x8012
lea ecx, [edi + 0x28]
mov byte [ebp - 4], 4
call esi
push 0x8013
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 5
call esi
push 0xa6fc
lea ecx, [edi + 0x38]
mov byte [ebp - 4], 6
call esi
push 0xa6fd
lea ecx, [edi + 0x40]
mov byte [ebp - 4], 7
call esi
push 0xa6fe
lea ecx, [edi + 0x48]
mov byte [ebp - 4], 8
call esi
push 0xa6ff
lea ecx, [edi + 0x50]
mov byte [ebp - 4], 9
call esi
push 0xa700
lea ecx, [edi + 0x58]
mov byte [ebp - 4], 0xa
call esi
push 0xdae7
lea ecx, [edi + 0x60]
mov byte [ebp - 4], 0xb
call esi
push 0x11098
lea ecx, [edi + 0x68]
mov byte [ebp - 4], 0xc
call esi
push 0x13e56
lea ecx, [edi + 0x70]
mov byte [ebp - 4], 0xd
call esi
push 0x13e57
lea ecx, [edi + 0x78]
mov byte [ebp - 4], 0xe
call esi
mov byte [ebp - 4], 0xf
push 0x20a59
lea ecx, [edi + 0x80]
call esi
push 0x20a5a
lea ecx, [edi + 0x88]
mov byte [ebp - 4], 0x10
call esi
push 0x34491
lea ecx, [edi + 0x90]
mov byte [ebp - 4], 0x11
call esi
push 0x34492
lea ecx, [edi + 0x98]
mov byte [ebp - 4], 0x12
call esi
push 0x34493
lea ecx, [edi + 0xa0]
mov byte [ebp - 4], 0x13
call esi
push 0x34919
lea ecx, [edi + 0xa8]
mov byte [ebp - 4], 0x14
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1013b719
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esp, 4
pop ecx
mov eax, dword [ebp - 0x5e4]
mov dword [ebp - 0x8ac], eax
jmp 0x1013b793
Function at 0x4265c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1b000]
push edi
or ebp, 0xffffffff
jmp 0x4265e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4265e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4265d8
mov eax, 1
add ebx, ebx
jne 0x4265fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4265f0
jne 0x42660c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4265f0
xor ecx, ecx
sub eax, 3
jb 0x426620
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x426692
mov ebp, eax
add ebx, ebx
jne 0x42662b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x426638
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42665c
inc ecx
add ebx, ebx
jne 0x426648
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42663d
jne 0x426659
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42663d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42667c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42666d
jmp 0x4265de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42667c
add edi, ecx
jmp 0x4265de
pop esi
mov edi, esi
mov ecx, 0xd
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42669a
cmp byte [edi], 1
jne 0x42669a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42669f
lea edi, [esi + 0x24000]
mov eax, dword [edi]
or eax, eax
je 0x426717
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28e44]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x28e80]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4266cc
mov ecx, edi
jns 0x4266fb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x28e84]
or eax, eax
je 0x426711
mov dword [ebx], eax
add ebx, 4
jmp 0x4266e9
call dword [esi + 0x28e8c]
mov ebp, dword [esi + 0x28e88]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42674b
sub esp, 0xffffff80
jmp 0x401224
Function at 0x40342c
Capabilities:
Query or enumerate registry value

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

Function at 0x403e5c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x428044], 0
je 0x403ebd
cmp word [0x428218], 0xd7b2
jne 0x403e85
cmp dword [0x428220], 0
jbe 0x403e85
mov eax, 0x428214
call dword [0x428230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x403ee4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x426020], 0
jne 0x403ed9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404860
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 0x404a90
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4048e3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404a90
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4048e3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404aac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40496c
xor eax, eax
push ebp
push 0x404965
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040469c
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 0x40494a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404acc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40494a
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 0x40496c
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 0x404a86
cmp byte [ebp - 0xd], 0
jne 0x4049b3
cmp byte [ebp - 0x12], 0
je 0x404a86
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4049cc
dec ebx
cmp byte [ebx], 0x2e
je 0x4049db
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4049cb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404a86
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404a18
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 0x404a86
cmp byte [ebp - 0xd], 0
je 0x404a86
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 0x404a86
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 0x40496c
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 0x404a90
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4048e3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404a90
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4048e3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404aac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40496c
xor eax, eax
push ebp
push 0x404965
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040469c
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 0x40494a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404acc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40494a
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 0x40496c
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 0x404a86
cmp byte [ebp - 0xd], 0
jne 0x4049b3
cmp byte [ebp - 0x12], 0
je 0x404a86
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4049cc
dec ebx
cmp byte [ebx], 0x2e
je 0x4049db
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4049cb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404a86
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404a18
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 0x404a86
cmp byte [ebp - 0xd], 0
je 0x404a86
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 0x404a86
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 0x40690c
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 0x406945
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004040cc
jmp 0x40694e
mov eax, ebx
mov edx, esi
call fcn.00404030
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406958
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 0x40697a
movzx eax, byte [esp]
jmp 0x40697c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40700c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x406e84
mov eax, dword [0x42732c]
cmp byte [eax], 0
je 0x407088
mov eax, dword [0x427288]
call fcn.00402f34
call fcn.00402d9c
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.00405dcc
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 0x4070d0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4070be
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x427268]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x42a7f0]
call fcn.00404644
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