joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b0764
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xe0
mov eax, dword [0x5599f4]
mov edi, dword [ebp + 8]
xor eax, ebp
mov dword [esp + 0xd8], eax
mov eax, edi
cmp dword [edi + 0x14], 7
jbe 0x4b078e
mov eax, dword [edi]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x4b0806
push esi
call fcn.004d4c0e
add esp, 4
cmp dword [edi + 0x14], 7
mov ebx, eax
mov eax, edi
jbe 0x4b07b1
mov eax, dword [edi]
push ebx
push esi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
mov dword [esp], ebx
je 0x4b08a2
lea eax, [esp + 4]
lea ecx, [esp + 0xc0]
push eax
push ecx
push 0x50ffa8
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4b0927
mov eax, dword [ebp + 0xc]
mov esi, dword [esp + 0xc0]
mov ecx, 0xd
mov bl, 1
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x18]
and dword [eax + 0x1c], ecx
jmp 0x4b096a
push 1
call fcn.004180d0
add esp, 4
test al, al
je 0x4b089b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x715
je 0x4b089b
call sub.KERNEL32.dll_GetLastError
lea ecx, [esp + 8]
push eax
push 1
push 0x1f
push str..._.._third_party_crashpad_crashpad_util_win_module_version.cc
call fcn.00419440
lea eax, [esp + 0x18]
push str.GetFileVersionInfoSize:
push eax
call fcn.004015c0
add esp, 8
mov esi, eax
mov eax, dword [edi + 0x10]
cmp dword [edi + 0x14], 7
jbe 0x4b085c
mov edi, dword [edi]
lea ebx, [esp + 0xc0]
push eax
push edi
push ebx
call fcn.0041aa00
add esp, 0xc
mov eax, dword [ebx + 0x10]
cmp dword [ebx + 0x14], 0xf
mov ecx, ebx
jbe 0x4b0880
mov ecx, dword [esp + 0xc0]
push eax
push ecx
push esi
call fcn.00402d0a
add esp, 0xc
mov ecx, ebx
call fcn.00401ae0
lea ecx, [esp + 8]
call fcn.00419560
xor ebx, ebx
jmp 0x4b0975
push 1
call fcn.004180d0
add esp, 4
test al, al
je 0x4b0968
call sub.KERNEL32.dll_GetLastError
lea ecx, [esp + 8]
push eax
push 1
push 0x26
push str..._.._third_party_crashpad_crashpad_util_win_module_version.cc
call fcn.00419440
lea eax, [esp + 0x18]
push str.GetFileVersionInfo:
push eax
call fcn.004015c0
add esp, 8
mov esi, eax
mov eax, dword [edi + 0x10]
cmp dword [edi + 0x14], 7
jbe 0x4b08eb
mov edi, dword [edi]
lea ebx, [esp + 0xc0]
push eax
push edi
push ebx
call fcn.0041aa00
add esp, 0xc
mov eax, dword [ebx + 0x10]
cmp dword [ebx + 0x14], 0xf
mov ecx, ebx
jbe 0x4b090f
mov ecx, dword [esp + 0xc0]
push eax
push ecx
push esi
call fcn.00402d0a
add esp, 0xc
mov ecx, ebx
call fcn.00401ae0
lea ecx, [esp + 8]
jmp 0x4b0963
push 1
call fcn.004180d0
add esp, 4
test al, al
je 0x4b0968
call sub.KERNEL32.dll_GetLastError
lea esi, [esp + 8]
mov ecx, esi
push eax
push 1
push 0x31
push str..._.._third_party_crashpad_crashpad_util_win_module_version.cc
call fcn.00419440
lea eax, [esp + 0x18]
push str.VerQueryValue
push eax
call fcn.004015c0
add esp, 8
mov ecx, esi
call fcn.00419560
xor ebx, ebx
push dword [esp]
call fcn.004d4c17
add esp, 4
mov ecx, dword [esp + 0xd8]
xor ecx, ebp
call fcn.004d4bc8
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4b2342
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 8]
mov esi, dword [eax]
push esi
call fcn.004dc120
add esp, 4
test eax, eax
je 0x4b2374
mov ecx, 0x811c9dc5
movzx edx, byte [esi]
inc esi
xor edx, ecx
imul ecx, edx, 0x1000193
dec eax
jne 0x4b235d
and ecx, 0x7fffffff
jmp 0x4b2379
mov ecx, 0x11c9dc5
push 0x1f31d
push ecx
call fcn.004faee5
add esp, 8
imul ecx, edx, 0x41a7
imul edx, eax, 0xfffff4ec
lea eax, [ecx + edx + 0x7fffffff]
add ecx, edx
cmovns eax, ecx
pop esi
pop ebp
ret 4

Function at 0x4c80c0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
and esp, 0xfffffff8
sub esp, 0xe0
mov eax, dword [0x5599f4]
lea esi, [esp + 4]
xor eax, ebp
mov dword [esp + 0xdc], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esi + 0x14], 0x100
jb 0x4c812e
push 1
call fcn.004180d0
add esp, 4
test al, al
je 0x4c812e
lea esi, [esp + 0x28]
mov ecx, esi
push 1
push 0xa1
push str..._.._third_party_crashpad_crashpad_snapshot_win_system_snapshot_win.cc
call fcn.00418160
lea eax, [esp + 0x30]
push str.dwNumberOfProcessors_exceeds_uint8_t_storage
push eax
call fcn.004015c0
add esp, 8
mov ecx, esi
call fcn.00417750
mov ebx, dword [esp + 0x18]
cmp ebx, 0x100
jb 0x4c813c
mov bl, 0xff
mov ecx, dword [esp + 0xdc]
xor ecx, ebp
call fcn.004d4bc8
mov eax, ebx
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret
Function at 0x4cd5d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xf8
mov eax, dword [0x5599f4]
mov esi, ecx
lea edi, [esi + 0x18]
mov ecx, edi
xor eax, ebp
mov dword [esp + 0xf0], eax
call fcn.004d42da
lea ebx, [esp + 0xb0]
mov ecx, esi
push ebx
push 0
push 0x40
push edx
push eax
call fcn.004ced92
test al, al
je 0x4cd681
movzx eax, word [esp + 0xb0]
cmp eax, 0x5a4d
jne 0x4cd6b6
mov ecx, edi
call fcn.004d42da
mov ebx, eax
mov eax, dword [esp + 0xec]
mov ecx, esi
mov edi, eax
sar edi, 0x1f
add ebx, eax
adc edi, edx
push dword [ebp + 8]
push 0
push 0x108
push edi
push ebx
call fcn.004ced92
test al, al
je 0x4cd6e8
mov eax, dword [ebp + 8]
mov ecx, ebx
cmp dword [eax], 0x4550
jne 0x4cd716
mov eax, dword [ebp + 0xc]
mov bl, 1
test eax, eax
je 0x4cd76a
mov dword [eax], ecx
mov dword [eax + 4], edi
jmp 0x4cd76a
push 1
call fcn.004180d0
add esp, 4
test al, al
je 0x4cd768
mov edi, esp
mov ecx, edi
push 1
push 0x12e
push str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
call fcn.00418160
lea eax, [esp + 8]
push str.could_not_read_dos_header_from
jmp 0x4cd742
push 1
call fcn.004180d0
add esp, 4
test al, al
je 0x4cd768
mov edi, esp
mov ecx, edi
push 1
push 0x134
push str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
call fcn.00418160
lea eax, [esp + 8]
push str.invalid_e_magic_in_dos_header_of
jmp 0x4cd742
push 1
call fcn.004180d0
add esp, 4
test al, al
je 0x4cd768
mov edi, esp
mov ecx, edi
push 1
push 0x13c
push str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
call fcn.00418160
lea eax, [esp + 8]
push str.could_not_read_nt_headers_from
jmp 0x4cd742
push 1
call fcn.004180d0
add esp, 4
test al, al
je 0x4cd768
mov edi, esp
mov ecx, edi
push 1
push 0x142
push str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
call fcn.00418160
lea eax, [esp + 8]
push str.invalid_signature_in_nt_headers_of
push eax
call fcn.004015c0
add esp, 8
mov ecx, dword [esi + 0x10]
cmp dword [esi + 0x14], 0xf
jbe 0x4cd756
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.00402d0a
add esp, 0xc
mov ecx, edi
call fcn.00417750
xor ebx, ebx
mov ecx, dword [esp + 0xf0]
xor ecx, ebp
call fcn.004d4bc8
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x4da5ec
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x540a44
push 0x540a3c
push str.FlsAlloc
push 0
call fcn.004da56c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4da61e
push dword [ebp + 8]
mov ecx, esi
call fcn.004d5d1b
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x4da660
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x540a54
push 0x540a4c
push str.FlsGetValue
push 2
call fcn.004da56c
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x4da691
mov ecx, esi
call fcn.004d5d1b
call esi
jmp 0x4da697
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x4da69a
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x540a5c
push 0x540a54
push str.FlsSetValue
push 3
call fcn.004da56c
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x4da6ce
mov ecx, esi
call fcn.004d5d1b
call esi
jmp 0x4da6d4
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret
Function at 0x4eb9c1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x55d388]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4eba02
cmp byte [edx], 0xa
jne 0x4eba02
or byte [eax + edi + 0x28], 4
jmp 0x4eba07
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
mov ebx, edx
mov dword [ebp - 8], eax
mov esi, edx
cmp edx, eax
jae 0x4ebaf8
mov al, byte [ebx]
cmp al, 0x1a
je 0x4ebad9
cmp al, 0xd
je 0x4eba30
mov byte [esi], al
inc esi
inc ebx
jmp 0x4ebace
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x4eba50
cmp byte [eax], 0xa
jne 0x4eba45
push 2
mov byte [esi], 0xa
pop eax
jmp 0x4eba4b
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x4ebace
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ebac7
cmp dword [ebp - 0x14], 0
je 0x4ebac7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x55d388]
test byte [eax + edi + 0x28], 0x48
je 0x4eba9e
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x4eba8e
mov byte [esi], dl
jmp 0x4ebaca
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x55d388]
mov byte [eax + edi + 0x2a], dl
jmp 0x4ebaca
cmp byte [ebp - 1], 0xa
jne 0x4ebab0
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x4ebab0
mov byte [esi], 0xa
jmp 0x4eba4d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004ef472
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4ebacb
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x4eba19
jmp 0x4ebaf8
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x55d388]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4ebaf3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4ebaf8
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ebb03
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x55d388]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x4ebb47
cmp word [edx], bx
jne 0x4ebb47
or byte [edi + eax + 0x28], 4
jmp 0x4ebb4c
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x4ebca0
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x4ebc80
cmp ax, word [ebp - 0x10]
je 0x4ebb85
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x4ebc75
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x4ebbab
push 0xa
pop ecx
cmp word [eax], cx
jne 0x4ebb9b
push ecx
pop eax
push 4
jmp 0x4ebba0
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x4ebc6f
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ebc66
cmp dword [ebp - 0x18], 0
je 0x4ebc66
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x55d388]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x4ebc32
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x4ebbf6
mov word [esi], ax
jmp 0x4ebc2a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x55d388]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x55d388]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x55d388]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x4ebc75
cmp word [ebp - 4], ax
jne 0x4ebc47
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x4ebc47
mov word [esi], ax
add esi, 2
jmp 0x4ebc75
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004ef472
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4ebc72
jmp 0x4ebc69
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x4ebb65
jmp 0x4ebca0
mov ecx, dword [ecx*4 + 0x55d388]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x4ebc97
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x4ebca0
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ef2cc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ef149

