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

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x48c195
cmp dword [ebp + 4], 0xffffffff
jne 0x48c195
push ebx
lea ebx, [ebp + 0x138]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x517fbc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
cmp esi, 1
jne 0x48c15d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x48c15d
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push edi
call fcn.0048aee0
add esp, 0x10
test eax, eax
jne 0x48c180
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.0048b420
add esp, 4
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc

Function at 0x48c5f0
Capabilities:
Create directory

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x208
test ecx, ecx
je 0x48c6b8
mov al, byte [ecx]
test al, al
je 0x48c6b8
push ebx
push esi
push edi
mov ebx, ecx
mov esi, ecx
cmp al, 0x2f
je 0x48c61b
cmp al, 0x5c
jne 0x48c61d
mov ebx, esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x48c613
mov edi, dword [esp + 0x218]
cmp ebx, ecx
je 0x48c654
mov esi, ebx
lea eax, [esp + 0xc]
sub esi, ecx
push esi
push ecx
push eax
call fcn.00499404
lea ecx, [esp + 0x18]
mov byte [esp + esi + 0x18], 0
push ecx
push edi
call fcn.0048c5f0
add esp, 0x14
inc ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x498de2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x498e02
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0049ac6b
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x498e25
test byte [esp + 8], 2
je 0x498e25
call fcn.0049acde
mov dword [eax], 0xd
call fcn.0049ace7
mov dword [eax], 5
jmp 0x498dfe
xor eax, eax
ret

Function at 0x4aa844
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4aa87c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a88bf
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a8897
jmp 0x4aa888
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4abf36
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4abf78
call fcn.004b1c1b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4abf78
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4abf6f
xor eax, eax
jmp 0x4abf80
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004abf86
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b214b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b2179
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b2197
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b20b1
jmp 0x4b2197
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b2197
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b20b1
test edi, edi
mov eax, edi
jne 0x4b2181
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x41eca0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41eca6
ret
Function at 0x4054c5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x413f68
cmp edx, dword [eax]
je 0x4054e7
add eax, 8
inc ecx
cmp eax, 0x413ff8
jl 0x4054d8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x413f68]
jne 0x405615
mov eax, dword [0x416590]
cmp eax, 1
je 0x4055ef
test eax, eax
jne 0x405518
cmp dword [0x41385c], 1
je 0x4055ef
cmp edx, 0xfc
je 0x405615
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40554f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004059b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405aa0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405592
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405aa0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41066c
push edi
call fcn.00407130
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004059b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004059c0
lea eax, [ebp - 0xa0]
push 0x41064c
push eax
call fcn.004059c0
push dword [esi + 0x413f6c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004059c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040709e
add esp, 0x2c
pop edi
jmp 0x405615
lea eax, [ebp + 8]
lea esi, [esi + 0x413f6c]
push 0
push eax
push dword [esi]
call fcn.00405aa0
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 0x40d47d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x40d4ab
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40d4c9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040d3e3
jmp 0x40d4c9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40d4c9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0040d3e3
test edi, edi
mov eax, edi
jne 0x40d4b3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401620
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x420660
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x42b238]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x14], eax
xor ecx, ecx
mov eax, 0x51eb851f
mov cx, word [esi + 0x5c]
push 6
imul ecx
sar edx, 5
mov eax, edx
mov byte [esp + 0x34], 1
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov byte [esp + 0x20], dl
mov ecx, 0x64
cdq
idiv ecx
xor ecx, ecx
mov eax, 0x66666667
mov cx, word [esi + 0x5e]
mov byte [esp + 0x21], dl
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov byte [esp + 0x22], dl
mov ecx, 0xa
cdq
idiv ecx
xor ecx, ecx
mov eax, 0x66666667
mov cx, word [esi + 0x62]
mov byte [esp + 0x23], dl
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov byte [esp + 0x24], dl
mov ecx, 0xa
cdq
idiv ecx
mov byte [esp + 0x25], dl
lea edx, [esp + 0x20]
push edx
call fcn.004011a0
mov edi, eax
lea eax, [esp + 0x24]
push 5
push eax
call fcn.004011a0
mov ebx, eax
mov eax, edi
cdq
and edx, 0xff
add eax, edx
mov ebp, eax
sar ebp, 8
mov eax, ebp
cdq
and edx, 0xf
add eax, edx
sar eax, 4
push eax
call fcn.004011d0
and ebp, 0x8000000f
mov byte [esp + 0x30], al
jns 0x401721
dec ebp
or ebp, 0xfffffff0
inc ebp
push ebp
call fcn.004011d0
and edi, 0x800000ff
mov byte [esp + 0x35], al
jns 0x40173b
dec edi
or edi, 0xffffff00
inc edi
mov eax, edi
cdq
and edx, 0xf
add eax, edx
sar eax, 4
push eax
call fcn.004011d0
and edi, 0x8000000f
mov byte [esp + 0x3a], al
jns 0x40175d
dec edi
or edi, 0xfffffff0
inc edi
push edi
call fcn.004011d0
mov byte [esp + 0x3f], al
mov eax, ebx
cdq
and edx, 0xff
add eax, edx
mov edi, eax
sar edi, 8
mov eax, edi
cdq
and edx, 0xf
add eax, edx
sar eax, 4
push eax
call fcn.004011d0
and edi, 0x8000000f
mov byte [esp + 0x44], al
jns 0x401799
dec edi
or edi, 0xfffffff0
inc edi
push edi
call fcn.004011d0
mov edi, ebx
mov byte [esp + 0x49], al
and edi, 0x800000ff
jns 0x4017b5
dec edi
or edi, 0xffffff00
inc edi
mov eax, edi
cdq
and edx, 0xf
add eax, edx
sar eax, 4
push eax
call fcn.004011d0
mov ecx, edi
mov byte [esp + 0x4e], al
and ecx, 0x8000000f
jns 0x4017d9
dec ecx
or ecx, 0xfffffff0
inc ecx
mov byte [esp + 0x3c], cl
mov edx, dword [esp + 0x3c]
push edx
call fcn.004011d0
add esp, 0x30
mov byte [esp + 0x23], al
lea eax, [esp + 0x1c]
lea ecx, [esi + 0x6c]
push eax
mov byte [esp + 0x28], 0
call fcn.00416ce7
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0
call fcn.00416ba2
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.00416ba2
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4046f0
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.00406944
test esi, esi
jne 0x404726
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.00406aac
jmp 0x404744
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404634
mov edi, eax
test esi, esi
je 0x404744
cmp dword [ebx], 0
je 0x404744
dec esi
jmp 0x40472d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4056a4
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.00405a90
mov byte [esp], al
cmp byte [esp], 0
jne 0x40582d
test edi, edi
je 0x40582d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405764
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40573f
cmp edi, 0xffffffff
je 0x405703
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405703
mov byte [esp], 0
jmp 0x40582d
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40573f
test ebx, ebx
jne 0x405738
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402580
test eax, eax
jne 0x405738
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40582d
pause
dec ebp
test ebp, ebp
jg 0x4056e8
cmp edi, 0xffffffff
je 0x405764
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405762
mov byte [esp], 0
jmp 0x40582d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4056b2
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402580
cmp ebx, eax
jne 0x405764
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004058a0
mov edx, eax
mov ebx, dword [0x4d98c8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4057cb
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4057c9
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4057cb
xor edi, edi
cmp byte [esp], 0
je 0x4057f4
mov ebx, dword [esi]
test bl, 1
jne 0x40580d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402580
cmp ebx, eax
jne 0x4057d1
mov byte [esp + 1], 1
jmp 0x40580d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402580
cmp ebx, eax
jne 0x4057f4
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40577e
cmp byte [esp], 0
je 0x40582d
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 0x4065a8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d9050], 0
je 0x406609
cmp word [0x4d932c], 0xd7b2
jne 0x4065d1
cmp dword [0x4d9334], 0
jbe 0x4065d1
mov eax, 0x4d9328
call dword [0x4d9344]
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 0x406634
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d3028], 0
jne 0x406625
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406800
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 [0x4d302c], 0
je 0x40682b
mov edx, edi
mov eax, esi
call dword [0x4d302c]
mov ebx, eax
jmp 0x40683c
mov eax, 8
call fcn.00404368
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4d9051], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4067c8
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 0x406871
mov edx, 8
mov eax, ebx
call fcn.00404384
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x4089d0
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 0x408b35
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406944
cmp si, word [0x4d37dc]
jb 0x408a68
cmp si, word [0x4d39dc]
ja 0x408a68
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408a68
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4d37dc]
jae 0x408a42
mov edi, ebx
dec edi
jmp 0x408a63
cmp si, word [ebx*8 + 0x4d37dc]
jbe 0x408a52
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408a63
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4d37e0]
call fcn.004088e0
jmp 0x408a68
cmp edi, dword [ebp - 8]
jae 0x408a2c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408b17
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408b17
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.00407358
push dword [ebp - 0x160]
push 0x408b50
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407358
push dword [ebp - 0x164]
push 0x408b60
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407358
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407590
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408b3c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004069a4
ret
Function at 0x408ce8
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 0x408deb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4dbb51
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4dbb6a]
jne 0x408d34
mov eax, esi
mov edx, 0x4dbb6c
mov ecx, 0x55
call fcn.00407358
push 0x4dbb51
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408dd5
push 0x4dbb51
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406944
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408da3
cmp byte [0x4dbb50], 0
je 0x408d68
mov edx, esi
mov eax, ebx
call fcn.00408bcc
jmp 0x408da3
mov edx, esi
mov eax, ebx
call fcn.004089d0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408da3
cmp dword [esi], 0
je 0x408d8c
mov eax, esi
mov edx, 0x408e04
call fcn.004074b0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004089d0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004074b0
push 0x4dbb51
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4dbb6a], bx
push 0xaa
mov eax, dword [esi]
call fcn.004072b4
push eax
push 0x4dbb6c
call sub.kernel32.dll_lstrcpynW
push 0x4dbb51
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408df2
lea eax, [ebp - 4]
call fcn.00406944
ret
Function at 0x409020
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.00406a28
xor eax, eax
push ebp
push 0x409245
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409060
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40907a
push 0x105
mov eax, dword [ebp - 4]
call fcn.004072b4
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40922f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409254
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409149
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409254
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409149
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409290
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409149
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409290
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409149
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4092c4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409149
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4092f8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40922f
xor eax, eax
push ebp
push 0x409228
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408e2c
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 0x4091b8
mov eax, dword [ebp - 0x10]
call fcn.00404368
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.00407304
jmp 0x409203
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409338
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409203
mov eax, dword [ebp - 0x10]
call fcn.00404368
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409338
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407304
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40922f
cmp dword [ebp - 8], 0
je 0x40921e
mov eax, dword [ebp - 8]
call fcn.00404384
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 0x40924c
lea eax, [ebp - 4]
call fcn.00406944
ret
Function at 0x409584
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.00406a28
xor eax, eax
push ebp
push 0x409644
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.00407358
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407508
mov eax, dword [ebx]
call fcn.0040944c
test al, al
jne 0x409621
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407358
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407508
mov eax, dword [ebx]
call fcn.0040944c
test al, al
jne 0x409621
mov eax, ebx
call fcn.00406944
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40964b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004069a4
lea eax, [ebp - 4]
call fcn.00406944
ret

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

Disassembly:
cmp eax, edx
je 0x41bf11
test eax, edx
je 0x41bf14
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41becf
movzx eax, word [eax]
sub eax, ecx
jmp 0x41bef6
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 0x41bef7
add ecx, 4
js 0x41bee7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41bef4
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41bef6
xor eax, eax
ret
test eax, eax
je 0x41bf20
test edx, edx
jne 0x41bec0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41ccd0
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.004072b4
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41cd3a
test ah, 4
je 0x41cd33
test bl, bl
jne 0x41ccf8
mov al, 1
jmp 0x41cd61
test al, 0x10
je 0x41cd00
xor eax, eax
jmp 0x41cd61
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41cd24
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41cd61
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41cd61
test al, 0x10
sete al
jmp 0x41cd61
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x41cd5b
cmp ebx, 3
je 0x41cd5b
cmp ebx, 0x7b
je 0x41cd5b
mov eax, esi
call fcn.0041cc90
test al, al
jne 0x41cd5f
xor eax, eax
jmp 0x41cd61
mov al, 1
pop edi
pop esi
pop ebx
ret