joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4250e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4250ee
xor eax, eax
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
not eax
cmp edx, 8
jb 0x4251cd
mov esi, edx
shr esi, 3
push edi
jmp 0x425110
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x445c90]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x445c90]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x445c90]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x445c90]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x445c90]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x445c90]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x445c90]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x445c90]
add ecx, 8
sub edx, 8
dec esi
jne 0x425110
pop edi
test edx, edx
je 0x4251ea
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x445c90]
inc ecx
dec edx
jne 0x4251d1
not eax
pop esi
pop ebp
ret

Function at 0x4251f0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movsx ecx, byte [ebp + 0xc]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x445c90]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x445c90]
mov dword [edx + 8], ecx
pop ebp
ret
Function at 0x425780
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
mov eax, ebx
je 0x42586b
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4257b7
cmp dword [esi + 0x40], edi
jae 0x4257b7
push eax
call fcn.00428b46
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x4257cf
lea eax, [edi + edi]
push eax
call fcn.0042ae01
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.0042a190
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x425868
mov edx, dword [esi + 0x3c]
mov cl, byte [ebx + edx]
mov edi, dword [esi + 0x30]
mov byte [ebp + 8], cl
movsx ecx, cl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x445c90]
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x38]
shr edi, 8
xor dword [ebp - 4], edi
mov ecx, dword [ebp - 4]
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x445c90]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, byte [ebp + 8]
inc ebx
mov byte [ebx + ecx - 1], al
cmp ebx, dword [ebp + 0xc]
jb 0x4257e7
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
test edx, edx
je 0x4258aa
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x42588f
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.0042a190
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4258cc
push 0
lea edx, [ebp + 0xc]
push edx
push edi
push eax
push ecx
call dword [0x462760]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x426e60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
xor edi, edi
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x427075
cmp dword [esi + 0x6af90], 3
jb 0x426ed7
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov ebx, dword [esi + eax*4 + 0x4af70]
and ecx, 0x7fff
mov dword [esi + ecx*4 + 0x2af70], ebx
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
test ebx, ebx
je 0x426f17
mov edx, dword [esi + 0x6af84]
sub edx, ebx
cmp edx, 0x7efa
ja 0x426f17
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x426eff
mov dword [esi + 0x6afa0], eax
push ebx
push esi
call fcn.004245e0
mov edi, eax
mov eax, dword [esi + 0x6af90]
add esp, 8
cmp edi, eax
jbe 0x426f17
mov edi, eax
mov ecx, dword [esi + 0x6af84]
cmp edi, 3
jb 0x426ff4
sub ecx, dword [esi + 0x6af88]
lea eax, [edi - 3]
push eax
push ecx
push esi
call fcn.004240b0
sub dword [esi + 0x6af90], edi
add esp, 0xc
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x6af90]
cmp edi, dword [esi + 0x6af98]
ja 0x426fbe
cmp eax, 3
jb 0x426fbe
mov eax, 1
sub edi, eax
lea ecx, [ecx]
add dword [esi + 0x6af84], eax
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov ebx, dword [esi + 0x6af7c]
shl ebx, 5
xor ecx, ebx
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
and edx, 0x7fff
sub edi, eax
mov dword [esi + edx*4 + 0x2af70], ebx
mov edx, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + edx*4 + 0x4af70], ecx
jne 0x426f60
add dword [esi + 0x6af84], eax
jmp 0x427017
add dword [esi + 0x6af84], edi
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [edx + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
xor edi, edi
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
jmp 0x427017
movzx edx, byte [ecx + esi + 0x1af70]
push edx
push 0
push esi
call fcn.004240b0
dec dword [esi + 0x6af90]
add esp, 0xc
inc dword [esi + 0x6af84]
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
je 0x427053
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x427030
lea ecx, [eax + esi + 0x1af70]
jmp 0x427032
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.00426cd0
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x427068
push esi
call fcn.00424740
add esp, 4
cmp dword [esi + 0x6af90], 0
jne 0x426e83
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x427088
lea ecx, [eax + esi + 0x1af70]
jmp 0x42708a
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 1
sub edx, eax
push edx
push ecx
push esi
call fcn.00426cd0
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x428c2a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44ff00]
jne 0x428c34
repz ret
jmp fcn.0042f4f5

Function at 0x437a7c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44ff00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00430bc4
and dword [ebp - 0x14], 0
cmp dword [0x463910], 0
mov dword [ebp - 0x18], eax
jne 0x437b2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x437bd7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x437bd7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x463910], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x463914], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x463918], eax
call edi
push eax
call esi
mov dword [0x463920], eax
test eax, eax
je 0x437b2f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46391c], eax
mov eax, dword [0x46391c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x437b88
cmp dword [0x463920], ecx
je 0x437b88
push eax
call esi
push dword [0x463920]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x437b88
test ebx, ebx
je 0x437b88
call edi
test eax, eax
je 0x437b7f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x437b7f
test byte [ebp - 8], 1
jne 0x437b88
or dword [ebp + 0x10], 0x200000
jmp 0x437bbb
mov eax, dword [0x463914]
cmp eax, dword [ebp - 0x18]
je 0x437bbb
push eax
call esi
test eax, eax
je 0x437bbb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x437bbb
mov eax, dword [0x463918]
cmp eax, dword [ebp - 0x18]
je 0x437bbb
push eax
call esi
test eax, eax
je 0x437bbb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x463910]
call esi
test eax, eax
je 0x437bd7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x437bd9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428c2a
leave
ret
Function at 0x404dc8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4a8008], 0x8088405
inc edx
mov dword [ebx + 0x4a8008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x405ad8
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.00405d68
mov byte [esp], al
cmp byte [esp], 0
jne 0x405c58
test edi, edi
je 0x405c58
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405b98
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405b73
cmp edi, 0xffffffff
je 0x405b37
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405b37
mov byte [esp], 0
jmp 0x405c58
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405b73
test ebx, ebx
jne 0x405b69
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x405b69
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405c58
call 0x405da8
dec ebp
test ebp, ebp
jg 0x405b1c
cmp edi, 0xffffffff
je 0x405b98
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405b96
mov byte [esp], 0
jmp 0x405c58
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405ae6
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405b98
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405cc4
mov edx, eax
mov ebx, dword [0x4ac8f0]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405bfc
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405bfa
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405bfc
xor edi, edi
cmp byte [esp], 0
je 0x405c22
mov ebx, dword [esi]
test bl, 1
jne 0x405c38
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405c02
mov byte [esp + 1], 1
jmp 0x405c38
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405c22
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405baf
cmp byte [esp], 0
je 0x405c58
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 0x4067e4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ac050], 0
je 0x40684b
cmp word [0x4ac33c], 0xd7b2
jne 0x40680d
cmp dword [0x4ac344], 0
jbe 0x40680d
mov eax, 0x4ac338
call dword [0x4ac354]
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, 0x406878
call fcn.004072a4
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a8032], 0
jne 0x406867
push 0
push 0x4a89ba
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x408f30
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 0x409095
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406a7c
cmp si, word [0x4a89f8]
jb 0x408fc8
cmp si, word [0x4a8bf8]
ja 0x408fc8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408fc8
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4a89f8]
jae 0x408fa2
mov edi, ebx
dec edi
jmp 0x408fc3
cmp si, word [ebx*8 + 0x4a89f8]
jbe 0x408fb2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408fc3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4a89fc]
call fcn.00408e50
jmp 0x408fc8
cmp edi, dword [ebp - 8]
jae 0x408f8c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x409077
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409077
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.00407648
push dword [ebp - 0x160]
push 0x4090b0
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407648
push dword [ebp - 0x164]
push 0x4090c0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407648
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407880
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40909c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406adc
ret
Function at 0x409248
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 0x40934b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4aeb80
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4aeb98]
jne 0x409294
mov eax, esi
mov edx, 0x4aeb9a
mov ecx, 0x55
call fcn.00407648
push 0x4aeb80
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409335
push 0x4aeb80
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406a7c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409303
cmp byte [0x4aeb7c], 0
je 0x4092c8
mov edx, esi
mov eax, ebx
call fcn.0040912c
jmp 0x409303
mov edx, esi
mov eax, ebx
call fcn.00408f30
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409303
cmp dword [esi], 0
je 0x4092ec
mov eax, esi
mov edx, 0x409364
call fcn.004077a0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408f30
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004077a0
push 0x4aeb80
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4aeb98], bx
push 0xaa
mov eax, dword [esi]
call fcn.004075a4
push eax
push 0x4aeb9a
call sub.kernel32.dll_lstrcpynW
push 0x4aeb80
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409352
lea eax, [ebp - 4]
call fcn.00406a7c
ret
Function at 0x409580
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.00406b60
xor eax, eax
push ebp
push 0x4097a5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4095c0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4095da
push 0x105
mov eax, dword [ebp - 4]
call fcn.004075a4
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40978f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4097b4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4096a9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4097b4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4096a9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4097f0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4096a9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4097f0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4096a9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409824
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4096a9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409858
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40978f
xor eax, eax
push ebp
push 0x409788
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040938c
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 0x409718
mov eax, dword [ebp - 0x10]
call fcn.00404a8c
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.0040760c
jmp 0x409763
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409898
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409763
mov eax, dword [ebp - 0x10]
call fcn.00404a8c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409898
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040760c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40978f
cmp dword [ebp - 8], 0
je 0x40977e
mov eax, dword [ebp - 8]
call fcn.00404aa8
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 0x4097ac
lea eax, [ebp - 4]
call fcn.00406a7c
ret
Function at 0x409a94
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.00406b60
xor eax, eax
push ebp
push 0x409b54
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.00407648
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004077f8
mov eax, dword [ebx]
call fcn.0040995c
test al, al
jne 0x409b31
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407648
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004077f8
mov eax, dword [ebx]
call fcn.0040995c
test al, al
jne 0x409b31
mov eax, ebx
call fcn.00406a7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409b5b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406adc
lea eax, [ebp - 4]
call fcn.00406a7c
ret

Function at 0x40d7f4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0040d7e0
add esp, 0x208
pop ebx
ret

Function at 0x41b0b8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41b111
test eax, edx
je 0x41b114
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41b0cf
movzx eax, word [eax]
sub eax, ecx
jmp 0x41b0f6
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 0x41b0f7
add ecx, 4
js 0x41b0e7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41b0f4
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41b0f6
xor eax, eax
ret
test eax, eax
je 0x41b120
test edx, edx
jne 0x41b0c0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41f634
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 0x41f66d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406c04
jmp 0x41f676
mov eax, ebx
mov edx, esi
call fcn.00406e5c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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