joyce8/EMBER2024-capa huggingface dataset:
Function at 0xaef3f6
Capabilities:
Encrypt data using aes

Disassembly:
xor edx, esi
setge bl
sub esp, 0x16
call fcn.00aef083
xor edx, esi
jmp 0xaef121
add esi, 0xc
mov dword [esi], edx
pop esi
mov ah, byte [esp]
jmp 0xaef101
bswap edi
push esi
mov esi, ecx
jmp 0xaef0ce
mov esi, 0xff
mov ebx, esp
jmp 0xaef12c
mov eax, edx
bsr di, bx
shr eax, 0x10
jmp 0xaef0eb
shl edx, 8
bsr ebp, eax
xor edx, eax
push edx
jmp 0xaef0e4
and eax, esi
mov ebx, dword [esp]
mov bx, 0xe330
mov eax, dword [eax*4 + 0xac21a0]
jmp 0xaef142
inc bp
shl bh, cl
sub esp, 0x18
jmp 0xaef17a
mov edi, edx
or bl, al
bswap ebx
jmp 0xaef190
lea esp, [esp + 0x1c]
xor eax, 0x1000000
mov di, word [esp]
mov ebx, dword [esp]
mov bp, 0x6203
jmp 0xaef164
shr edi, 8
setge bh
inc bp
setno bl
jmp 0xaef1d3
mov edx, edi
lea edx, [edx*4]
lea edx, [edx + 0xac21a0]
mov edi, dword [edx]
jmp 0xaef386
and edi, esi
bsf bp, bp
lea ebx, [eax - 0xe2]
push edx
jmp 0xaef1b6
xor eax, edi
bt ebp, ebp
lea ebp, [ebp*4]
mov ebp, edx
mov ebp, dword [esp]
jmp 0xaef272
mov bp, 0xbc26
and eax, 0xff000000
bsf ebp, edi
mov ebp, esi
jmp 0xaef1e2
xor eax, edi
bsr di, bx
jmp 0xaef252
xchg word [esp + 0xa], bp
lea esp, [esp + 0x1c]
movzx edi, byte [edi*4 + 0xac21a0]
lea ebp, [ebx + 0xe7]
jmp 0xaef20c
bswap ebp
bswap ebp
shr edi, 0x18
sub esp, 0x1c
add esp, 0
jmp 0xaef222
mov edi, edx
and edi, esi
mov edi, dword [edi*4 + 0xac21a0]
jmp 0xaef293
pushal
mov ebx, dword [esp]
mov dword [esp], edx
cmc
popal
jmp 0xaef243
xor eax, dword [ecx]
mov edi, 0xb1369096
ror edi, 8
lea edi, [esp + edx]
jmp 0xaef2bf
mov ebp, 0xff00
and edi, ebp
xor eax, edi
jmp 0xaef27d
mov dword [edi], eax
clc
mov al, 0x2a
neg al
jmp 0xaef2cd
mov dword [ecx + 0x14], ebx
mov bh, cl
lea ebx, [edx + esi]
jmp 0xaef2d6
lea edi, [ecx + 0x10]
sub esp, 0x11
lea esp, [esp + 1]
xor ebx, eax
jmp 0xaef29e
mov eax, dword [ecx + 8]
clc
pushal
xor eax, ebx
jmp 0xaef2a7
mov dword [ecx + 0x18], eax
bswap ebx
xor edx, eax
lea eax, [esp + eax]
jmp 0xaef337
bswap ebx
stc
mov ebx, dword [ecx + 4]
mov ebp, esi
clc
jmp 0xaef1fc
mov ebx, 0xac39a4
lea esp, [esp + 0x30]
jmp 0xaeee28
mov dword [ecx + 0x1c], edx
mov ch, byte [esp]
bts ebx, edx
not bh
bsf edx, esp
jmp 0xaef318
pop edx
setp bl
ror ebp, cl
and edi, 0xff0000
lea ebx, [edx + esi]
jmp 0xaef2f4
lea esp, [esp]
pop ebp
jmp 0xaef099

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x3a67544
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.03a6a25c
test esi, esi
jne 0x3a6757a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.03a6a3f4
jmp 0x3a67598
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.03a67488
mov edi, eax
test esi, esi
je 0x3a67598
cmp dword [ebx], 0
je 0x3a67598
dec esi
jmp 0x3a67581
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x3a68e94
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.03a69354
mov byte [esp], al
cmp byte [esp], 0
jne 0x3a6901d
test edi, edi
je 0x3a6901d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x3a68f5d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x3a68f38
cmp edi, 0xffffffff
je 0x3a68ef9
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x3a68ef9
mov byte [esp], 0
jmp 0x3a6901d
cmp dword [esi], 1
jg 0x3a68f38
cmp dword [esi], 0
jne 0x3a68f2a
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x3a68f2a
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x3a6901d
lea eax, [esp + 0xc]
call fcn.03a68b2c
dec ebp
test ebp, ebp
jg 0x3a68ede
cmp edi, 0xffffffff
je 0x3a68f5d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x3a68f5b
mov byte [esp], 0
jmp 0x3a6901d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x3a68ea2
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x3a68f5d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.03a69098
mov edx, eax
mov ebx, dword [0x3c7b900]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x3a68fc1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x3a68fbf
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x3a68fc1
xor edi, edi
cmp byte [esp], 0
je 0x3a68fe7
mov ebx, dword [esi]
test bl, 1
jne 0x3a68ffd
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x3a68fc7
mov byte [esp + 1], 1
jmp 0x3a68ffd
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x3a68fe7
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x3a68f74
cmp byte [esp], 0
je 0x3a6901d
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x3a69ef4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x3c7b05c], 0
je 0x3a69f5b
cmp word [0x3c7b34c], 0xd7b2
jne 0x3a69f1d
cmp dword [0x3c7b354], 0
jbe 0x3a69f1d
mov eax, 0x3c7b348
call dword [0x3c7b364]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
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
mov eax, 0x3a69f88
call fcn.03a6aa70
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x3c71036], 0
jne 0x3a69f77
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x3a6a11c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x3c71038], 0
je 0x3a6a147
mov edx, edi
mov eax, esi
call dword [0x3c71038]
mov ebx, eax
jmp 0x3a6a158
mov eax, 8
call fcn.03a66e3c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x3c7b05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x3a6a0e4
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x3a6a188
mov eax, ebx
call fcn.03a66e58
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x3a6ddb4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x3a6df1b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.03a6a25c
cmp si, word [0x3c71a18]
jb 0x3a6de4c
cmp si, word [0x3c71c18]
ja 0x3a6de4c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x3a6de4c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x3c71a18]
jae 0x3a6de26
mov edi, ebx
dec edi
jmp 0x3a6de47
cmp si, word [ebx*8 + 0x3c71a18]
jbe 0x3a6de36
inc ebx
mov dword [ebp - 8], ebx
jmp 0x3a6de47
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x3c71a1c]
call fcn.03a6dcd4
jmp 0x3a6de4c
cmp edi, dword [ebp - 8]
jae 0x3a6de10
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x3a6defb
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x3a6defb
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.03a6ad70
push dword [ebp - 0x160]
push 0x3a6df38
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.03a6ad70
push dword [ebp - 0x164]
push 0x3a6df48
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.03a6ad70
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.03a6afa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3a6df22
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.03a6a2bc
pop eax
jmp eax
Function at 0x3a6e0d0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x3a6e1d6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x3c7dc18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x3c7dc30]
jne 0x3a6e11c
mov eax, esi
mov edx, 0x3c7dc32
mov ecx, 0x55
call fcn.03a6ad70
push 0x3c7dc18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x3a6e1be
push 0x3c7dc18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.03a6a25c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x3a6e18b
cmp byte [0x3c7dc14], 0
je 0x3a6e150
mov edx, esi
mov eax, ebx
call fcn.03a6dfb4
jmp 0x3a6e18b
mov edx, esi
mov eax, ebx
call fcn.03a6ddb4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x3a6e18b
cmp dword [esi], 0
je 0x3a6e174
mov eax, esi
mov edx, 0x3a6e1f0
call fcn.03a6aec8
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.03a6ddb4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.03a6aec8
push 0x3c7dc18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x3c7dc30], bx
mov eax, dword [esi]
call fcn.03a6acbc
mov ecx, eax
mov eax, 0x3c7dc32
mov edx, 0xaa
call fcn.03a6dc34
push 0x3c7dc18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3a6e1dd
lea eax, [ebp - 4]
call fcn.03a6a25c
pop eax
jmp eax
Function at 0x3a6e418
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.03a6a350
xor eax, eax
push ebp
push 0x3a6e640
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x3a6e45e
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x3a6e478
mov eax, dword [ebp - 4]
call fcn.03a6acbc
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.03a6dc34
cmp word [ebp - 0x21e], 0
je 0x3a6e623
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x3a6e650
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x3a6e547
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x3a6e650
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x3a6e547
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x3a6e68c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x3a6e547
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x3a6e68c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x3a6e547
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x3a6e6c0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x3a6e547
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x3a6e6f4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x3a6e623
xor eax, eax
push ebp
push 0x3a6e61c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.03a6e218
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x3a6e5aa
mov eax, dword [ebp - 0x14]
call fcn.03a66e3c
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.03a6ad1c
jmp 0x3a6e5f5
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x3a6e734
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x3a6e5f5
mov eax, dword [ebp - 0x14]
call fcn.03a66e3c
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x3a6e734
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.03a6ad1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3a6e623
cmp dword [ebp - 0xc], 0
je 0x3a6e610
mov eax, dword [ebp - 0xc]
call fcn.03a66e58
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3a6e647
lea eax, [ebp - 8]
mov edx, 2
call fcn.03a6a2bc
pop eax
jmp eax
Function at 0x3a6e950
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.03a6a350
xor eax, eax
push ebp
push 0x3a6ea12
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.03a6ad70
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.03a6af20
mov eax, dword [ebx]
call fcn.03a6e7fc
test al, al
jne 0x3a6e9ed
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.03a6ad70
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.03a6af20
mov eax, dword [ebx]
call fcn.03a6e7fc
test al, al
jne 0x3a6e9ed
mov eax, ebx
call fcn.03a6a25c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3a6ea19
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.03a6a2bc
lea eax, [ebp - 4]
call fcn.03a6a25c
pop eax
jmp eax

Function at 0x3a70604
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x3a84e04
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x3a84e5d
test eax, edx
je 0x3a84e60
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x3a84e1b
movzx eax, word [eax]
sub eax, ecx
jmp 0x3a84e42
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]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [eax + ecx]
xor ebx, dword [edx + ecx]
jne 0x3a84e43
add ecx, 4
js 0x3a84e33
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x3a84e40
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x3a84e42
xor eax, eax
ret
test eax, eax
je 0x3a84e6c
test edx, edx
jne 0x3a84e0c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.03a6acbc
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x3a8616e
test esi, 0x400
jne 0x3a86105
test esi, 0x10
setne bl
jmp 0x3a8616e
cmp byte [esp], 0
je 0x3a86139
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x3a8616e
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x3a8616e
test esi, 0x10
je 0x3a86145
mov bl, 1
jmp 0x3a8616e
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x3a8616c
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x3a8616e
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x3a8b0a8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x3a8b0e1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.03a6a3f4
jmp 0x3a8b0ea
mov eax, ebx
mov edx, esi
call fcn.03a6a64c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x3a8b0f4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x3a8b118
movzx eax, word [esp]
jmp 0x3a8b11a
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x3a8ce10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x3a8cf37
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.03a8cc18
mov esi, eax
mov eax, dword [0x3c79e80]
cmp byte [eax], 0
je 0x3a8cedd
mov eax, dword [0x3c79b14]
call fcn.03a67bfc
call fcn.03a66fb0
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x3a8cde0]
call fcn.03a6d1d8
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x3a8cf50
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x3a8cf19
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x3c79a84]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x3c7e63c]
call fcn.03a6d8d8
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3a8cf3e
lea eax, [ebp - 4]
mov edx, dword [0x3a8cde0]
call fcn.03a6d2fc
pop eax
jmp eax
Function at 0x3a8e4bc
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
mov dword [ebp - 0x11c], 0x114
lea eax, [ebp - 0x11c]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x3a8e4ff
mov eax, dword [ebp - 0x10c]
mov dword [0x3c7e8f8], eax
mov eax, 0x3c7e8fc
lea edx, [ebp - 0x108]
mov ecx, 0x80
call fcn.03a6ad70
mov eax, 0x3c7e900
call fcn.03a6a25c
xor eax, eax
mov dword [0x3c7e904], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x3c7e7bc], 0xa
jl 0x3a8e655
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x3a8e660
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x3a8e655
xor eax, eax
push ebp
push 0x3a8e64e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x3a8e6bc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x3a8e5ae
cmp dword [ebp - 8], 2
jle 0x3a8e5ae
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x3a8e581
adc edx, 0
mov eax, 0x3c7e900
call fcn.03a6ae48
lea eax, [ebp - 8]
push eax
mov eax, dword [0x3c7e900]
call fcn.03a6acbc
push eax
push 0
push 0
push 0x3a8e6bc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x3a8e608
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x3a8e6dc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x3a8e608
cmp dword [ebp - 8], 2
jle 0x3a8e608
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x3a8e5dd
adc edx, 0
mov eax, 0x3c7e900
call fcn.03a6ae48
lea eax, [ebp - 8]
push eax
mov eax, dword [0x3c7e900]
call fcn.03a6acbc
push eax
push 0
push 0
push 0x3a8e6dc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
push 0x3c7e904
push 0
push 0
push 0x3a8e6f0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x3a8e635
xor eax, eax
mov dword [0x3c7e904], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3a8e655
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
mov byte [0x3c73740], 1
mov esp, ebp
pop ebp
ret
Function at 0x3a8e798
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 0x3a8e872
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.03a6a694
lea eax, [ebp - 4]
call fcn.03a6a7b0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.03a6acbc
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x3a8e85a
mov eax, ebx
call fcn.03a66e3c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x3a8e853
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.03a6acbc
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x3a8e83b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x3a8e884
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x3a8e83b
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 0x3a8e85a
mov eax, dword [ebp - 0x10]
call fcn.03a66e58
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3a8e879
lea eax, [ebp - 4]
call fcn.03a6a25c
pop eax
jmp eax

Function at 0x3a8f7dc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.03a6a73c
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.03a705e4
mov edi, eax
cmp edi, 0x104
jbe 0x3a8f787
mov eax, edi
add eax, eax
call fcn.03a66e3c
mov esi, eax
jmp 0x3a8f789
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.03a705e4
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x3a8f7c2
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x3a8f7ac
mov eax, esp
cmp esi, eax
je 0x3a8f7cf
mov eax, esi
call fcn.03a66e58
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x3a8f808
cmp bl, 0
je 0x3a8f804
cmp bl, 0x41
jl 0x3a8f7ff
cmp bl, 0x5a
jg 0x3a8f7ff
or bl, 0x20
xor al, bl
inc esi
jmp 0x3a8f7e3
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x3a8f748

Function at 0x3a90144
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.03a6ad70
add esp, 0x800
pop ebx
ret