Function at 0x4f7701
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f73a3
Function at 0x402aa8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402ae5
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402b05
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404d3c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402ccc
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.00404acc
test esi, esi
jne 0x402d02
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.00404bbc
jmp 0x402d20
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402b80
mov edi, eax
test esi, esi
je 0x402d20
cmp dword [ebx], 0
je 0x402d20
dec esi
jmp 0x402d09
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403b4c
Capabilities:
Query or enumerate registry value

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

Function at 0x4048cc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a6048], 0
je 0x40492d
cmp word [0x4a621c], 0xd7b2
jne 0x4048f5
cmp dword [0x4a6224], 0
jbe 0x4048f5
mov eax, 0x4a6218
call dword [0x4a6234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4a3094
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 0x404954
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a3034], 0
jne 0x404949
push 0
push 0x4a308c
push 0x4a3094
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x404a80
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.00402894
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4a6049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404a48
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40612c
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 0x40635c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4061af
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40635c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4061af
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406378
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406238
xor eax, eax
push ebp
push 0x406231
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405f74
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 0x406216
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406398
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406216
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 0x406238
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 0x406352
cmp byte [ebp - 0xd], 0
jne 0x40627f
cmp byte [ebp - 0x12], 0
je 0x406352
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406298
dec ebx
cmp byte [ebx], 0x2e
je 0x4062a7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406297
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406352
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4062e4
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 0x406352
cmp byte [ebp - 0xd], 0
je 0x406352
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 0x406352
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 0x406238
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 0x40635c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4061af
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40635c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4061af
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406378
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406238
xor eax, eax
push ebp
push 0x406231
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405f74
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 0x406216
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406398
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406216
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 0x406238
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 0x406352
cmp byte [ebp - 0xd], 0
jne 0x40627f
cmp byte [ebp - 0x12], 0
je 0x406352
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406298
dec ebx
cmp byte [ebx], 0x2e
je 0x4062a7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406297
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406352
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4062e4
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 0x406352
cmp byte [ebp - 0xd], 0
je 0x406352
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 0x406352
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