joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4062ca
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4062ee
xor eax, eax
test eax, eax
je 0x406300
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406300
xor ecx, ecx
jmp 0x406303
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

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

Disassembly:
cmp dword [0x448e04], 0
push esi
jne 0x406426
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 0x406400
mov dword [ecx*4 + 0x448e00], eax
inc ecx
cmp ecx, 0x100
jl 0x4063fb
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406457
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 + 0x448e00]
xor eax, esi
inc ecx
dec edx
jne 0x406439
pop edi
not eax
pop esi
ret 0xc

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x4d7823ea
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x3e67292c
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
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 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x335c0f1e
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x432060
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x6a535492
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4320c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x6fc840
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1f9000]
lea eax, [edi + 0x2e524c]
push dword [eax]
mov dword [eax], 0xf94211de
push eax
push edi
jmp 0x6fc86a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6fc871
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6fc860
mov eax, 1
add ebx, ebx
jne 0x6fc883
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6fc894
jne 0x6fc8b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6fc8b3
dec eax
add ebx, ebx
jne 0x6fc8a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6fc878
add ebx, ebx
jne 0x6fc8af
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6fc905
xor ecx, ecx
sub eax, 3
jb 0x6fc8cb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6fc93a
sar eax, 1
mov ebp, eax
jmp 0x6fc8d6
add ebx, ebx
jne 0x6fc8d6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6fc8a4
inc ecx
add ebx, ebx
jne 0x6fc8e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6fc8a4
add ebx, ebx
jne 0x6fc8f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6fc8e6
jne 0x6fc902
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6fc8e6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6fc924
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6fc916
jmp 0x6fc866
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6fc924
add edi, ecx
jmp 0x6fc866
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0xc103
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6fc946
cmp byte [edi], 0x63
jne 0x6fc946
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 0x6fc94b
lea edi, [esi + 0x2f8000]
mov eax, dword [edi]
or eax, eax
je 0x6fc9c3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2fe8ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2fead8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6fc978
mov ecx, edi
jns 0x6fc9a7
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 + 0x2feae0]
or eax, eax
je 0x6fc9bd
mov dword [ebx], eax
add ebx, 4
jmp 0x6fc995
call dword [esi + 0x2feadc]
mov ebp, dword [esi + 0x2feae4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x2af]
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 0x6fc9f7
sub esp, 0xffffff80
jmp 0x56ad6f
Function at 0x407354
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.0040a498
test esi, esi
jne 0x40738a
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.0040a630
jmp 0x4073a8
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407298
mov edi, eax
test esi, esi
je 0x4073a8
cmp dword [ebx], 0
je 0x4073a8
dec esi
jmp 0x407391
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4090e0
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.004095a0
mov byte [esp], al
cmp byte [esp], 0
jne 0x409269
test edi, edi
je 0x409269
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4091a9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x409184
cmp edi, 0xffffffff
je 0x409145
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409145
mov byte [esp], 0
jmp 0x409269
cmp dword [esi], 1
jg 0x409184
cmp dword [esi], 0
jne 0x409176
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x409176
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x409269
lea eax, [esp + 0xc]
call fcn.00408d90
dec ebp
test ebp, ebp
jg 0x40912a
cmp edi, 0xffffffff
je 0x4091a9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4091a7
mov byte [esp], 0
jmp 0x409269
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4090ee
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4091a9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004092e4
mov edx, eax
mov ebx, dword [0x4df8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40920d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40920b
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40920d
xor edi, edi
cmp byte [esp], 0
je 0x409233
mov ebx, dword [esi]
test bl, 1
jne 0x409249
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409213
mov byte [esp + 1], 1
jmp 0x409249
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409233
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4091c0
cmp byte [esp], 0
je 0x409269
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 0x40a130
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4df05c], 0
je 0x40a197
cmp word [0x4df348], 0xd7b2
jne 0x40a159
cmp dword [0x4df350], 0
jbe 0x40a159
mov eax, 0x4df344
call dword [0x4df360]
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, 0x40a1c4
call fcn.0040acb0
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4db032], 0
jne 0x40a1b3
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40a358
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 [0x4db034], 0
je 0x40a383
mov edx, edi
mov eax, esi
call dword [0x4db034]
mov ebx, eax
jmp 0x40a394
mov eax, 8
call fcn.00406fc4
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4df05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a320
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 0x40a3c4
mov eax, ebx
call fcn.00406fe0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40daec
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 0x40dc53
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a498
cmp si, word [0x4dba28]
jb 0x40db84
cmp si, word [0x4dbc28]
ja 0x40db84
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40db84
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4dba28]
jae 0x40db5e
mov edi, ebx
dec edi
jmp 0x40db7f
cmp si, word [ebx*8 + 0x4dba28]
jbe 0x40db6e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40db7f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4dba2c]
call fcn.0040da08
jmp 0x40db84
cmp edi, dword [ebp - 8]
jae 0x40db48
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40dc33
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40dc33
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.0040afe0
push dword [ebp - 0x160]
push 0x40dc70
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040afe0
push dword [ebp - 0x164]
push 0x40dc80
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040afe0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b218
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dc5a
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a4f8
pop eax
jmp eax
Function at 0x40de08
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 0x40df0e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4e1c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4e1c2c]
jne 0x40de54
mov eax, esi
mov edx, 0x4e1c2e
mov ecx, 0x55
call fcn.0040afe0
push 0x4e1c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40def6
push 0x4e1c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a498
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40dec3
cmp byte [0x4e1c10], 0
je 0x40de88
mov edx, esi
mov eax, ebx
call fcn.0040dcec
jmp 0x40dec3
mov edx, esi
mov eax, ebx
call fcn.0040daec
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40dec3
cmp dword [esi], 0
je 0x40deac
mov eax, esi
mov edx, 0x40df28
call fcn.0040b138
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040daec
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b138
push 0x4e1c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4e1c2c], bx
mov eax, dword [esi]
call fcn.0040af44
mov ecx, eax
mov eax, 0x4e1c2e
mov edx, 0xaa
call fcn.0040d968
push 0x4e1c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40df15
lea eax, [ebp - 4]
call fcn.0040a498
pop eax
jmp eax
Function at 0x40e150
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.0040a58c
xor eax, eax
push ebp
push 0x40e378
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40e196
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40e1b0
mov eax, dword [ebp - 4]
call fcn.0040af44
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040d968
cmp word [ebp - 0x21e], 0
je 0x40e35b
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e388
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e27f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e388
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e27f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e3c4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e27f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e3c4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e27f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e3f8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e27f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e42c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e35b
xor eax, eax
push ebp
push 0x40e354
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040df50
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 0x40e2e2
mov eax, dword [ebp - 0x14]
call fcn.00406fc4
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.0040afa4
jmp 0x40e32d
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40e46c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e32d
mov eax, dword [ebp - 0x14]
call fcn.00406fc4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40e46c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040afa4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e35b
cmp dword [ebp - 0xc], 0
je 0x40e348
mov eax, dword [ebp - 0xc]
call fcn.00406fe0
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 0x40e37f
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a4f8
pop eax
jmp eax
Function at 0x40e68c
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.0040a58c
xor eax, eax
push ebp
push 0x40e74e
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.0040afe0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b190
mov eax, dword [ebx]
call fcn.0040e534
test al, al
jne 0x40e729
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040afe0
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b190
mov eax, dword [ebx]
call fcn.0040e534
test al, al
jne 0x40e729
mov eax, ebx
call fcn.0040a498
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e755
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a4f8
lea eax, [ebp - 4]
call fcn.0040a498
pop eax
jmp eax

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

Disassembly:
cmp eax, edx
je 0x4206f9
test eax, edx
je 0x4206fc
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4206b7
movzx eax, word [eax]
sub eax, ecx
jmp 0x4206de
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 0x4206df
add ecx, 4
js 0x4206cf
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4206dc
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4206de
xor eax, eax
ret
test eax, eax
je 0x420708
test edx, edx
jne 0x4206a8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x4217e8
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.0040af44
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x421886
test esi, 0x400
jne 0x42181d
test esi, 0x10
setne bl
jmp 0x421886
cmp byte [esp], 0
je 0x421851
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x421886
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x421886
test esi, 0x10
je 0x42185d
mov bl, 1
jmp 0x421886
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x421884
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x421886
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x425854
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 0x42588d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a630
jmp 0x425896
mov eax, ebx
mov edx, esi
call fcn.0040a888
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4258a0
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 0x4258c4
movzx eax, word [esp]
jmp 0x4258c6
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x426fe0
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 0x427107
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00426de8
mov esi, eax
mov eax, dword [0x4decc0]
cmp byte [eax], 0
je 0x4270ad
mov eax, dword [0x4deae8]
call fcn.00407d08
call fcn.00407138
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 [0x426fb0]
call fcn.0040d070
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 0x427120
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x4270e9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4deaa8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4e2634]
call fcn.0040d60c
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 0x42710e
lea eax, [ebp - 4]
mov edx, dword [0x426fb0]
call fcn.0040d194
pop eax
jmp eax