joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402dfb
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [esi + 0x88], eax
jne 0x402e1a
xor al, al
jmp 0x402e34
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x402e38
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ecx
ret

Function at 0x402e8b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0040f960
and word [ebp - 0x1008], 0
push esi
push edi
mov ecx, 0x400
xor eax, eax
lea edi, [ebp - 0x1006]
rep stosd dword es:[edi], eax
push 0x41a5cc
push 0x41a5c0
lea eax, [ebp - 0x1008]
push 0x41a5b4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov esi, 0x41a590
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [ebp - 4]
push eax
push 0x20006
lea eax, [ebp - 0x1008]
push 0
push eax
push SysReAllocString
shl edi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x402f04
push eax
jmp 0x402f28
push edi
push esi
push 1
push 0
push 0x41a584
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x402f32
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x402f34
mov al, 1
pop edi
pop esi
leave
ret
Function at 0x402f38
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, dword [ebp + 8]
push 0
mov dword [ebp + 0x10], eax
mov dword [0x41cc70], esi
call dword [sym.imp.ole32.dll_CoInitialize]
mov ebx, 0x41cc78
push esi
push 0x41a440
push ebx
mov dword [0x41cce8], 0x41a020
mov dword [0x41cc58], ebx
mov dword [0x41cc78], 0x84
mov dword [0x41ccdc], 0x300
call dword [sym.imp.ATL.DLL_AtlModuleInit]
mov eax, str.jH_m
mov ecx, eax
test ecx, ecx
je 0x402fac
push 0x10
push eax
push 0x41cc48
call sub.MSVCRT.dll_memcpy
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, 0x41a648
lea edi, [ebp - 8]
movsd dword es:[edi], dword [esi]
mov dword [0x41ccfc], eax
lea eax, [ebp - 8]
movsw word es:[edi], word [esi]
xor esi, esi
push eax
push dword [ebp + 0x10]
mov dword [ebp + 8], esi
call fcn.00402e46
mov edi, eax
pop ecx
cmp edi, esi
pop ecx
je 0x403044
push 0x41a630
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x403002
push 0x41a61c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x403020
lea eax, [ebp - 8]
push eax
push edi
jmp 0x402fce
push esi
push esi
push esi
push 0x64
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleUpdateRegistryFromResourceD]
push esi
push 1
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleUnregisterServerEx]
mov dword [ebp + 8], eax
jmp 0x4030cc
push esi
push esi
push 1
push 0x64
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleUpdateRegistryFromResourceD]
push esi
push 1
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleRegisterServer]
mov dword [ebp + 8], eax
call fcn.00402e8b
jmp 0x4030cc
mov ecx, ebx
call fcn.00402dfb
push 1
push 4
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleRegisterClassObjects]
push esi
push 0x4031bf
push esi
push 0xca
push dword [0x41cc70]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
mov dword [0x41cd10], eax
mov dword [ebp + 0x10], eax
push esi
push esi
lea eax, [ebp - 0x24]
push esi
push eax
call edi
test eax, eax
je 0x40309c
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
lea eax, [ebp - 0x24]
push esi
push eax
jmp 0x403083
call fcn.00405ead
mov ecx, eax
call fcn.0040602e
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleRevokeClassObjects]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 0x10]
call fcn.00403159
pop ecx
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_DestroyWindow]
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleTerm]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40f1e0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0x3e743453
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
sub eax, 0x82ee749b
je 0x40f35b
jmp 0x40f20a
mov eax, dword [ebp - 0x1c]
sub eax, 0x8b2c9e54
je 0x40f405
jmp 0x40f21d
mov eax, dword [ebp - 0x1c]
sub eax, 0x8c1187f4
je 0x40f3f3
jmp 0x40f230
mov eax, dword [ebp - 0x1c]
sub eax, 0xbf61c3ba
je 0x40f31a
jmp 0x40f243
mov eax, dword [ebp - 0x1c]
sub eax, 0xd4f33eea
je 0x40f340
jmp 0x40f256
mov eax, dword [ebp - 0x1c]
sub eax, 0xe0fb65b8
je 0x40f308
jmp 0x40f269
mov eax, dword [ebp - 0x1c]
sub eax, 0xf647a5ad
je 0x40f2df
jmp 0x40f27c
mov eax, dword [ebp - 0x1c]
sub eax, 0x3e743453
je 0x40f2cd
jmp 0x40f28f
mov eax, dword [ebp - 0x1c]
sub eax, 0x62fc57cd
je 0x40f3ad
jmp 0x40f2a2
mov eax, dword [ebp - 0x1c]
sub eax, 0x676892ac
je 0x40f3ff
jmp 0x40f2b5
mov eax, dword [ebp - 0x1c]
sub eax, 0x6ecdbd5a
je 0x40f367
jmp 0x40f2c8
jmp 0x40f40c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0xf647a5ad
jmp 0x40f40c
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
mov edx, eax
mov eax, 0x676892ac
mov ecx, 0xe0fb65b8
cmp edx, 0xffffffff
cmovne eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x40f40c
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0xbf61c3ba
jmp 0x40f40c
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
sub esp, 4
cmp eax, 0
setne al
and al, 1
mov byte [ebp - 5], al
mov dword [ebp - 0x14], 0xd4f33eea
jmp 0x40f40c
mov dl, byte [ebp - 5]
mov eax, 0x82ee749b
mov ecx, 0x6ecdbd5a
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x40f40c
mov dword [ebp - 0x14], 0x676892ac
jmp 0x40f40c
mov eax, dword [0x44154c]
mov ecx, dword [0x441548]
xor esi, esi
sub esi, 1
mov edx, eax
add edx, esi
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0x8b2c9e54
mov ecx, 0x62fc57cd
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x40f40c
mov eax, dword [0x44154c]
mov ecx, dword [0x441548]
xor esi, esi
sub esi, 1
mov edx, eax
add edx, esi
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0x8b2c9e54
mov ecx, 0x8c1187f4
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x40f40c
mov dword [ebp - 0x14], 0x676892ac
jmp 0x40f40c
add esp, 0x1c
pop esi
pop ebp
ret
mov dword [ebp - 0x14], 0x62fc57cd
jmp 0x40f1f4
Function at 0x4294eb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42952a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42952a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42952a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42952a
cmp dword [ecx + 0x74], 0xe
jbe 0x42952a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x430c8b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x430d28
push ebx
push esi
call fcn.00430c54
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00430be8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x430cd5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x430d27
push edi
push eax
call fcn.0042f720
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x430cf5
call fcn.0042f76e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x430d26
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00430be8
add esp, 0x20
test eax, eax
jne 0x430d14
push edi
call fcn.0042f76e
jmp 0x430d1c
push ebx
call fcn.0042f76e
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x431f37
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43b100
push 0x43b0f8
push str.FlsAlloc
push 0x1f
call fcn.00431df6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x431f6b
push dword [ebp + 8]
mov ecx, esi
call dword [0x43814c]
call esi
jmp 0x431f71
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x431fb5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43b110
push 0x43b108
push str.FlsGetValue
push 0x21
call fcn.00431df6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x431fec
push dword [ebp + 8]
mov ecx, esi
call dword [0x43814c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x431ff4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43b118
push 0x43b110
push str.FlsSetValue
push 0x22
call fcn.00431df6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43202e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43814c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x437310
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43733d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43733d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x404780
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.00406954
test esi, esi
jne 0x4047b6
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.00406abc
jmp 0x4047d4
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404664
mov edi, eax
test esi, esi
je 0x4047d4
cmp dword [ebx], 0
je 0x4047d4
dec esi
jmp 0x4047bd
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405700
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.00405aec
mov byte [esp], al
cmp byte [esp], 0
jne 0x405889
test edi, edi
je 0x405889
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4057c0
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40579b
cmp edi, 0xffffffff
je 0x40575f
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40575f
mov byte [esp], 0
jmp 0x405889
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40579b
test ebx, ebx
jne 0x405794
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402594
test eax, eax
jne 0x405794
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405889
pause
dec ebp
test ebp, ebp
jg 0x405744
cmp edi, 0xffffffff
je 0x4057c0
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4057be
mov byte [esp], 0
jmp 0x405889
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40570e
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402594
cmp ebx, eax
jne 0x4057c0
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004058fc
mov edx, eax
mov ebx, dword [0x5458c8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405827
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405825
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405827
xor edi, edi
cmp byte [esp], 0
je 0x405850
mov ebx, dword [esi]
test bl, 1
jne 0x405869
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402594
cmp ebx, eax
jne 0x40582d
mov byte [esp + 1], 1
jmp 0x405869
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402594
cmp ebx, eax
jne 0x405850
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4057da
cmp byte [esp], 0
je 0x405889
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 0x406604
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x545050], 0
je 0x406665
cmp word [0x54532c], 0xd7b2
jne 0x40662d
cmp dword [0x545334], 0
jbe 0x40662d
mov eax, 0x545328
call dword [0x545344]
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 0x406690
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x53f028], 0
jne 0x406681
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406810
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 [0x53f02c], 0
je 0x40683b
mov edx, edi
mov eax, esi
call dword [0x53f02c]
mov ebx, eax
jmp 0x40684c
mov eax, 8
call fcn.00404398
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x545051], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4067d8
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 0x406881
mov edx, 8
mov eax, ebx
call fcn.004043b4
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x408a18
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 0x408b7d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406954
cmp si, word [0x53f7dc]
jb 0x408ab0
cmp si, word [0x53f9dc]
ja 0x408ab0
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408ab0
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x53f7dc]
jae 0x408a8a
mov edi, ebx
dec edi
jmp 0x408aab
cmp si, word [ebx*8 + 0x53f7dc]
jbe 0x408a9a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408aab
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x53f7e0]
call fcn.00408928
jmp 0x408ab0
cmp edi, dword [ebp - 8]
jae 0x408a74
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408b5f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408b5f
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.0040737c
push dword [ebp - 0x160]
push 0x408b98
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040737c
push dword [ebp - 0x164]
push 0x408ba8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040737c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004075b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408b84
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004069b4
ret
Function at 0x408d30
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 0x408e33
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x547b51
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x547b6a]
jne 0x408d7c
mov eax, esi
mov edx, 0x547b6c
mov ecx, 0x55
call fcn.0040737c
push 0x547b51
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408e1d
push 0x547b51
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406954
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408deb
cmp byte [0x547b50], 0
je 0x408db0
mov edx, esi
mov eax, ebx
call fcn.00408c14
jmp 0x408deb
mov edx, esi
mov eax, ebx
call fcn.00408a18
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408deb
cmp dword [esi], 0
je 0x408dd4
mov eax, esi
mov edx, 0x408e4c
call fcn.004074d4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408a18
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004074d4
push 0x547b51
call sub.kernel32.dll_EnterCriticalSection
mov word [0x547b6a], bx
push 0xaa
mov eax, dword [esi]
call fcn.004072e0
push eax
push 0x547b6c
call sub.kernel32.dll_lstrcpynW
push 0x547b51
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e3a
lea eax, [ebp - 4]
call fcn.00406954
ret
Function at 0x409068
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.00406a38
xor eax, eax
push ebp
push 0x40928d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4090a8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4090c2
push 0x105
mov eax, dword [ebp - 4]
call fcn.004072e0
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409277
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40929c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409191
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40929c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409191
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4092d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409191
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4092d8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409191
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40930c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409191
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409340
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409277
xor eax, eax
push ebp
push 0x409270
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408e74
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 0x409200
mov eax, dword [ebp - 0x10]
call fcn.00404398
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.00407340
jmp 0x40924b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409380
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40924b
mov eax, dword [ebp - 0x10]
call fcn.00404398
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409380
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407340
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409277
cmp dword [ebp - 8], 0
je 0x409266
mov eax, dword [ebp - 8]
call fcn.004043b4
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 0x409294
lea eax, [ebp - 4]
call fcn.00406954
ret
Function at 0x4095cc
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.00406a38
xor eax, eax
push ebp
push 0x40968c
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.0040737c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040752c
mov eax, dword [ebx]
call fcn.00409494
test al, al
jne 0x409669
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040737c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040752c
mov eax, dword [ebx]
call fcn.00409494
test al, al
jne 0x409669
mov eax, ebx
call fcn.00406954
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409693
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004069b4
lea eax, [ebp - 4]
call fcn.00406954
ret

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

Disassembly:
cmp eax, edx
je 0x41bead
test eax, edx
je 0x41beb0
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41be6b
movzx eax, word [eax]
sub eax, ecx
jmp 0x41be92
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 0x41be93
add ecx, 4
js 0x41be83
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41be90
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41be92
xor eax, eax
ret
test eax, eax
je 0x41bebc
test edx, edx
jne 0x41be5c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41cdb8
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.004072e0
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41ce22
test ah, 4
je 0x41ce1b
test bl, bl
jne 0x41cde0
mov al, 1
jmp 0x41ce49
test al, 0x10
je 0x41cde8
xor eax, eax
jmp 0x41ce49
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41ce0c
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41ce49
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41ce49
test al, 0x10
sete al
jmp 0x41ce49
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x41ce43
cmp ebx, 3
je 0x41ce43
cmp ebx, 0x7b
je 0x41ce43
mov eax, esi
call fcn.0041cd78
test al, al
jne 0x41ce47
xor eax, eax
jmp 0x41ce49
mov al, 1
pop edi
pop esi
pop ebx
ret