joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f9c70
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x170000], 0x5a4d
jne 0x4f9c95
mov ecx, dword [0x17003c]
cmp dword [ecx + 0x170000], 0x4550
lea edx, [ecx + 0x170000]
je 0x4f9ca0
ret
cmp word [ecx + 0x170018], 0x10b
jne 0x4f9c95
push esi
movzx eax, word [ecx + 0x170014]
push ebx
movzx esi, word [ecx + 0x170006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x170000
test si, si
je 0x4f9ce8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4f9cde
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4f9cea
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4f9cd0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x419a60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
or ebp, 0xffffffff
jmp 0x419a82
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419a89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419a78
mov eax, 1
add ebx, ebx
jne 0x419a9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419a90
jne 0x419aac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419a90
xor ecx, ecx
sub eax, 3
jb 0x419ac0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419b32
mov ebp, eax
add ebx, ebx
jne 0x419acb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419ad8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x419afc
inc ecx
add ebx, ebx
jne 0x419ae8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x419add
jne 0x419af9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419add
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x419b1c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x419b0d
jmp 0x419a7e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x419b1c
add edi, ecx
jmp 0x419a7e
pop esi
mov edi, esi
mov ecx, 0x6f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x419b3a
cmp byte [edi], 0
jne 0x419b3a
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 0x419b3f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x419bae
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19ac8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19b18]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x419b6c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19b1c]
or eax, eax
je 0x419ba8
mov dword [ebx], eax
add ebx, 4
jmp 0x419b89
call dword [esi + 0x19b20]
popal
jmp section.UPX0
Function at 0x419800
Capabilities:
Get disk information

Disassembly:
push 0
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
push 0x4d3064
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, dword [0x4d6aec]
add ecx, eax
mov dword [0x4d6aec], ecx
mov eax, ecx
ret

Function at 0x4ae08d
Capabilities:
Encode data using xor

Disassembly:
aad 0xc8
xchg ebp, eax
mov ah, 0xec
dec esp
or dword [esi + 0x6e], esp
outsb dx, byte [esi]
adc eax, ebx
dec ebx
imul eax, dword [ebp + 0x16], 0xffffffe0
loopne 0x4ae017
imul edx, dword [esi + 0x135ec1e], 0xc22c9eb8
mov esp, 0xc08d1fd0
shl byte [esi], 0xb1
in eax, 0xbe
invalid
invalid
sahf
fild word [edi]
push es
and edx, dword [0xcf94ea14]
iretd
xor eax, 0xbc5f22d7
sub al, ch

Function at 0x4c8da5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4d33a8
cmp edx, dword [eax]
je 0x4c8dc7
add eax, 8
inc ecx
cmp eax, 0x4d3438
jl 0x4c8db8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4d33a8]
jne 0x4c8ef5
mov eax, dword [0x4d8dd0]
cmp eax, 1
je 0x4c8ecf
test eax, eax
jne 0x4c8df8
cmp dword [0x4d32d0], 1
je 0x4c8ecf
cmp edx, 0xfc
je 0x4c8ef5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c8e2f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004c9790
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c9c20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c8e72
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c9c20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4cede4
push edi
call fcn.004cbaf0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004c9790
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c97a0
lea eax, [ebp - 0xa0]
push 0x4cedc4
push eax
call fcn.004c97a0
push dword [esi + 0x4d33ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c97a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004cba64
add esp, 0x2c
pop edi
jmp 0x4c8ef5
lea eax, [ebp + 8]
lea esi, [esi + 0x4d33ac]
push 0
push eax
push dword [esi]
call fcn.004c9c20
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x408604
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.00408ac4
mov byte [esp], al
cmp byte [esp], 0
jne 0x40878d
test edi, edi
je 0x40878d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4086cd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4086a8
cmp edi, 0xffffffff
je 0x408669
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408669
mov byte [esp], 0
jmp 0x40878d
cmp dword [esi], 1
jg 0x4086a8
cmp dword [esi], 0
jne 0x40869a
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40869a
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40878d
lea eax, [esp + 0xc]
call fcn.004082c0
dec ebp
test ebp, ebp
jg 0x40864e
cmp edi, 0xffffffff
je 0x4086cd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4086cb
mov byte [esp], 0
jmp 0x40878d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408612
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4086cd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408808
mov edx, eax
mov ebx, dword [0x4dd8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408731
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40872f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408731
xor edi, edi
cmp byte [esp], 0
je 0x408757
mov ebx, dword [esi]
test bl, 1
jne 0x40876d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408737
mov byte [esp + 1], 1
jmp 0x40876d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408757
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4086e4
cmp byte [esp], 0
je 0x40878d
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 0x409418
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x4dfb98
cmp dword [ebp + 0xc], 2
jl 0x40942c
mov ebx, 0x4dfbc8
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x409464
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x4050d8
mov dword [0x4dd01c], eax
mov eax, 0x4050e0
mov dword [0x4dd020], eax
mov eax, ebx
call fcn.004092fc
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x409499
cmp al, 3
jge 0x409499
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4094aa
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x4094b5
call dword [ecx + eax*4]
cmp dword [0x4dd040], 0
jne 0x4094cb
mov byte [0x4dd048], 1
fnstcw word [0x4d9024]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00409764
call fcn.004093ac
ret 4

Function at 0x4096cc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4dd058], 0
je 0x409733
cmp word [0x4dd344], 0xd7b2
jne 0x4096f5
cmp dword [0x4dd34c], 0
jbe 0x4096f5
mov eax, 0x4dd340
call dword [0x4dd35c]
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, 0x409760
call fcn.0040a1c0
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d902e], 0
jne 0x40974f
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4098f4
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 [0x4d9030], 0
je 0x40991f
mov edx, edi
mov eax, esi
call dword [0x4d9030]
mov ebx, eax
jmp 0x409930
mov eax, 8
call fcn.00406e10
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4dd059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4098bc
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 0x409960
mov eax, ebx
call fcn.00406e2c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40c7a4
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 0x40c909
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409a34
cmp si, word [0x4d9a00]
jb 0x40c83c
cmp si, word [0x4d9c00]
ja 0x40c83c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c83c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4d9a00]
jae 0x40c816
mov edi, ebx
dec edi
jmp 0x40c837
cmp si, word [ebx*8 + 0x4d9a00]
jbe 0x40c826
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c837
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4d9a04]
call fcn.0040c6c4
jmp 0x40c83c
cmp edi, dword [ebp - 8]
jae 0x40c800
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c8eb
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c8eb
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.0040a560
push dword [ebp - 0x160]
push 0x40c924
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a560
push dword [ebp - 0x164]
push 0x40c934
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a560
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a798
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c910
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409a94
ret
Function at 0x40cabc
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 0x40cbc0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4dfc10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4dfc28]
jne 0x40cb08
mov eax, esi
mov edx, 0x4dfc2a
mov ecx, 0x55
call fcn.0040a560
push 0x4dfc10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40cbaa
push 0x4dfc10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409a34
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40cb77
cmp byte [0x4dfc0c], 0
je 0x40cb3c
mov edx, esi
mov eax, ebx
call fcn.0040c9a0
jmp 0x40cb77
mov edx, esi
mov eax, ebx
call fcn.0040c7a4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40cb77
cmp dword [esi], 0
je 0x40cb60
mov eax, esi
mov edx, 0x40cbd8
call fcn.0040a6b8
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c7a4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a6b8
push 0x4dfc10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4dfc28], bx
mov eax, dword [esi]
call fcn.0040a4bc
mov ecx, eax
mov eax, 0x4dfc2a
mov edx, 0xaa
call fcn.0040c624
push 0x4dfc10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cbc7
lea eax, [ebp - 4]
call fcn.00409a34
ret
Function at 0x40cdf0
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.00409b18
xor eax, eax
push ebp
push 0x40d015
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40ce30
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40ce4a
mov eax, dword [ebp - 4]
call fcn.0040a4bc
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c624
cmp word [ebp - 0x21a], 0
je 0x40cfff
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d024
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cf19
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d024
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cf19
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d060
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cf19
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d060
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cf19
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d094
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cf19
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d0c8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40cfff
xor eax, eax
push ebp
push 0x40cff8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040cc00
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 0x40cf88
mov eax, dword [ebp - 0x10]
call fcn.00406e10
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.0040a524
jmp 0x40cfd3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40d108
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40cfd3
mov eax, dword [ebp - 0x10]
call fcn.00406e10
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40d108
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a524
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cfff
cmp dword [ebp - 8], 0
je 0x40cfee
mov eax, dword [ebp - 8]
call fcn.00406e2c
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 0x40d01c
lea eax, [ebp - 4]
call fcn.00409a34
ret
Function at 0x40d31c
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.00409b18
xor eax, eax
push ebp
push 0x40d3dc
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.0040a560
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a710
mov eax, dword [ebx]
call fcn.0040d1cc
test al, al
jne 0x40d3b9
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a560
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a710
mov eax, dword [ebx]
call fcn.0040d1cc
test al, al
jne 0x40d3b9
mov eax, ebx
call fcn.00409a34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d3e3
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409a94
lea eax, [ebp - 4]
call fcn.00409a34
ret

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

Disassembly:
cmp eax, edx
je 0x41f229
test eax, edx
je 0x41f22c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41f1e7
movzx eax, word [eax]
sub eax, ecx
jmp 0x41f20e
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 0x41f20f
add ecx, 4
js 0x41f1ff
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41f20c
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41f20e
xor eax, eax
ret
test eax, eax
je 0x41f238
test edx, edx
jne 0x41f1d8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x420194
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x4201c1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x423f10
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 0x423f49
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409bbc
jmp 0x423f52
mov eax, ebx
mov edx, esi
call fcn.00409e14
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x423f5c
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
test eax, eax
jle 0x423f7e
movzx eax, word [esp]
jmp 0x423f80
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4252b8
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 0x4253dd
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004250c0
mov esi, eax
mov eax, dword [0x4dca5c]
cmp byte [eax], 0
je 0x425385
mov eax, dword [0x4dc8b0]
call fcn.0040754c
call fcn.00406f64
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 [0x425288]
call fcn.0040bed8
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 0x4253f8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x4253c1
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4dc878]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4e0634]
call fcn.0040c2c8
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 0x4253e4
lea eax, [ebp - 4]
mov edx, dword [0x425288]
call fcn.0040bffc
ret