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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0xc
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.00418252
add esp, 0xc
js 0x435380
xchg esp, esp
call 0x435387
add esp, 4
inc ecx
dec ecx
js 0x4353a2
pushf
rol ecx, 0xa
rol ecx, 0x16
or esp, 0
jge 0x43539b
popf
mov ebx, ebx
jns 0x4353a2
mov edi, 0x44ec45c6
mov byte [ebp - 0x14], 0x44
mov byte [ebp - 0xf], 0x49
mov byte [ebp - 0xa], 0x66
mov byte [ebp - 0x13], 0x6d
mov byte [ebp - 0xe], 0x62
mov byte [ebp - 9], 0
mov byte [ebp - 0x12], 0x70
mov byte [ebp - 0xd], 0x6f
mov byte [ebp - 0x11], 0x74
mov byte [ebp - 0xc], 0x65
mov byte [ebp - 0x10], 0x66
mov byte [ebp - 0xb], 0x6d
mov esp, esp
cmp esi, dword [esp]
jge 0x4353fa
pushf
xor esi, ecx
xor esi, ecx
xor ecx, edi
xor ecx, edi
mov esp, esp
popf
lea esi, [esi + 0x3d46]
lea esi, [esi - 0x3d46]
jb 0x4353f5
ja 0x4353f7
jl 0x4353fa
mov ecx, 0x80ec4d8a
jmp 0xec90dc04
mov cl, byte [ebp - 0x14]
sub cl, 1
mov byte [ebp - 0x14], cl
mov dl, byte [ebp - 0xf]
sub dl, 1
mov byte [ebp - 0xf], dl
mov al, byte [ebp - 0xa]
sub al, 1
mov byte [ebp - 0xa], al
mov cl, byte [ebp - 0x13]
sub cl, 1
mov byte [ebp - 0x13], cl
mov dl, byte [ebp - 0xe]
sub dl, 1
mov byte [ebp - 0xe], dl
mov al, byte [ebp - 0x12]
sub al, 1
mov byte [ebp - 0x12], al
mov cl, byte [ebp - 0xd]
sub cl, 1
mov byte [ebp - 0xd], cl
mov dl, byte [ebp - 0x11]
sub dl, 1
mov byte [ebp - 0x11], dl
mov al, byte [ebp - 0xc]
sub al, 1
mov byte [ebp - 0xc], al
mov cl, byte [ebp - 0x10]
sub cl, 1
mov byte [ebp - 0x10], cl
mov dl, byte [ebp - 0xb]
sub dl, 1
mov byte [ebp - 0xb], dl
call fcn.004329dc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x43546f
xor eax, eax
jmp 0x4354fa
jp 0x435471
ja 0x435486
lea eax, [eax]
lea esi, [esi + 0x5991]
lea esi, [esi - 0x5991]
nop
jbe 0x435486
mov ebp, 0xec458d9e
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00430b8f
mov dword [ebp - 4], eax
push 0xc
push 0
lea edx, [ebp - 0x14]
push edx
call fcn.00418252
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x4354b0
xor eax, eax
jmp 0x4354fa
xchg edi, eax
xchg edi, eax
and edx, edx
add esp, 0
add esi, 0x79c
sub esi, 0x79c
jnp 0x4354cd
mov esp, esp
js 0x4354c9
jp 0x4354cd
jmp 0xfc88e006
mov eax, dword [ebp - 4]
push eax
call fcn.00427d04
add esp, 4
add esi, 0x4e24
sub esi, 0x4e24
test dword [esp], eax
jb 0x4354f3
jne 0x4354ec
jg 0x4354ee
jns 0x4354f0
jae 0x4354f3
mov esp, 0x51084d8b
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x438234
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
cmp dword [0x413cc8], 1
jne 0x438396
push 0xc
push 0
lea eax, [ebp - 0x18]
push eax
call fcn.00418252
add esp, 0xc
test ecx, esi
xor edi, 0
jnp 0x43826e
jno 0x438263
jns 0x438265
js 0x438267
lea esp, [esp]
jp 0x43826e
mov edx, 0xe845c637
dec eax
mov byte [ebp - 0x18], 0x48
mov byte [ebp - 0x13], 0x6d
mov byte [ebp - 0xe], 0x64
mov byte [ebp - 0x17], 0x6d
mov byte [ebp - 0x12], 0x42
mov byte [ebp - 0xd], 0
mov byte [ebp - 0x16], 0x70
mov byte [ebp - 0x11], 0x6d
mov byte [ebp - 0x15], 0x63
mov byte [ebp - 0x10], 0x6d
mov byte [ebp - 0x14], 0x62
mov byte [ebp - 0xf], 0x70
jns 0x4382a0
ja 0x4382a2
rol esp, 0
je 0x4382b2
pushf
jnp 0x4382ab
popf
mov eax, eax
jne 0x4382b2
sub eax, 0x80e84d8a
jmp 0xe8910abc
mov cl, byte [ebp - 0x18]
sub cl, 1
mov byte [ebp - 0x18], cl
mov dl, byte [ebp - 0x13]
sub dl, 1
mov byte [ebp - 0x13], dl
mov al, byte [ebp - 0xe]
sub al, 1
mov byte [ebp - 0xe], al
mov cl, byte [ebp - 0x17]
sub cl, 1
mov byte [ebp - 0x17], cl
mov dl, byte [ebp - 0x12]
sub dl, 1
mov byte [ebp - 0x12], dl
mov al, byte [ebp - 0x16]
sub al, 1
mov byte [ebp - 0x16], al
mov cl, byte [ebp - 0x11]
sub cl, 1
mov byte [ebp - 0x11], cl
mov dl, byte [ebp - 0x15]
sub dl, 1
mov byte [ebp - 0x15], dl
mov al, byte [ebp - 0x10]
sub al, 1
mov byte [ebp - 0x10], al
mov cl, byte [ebp - 0x14]
sub cl, 1
mov byte [ebp - 0x14], cl
mov dl, byte [ebp - 0xf]
sub dl, 1
mov byte [ebp - 0xf], dl
call fcn.004329dc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x438327
xor eax, eax
jmp 0x438400
or esi, 0
jl 0x43832c
jno 0x438346
pushf
je 0x438332
cmc
jle 0x438335
popf
lea ecx, [ecx + 0x22be]
lea ecx, [ecx - 0x22be]
jo 0x438346
mov ecx, 0x50e8458d
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00430b8f
mov dword [ebp - 8], eax
push 0xc
push 0
lea edx, [ebp - 0x18]
push edx
call fcn.00418252
add esp, 0xc
ror ebx, 0xa
ror ebx, 0x16
nop
lea ecx, [ecx]
jns 0x438380
pushf
or esi, esi
jge 0x438377
popf
jp 0x43837b
jmp 0x43837d
js 0x438380
add eax, 0xf87d83
cmp dword [ebp - 8], 0
je 0x438390
mov eax, dword [ebp - 8]
mov dword [0x413cc8], eax
jmp 0x438394
xor eax, eax
jmp 0x438400
jmp 0x43839f
mov ecx, dword [0x413cc8]
mov dword [ebp - 8], ecx
jl 0x4383a1
xor edi, ecx
xor edi, ecx
js 0x4383c7
ja 0x4383a9
lea esi, [esi + 0x4ecf]
lea esi, [esi - 0x4ecf]
lea esp, [esp]
lea eax, [eax + 0x1901]
lea eax, [eax - 0x1901]
jns 0x4383c7
call 0x8a3bd956
push ebp
cld
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
jbe 0x4383cf
lea eax, [eax + 0x4972]
sub eax, 0x4972
jo 0x4383e9
jmp 0x4383de
lea esp, [esp]
js 0x4383e3
jns 0x4383e5
jno 0x4383e9
mov edx, 0xfc458b10
mov eax, dword [ebp - 4]
push eax
call fcn.00427d04
add esp, 4
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x43a20a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
cmp dword [0x413ccc], 1
jne 0x43a358
push 0xb
push 0
lea eax, [ebp - 0x18]
push eax
call fcn.00418252
add esp, 0xc
sub esp, 0
jne 0x43a235
cld
jnp 0x43a23d
jae 0x43a23a
jp 0x43a23d
xor eax, 0x48e845c6
mov byte [ebp - 0x18], 0x48
mov byte [ebp - 0x13], 0x6d
mov byte [ebp - 0xe], 0
mov byte [ebp - 0x17], 0x6d
mov byte [ebp - 0x12], 0x47
mov byte [ebp - 0x16], 0x70
mov byte [ebp - 0x11], 0x73
mov byte [ebp - 0x15], 0x63
mov byte [ebp - 0x10], 0x66
mov byte [ebp - 0x14], 0x62
mov byte [ebp - 0xf], 0x66
ror edx, 0x15
ror edx, 0xb
and eax, eax
shl eax, 0
dec edi
inc edi
jnp 0x43a290
pushf
test ecx, 0x50a8
cmp ebx, 0x9cc
popf
mov ecx, ecx
jo 0x43a28c
nop
jp 0x43a290
mov edx, 0x80e84d8a
jmp 0xe8912a9a
mov cl, byte [ebp - 0x18]
sub cl, 1
mov byte [ebp - 0x18], cl
mov dl, byte [ebp - 0x13]
sub dl, 1
mov byte [ebp - 0x13], dl
mov al, byte [ebp - 0x17]
sub al, 1
mov byte [ebp - 0x17], al
mov cl, byte [ebp - 0x12]
sub cl, 1
mov byte [ebp - 0x12], cl
mov dl, byte [ebp - 0x16]
sub dl, 1
mov byte [ebp - 0x16], dl
mov al, byte [ebp - 0x11]
sub al, 1
mov byte [ebp - 0x11], al
mov cl, byte [ebp - 0x15]
sub cl, 1
mov byte [ebp - 0x15], cl
mov dl, byte [ebp - 0x10]
sub dl, 1
mov byte [ebp - 0x10], dl
mov al, byte [ebp - 0x14]
sub al, 1
mov byte [ebp - 0x14], al
mov cl, byte [ebp - 0xf]
sub cl, 1
mov byte [ebp - 0xf], cl
call fcn.004329dc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x43a2fd
mov eax, dword [ebp + 8]
jmp 0x43a3e3
or esp, 0
jp 0x43a31d
pushf
xor esi, 0
push edi
add edi, 0x3674
ror edi, 0xb
pop edi
popf
ja 0x43a316
ja 0x43a318
jae 0x43a31a
jnp 0x43a31d
call 0x532bf8ae
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00430b8f
mov dword [ebp - 8], eax
push 0xb
push 0
lea ecx, [ebp - 0x18]
push ecx
call fcn.00418252
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x43a34e
mov edx, dword [ebp - 8]
mov dword [0x413ccc], edx
jmp 0x43a356
mov eax, dword [ebp + 8]
jmp 0x43a3e3
jmp 0x43a360
mov eax, dword [0x413ccc]
mov dword [ebp - 8], eax
sub ecx, 0
add ebx, 0
jne 0x43a36d
jbe 0x43a36a
je 0x43a36d
mov ecx, 0x89f84d8b
dec ebp
cld
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
xor ecx, 0xc07
xor ecx, 0xc07
mov edi, edi
jnp 0x43a393
lea ecx, [ecx + 0x2d87]
lea ecx, [ecx - 0x2d87]
jp 0x43a393
mov ebp, 0xfc558b9d
mov edx, dword [ebp - 4]
push edx
call fcn.00427d04
add esp, 4
jmp 0x43a3a1
mov esp, esp
xchg ecx, ecx
neg edx
neg edx
jno 0x43a3dc
pushf
shr esp, 0
test edi, 0x5985
xchg ebx, ecx
xchg ebx, ecx
sub esp, 0
popf
lea ebx, [ebx + 0x2f06]
lea ebx, [ebx - 0x2f06]
lea eax, [eax + 0x6ae6]
lea eax, [eax - 0x6ae6]
jg 0x43a3d9
jo 0x43a3dc
mov esi, 0x5008458b
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x43a3f0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x403098
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 0x4030d4
movzx eax, 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 0x4030f4
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404ee4
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x40338c
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.00404c74
test esi, esi
jne 0x4033c2
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.00404d64
jmp 0x4033e0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403230
mov edi, eax
test esi, esi
je 0x4033e0
cmp dword [ebx], 0
je 0x4033e0
dec esi
jmp 0x4033c9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403b4c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4be020]
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
movzx eax, word [0x4be020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4be020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404a40
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c204c], 0
je 0x404aa1
cmp word [0x4c2220], 0xd7b2
jne 0x404a69
cmp dword [0x4c2228], 0
jbe 0x404a69
mov eax, 0x4c221c
call dword [0x4c2238]
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 0x404ac8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4be02c], 0
jne 0x404abd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404bf8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4be030], 0
je 0x404c1e
mov edx, esi
mov eax, ebx
call dword [0x4be030]
jmp 0x404c2d
mov eax, 8
call fcn.00402ec8
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4c204d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404bc0
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4064ec
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 0x40671c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40656f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40671c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40656f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406738
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4065f8
xor eax, eax
push ebp
push 0x4065f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406328
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 0x4065d6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406758
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4065d6
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 0x4065f8
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 0x406712
cmp byte [ebp - 0xd], 0
jne 0x40663f
cmp byte [ebp - 0x12], 0
je 0x406712
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406658
dec ebx
cmp byte [ebx], 0x2e
je 0x406667
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406657
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406712
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4066a4
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 0x406712
cmp byte [ebp - 0xd], 0
je 0x406712
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 0x406712
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 0x4065f8
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 0x40671c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40656f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40671c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40656f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406738
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4065f8
xor eax, eax
push ebp
push 0x4065f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406328
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 0x4065d6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406758
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4065d6
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 0x4065f8
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 0x406712
cmp byte [ebp - 0xd], 0
jne 0x40663f
cmp byte [ebp - 0x12], 0
je 0x406712
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406658
dec ebx
cmp byte [ebx], 0x2e
je 0x406667
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406657
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406712
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4066a4
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 0x406712
cmp byte [ebp - 0xd], 0
je 0x406712
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 0x406712
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 0x408e90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408ee2
test eax, edx
je 0x408ee5
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408ea5
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x408ecb
add ecx, 4
js 0x408ebb
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408ec8
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x408ef1
test edx, edx
jne 0x408e98
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405104
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409806
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x409827
cmp ebx, 3
je 0x409827
cmp ebx, 0x7b
je 0x409827
mov eax, esi
call fcn.004097a8
test al, al
jne 0x40982b
xor eax, eax
jmp 0x40982d
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405104
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409849
test al, 0x10
jne 0x40984d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c6ac
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 0x40c6e5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404d64
jmp 0x40c6ee
mov eax, ebx
mov edx, esi
call fcn.00404cc8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c6f8
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 0x40c71a
movzx eax, byte [esp]
jmp 0x40c71c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40cdac
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cc24
mov eax, dword [0x4c1090]
cmp byte [eax], 0
je 0x40ce28
mov eax, dword [0x4c0dec]
call fcn.00403500
call fcn.00403024
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.00409c6c
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 0x40ce70
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ce5e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4c0d78]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4c47f8]
call fcn.004062d0
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 0x40d754
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d82a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404d0c
lea eax, [ebp - 4]
call fcn.0040515c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405104
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d814
mov eax, ebx
call fcn.00402ec8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d80d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405104
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d7f7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d83c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d7f7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d814
mov eax, dword [ebp - 0x10]
call fcn.00402ee4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d831
lea eax, [ebp - 4]
call fcn.00404c74
ret

Function at 0x4238d8
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x423926
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004235fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42393f
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret