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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 4], 0
push 0xf
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.00453cf9
add esp, 0xc
jg 0x45a18b
sub esp, 0
test dword [esp], eax
jns 0x45a193
jb 0x45a1a9
pushf
sub edx, 0
xchg edx, edx
popf
jb 0x45a1a0
jnp 0x45a1a2
xchg ebx, edx
xchg ebx, edx
jae 0x45a1a9
call 0x5231e773
mov byte [ebp - 0x14], 0x51
mov byte [ebp - 0xf], 0x74
mov byte [ebp - 0xa], 0x6a
mov byte [ebp - 0x13], 0x73
mov byte [ebp - 0xe], 0x74
mov byte [ebp - 9], 0x73
mov byte [ebp - 0x12], 0x70
mov byte [ebp - 0xd], 0x34
mov byte [ebp - 8], 0x74
mov byte [ebp - 0x11], 0x64
mov byte [ebp - 0xc], 0x33
mov byte [ebp - 7], 0x75
mov byte [ebp - 0x10], 0x66
mov byte [ebp - 0xb], 0x47
mov byte [ebp - 6], 0
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 - 9]
sub al, 1
mov byte [ebp - 9], al
mov cl, byte [ebp - 0x12]
sub cl, 1
mov byte [ebp - 0x12], cl
mov dl, byte [ebp - 0xd]
sub dl, 1
mov byte [ebp - 0xd], dl
mov al, byte [ebp - 8]
sub al, 1
mov byte [ebp - 8], al
mov cl, byte [ebp - 0x11]
sub cl, 1
mov byte [ebp - 0x11], cl
mov dl, byte [ebp - 0xc]
sub dl, 1
mov byte [ebp - 0xc], dl
mov al, byte [ebp - 0x10]
sub al, 1
mov byte [ebp - 0x10], al
mov cl, byte [ebp - 0xb]
sub cl, 1
mov byte [ebp - 0xb], cl
mov dl, byte [ebp - 7]
sub dl, 1
mov byte [ebp - 7], dl
call fcn.00437861
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x45a271
xor eax, eax
jmp 0x45a2e7
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0044dbc2
mov dword [ebp - 0x18], eax
push 0xf
push 0
lea edx, [ebp - 0x14]
push edx
call fcn.00453cf9
add esp, 0xc
cmp dword [ebp - 0x18], 0
jne 0x45a29b
xor eax, eax
jmp 0x45a2e7
shr esp, 0
jge 0x45a2b8
pushf
inc ebx
dec ebx
xor ebx, dword [esp]
xor ebx, dword [esp]
shl eax, 0
popf
jb 0x45a2b1
mov esi, esi
jbe 0x45a2b5
jl 0x45a2b8
mov edi, 0x50e8458b
mov eax, dword [ebp - 0x18]
push eax
call fcn.00443a02
add esp, 4
sub esp, 0
shr ebx, 0
test dword [esp], ebx
cmp esp, 0xc2f
jbe 0x45a2dc
jne 0x45a2d7
jno 0x45a2d9
ja 0x45a2dc
mov esp, 0x510c4d8b
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x7a620c
Capabilities:
Encode data using xor

Disassembly:
loope 0x7a6224
ljmp 0x38ff:0x30ecad36
pushal
lahf
pop eax
jo 0x7a622f
hlt
inc esi
sbb dh, byte [eax + 0x40fc563e]
das
xchg edx, eax
sal dword [esi - 0x26], 1
cmpsb byte [esi], byte es:[edi]
xor al, 0xcc
sbb al, 0x52
xchg esp, eax
invalid

Function at 0x41f000
Capabilities:
Packed with generic packer

Disassembly:
pushal
call 0x41f006
or ebp, 0xffffffff
xor ebx, ebx
pop esi
lea edi, [esi - 0x1e006]
push edi
add word [edi + 0x1d46c], 0
add esi, 0x1b3
jmp 0x41f02e
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41f039
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41f028
mov eax, 1
add ebx, ebx
jne 0x41f04b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
ja 0x41f040
jne 0x41f05c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41f040
xor ecx, ecx
sub eax, 3
jb 0x41f0ca
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41f0e6
mov ebp, eax
add ebx, ebx
jne 0x41f07b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41f088
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41f0ac
inc ecx
add ebx, ebx
jne 0x41f098
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
ja 0x41f08d
jne 0x41f0a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41f08d
add ecx, 2
cmp eax, 0xfffff300
adc ecx, 1
lea edx, [edi + eax]
cmp eax, 0xfffffffc
jle 0x41f0d0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41f0bc
jmp 0x41f02e
mov eax, ebp
jmp 0x41f070
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41f0d0
add edi, ecx
jmp 0x41f02e
pop esi
sub edi, dword [edi - 4]
push edi
lea edi, [esi]
mov ecx, 0x45d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41f0f6
cmp byte [edi], 1
jne 0x41f0f6
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x41f0fb
pop edi
mov eax, dword [edi]
or eax, eax
je 0x41f166
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1c000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1c0f0]
xchg edx, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41f123
push edx
mov ecx, edi
jns 0x41f153
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push edx
call dword [esi + 0x1c0f4]
pop edx
mov dword [ebx], eax
add ebx, 4
jmp 0x41f140
lea ebx, [esi - 4]
add edi, 4
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x41f197
cmp al, 0xef
ja 0x41f18a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x41f16c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x41f179
popal
jmp 0x40cecf
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43100c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp int.00401219
Function at 0x4047d8
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.00406fd8
test esi, esi
jne 0x40480e
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.00407160
jmp 0x40482c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040471c
mov edi, eax
test esi, esi
je 0x40482c
cmp dword [ebx], 0
je 0x40482c
dec esi
jmp 0x404815
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00406060
mov byte [esp], al
cmp byte [esp], 0
jne 0x405dfd
test edi, edi
je 0x405dfd
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405d34
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405d0f
cmp edi, 0xffffffff
je 0x405cd3
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405cd3
mov byte [esp], 0
jmp 0x405dfd
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405d0f
test ebx, ebx
jne 0x405d08
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.0040262c
test eax, eax
jne 0x405d08
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405dfd
pause
dec ebp
test ebp, ebp
jg 0x405cb8
cmp edi, 0xffffffff
je 0x405d34
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405d32
mov byte [esp], 0
jmp 0x405dfd
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405c82
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.0040262c
cmp ebx, eax
jne 0x405d34
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405e70
mov edx, eax
mov ebx, dword [0x5408cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405d9b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405d99
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405d9b
xor edi, edi
cmp byte [esp], 0
je 0x405dc4
mov ebx, dword [esi]
test bl, 1
jne 0x405ddd
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.0040262c
cmp ebx, eax
jne 0x405da1
mov byte [esp + 1], 1
jmp 0x405ddd
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.0040262c
cmp ebx, eax
jne 0x405dc4
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405d4e
cmp byte [esp], 0
je 0x405dfd
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406c3c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x540054], 0
je 0x406c9d
cmp word [0x540330], 0xd7b2
jne 0x406c65
cmp dword [0x540338], 0
jbe 0x406c65
mov eax, 0x54032c
call dword [0x540348]
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
push 0x406cc8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x538028], 0
jne 0x406cb9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406e94
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 [0x53802c], 0
je 0x406ebf
mov edx, edi
mov eax, esi
call dword [0x53802c]
mov ebx, eax
jmp 0x406ed0
mov eax, 8
call fcn.00404444
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x540055], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406e5c
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 0x406f05
mov edx, 8
mov eax, ebx
call fcn.00404460
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x4094ac
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 0x409611
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406fd8
cmp si, word [0x5387fc]
jb 0x409544
cmp si, word [0x5389fc]
ja 0x409544
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x409544
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5387fc]
jae 0x40951e
mov edi, ebx
dec edi
jmp 0x40953f
cmp si, word [ebx*8 + 0x5387fc]
jbe 0x40952e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40953f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x538800]
call fcn.004093bc
jmp 0x409544
cmp edi, dword [ebp - 8]
jae 0x409508
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4095f3
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4095f3
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.00407c0c
push dword [ebp - 0x160]
push 0x40962c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407c0c
push dword [ebp - 0x164]
push 0x40963c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407c0c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407e44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409618
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00407038
ret
Function at 0x4097c4
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 0x4098c7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x542b55
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x542b6e]
jne 0x409810
mov eax, esi
mov edx, 0x542b70
mov ecx, 0x55
call fcn.00407c0c
push 0x542b55
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4098b1
push 0x542b55
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406fd8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40987f
cmp byte [0x542b54], 0
je 0x409844
mov edx, esi
mov eax, ebx
call fcn.004096a8
jmp 0x40987f
mov edx, esi
mov eax, ebx
call fcn.004094ac
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40987f
cmp dword [esi], 0
je 0x409868
mov eax, esi
mov edx, 0x4098e0
call fcn.00407d64
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004094ac
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407d64
push 0x542b55
call sub.kernel32.dll_EnterCriticalSection
mov word [0x542b6e], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407b68
push eax
push 0x542b70
call sub.kernel32.dll_lstrcpynW
push 0x542b55
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4098ce
lea eax, [ebp - 4]
call fcn.00406fd8
ret
Function at 0x409afc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004070bc
xor eax, eax
push ebp
push 0x409d21
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409b3c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409b56
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407b68
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409d0b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409d30
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409c25
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409d30
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409c25
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409d6c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409c25
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409d6c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409c25
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409da0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409c25
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409dd4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409d0b
xor eax, eax
push ebp
push 0x409d04
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409908
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409c94
mov eax, dword [ebp - 0x10]
call fcn.00404444
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407bb8
jmp 0x409cdf
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409e14
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409cdf
mov eax, dword [ebp - 0x10]
call fcn.00404444
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409e14
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407bb8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409d0b
cmp dword [ebp - 8], 0
je 0x409cfa
mov eax, dword [ebp - 8]
call fcn.00404460
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409d28
lea eax, [ebp - 4]
call fcn.00406fd8
ret
Function at 0x40a060
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.004070bc
xor eax, eax
push ebp
push 0x40a120
push dword fs:[eax]
mov dword fs:[eax], esp
push 8
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.00407c0c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407dbc
mov eax, dword [ebx]
call fcn.00409f28
test al, al
jne 0x40a0fd
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407c0c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407dbc
mov eax, dword [ebx]
call fcn.00409f28
test al, al
jne 0x40a0fd
mov eax, ebx
call fcn.00406fd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a127
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00407038
lea eax, [ebp - 4]
call fcn.00406fd8
ret

Function at 0x40aa80
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 0x41cdf4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41ce4d
test eax, edx
je 0x41ce50
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41ce0b
movzx eax, word [eax]
sub eax, ecx
jmp 0x41ce32
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 [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41ce33
add ecx, 4
js 0x41ce23
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41ce30
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41ce32
xor eax, eax
ret
test eax, eax
je 0x41ce5c
test edx, edx
jne 0x41cdfc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.00407b68
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41dcb2
test ah, 4
je 0x41dcab
test bl, bl
jne 0x41dc70
mov al, 1
jmp 0x41dcd9
test al, 0x10
je 0x41dc78
xor eax, eax
jmp 0x41dcd9
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41dc9c
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41dcd9
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41dcd9
test al, 0x10
sete al
jmp 0x41dcd9
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x41dcd3
cmp ebx, 3
je 0x41dcd3
cmp ebx, 0x7b
je 0x41dcd3
mov eax, esi
call fcn.0041dc08
test al, al
jne 0x41dcd7
xor eax, eax
jmp 0x41dcd9
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x41dce0
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.00407b68
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41dd87
test esi, 0x400
jne 0x41dd1c
test esi, 0x10
setne bl
jmp 0x41dda1
cmp byte [esp], 0
je 0x41dd50
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41dda1
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x41dda1
test esi, 0x10
je 0x41dd5c
mov bl, 1
jmp 0x41dda1
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41dd83
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x41dda1
mov bl, 1
jmp 0x41dda1
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x41dd9b
cmp eax, 3
je 0x41dd9b
cmp eax, 0x7b
jne 0x41dd9f
xor ebx, ebx
jmp 0x41dda1
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42133c
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_1
test eax, eax
jle 0x421375
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407160
jmp 0x42137e
mov eax, ebx
mov edx, esi
call fcn.004073b8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x421388
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4213aa
movzx eax, word [esp]
jmp 0x4213ac
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret