joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52dd60
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x59ffb9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6a3b20]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 8]
call dword [0x5a7640]
mov dword [esi], vtable.FAV::FramePrivate.0
mov eax, dword [0x5a7a7c]
mov dword [esi + 0xc], eax
mov ecx, dword [0x5a7a7c]
mov dword [esi + 0x10], ecx
mov edx, dword [0x5a79dc]
lea ecx, [esi + 0x18]
mov dword [esi + 0x14], edx
call dword [0x5a7b58]
fldz
or eax, 0xffffffff
fstp qword [esi + 0x20]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
fldz
mov ecx, dword [esp + 0x2c]
fstp dword [esi + 0x40]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
xor ebp, ebp
mov dword [esi + 0x34], ecx
push edx
lea ecx, [esi + 0x44]
mov dword [esp + 0x24], ebp
mov dword [esi], vtable.FAV::VideoFramePrivate.0
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], ebp
mov dword [esi + 0x3c], ebp
call fcn.0052be60
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x50], ebp
lea ecx, [esi + 0x44]
mov byte [esp + 0x20], 3
call fcn.0052b240
test al, al
je 0x52df2c
lea ecx, [esi + 0x44]
call fcn.0052b2c0
mov ecx, dword [esi + 0xc]
mov ebp, dword [ecx + 8]
mov ecx, ebp
and ecx, 0x7fffffff
xor edx, edx
cmp eax, ecx
jg 0x52de4b
test ebp, ebp
js 0x52de52
mov ebp, dword [esi + 0xc]
cmp eax, dword [ebp + 4]
jge 0x52de52
mov ebp, ecx
sar ebp, 1
cmp eax, ebp
jge 0x52de52
mov edx, 8
mov ecx, eax
push edx
push ecx
push eax
lea ecx, [esi + 0xc]
call fcn.004e5350
lea ecx, [esi + 0x44]
call fcn.0052b2c0
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx + 8]
mov ecx, edx
and ecx, 0x7fffffff
xor ebp, ebp
cmp eax, ecx
jg 0x52de8d
test edx, edx
js 0x52de94
mov edx, dword [esi + 0x10]
cmp eax, dword [edx + 4]
jge 0x52de94
mov edx, ecx
sar edx, 1
cmp eax, edx
jge 0x52de94
mov ebp, 8
mov ecx, eax
push ebp
push ecx
push eax
lea ecx, [esi + 0x10]
call fcn.00420150
lea ecx, [esi + 0x44]
call fcn.0052b2c0
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 8]
and edx, 0x7fffffff
cmp eax, edx
jle 0x52ded0
push ecx
mov ecx, esp
mov dword [ecx], 0
push eax
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 4]
push ecx
lea ecx, [esi + 0xc]
call fcn.004e5350
mov edi, dword [esi + 0xc]
mov eax, dword [edi]
cmp eax, 1
je 0x52dede
test eax, eax
jne 0x52dee5
or dword [edi + 8], 0x80000000
lea ecx, [esi + 0x44]
call fcn.0052b2c0
mov edx, dword [esi + 0x10]
mov ecx, dword [edx + 8]
and ecx, 0x7fffffff
cmp eax, ecx
jle 0x52df16
push ecx
mov ecx, esp
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
push eax
mov eax, dword [edx + 4]
push eax
lea ecx, [esi + 0x10]
call fcn.00420150
mov ebp, dword [esi + 0x10]
mov eax, dword [ebp]
cmp eax, 1
je 0x52df25
test eax, eax
jne 0x52df2c
or dword [ebp + 8], 0x80000000
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x5360f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a0e7e
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x6a3b20]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor edi, edi
mov dword [esi], vtable.Factory_int__class_FAV::VideoRenderer__class_FAV::VideoRendererFactory_.0
push 0x18
mov dword [esp + 0x30], edi
mov dword [esi + 0xc], edi
call fcn.00580794
add esp, 4
cmp eax, edi
je 0x5361d7
mov dword [esi + 8], eax
mov dword [eax], eax
mov eax, dword [esi + 8]
mov dword [eax + 4], eax
mov eax, dword [esi + 8]
mov dword [eax + 8], eax
mov eax, dword [esi + 8]
mov bl, 1
mov byte [eax + 0x14], bl
mov ecx, dword [esi + 8]
mov byte [ecx + 0x15], bl
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
push 0x18
mov byte [esp + 0x30], 2
mov dword [esi + 0x2c], edi
call fcn.00580794
add esp, 4
cmp eax, edi
je 0x5361ad
mov dword [esi + 0x28], eax
mov dword [eax], eax
mov eax, dword [esi + 0x28]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x28]
mov dword [eax + 8], eax
mov edx, dword [esi + 0x28]
mov byte [edx + 0x14], bl
mov eax, dword [esi + 0x28]
mov byte [eax + 0x15], bl
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x20
ret
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], edi
call dword [0x5a7168]
push 0x664cd0
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], vtable.std::bad_alloc.0
call fcn.005808e8
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], edi
call dword [0x5a7168]
push 0x664cd0
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], vtable.std::bad_alloc.0
call fcn.005808e8
int3
Function at 0x536760
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a0f3b
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6a3b20]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
push str.default
push str.class_FAV::VideoCapture___thiscall_FAV::VideoThread::setVideoCapture_class_FAV::VideoCapture__
push 0x57
push str..._favVideoThread.cpp
lea ecx, [esp + 0x2c]
call dword [0x5a7720]
mov edi, dword [esp + 0x40]
push edi
lea eax, [esp + 0x20]
push str.setCapture__p
push eax
call fcn.0051a710
mov ebp, dword [ebx + 0xc]
lea esi, [ebp + 0x90]
add esp, 0xc
mov dword [esp + 0x40], esi
test esi, esi
je 0x5367db
mov ecx, esi
call dword [0x5a7610]
or esi, 1
mov dword [esp + 0x40], esi
mov esi, dword [ebp + 0x150]
mov dword [esp + 0x38], 0
mov dword [ebp + 0x150], edi
test esi, esi
je 0x536808
push str.1addCaptureTask__
push ebx
push str.2requested__
push esi
call dword [0x5a7bbc]
add esp, 0x10
test edi, edi
je 0x536832
push 0
push str.1addCaptureTask__
push ebx
push str.2requested__
lea ecx, [esp + 0x24]
push edi
push ecx
call dword [0x5a7d7c]
add esp, 0x18
lea ecx, [esp + 0x14]
call dword [0x5a7d80]
mov ecx, edi
call fcn.005252d0
test al, al
je 0x536894
mov edx, dword [edi + 0x18]
cmp dword [edx + 4], 0
jne 0x536894
mov eax, dword [ebp + 0xa4]
push eax
lea ecx, [esp + 0x1c]
call dword [0x5a7cd0]
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
mov byte [esp + 0x3c], 1
call dword [0x5a7438]
push eax
mov ecx, edi
mov byte [esp + 0x3c], 2
call fcn.00525430
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 1
call dword [0x5a7d90]
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 0
call dword [0x5a7cd8]
mov ecx, dword [esp + 0x40]
test cl, 1
je 0x5368a9
and ecx, 0xfffffffe
and ecx, 0xfffffffe
call dword [0x5a7618]
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x404668
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.0040725c
test esi, esi
jne 0x4046a0
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.00407398
jmp 0x4046be
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040454c
mov edi, eax
test esi, esi
je 0x4046be
cmp dword [ebx], 0
je 0x4046be
dec esi
jmp 0x4046a7
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4046f0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x558008], 0x8088405
inc edx
mov dword [ebx + 0x558008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x404d1c
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x404d32
sub ecx, 2
jne 0x404d54
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x404d5b
cmp edx, dword [ebx + 8]
je 0x404d65
mov eax, 0x64
jmp 0x404d60
mov eax, 0x67
jmp 0x404d60
call sub.kernel32.dll_GetLastError
call fcn.004043e4
pop ebx
ret

Function at 0x404f9c
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x404fcf
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_WriteFile
pop edx
dec eax
jne 0x404fd6
cmp edx, dword [ebx + 8]
je 0x404fe0
mov eax, 0x65
jmp 0x404fdb
mov eax, 5
jmp 0x404fdb
call sub.kernel32.dll_GetLastError
call fcn.004043e4
mov eax, ebx
pop ebx
ret

Function at 0x4064e0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x564054], 0
je 0x406541
cmp word [0x564330], 0xd7b2
jne 0x406509
cmp dword [0x564338], 0
jbe 0x406509
mov eax, 0x56432c
call dword [0x564348]
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 0x40656c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x558030], 0
jne 0x40655d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4066cc
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 [0x558038], 0
je 0x4066f2
mov edx, esi
mov eax, ebx
call dword [0x558038]
jmp 0x406701
mov eax, 8
call fcn.0040425c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x564055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406694
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 0x409290
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 0x4093f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040725c
cmp si, word [0x5587f4]
jb 0x40932a
cmp si, word [0x5589f4]
ja 0x40932a
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x40932a
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5587f4]
jae 0x409304
mov edi, ebx
dec edi
jmp 0x409325
cmp si, word [ebx*8 + 0x5587f4]
jbe 0x409314
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x409325
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5587f8]
call fcn.004091a0
jmp 0x40932a
cmp edi, dword [ebp - 0xc]
jae 0x4092ee
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4093d9
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4093d9
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.0040746c
push dword [ebp - 0x164]
push 0x409414
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.0040746c
push dword [ebp - 0x168]
push 0x409424
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.0040746c
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407824
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4093fe
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00407254
ret
Function at 0x409428
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 6], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x40960e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x566b5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x566b74]
cmp ax, word [ebp - 2]
jne 0x409480
mov eax, dword [ebp - 6]
mov edx, 0x566b78
mov ecx, 0x55
call fcn.0040746c
push 0x566b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4095f8
push 0x566b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.0040725c
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4095c0
cmp byte [0x566b58], 0
je 0x409576
call dword [0x566b50]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x566b54]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x40956f
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x566b4c]
test al, al
je 0x409548
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.0040425c
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x566b4c]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x40953d
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x409539
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x409526
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00407418
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4095c0
movzx eax, word [ebp - 0x16]
push eax
call dword [0x566b54]
cmp dword [ebp - 0x10], 0
je 0x40956e
mov eax, dword [ebp - 0x10]
call fcn.00404278
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.00409290
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x4095c0
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x4095a5
mov eax, dword [ebp - 6]
mov edx, 0x409628
call fcn.00407680
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.00409290
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00407680
mov eax, dword [ebp - 6]
push 0x566b5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x566b74], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.004072e8
push eax
push 0x566b78
call sub.kernel32.dll_lstrcpynW
push 0x566b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409615
lea eax, [ebp - 0x1c]
call fcn.0040724c
ret
Function at 0x40984c
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.00407244
xor eax, eax
push ebp
push 0x409a31
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40988c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4098a6
push 0x105
mov eax, dword [ebp - 4]
call fcn.004072e8
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409a1b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409a40
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409935
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409a40
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409935
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409a74
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409935
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409aa8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409a1b
xor eax, eax
push ebp
push 0x409a14
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409650
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 0x4099a4
mov eax, dword [ebp - 0x10]
call fcn.0040425c
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.00407418
jmp 0x4099ef
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409ae8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4099ef
mov eax, dword [ebp - 0x10]
call fcn.0040425c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409ae8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407418
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a1b
cmp dword [ebp - 8], 0
je 0x409a0a
mov eax, dword [ebp - 8]
call fcn.00404278
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 0x409a38
lea eax, [ebp - 4]
call fcn.0040724c
ret
Function at 0x409cfc
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.00407244
mov eax, dword [ebp - 0x21c]
call fcn.00407244
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409e9b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.0040725c
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004072e8
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 0x409d9c
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409dae
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409d99
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409e67
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 0x409dd7
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.0040984c
cmp dword [ebp - 0x220], 0
je 0x409e0f
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409bf0
pop ecx
mov ebx, eax
jmp 0x409e67
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00409428
mov eax, dword [ebp - 0x224]
call fcn.00409bf0
pop ecx
mov ebx, eax
test bl, bl
jne 0x409e5a
cmp byte [0x566b58], 0
jne 0x409e5a
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00409428
mov eax, dword [ebp - 0x228]
call fcn.00409bf0
pop ecx
mov ebx, eax
test bl, bl
jne 0x409e67
push ebp
call fcn.00409ca0
pop ecx
mov ebx, eax
test bl, bl
je 0x409e7d
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.0040746c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409ea2
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00407254
ret

