joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440728
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x47835c]
cmp byte [eax + 0xc], 0
je 0x440895
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44088e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x479b90], 0
jne 0x44077c
push 0x44089c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4408a4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479b90], eax
cmp dword [0x477ba8], 0
jne 0x440877
push 0x4408b4
call sub.kernel32.dll_LoadLibraryA
mov dword [0x477ba8], eax
cmp dword [0x477ba8], 0
je 0x440877
push 0x4408c0
mov eax, dword [0x477ba8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479b94], eax
push 0x4408d0
mov eax, dword [0x477ba8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479b98], eax
push 0x4408e4
mov eax, dword [0x477ba8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479b9c], eax
push 0x4408fc
mov eax, dword [0x477ba8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479ba0], eax
push 0x440914
mov eax, dword [0x477ba8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479ba4], eax
push 0x440928
mov eax, dword [0x477ba8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479ba8], eax
push 0x440940
mov eax, dword [0x477ba8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479bac], eax
push 0x440958
mov eax, dword [0x477ba8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479bb0], eax
push 0x440974
mov eax, dword [0x477ba8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479bb4], eax
push 0x440980
mov eax, dword [0x477ba8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479bb8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440895
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x444720
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404484
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44476f
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004046f4
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44bf40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44bf90]
test si, 4
je 0x44bf54
or bl, 1
test si, 8
je 0x44bf5e
or bl, 4
test si, 1
je 0x44bf68
or bl, 8
test si, 2
je 0x44bf72
or bl, 0x10
test si, 0x10
je 0x44bf7c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44bf8b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44bf94
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44bfcc]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44bfad
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44bfbc
or bl, 4
test esi, 0x20000000
je 0x44bfc7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x452690
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4526a2
add esp, 0xfffffff0
call fcn.00403a30
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a010
mov eax, dword [0x477fec]
mov dword [eax + 4], ebx
mov dword [eax], 0x452a34
mov eax, dword [0x477ff8]
mov dword [eax + 4], ebx
mov dword [eax], 0x452a40
mov eax, ebx
call fcn.00452a4c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x412130]
call fcn.004036c8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x412130]
call fcn.004036c8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x412130]
call fcn.004036c8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x412130]
call fcn.004036c8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x412130]
call fcn.004036c8
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44ee64
push eax
push 0
push 0
mov eax, dword [0x47814c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41ba84]
call fcn.0041d274
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41ba84]
call fcn.0041d274
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41ba84]
call fcn.0041d274
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00452e9c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452d64
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452d64
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452d64
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4527df
call fcn.00403a88
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x452b48
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x452cf3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x452cd4
mov dl, 1
mov eax, dword [0x41254c]
call fcn.004036c8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404484
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x452cc3
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00440a88
test al, al
je 0x452cb6
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x452d04
lea eax, [ebp - 0x254]
call fcn.00409344
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x452cb6
xor eax, eax
push ebp
push 0x452caf
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x452d3c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x452c98
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004046f4
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x452c98
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004046f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452cb6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x452bb9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004161b0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452cfa
lea eax, [ebp - 0x260]
call fcn.00404484
ret

Function at 0x45363c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x479bdc]
cmp byte [eax + 0xa5], 0
jne 0x4536ad
cmp dword [0x479bf4], 0
jne 0x45366e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4535f8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x479bf4], eax
cmp dword [0x479bf0], 0
jne 0x453689
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x479bf0], eax
cmp dword [0x479bf8], 0
jne 0x4536ad
push esp
push 0
push 0
push 0x45359c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x479bf8], eax
pop edx
ret
Function at 0x453d40
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x479bdc]
cmp dword [eax + 0x30], 0
je 0x453dea
cmp dword [ebx + 0x94], 0
jne 0x453de4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x453cd0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x453de4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x453daa
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x453de4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004144cc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x453db9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x454948
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45497d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404574
jmp 0x45498a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004044d8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x455b2c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x455b6d
mov eax, esi
call fcn.0043c070
test al, al
je 0x455b6d
mov eax, dword [ebx + 0x84]
call fcn.0043bd6c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x455b6d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043bd6c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x456c50
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, ecx
mov esi, edx
mov dword [esp], eax
mov eax, dword [esp]
call fcn.00404744
mov edx, eax
mov eax, ebp
call fcn.00404ad0
mov eax, dword [esp]
call fcn.00404744
mov edi, eax
test edi, edi
jle 0x456cb4
mov ebx, 1
mov eax, ebp
call fcn.0040499c
mov edx, dword [esp]
mov dl, byte [edx + ebx - 1]
mov ecx, esi
shr ecx, 8
xor dl, cl
mov byte [eax + ebx - 1], dl
mov eax, dword [ebp]
movzx eax, byte [eax + ebx - 1]
add esi, eax
imul eax, esi, 0xce6d
add eax, 0x58bf
mov esi, eax
inc ebx
dec edi
jne 0x456c80
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x456cbc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov esi, edx
mov edi, eax
mov eax, edi
call fcn.00404744
mov edx, eax
mov eax, dword [esp]
call fcn.00404ad0
mov eax, edi
call fcn.00404744
mov ebp, eax
test ebp, ebp
jle 0x456d1b
mov ebx, 1
mov eax, dword [esp]
call fcn.0040499c
mov dl, byte [edi + ebx - 1]
mov ecx, esi
shr ecx, 8
xor dl, cl
mov byte [eax + ebx - 1], dl
xor eax, eax
mov al, byte [edi + ebx - 1]
add esi, eax
imul eax, esi, 0xce6d
add eax, 0x58bf
mov esi, eax
inc ebx
dec ebp
jne 0x456ceb
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x460334
Capabilities:
Check os version
Get system information on windows

Disassembly:
add esp, 0xffffffdc
mov eax, dword [0x478350]
cmp dword [eax], 1
sete byte [0x477e64]
cmp byte [0x477e64], 0
je 0x46039d
call fcn.004602c0
cmp ax, 0xa
setae byte [0x477e68]
call fcn.004602a0
cmp ax, 4
jb 0x460375
call fcn.004602c0
cmp ax, 0x5a
jae 0x460379
xor eax, eax
jmp 0x46037b
mov al, 1
mov byte [0x477e78], al
push 0
push 0
push 1
push 0x5c
call sub.user32.dll_SystemParametersInfoA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [0x477e8c], al
jmp 0x46046e
mov byte [0x477e8c], 1
mov eax, dword [0x478350]
cmp dword [eax], 2
sete byte [0x477e6c]
call sub.kernel32.dll_GetVersion_1
cmp al, 5
jne 0x460458
call fcn.004602c0
test ax, ax
jne 0x4603e3
mov byte [0x477e70], 1
call fcn.004602e8
cmp ax, 2
sete byte [0x477e74]
jmp 0x460458
mov byte [0x477e7c], 1
call fcn.004602e0
cmp ax, 1
seta byte [0x477e90]
cmp byte [0x477e90], 0
je 0x460415
call fcn.004602e8
cmp ax, 2
sete byte [0x477e88]
jmp 0x460458
call fcn.004602e8
cmp ax, 3
jne 0x460429
mov byte [0x477e80], 1
jmp 0x460458
push 0x57
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x46043d
mov byte [0x477e9c], 1
jmp 0x460458
push 0x56
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x460451
mov byte [0x477e98], 1
jmp 0x460458
mov byte [0x477e84], 1
call sub.kernel32.dll_GetVersion_1
cmp al, 6
jb 0x460468
mov byte [0x477e94], 1
push esp
call sub.kernel32.dll_GetSystemInfo
add esp, 0x24
ret

Function at 0x475de8
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x475e5e
lea eax, [ebp - 0x18]
push eax
push 0x475e68
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
je 0x475e55
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 2
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x10
lea eax, [ebp - 0x28]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
mov eax, dword [ebp - 0x38]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4033e8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405144
test esi, esi
jne 0x40341e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405234
jmp 0x40343c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040328c
mov edi, eax
test esi, esi
je 0x40343c
cmp dword [ebx], 0
je 0x40343c
dec esi
jmp 0x403425
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403f7c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4b5020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404014
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403ff4
xor eax, eax
push ebp
push 0x403fed
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x404030
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403ff4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4b5020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4b5020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404f10
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b904c], 0
je 0x404f71
cmp word [0x4b9220], 0xd7b2
jne 0x404f39
cmp dword [0x4b9228], 0
jbe 0x404f39
mov eax, 0x4b921c
call dword [0x4b9238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x404f98
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b502c], 0
jne 0x404f8d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4050c8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4b5034], 0
je 0x4050ee
mov edx, esi
mov eax, ebx
call dword [0x4b5034]
jmp 0x4050fd
mov eax, 8
call fcn.00402f9c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4b904d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405090
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x406b28
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406d58
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406bab
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406d58
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406bab
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406d74
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406c34
xor eax, eax
push ebp
push 0x406c2d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406964
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406c12
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406d94
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406c12
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406c34
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406d4e
cmp byte [ebp - 0xd], 0
jne 0x406c7b
cmp byte [ebp - 0x12], 0
je 0x406d4e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406c94
dec ebx
cmp byte [ebx], 0x2e
je 0x406ca3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406c93
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406d4e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406ce0
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406d4e
cmp byte [ebp - 0xd], 0
je 0x406d4e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406d4e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409b1c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x409b6e
test eax, edx
je 0x409b71
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409b31
movzx eax, byte [eax]
sub eax, ecx
ret
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]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x409b57
add ecx, 4
js 0x409b47
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409b54
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x409b7d
test edx, edx
jne 0x409b24
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40a52c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004055d4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a54a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x40a56b
cmp ebx, 3
je 0x40a56b
cmp ebx, 0x7b
je 0x40a56b
mov eax, esi
call fcn.0040a4ec
test al, al
jne 0x40a56f
xor eax, eax
jmp 0x40a571
mov al, 1
pop esi
pop ebx
ret

Function at 0x40a574
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004055d4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a58d
test al, 0x10
jne 0x40a591
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40d3c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40d3f9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405234
jmp 0x40d402
mov eax, ebx
mov edx, esi
call fcn.00405198
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d40c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40d42e
movzx eax, byte [esp]
jmp 0x40d430
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret