joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001420
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov word [ebp - 3], 0x73
mov byte [ebp - 4], 0x65
mov word [ebp - 8], 0x7363
mov byte [ebp - 6], 0
mov word [ebp - 0xc], 0x7373
mov byte [ebp - 0xa], 0
mov word [ebp - 0x10], 0x7364
mov byte [ebp - 0xe], 0
mov word [ebp - 0x13], 0x73
mov byte [ebp - 0x14], 0x66
mov word [ebp - 0x17], 0x73
mov byte [ebp - 0x18], 0x67
mov word [ebp - 0x1d], 0x524f
mov word [ebp - 0x20], 0x5245
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1b], 0
mov dword [ebp - 0x26], 0x524f52
mov word [ebp - 0x28], 0x5245
cmp ecx, 7
ja case.default.0x1000148c
jmp dword [ecx*4 + 0x10001544]
lea eax, [ebp - 4]
push eax
push 0x104
push edx
call fcn.10017140
add esp, 0xc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push 0x104
push edx
call fcn.10017140
add esp, 0xc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
push 0x104
push edx
call fcn.10017140
add esp, 0xc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
push 0x104
push edx
call fcn.10017140
add esp, 0xc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
push 0x104
push edx
call fcn.10017140
add esp, 0xc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
push eax
push 0x104
push edx
call fcn.10017140
add esp, 0xc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push 0x104
push edx
call fcn.10017140
add esp, 0xc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x28]
push eax
push 0x104
push edx
call fcn.10017140
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x10009c20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [ebp - 9], 0x6c642e32
push eax
mov word [ebp - 5], 0x6c
mov dword [ebp - 0xf], 0x656e7265
mov word [ebp - 0xb], 0x336c
mov byte [ebp - 0x10], 0x4b
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esp, ebp
pop ebp
ret

Function at 0x10009c60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [ebp - 7], 0x6c6c64
push eax
mov dword [ebp - 0xb], 0x2e323369
mov word [ebp - 0xd], 0x7061
mov word [ebp - 0x10], 0x6441
mov byte [ebp - 0xe], 0x76
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esp, ebp
pop ebp
ret

Function at 0x10009ca0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x3233
push eax
mov dword [ebp - 6], 0x6c6c642e
mov word [ebp - 0xb], 0x6573
mov byte [ebp - 2], 0
mov byte [ebp - 0xc], 0x55
mov byte [ebp - 9], 0x72
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esp, ebp
pop ebp
ret

Function at 0x10009ce0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x776c6853
push eax
mov dword [ebp - 8], 0x2e697061
mov word [ebp - 3], 0x6c6c
mov byte [ebp - 1], 0
mov byte [ebp - 4], 0x64
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esp, ebp
pop ebp
ret
Function at 0x1000a4d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 0x10]
mov word [ebp - 5], 0x79
push eax
mov esi, edx
mov word [ebp - 8], 0x6575
mov edi, ecx
mov word [ebp - 0xb], 0x6c61
mov dword [ebp - 0x10], 0x74726956
mov byte [ebp - 6], 0x72
mov byte [ebp - 9], 0x51
mov byte [ebp - 0xc], 0x75
call fcn.10009c20
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000a521
push 0x1c
push esi
push edi
call eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000a590
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 0x10]
mov word [ebp - 0x10], 0x6956
push eax
mov esi, ecx
mov dword [ebp - 7], 0x636f6c
mov dword [ebp - 0xd], 0x6c617574
mov word [ebp - 9], 0x6c41
mov byte [ebp - 0xe], 0x72
call fcn.10009c20
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000a5dc
push 0x20
push 0x3000
push 0x6c
push esi
call eax
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000a5f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0xb], 0x6854646e
push eax
mov esi, ecx
mov dword [ebp - 6], 0x646165
mov dword [ebp - 0x10], 0x70737553
mov byte [ebp - 0xc], 0x65
mov byte [ebp - 7], 0x72
call fcn.10009c20
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000a632
push esi
call eax
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000a640
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 0x14]
mov word [ebp - 0xb], 0x7250
push eax
mov esi, ecx
mov dword [ebp - 0x12], 0x72685474
mov dword [ebp - 7], 0x79746972
mov word [ebp - 0xe], 0x6165
mov word [ebp - 9], 0x6f69
mov byte [ebp - 3], 0
mov word [ebp - 0x14], 0x6547
mov byte [ebp - 0xc], 0x64
call fcn.10009c20
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000a693
push esi
call eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, OleUIAddVerbMenuA
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000a730
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 0x10]
mov word [ebp - 4], 0x79
push eax
mov esi, edx
mov word [ebp - 0xf], 0x6c74
mov edi, ecx
mov word [ebp - 0xa], 0x4d6f
mov word [ebp - 7], 0x6f6d
mov byte [ebp - 0x10], 0x52
mov byte [ebp - 5], 0x72
mov word [ebp - 0xc], 0x7265
mov byte [ebp - 0xd], 0x5a
mov byte [ebp - 8], 0x65
call fcn.10009c20
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000a782
push esi
push edi
call eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000a830
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
call fcn.10009ca0
test eax, eax
je 0x1000a87f
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x11], 0x65726f46
push ecx
push eax
mov dword [ebp - 5], 0x776f646e
mov dword [ebp - 0xa], 0x57646e75
mov word [ebp - 0x14], 0x6553
mov word [ebp - 0xd], 0x7267
mov byte [ebp - 0x12], 0x74
mov byte [ebp - 1], 0
mov byte [ebp - 6], 0x69
mov byte [ebp - 0xb], 0x6f
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000a8d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
call fcn.10009ca0
test eax, eax
je 0x1000a913
lea ecx, [ebp - 0x14]
mov word [ebp - 0xf], 0x6957
push ecx
push eax
mov dword [ebp - 0x14], 0x6e697242
mov dword [ebp - 0xd], 0x776f646e
mov dword [ebp - 7], 0x706f54
mov byte [ebp - 0x10], 0x67
mov word [ebp - 9], 0x6f54
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000a9a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push esi
push 0x104
lea eax, [ebp - 0x130]
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x10], esi
call fcn.1000eb30
add esp, 0xc
mov dword [ebp - 5], 0x73255c45
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xa], 0x41575446
mov word [ebp - 0xc], 0x4f53
mov byte [ebp - 1], 0
mov byte [ebp - 6], 0x52
call fcn.1000c110
cmp dword [eax + 0x14], 0x10
jb 0x1000a9f1
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x130]
push 0x104
push eax
call fcn.1000c010
mov edx, dword [ebp - 0x14]
add esp, 0x14
cmp edx, 0x10
jb 0x1000aa3c
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000aa32
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000aa51
push edx
push ecx
call fcn.1000c97b
add esp, 8
lea eax, [ebp - 0x130]
mov ecx, esi
push eax
call fcn.1000c1b0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.1001fc77
int3
Function at 0x1000b440
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0xc]
sub esp, 0x118
cmp eax, 1
jne 0x1000b4f4
push ecx
lea edx, [esp + 0x14]
call fcn.10009fc0
add esp, 4
mov dword [esp + 6], 0x75732074
lea eax, [esp]
mov dword [esp + 0xc], 0x74726f
mov dword [esp + 1], 0x6174736e
mov word [esp + 0xa], 0x7070
push eax
lea eax, [esp + 0x14]
mov byte [esp + 4], 0x69
push eax
mov byte [esp + 0xd], 0x6e
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x1000b520
mov edx, sym.drvhlp.dll_eqxmy3
mov ecx, 0x1006e558
call fcn.1000bd30
test eax, eax
je 0x1000b520
mov edx, sym.drvhlp.dll_mcgxdx
mov ecx, 0x1006e524
call fcn.1000bd30
test eax, eax
je 0x1000b520
mov edx, sym.drvhlp.dll_ull02i
mov ecx, 0x1006e540
call fcn.1000bd30
test eax, eax
je 0x1000b520
mov edx, sym.drvhlp.dll_zs3pzz
mov ecx, 0x1006e53c
call fcn.1000bd30
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
test eax, eax
jne 0x1000b520
mov ecx, 0x1006e558
call fcn.1000af40
mov ecx, 0x1006e524
call fcn.1000af40
mov ecx, 0x1006e540
call fcn.1000af40
mov ecx, 0x1006e53c
call fcn.1000af40
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1000b770
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call fcn.10009ca0
test eax, eax
je 0x1000b7ae
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xf], 0x69577465
push ecx
push eax
mov dword [ebp - 8], 0x736f5077
mov word [ebp - 0xb], 0x646e
mov byte [ebp - 0x10], 0x53
mov byte [ebp - 4], 0
mov byte [ebp - 9], 0x6f
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000b800
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call fcn.10009ca0
test eax, eax
je 0x1000b841
lea ecx, [ebp - 0x10]
mov dword [ebp - 5], 0x776f646e
push ecx
push eax
mov dword [ebp - 0xb], 0x65766974
mov dword [ebp - 0x10], 0x41746553
mov word [ebp - 7], 0x6957
mov byte [ebp - 1], 0
mov byte [ebp - 0xc], 0x63
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000bb70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cmp dword [0x1006e56c], 0
jne 0x1000bb97
call fcn.1000a100
mov edx, 0x100
mov ecx, 0x1006e570
call fcn.1000a730
mov dword [0x1006e56c], 1
jmp fcn.1000a790

Function at 0x1002b813
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1002b0bf

Function at 0x1002b81e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1002b2fa

Function at 0x1003617e
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10035fbc
Function at 0x653170
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 4]
push edi
xor edi, edi
mov ax, word [esi + 0xc]
mov word [esi - 0x838], di
mov word [esi - 0x844], ax
mov eax, dword [esp + 8]
cmp eax, 0xffffffff
jne 0x653197
mov dword [esi - 4], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi - 0x834]
mov dword [esi - 0x89c], 0x3c
cmp dword [eax - 4], 1
jbe 0x6531e2
mov eax, dword [esi - 0x83c]
lea ecx, [esi - 0x858]
lea edx, [esi - 0x828]
push ecx
push edx
mov edx, dword [esi - 0x82c]
lea ecx, [esi - 0x810]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi - 0x834]
mov ecx, dword [esi + 0x10]
mov edx, dword [esp + 8]
mov dword [esi - 0x88c], eax
mov eax, dword [esi + 8]
mov dword [esi - 0x898], 0x40
mov dword [esi - 0x824], eax
mov dword [esi - 0x818], ecx
mov dword [esi - 0x858], edi
mov dword [esi - 0x820], edx
mov dword [esi - 0x854], edi
mov dword [esi - 0x850], edi
mov dword [esi - 0x84c], edi
mov dword [esi - 0x848], edi
mov eax, dword [esi - 0x818]
add eax, 0x14
mov dword [esi - 0x830], edi
mov dword [esi - 0x83c], eax
mov eax, dword [esi - 0x864]
cmp eax, edi
mov dword [esi - 0x840], edi
je 0x653258
lea eax, [esi*8]
pop edi
pop esi
pop ecx
ret

Function at 0x7def50
Capabilities:
Query environment variable

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0xa3b4e0]
cmp eax, 0xbb40e64e
je 0x7def7e
test eax, 0xffff0000
je 0x7def7e
not eax
mov dword [0xa3b4e4], eax
jmp 0x7defb4
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
xor esi, edi
xor esi, ebp
cmp esi, 0xbb40e64e
je 0x7def99
test eax, 0xffff0000
jne 0x7def9e
mov esi, 0xbb40e64f
push 0
mov dword [0xa3b4e0], esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
not esi
mov dword [0xa3b4e4], esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [0xa3b3bc], eax
mov eax, dword [0xa3b4e0]
cmp eax, 0xbb40e64e
je 0x7defdb
test eax, 0xffff0000
je 0x7defdb
not eax
mov dword [0xa3b4e4], eax
jmp 0x7df01e
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, ecx
xor esi, ebp
mov edi, 4
call ebx
dec edi
jne 0x7deff2
cmp esi, 0xbb40e64e
je 0x7df00b
test dword [0xa3b4e0], 0xffff0000
jne 0x7df010
mov esi, 0xbb40e64f
mov dword [0xa3b4e0], esi
not esi
mov dword [0xa3b4e4], esi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [0xa3b4e0]
cmp edx, 0xbb40e64e
je 0x7df05b
test edx, 0xffff0000
je 0x7df05b
mov eax, edx
pop edi
not eax
pop esi
pop ebp
mov dword [0xa3b4e4], eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
xor eax, ebx
mov ecx, eax
xor ecx, ebp
cmp ecx, 0xbb40e64e
je 0x7df079
test edx, 0xffff0000
jne 0x7df07e
mov ecx, 0xbb40e64f
mov dword [0xa3b4e0], ecx
pop edi
not ecx
pop esi
pop ebp
mov dword [0xa3b4e4], ecx
pop ebx
add esp, 8
ret
Function at 0x4030b8
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.004052b8
test esi, esi
jne 0x4030ee
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.004053a8
jmp 0x40310c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402fbc
mov edi, eax
test esi, esi
je 0x40310c
cmp dword [ebx], 0
je 0x40310c
dec esi
jmp 0x4030f5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x404294
Capabilities:
Query or enumerate registry value

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

Function at 0x405138
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46b048], 0
je 0x405199
cmp word [0x46b21c], 0xd7b2
jne 0x405161
cmp dword [0x46b224], 0
jbe 0x405161
mov eax, 0x46b218
call dword [0x46b234]
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 0x4051c0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46902c], 0
jne 0x4051b5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4066c8
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 0x4068f8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40674b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4068f8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40674b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406914
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4067d4
xor eax, eax
push ebp
push 0x4067cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406504
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 0x4067b2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406934
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4067b2
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 0x4067d4
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 0x4068ee
cmp byte [ebp - 0xd], 0
jne 0x40681b
cmp byte [ebp - 0x12], 0
je 0x4068ee
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406834
dec ebx
cmp byte [ebx], 0x2e
je 0x406843
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406833
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4068ee
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406880
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 0x4068ee
cmp byte [ebp - 0xd], 0
je 0x4068ee
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 0x4068ee
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 0x408d6c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408dfc
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408dfc
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408daf
test edx, 3
jne 0x408d9e
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408da9
jmp 0x408daf
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408daf
cmp dword [ecx - 8], 1
je 0x408db9
mov edx, ebx
or edx, 3
call fcn.00405a04
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408dcb
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004052b8

Function at 0x408e08
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408e98
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408e98
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408e4b
test edx, 3
jne 0x408e3a
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408e45
jmp 0x408e4b
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408e4b
cmp dword [ecx - 8], 1
je 0x408e55
mov edx, ebx
or edx, 3
call fcn.00405a04
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408e67
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004052b8

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040577c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40972d
test al, 0x10
je 0x409731
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040577c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409751
test al, 0x10
jne 0x409755
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c290
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 0x40c2c9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004053a8
jmp 0x40c2d2
mov eax, ebx
mov edx, esi
call fcn.0040530c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4