Function at 0x40a614
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 0x40dfa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x566c5c
push 0xa
push 0x40e034
mov eax, dword [0x566c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40dfc4
call fcn.0041b040
push ebx
mov eax, dword [0x566c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40dfdb
call fcn.0041b040
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40dfed
call fcn.0041b040
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x566c60], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x566c64], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x566c68], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x566c6c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x566c70], ecx
add edx, dword [eax + 0x14]
mov dword [0x566c74], edx
pop esi
pop ebx
ret

Function at 0x412e38
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x412ee1
test eax, edx
je 0x412ee4
push 0
push 0
cmp word [eax - 0xa], 2
je 0x412e61
push edx
mov edx, eax
mov eax, esp
call fcn.00407488
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x412e77
push eax
lea eax, [esp + 8]
call fcn.00407488
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x412e86
movzx eax, word [eax]
sub eax, ecx
jmp 0x412ead
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 0x412ec7
add ecx, 4
js 0x412e9e
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x412ec4
push eax
mov eax, ecx
mov edx, 2
call fcn.0040676c
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x412eab
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x412ead
xor eax, eax
ret
test eax, eax
je 0x412ef4
test edx, edx
jne 0x412e48
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004072e8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41444a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x41446b
cmp ebx, 3
je 0x41446b
cmp ebx, 0x7b
je 0x41446b
mov eax, esi
call fcn.004143ec
test al, al
jne 0x41446f
xor eax, eax
jmp 0x414471
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004072e8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41448d
test al, 0x10
jne 0x414491
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret