joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x14000]
push edi
jmp 0x417f9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x417fa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x417f90
mov eax, 1
add ebx, ebx
jne 0x417fb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x417fa8
jne 0x417fc4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417fa8
xor ecx, ecx
sub eax, 3
jb 0x417fd8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41804a
mov ebp, eax
add ebx, ebx
jne 0x417fe3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x417ff0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x418014
inc ecx
add ebx, ebx
jne 0x418000
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x417ff5
jne 0x418011
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417ff5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x418034
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x418025
jmp 0x417f96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x418034
add edi, ecx
jmp 0x417f96
pop esi
mov edi, esi
mov ecx, 0x315
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x418052
cmp byte [edi], 4
jne 0x418052
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 al, bl
loop 0x418057
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x4180cf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x18000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18078]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x418084
mov ecx, edi
jns 0x4180b3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1807c]
or eax, eax
je 0x4180c9
mov dword [ebx], eax
add ebx, 4
jmp 0x4180a1
call dword [esi + 0x1808c]
mov ebp, dword [esi + 0x18080]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x418103
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x4033b6
Capabilities:
Encode data using xor

Disassembly:
cmp eax, 0x229d
jno 0x4033bf
adc al, 0xd6
dec edx
mov ebp, 0x69bbf934
and bh, 0x36
imul ebp, ecx, 0xb1232add
test edi, edx
dec eax
mov esi, ebx
mov ebp, 0xb9d92885
mov edi, eax
cmp esi, ebx
jb 0x4033e6
imul edx, ebp, 0x97420a75
call 0x4033eb
test al, 0x2c
mov bh, 0x52
xchg ebp, edx
xchg ebx, ebx
movzx ebp, ah
xor edi, 0x31b
jbe 0x403405
lea ebx, [0xd6b1487]
push 0
pop edi
movsx esi, ah
jmp 0x403414
cmp dh, dl
test edi, ebx
jne 0x403429
mov al, 0xdb
lea eax, [0x3ca86dc4]
mov edx, 0x471a70d4
imul eax, eax
push 0xfffbb17e
test al, ah
imul edx, ebx
imul ebx, edx, 0x105d5f63
pop ebp
mov al, al
sub ebp, 0x9fc5
imul eax, esi
xchg ebp, ecx
adc al, 0xcc
add ecx, 0x4f198
xor esi, ebx
add edi, ecx
movzx esi, bp
sub edi, 0x350
sbb ebp, 0x781a5e5
movsx ebp, bx
adc ah, dl
sub al, 0xd2
imul ebx, edx, 0x113dc835
adc ch, al
movzx ecx, cl
cmp edi, 0x181
jb 0x403408
pop eax
mov ch, bh
movzx esi, ah
test edi, ebp
inc edx
sub edi, ebx
dec edi
jmp 0x40349a
imul ecx, ecx, 0
imul edi, esi
inc esi
xchg ebp, esi
movsx esi, bl
inc dh
imul edx, edx
mov dl, bh
add ecx, 0xc57
xor dl, 0x91
imul edi, edx, 0x1ff5b611
sub ecx, 0xc56
movzx edx, cl
and bh, ch
xchg ebp, esi
inc edi
dec ebp
cmp ecx, 0x17b
jl 0x40349d
or ebp, esi
lea edx, [0x312c3786]
jae 0x4034f3
imul ebx, ecx
xor ebp, 0x4aad9fc7
lea ebp, [0xf8ea517]
inc edi
imul edx, ecx, 0x71ce6eb0
imul ebp, edi, 0xecb047a6
lea edi, [0x5feb6e2c]
inc edi
mov edi, ebx
mov ecx, edx
imul esi, edx
mov edx, 0xcfed5
mov ch, 0xf4
xor edx, 0xbaf4
mov esi, 0x2d472b03
sub edx, 0x50faf
mov ch, 0x95
movsx esi, bx
add eax, edx
mov ebp, 0x761b1ca9
imul ebp, ebx, 0x648b8a08
cmp ecx, esi
sub eax, 0x2c48
test dh, bh
inc cl
mov ch, ch
test cl, 0xe
mov cl, al
inc esi
cmp ebx, edx
imul ebx, edi, 0xa009a2c5
inc ecx
sub ebx, ecx
mov cl, 0x49
jbe 0x403564
mov edi, edx
cmp cl, 0xdd
dec esi
sbb bh, al
push eax
imul ecx, ebp
imul ebx, ecx, 0xd966b06f
mov ecx, 0xc2124492
inc ecx
test ebx, 0xf60f1216
adc ecx, eax
cmp edi, esi
dec ecx
ret
Function at 0x4064e8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x40650c
xor eax, eax
test eax, eax
je 0x40651f
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40651f
xor ecx, ecx
jmp 0x406522
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406609
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x406640
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40661a
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x406615
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406671
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x406653
pop edi
not eax
pop esi
ret 0xc

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 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 0x404564
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4045a6
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x4045c6
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.004078f8
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x4047bc
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.00406ef4
test esi, esi
jne 0x4047f2
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.0040705c
jmp 0x404810
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404700
mov edi, eax
test esi, esi
je 0x404810
cmp dword [ebx], 0
je 0x404810
dec esi
jmp 0x4047f9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x405ca0
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.0040608c
mov byte [esp], al
cmp byte [esp], 0
jne 0x405e29
test edi, edi
je 0x405e29
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405d60
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405d3b
cmp edi, 0xffffffff
je 0x405cff
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405cff
mov byte [esp], 0
jmp 0x405e29
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405d3b
test ebx, ebx
jne 0x405d34
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.0040257c
test eax, eax
jne 0x405d34
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405e29
pause
dec ebp
test ebp, ebp
jg 0x405ce4
cmp edi, 0xffffffff
je 0x405d60
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405d5e
mov byte [esp], 0
jmp 0x405e29
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405cae
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.0040257c
cmp ebx, eax
jne 0x405d60
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405e9c
mov edx, eax
mov ebx, dword [0x4c88c8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405dc7
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405dc5
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405dc7
xor edi, edi
cmp byte [esp], 0
je 0x405df0
mov ebx, dword [esi]
test bl, 1
jne 0x405e09
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.0040257c
cmp ebx, eax
jne 0x405dcd
mov byte [esp + 1], 1
jmp 0x405e09
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.0040257c
cmp ebx, eax
jne 0x405df0
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405d7a
cmp byte [esp], 0
je 0x405e29
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 0x406ba4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c8050], 0
je 0x406c05
cmp word [0x4c832c], 0xd7b2
jne 0x406bcd
cmp dword [0x4c8334], 0
jbe 0x406bcd
mov eax, 0x4c8328
call dword [0x4c8344]
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 0x406c30
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4c5028], 0
jne 0x406c21
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406db0
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 [0x4c502c], 0
je 0x406ddb
mov edx, edi
mov eax, esi
call dword [0x4c502c]
mov ebx, eax
jmp 0x406dec
mov eax, 8
call fcn.004043ac
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4c8051], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406d78
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 0x406e21
mov edx, 8
mov eax, ebx
call fcn.004043c8
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x408f48
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 0x4090ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406ef4
cmp si, word [0x4c57dc]
jb 0x408fe0
cmp si, word [0x4c59dc]
ja 0x408fe0
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408fe0
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4c57dc]
jae 0x408fba
mov edi, ebx
dec edi
jmp 0x408fdb
cmp si, word [ebx*8 + 0x4c57dc]
jbe 0x408fca
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408fdb
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4c57e0]
call fcn.00408e58
jmp 0x408fe0
cmp edi, dword [ebp - 8]
jae 0x408fa4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40908f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40908f
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.004078f8
push dword [ebp - 0x160]
push 0x4090c8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004078f8
push dword [ebp - 0x164]
push 0x4090d8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004078f8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407b30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4090b4
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406f54
ret
Function at 0x409260
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 0x409363
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4cab51
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4cab6a]
jne 0x4092ac
mov eax, esi
mov edx, 0x4cab6c
mov ecx, 0x55
call fcn.004078f8
push 0x4cab51
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40934d
push 0x4cab51
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406ef4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40931b
cmp byte [0x4cab50], 0
je 0x4092e0
mov edx, esi
mov eax, ebx
call fcn.00409144
jmp 0x40931b
mov edx, esi
mov eax, ebx
call fcn.00408f48
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40931b
cmp dword [esi], 0
je 0x409304
mov eax, esi
mov edx, 0x40937c
call fcn.00407a50
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408f48
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407a50
push 0x4cab51
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4cab6a], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040786c
push eax
push 0x4cab6c
call sub.kernel32.dll_lstrcpynW
push 0x4cab51
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40936a
lea eax, [ebp - 4]
call fcn.00406ef4
ret
Function at 0x409598
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.00406fd8
xor eax, eax
push ebp
push 0x4097bd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4095d8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4095f2
push 0x105
mov eax, dword [ebp - 4]
call fcn.0040786c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4097a7
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4097cc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4096c1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4097cc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4096c1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409808
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4096c1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409808
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4096c1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40983c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4096c1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409870
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4097a7
xor eax, eax
push ebp
push 0x4097a0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004093a4
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 0x409730
mov eax, dword [ebp - 0x10]
call fcn.004043ac
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.004078bc
jmp 0x40977b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4098b0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40977b
mov eax, dword [ebp - 0x10]
call fcn.004043ac
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4098b0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004078bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4097a7
cmp dword [ebp - 8], 0
je 0x409796
mov eax, dword [ebp - 8]
call fcn.004043c8
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 0x4097c4
lea eax, [ebp - 4]
call fcn.00406ef4
ret
Function at 0x409afc
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.00406fd8
xor eax, eax
push ebp
push 0x409bbc
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.004078f8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407aa8
mov eax, dword [ebx]
call fcn.004099c4
test al, al
jne 0x409b99
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004078f8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407aa8
mov eax, dword [ebx]
call fcn.004099c4
test al, al
jne 0x409b99
mov eax, ebx
call fcn.00406ef4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409bc3
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406f54
lea eax, [ebp - 4]
call fcn.00406ef4
ret

Function at 0x41b58c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41b5e5
test eax, edx
je 0x41b5e8
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41b5a3
movzx eax, word [eax]
sub eax, ecx
jmp 0x41b5ca
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 0x41b5cb
add ecx, 4
js 0x41b5bb
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41b5c8
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41b5ca
xor eax, eax
ret
test eax, eax
je 0x41b5f4
test edx, edx
jne 0x41b594
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41c36c
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.0040786c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41c3d6
test ah, 4
je 0x41c3cf
test bl, bl
jne 0x41c394
mov al, 1
jmp 0x41c3fd
test al, 0x10
je 0x41c39c
xor eax, eax
jmp 0x41c3fd
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41c3c0
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41c3fd
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41c3fd
test al, 0x10
sete al
jmp 0x41c3fd
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x41c3f7
cmp ebx, 3
je 0x41c3f7
cmp ebx, 0x7b
je 0x41c3f7
mov eax, esi
call fcn.0041c32c
test al, al
jne 0x41c3fb
xor eax, eax
jmp 0x41c3fd
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x41c404
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.0040786c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41c4ab
test esi, 0x400
jne 0x41c440
test esi, 0x10
setne bl
jmp 0x41c4c5
cmp byte [esp], 0
je 0x41c474
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41c4c5
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x41c4c5
test esi, 0x10
je 0x41c480
mov bl, 1
jmp 0x41c4c5
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41c4a7
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x41c4c5
mov bl, 1
jmp 0x41c4c5
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x41c4bf
cmp eax, 3
je 0x41c4bf
cmp eax, 0x7b
jne 0x41c4c3
xor ebx, ebx
jmp 0x41c4c5
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41fb68
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 0x41fba1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040705c
jmp 0x41fbaa
mov eax, ebx
mov edx, esi
call fcn.004072b4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41fbb4
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 0x41fbd6
movzx eax, word [esp]
jmp 0x41fbd8
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret