joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4284e5
Capabilities:
Delete file

Disassembly:
push ebp
nop
mov ebp, esp
nop
sub esp, 0x20
nop
mov dword [ebp - 0x18], 0
nop
mov dword [ebp - 0x1c], 0
nop
mov word [ebp - 0x14], 0
nop
xor eax, eax
nop
mov dword [ebp - 0x12], eax
nop
mov dword [ebp - 0xe], eax
nop
mov dword [ebp - 0xa], eax
nop
mov word [ebp - 6], ax
nop
push 0xa
nop
call dword [sym.imp.kernel32.dll_Sleep]
push 0
nop
movzx ecx, byte [0x40a120]
nop
push ecx
nop
push 0
nop
call dword [sym.imp.gdi32.dll_CreatePen]
push 0
nop
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0x409b3c
nop
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov dword [ebp - 4], 0
nop
push 0
nop
push 0
nop
push 0
nop
call dword [sym.imp.winmm.dll_midiDisconnect]
mov word [ebp - 0xc], ax
nop
mov dword [ebp - 0x20], 0
nop
pop eax
nop
mov dword [ebp - 4], eax
nop
mov dword [ebp - 0x20], 1
nop
movzx edx, word [ebp - 0xc]
nop
cmp edx, 5
nop
jne 0x42858f
call fcn.0042801c
mov eax, dword [ebp - 0x18]
nop
mov esp, ebp
nop
pop ebp
nop
ret 0x10

Function at 0x429c59
Capabilities:
Terminate process

Disassembly:
push ebp
nop
mov ebp, esp
nop
push esi
nop
xor esi, esi
nop
inc esi
nop
cmp dword [0x420710], esi
nop
push edi
nop
jne 0x429c82
push dword [ebp + 8]
nop
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
nop
call dword [sym.imp.kernel32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
nop
mov al, byte [ebp + 0x10]
nop
mov dword [0x42070c], esi
nop
mov byte [0x420708], al
nop
jne 0x429cff
mov ecx, dword [0x420c28]
nop
test ecx, ecx
nop
je 0x429cd8
mov eax, dword [0x420c24]
nop
sub eax, 4
nop
cmp eax, ecx
nop
jmp 0x429cd0
mov eax, dword [eax]
nop
test eax, eax
nop
je 0x429cbf
call eax
mov eax, dword [0x420c24]
nop
sub eax, 4
nop
cmp eax, dword [0x420c28]
nop
mov dword [0x420c24], eax
nop
jae 0x429cb5
mov eax, 0x410020
nop
mov esi, 0x410024
nop
cmp eax, esi
nop
mov edi, eax
nop
jae 0x429cff
mov eax, dword [edi]
nop
test eax, eax
nop
je 0x429cf6
call eax
add edi, 4
nop
cmp edi, esi
nop
jb 0x429cec
mov eax, 0x410028
nop
mov esi, 0x41002c
nop
cmp eax, esi
nop
mov edi, eax
nop
jae 0x429d26
mov eax, dword [edi]
nop
test eax, eax
nop
je 0x429d1d
call eax
add edi, 4
nop
cmp edi, esi
nop
jb 0x429d13
cmp dword [ebp + 0x10], 0
nop
pop edi
nop
pop esi
nop
jne 0x429d47
push dword [ebp + 8]
nop
mov dword [0x420710], 1
nop
call fcn.00429ba1
pop ecx
nop
pop ebp
nop
ret
Function at 0x429d9a
Capabilities:
Write file on windows

Disassembly:
push ebp
nop
mov ebp, esp
nop
sub esp, 0x10c
nop
mov eax, dword [0x420190]
nop
xor eax, dword [ebp + 4]
nop
mov ecx, dword [ebp + 8]
nop
push ebx
nop
push esi
nop
mov dword [ebp - 4], eax
nop
xor edx, edx
nop
push edi
nop
xor eax, eax
nop
cmp ecx, dword [eax*8 + 0x41fea8]
nop
je 0x429dd6
inc eax
nop
cmp eax, 0x12
nop
jb 0x429dc4
mov esi, eax
nop
shl esi, 3
nop
cmp ecx, dword [esi + 0x41fea8]
nop
jne 0x429f4c
mov eax, dword [0x4206b0]
nop
cmp eax, 1
nop
je 0x429f1d
cmp eax, edx
nop
jne 0x429e0d
cmp dword [0x41fdec], 1
nop
je 0x429f1d
cmp ecx, 0xfc
nop
je 0x429f4c
push 0x104
nop
lea eax, [ebp - 0x10c]
nop
push eax
nop
push edx
nop
mov byte [ebp - 8], dl
nop
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
nop
jne 0x429e52
lea eax, [ebp - 0x10c]
nop
push str._program_name_unknown_
nop
push eax
nop
call fcn.0042ce97
pop ecx
nop
pop ecx
nop
lea eax, [ebp - 0x10c]
nop
push eax
nop
lea edi, [ebp - 0x10c]
nop
call fcn.0042cde6
inc eax
nop
cmp eax, 0x3c
nop
pop ecx
nop
jbe 0x429ea4
lea eax, [ebp - 0x10c]
nop
push eax
nop
call fcn.0042cde6
mov edi, eax
nop
lea eax, [ebp - 0x10c]
nop
sub eax, 0x3b
nop
push 3
nop
add edi, eax
nop
push 0x40e1d0
nop
push edi
nop
call fcn.0042d6a5
add esp, 0x10
nop
push edi
nop
call fcn.0042cde6
push dword [esi + 0x41feac]
nop
mov ebx, eax
nop
call fcn.0042cde6
lea eax, [ebx + eax + 0x1c]
nop
pop ecx
nop
add eax, 3
nop
pop ecx
nop
and eax, 0xfffffffc
nop
call fcn.0042aad0
mov ebx, esp
nop
push str.x9uqydsori69n2_n_nProgram:
nop
push ebx
nop
call fcn.0042ce97
push edi
nop
push ebx
nop
call fcn.0042ceae
push 0x40e1b0
nop
push ebx
nop
call fcn.0042ceae
push dword [esi + 0x41feac]
nop
push ebx
nop
call fcn.0042ceae
push 0x12010
nop
push str.Microsoft_Visual_C_Runtime_Library
nop
push ebx
nop
call fcn.0042d55c
add esp, 0x2c
nop
jmp 0x429f4c
push edx
nop
lea eax, [ebp + 8]
nop
push eax
nop
lea esi, [esi + 0x41feac]
nop
push dword [esi]
nop
call fcn.0042cde6
pop ecx
nop
push eax
nop
push dword [esi]
nop
push 0xfffffffffffffff4
nop
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
nop
call dword [sym.imp.kernel32.dll_WriteFile]
lea esp, [ebp - 0x118]
nop
mov ecx, dword [ebp - 4]
nop
xor ecx, dword [ebp + 4]
nop
call fcn.0042d860
pop edi
nop
pop esi
nop
pop ebx
nop
leave
nop
ret
Function at 0x42a59d
Capabilities:
Query environment variable

Disassembly:
push ecx
nop
push ecx
nop
mov eax, dword [0x420828]
nop
push ebx
nop
push ebp
nop
push esi
nop
push edi
nop
mov edi, dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
nop
xor ebx, ebx
nop
xor esi, esi
nop
cmp eax, ebx
nop
push 2
nop
pop ebp
nop
jne 0x42a5fa
call edi
mov esi, eax
nop
cmp esi, ebx
nop
je 0x42a5dd
mov dword [0x420828], 1
nop
jmp 0x42a604
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
nop
jne 0x42a5f4
mov eax, ebp
nop
mov dword [0x420828], eax
nop
jmp 0x42a5fa
mov eax, dword [0x420828]
nop
cmp eax, 1
nop
jne 0x42a6b0
cmp esi, ebx
nop
jne 0x42a617
call edi
mov esi, eax
nop
cmp esi, ebx
nop
je 0x42a6ba
cmp word [esi], bx
nop
mov eax, esi
nop
je 0x42a632
add eax, ebp
nop
cmp word [eax], bx
nop
jne 0x42a620
add eax, ebp
nop
cmp word [eax], bx
nop
jne 0x42a620
mov edi, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
nop
push ebx
nop
push ebx
nop
push ebx
nop
sub eax, esi
nop
push ebx
nop
sar eax, 1
nop
inc eax
nop
push eax
nop
push esi
nop
push ebx
nop
push ebx
nop
mov dword [esp + 0x34], eax
nop
call edi
mov ebp, eax
nop
cmp ebp, ebx
nop
je 0x42a6a3
push ebp
nop
call fcn.0042de81
cmp eax, ebx
nop
pop ecx
nop
mov dword [esp + 0x10], eax
nop
je 0x42a6a3
push ebx
nop
push ebx
nop
push ebp
nop
push eax
nop
push dword [esp + 0x24]
nop
push esi
nop
push ebx
nop
push ebx
nop
call edi
test eax, eax
nop
jne 0x42a69e
push dword [esp + 0x10]
nop
call fcn.0042ddaf
pop ecx
nop
mov dword [esp + 0x10], ebx
nop
mov ebx, dword [esp + 0x10]
nop
push esi
nop
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, ebx
nop
jmp 0x42a718
cmp eax, ebp
nop
je 0x42a6bf
cmp eax, ebx
nop
je 0x42a6bf
xor eax, eax
nop
jmp 0x42a718
call dword [sym.imp.kernel32.dll_GetEnvironmentStrings]
mov esi, eax
nop
cmp esi, ebx
nop
je 0x42a6ba
cmp byte [esi], bl
nop
je 0x42a6e0
inc eax
nop
cmp byte [eax], bl
nop
jne 0x42a6d2
inc eax
nop
cmp byte [eax], bl
nop
jne 0x42a6d2
sub eax, esi
nop
inc eax
nop
mov ebp, eax
nop
push ebp
nop
call fcn.0042de81
mov edi, eax
nop
cmp edi, ebx
nop
pop ecx
nop
jne 0x42a6fe
xor edi, edi
nop
jmp 0x42a70d
push ebp
nop
push esi
nop
push edi
nop
call fcn.0042dea2
add esp, 0xc
nop
push esi
nop
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
mov eax, edi
nop
pop edi
nop
pop esi
nop
pop ebp
nop
pop ebx
nop
pop ecx
nop
pop ecx
nop
ret
Function at 0x42d55c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
nop
mov ebp, esp
nop
sub esp, 0x10
nop
push ebx
nop
xor ebx, ebx
nop
cmp dword [0x420858], ebx
nop
push esi
nop
push edi
nop
jne 0x42d602
push str.USER32.DLL
nop
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
nop
cmp edi, ebx
nop
je 0x42d64b
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
nop
push str.MessageBoxA
nop
push edi
nop
call esi
test eax, eax
nop
mov dword [0x420858], eax
nop
je 0x42d64b
push str.GetActiveWindow
nop
push edi
nop
call esi
push str.GetLastActivePopup
nop
push edi
nop
mov dword [0x42085c], eax
nop
call esi
cmp dword [0x4206d0], 2
nop
mov dword [0x420860], eax
nop
jne 0x42d602
push str.GetUserObjectInformationA
nop
push edi
nop
call esi
test eax, eax
nop
mov dword [0x420868], eax
nop
je 0x42d602
push str.GetProcessWindowStation
nop
push edi
nop
call esi
mov dword [0x420864], eax
nop
mov eax, dword [0x420864]
nop
test eax, eax
nop
je 0x42d657
call eax
test eax, eax
nop
je 0x42d63a
lea ecx, [ebp - 4]
nop
push ecx
nop
push 0xc
nop
lea ecx, [ebp - 0x10]
nop
push ecx
nop
push 1
nop
push eax
nop
call dword [0x420868]
test eax, eax
nop
je 0x42d63a
test byte [ebp - 8], 1
nop
jne 0x42d657
cmp dword [0x4206dc], 4
nop
jb 0x42d650
or byte [ebp + 0x12], 0x20
nop
jmp 0x42d67e
xor eax, eax
nop
jmp 0x42d692
or byte [ebp + 0x12], 4
nop
jmp 0x42d67e
mov eax, dword [0x42085c]
nop
test eax, eax
nop
je 0x42d67e
call eax
mov ebx, eax
nop
test ebx, ebx
nop
je 0x42d67e
mov eax, dword [0x420860]
nop
test eax, eax
nop
je 0x42d67e
push ebx
nop
call eax
mov ebx, eax
nop
push dword [ebp + 0x10]
nop
push dword [ebp + 0xc]
nop
push dword [ebp + 8]
nop
push ebx
nop
call dword [0x420858]
pop edi
nop
pop esi
nop
pop ebx
nop
leave
nop
ret
Function at 0x406b5c
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.004092f0
test esi, esi
jne 0x406b92
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.00409478
jmp 0x406bb0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406aa0
mov edi, eax
test esi, esi
je 0x406bb0
cmp dword [ebx], 0
je 0x406bb0
dec esi
jmp 0x406b99
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408050
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.00408434
mov byte [esp], al
cmp byte [esp], 0
jne 0x4081da
test edi, edi
je 0x4081da
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40811a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4080f5
cmp edi, 0xffffffff
je 0x4080b5
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4080b5
mov byte [esp], 0
jmp 0x4081da
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4080f5
test ebx, ebx
jne 0x4080e7
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4080e7
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4081da
lea eax, [esp + 0xc]
call fcn.00407d30
dec ebp
test ebp, ebp
jg 0x40809a
cmp edi, 0xffffffff
je 0x40811a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408118
mov byte [esp], 0
jmp 0x4081da
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40805e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40811a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408248
mov edx, eax
mov ebx, dword [0x5f18fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40817e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40817c
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40817e
xor edi, edi
cmp byte [esp], 0
je 0x4081a4
mov ebx, dword [esi]
test bl, 1
jne 0x4081ba
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408184
mov byte [esp + 1], 1
jmp 0x4081ba
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4081a4
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408131
cmp byte [esp], 0
je 0x4081da
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 0x408f80
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5f105c], 0
je 0x408fe7
cmp word [0x5f1348], 0xd7b2
jne 0x408fa9
cmp dword [0x5f1350], 0
jbe 0x408fa9
mov eax, 0x5f1344
call dword [0x5f1360]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push 0x5eb9c8
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, 0x409014
call fcn.00409c04
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5eb032], 0
jne 0x409003
push 0
push 0x5eb9c2
push 0x5eb9c8
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4091b0
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 [0x5eb034], 0
je 0x4091db
mov edx, edi
mov eax, esi
call dword [0x5eb034]
mov ebx, eax
jmp 0x4091ec
mov eax, 8
call fcn.004067dc
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5f105d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409178
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 0x40921c
mov eax, ebx
call fcn.004067f8
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40bb38
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 0x40bc9d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004092f0
cmp si, word [0x5eba00]
jb 0x40bbd0
cmp si, word [0x5ebc00]
ja 0x40bbd0
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40bbd0
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5eba00]
jae 0x40bbaa
mov edi, ebx
dec edi
jmp 0x40bbcb
cmp si, word [ebx*8 + 0x5eba00]
jbe 0x40bbba
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40bbcb
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5eba04]
call fcn.0040ba58
jmp 0x40bbd0
cmp edi, dword [ebp - 8]
jae 0x40bb94
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40bc7f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bc7f
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.00409fa4
push dword [ebp - 0x160]
push 0x40bcb8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00409fa4
push dword [ebp - 0x164]
push 0x40bcc8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409fa4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a1dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bca4
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409350
ret
Function at 0x40be50
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 0x40bf54
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5f3b8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5f3ba4]
jne 0x40be9c
mov eax, esi
mov edx, 0x5f3ba6
mov ecx, 0x55
call fcn.00409fa4
push 0x5f3b8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40bf3e
push 0x5f3b8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004092f0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bf0b
cmp byte [0x5f3b88], 0
je 0x40bed0
mov edx, esi
mov eax, ebx
call fcn.0040bd34
jmp 0x40bf0b
mov edx, esi
mov eax, ebx
call fcn.0040bb38
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40bf0b
cmp dword [esi], 0
je 0x40bef4
mov eax, esi
mov edx, 0x40bf6c
call fcn.0040a0fc
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040bb38
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a0fc
push 0x5f3b8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5f3ba4], bx
mov eax, dword [esi]
call fcn.00409f00
mov ecx, eax
mov eax, 0x5f3ba6
mov edx, 0xaa
call fcn.0040b9b8
push 0x5f3b8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf5b
lea eax, [ebp - 4]
call fcn.004092f0
ret
Function at 0x40c184
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.004093d4
xor eax, eax
push ebp
push 0x40c3a9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c1c4
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40c1de
mov eax, dword [ebp - 4]
call fcn.00409f00
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040b9b8
cmp word [ebp - 0x21a], 0
je 0x40c393
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c3b8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c2ad
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c3b8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c2ad
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c3f4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c2ad
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c3f4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c2ad
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c428
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c2ad
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c45c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c393
xor eax, eax
push ebp
push 0x40c38c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040bf94
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 0x40c31c
mov eax, dword [ebp - 0x10]
call fcn.004067dc
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.00409f68
jmp 0x40c367
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c49c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c367
mov eax, dword [ebp - 0x10]
call fcn.004067dc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c49c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00409f68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c393
cmp dword [ebp - 8], 0
je 0x40c382
mov eax, dword [ebp - 8]
call fcn.004067f8
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 0x40c3b0
lea eax, [ebp - 4]
call fcn.004092f0
ret
Function at 0x40c698
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.004093d4
xor eax, eax
push ebp
push 0x40c758
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.00409fa4
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a154
mov eax, dword [ebx]
call fcn.0040c560
test al, al
jne 0x40c735
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00409fa4
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a154
mov eax, dword [ebx]
call fcn.0040c560
test al, al
jne 0x40c735
mov eax, ebx
call fcn.004092f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c75f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409350
lea eax, [ebp - 4]
call fcn.004092f0
ret

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

Disassembly:
cmp eax, edx
je 0x420ea5
test eax, edx
je 0x420ea8
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x420e63
movzx eax, word [eax]
sub eax, ecx
jmp 0x420e8a
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 0x420e8b
add ecx, 4
js 0x420e7b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x420e88
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x420e8a
xor eax, eax
ret
test eax, eax
je 0x420eb4
test edx, edx
jne 0x420e54
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x422148
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 0x422175
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x422208
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.00409f00
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x4222af
test esi, 0x400
jne 0x422244
test esi, 0x10
setne bl
jmp 0x4222df
cmp byte [esp], 0
je 0x422278
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4222df
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x4222df
test esi, 0x10
je 0x422284
mov bl, 1
jmp 0x4222df
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4222ab
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x4222df
mov bl, 1
jmp 0x4222df
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x4222d9
cmp eax, 3
je 0x4222d9
cmp eax, 0xa1
je 0x4222d9
cmp eax, 0x7b
je 0x4222d9
cmp eax, 0x35
je 0x4222d9
cmp eax, 0x15
je 0x4222d9
cmp eax, 0x43
jne 0x4222dd
xor ebx, ebx
jmp 0x4222df
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x426060
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 0x426099
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409478
jmp 0x4260a2
mov eax, ebx
mov edx, esi
call fcn.004096d0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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