joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e3a1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.00437d16
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x45e3d8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0045e3f9
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x460d5a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x460d74
mov edi, dword [esi + 0xc]
jmp 0x460db4
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x460d8d
call fcn.00446e4c
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x460da2
call fcn.00446e4c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x460db4
call fcn.00446e4c
call fcn.00437d16
cmp dword [eax + 0x3c], 0
je 0x460dc9
push edi
mov ecx, ebx
call fcn.0046038e
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00461093
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x460df2
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x460dfe
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x461848
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x46189b
push esi
push dword [ebp + 8]
call fcn.00461a38
mov edi, eax
test edi, edi
jne 0x46186b
mov eax, dword [ebp + 0x10]
jmp 0x4618ad
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x461866
mov eax, dword [ebp - 8]
jmp 0x4618ad
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4990d4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x4990ed
call fcn.00437d16
mov esi, dword [eax + 0xc]
push 0x6c8304
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x499143
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x499142
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x499123
xor esi, esi
jmp 0x499139
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.0049914b
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x54554e
Capabilities:
Get file system object information

Disassembly:
push 0x274
mov eax, 0x6a8e3d
call fcn.005fb471
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00407810
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x278], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x278]
push 0
push 0x7182dc
call fcn.004515d9
cmp eax, 0xffffffff
jne 0x545619
push 0
push 0x6c82c0
lea ecx, [ebp - 0x278]
call fcn.004515d9
cmp eax, 0xffffffff
jne 0x545619
push 0
push 0x6bf1dc
lea ecx, [ebp - 0x278]
call fcn.004515d9
cmp eax, 0xffffffff
jne 0x545619
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00407810
mov edi, eax
pop ecx
mov dword [ebp - 0x27c], edi
lea ecx, [edi + 0x10]
mov dword [ebp - 0x280], ecx
xor edx, edx
mov byte [ebp - 4], 1
push edx
lea eax, [ebp - 0x114]
push eax
push 0x104
push edx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x5455f6
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call fcn.005fb400
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x27c]
mov edi, eax
call fcn.004080e0
jmp 0x545651
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x278]
call fcn.0042cf60
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.004080e0
mov esi, dword [ebp - 0x278]
push 0x105
push 0x160
lea eax, [ebp - 0x274]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x54563f
mov edi, dword [ebp - 0x274]
jmp 0x545651
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call fcn.005fb400
mov ecx, ebx
call edi
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.004080e0
mov eax, edi
call fcn.005fb41b
ret
Function at 0x5df9c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push edi
mov edi, ecx
jne 0x5df9d1
xor eax, eax
jmp 0x5dfa4e
cmp dword [ebp + 0xc], 0
je 0x5df9cd
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x5df9ea
call fcn.00437d16
mov eax, dword [eax + 0xc]
test eax, eax
je 0x5df9cd
push esi
push dword [ebp + 0xc]
mov dword [edi + 8], eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x5dfa12
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x5dfa16
xor eax, eax
jmp 0x5dfa4d
push ebx
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x5dfa4c
push dword [ebp - 4]
mov esi, dword [edi]
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esi + 4]
push eax
call fcn.005fb400
mov ecx, edi
call dword [esi + 4]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x5f28cb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.0061cde0
mov eax, dword [ebp + 8]
add esp, 0xc
and dword [ebp - 0x34], 0
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov esp, ebp
pop ebp
ret 0x14

Function at 0x65fed3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0065fad8

Function at 0x65fede
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0065fc59

Function at 0x6673b2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00666b97

Function at 0x6673bd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00666dd2

Function at 0x668086
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00667e0d

Function at 0x674fbf
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x404678
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.00407448
test esi, esi
jne 0x4046b0
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.00407584
jmp 0x4046ce
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040455c
mov edi, eax
test esi, esi
je 0x4046ce
cmp dword [ebx], 0
je 0x4046ce
dec esi
jmp 0x4046b7
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406538
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5ad054], 0
je 0x406599
cmp word [0x5ad330], 0xd7b2
jne 0x406561
cmp dword [0x5ad338], 0
jbe 0x406561
mov eax, 0x5ad32c
call dword [0x5ad348]
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 0x4065c4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5a3030], 0
jne 0x4065b5
push 0
push 0x5a37a0
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406744
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 [0x5a3038], 0
je 0x40676a
mov edx, esi
mov eax, ebx
call dword [0x5a3038]
jmp 0x406779
mov eax, 8
call fcn.004042a4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x5ad055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40670c
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 0x40977c
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 0x4098e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00407448
cmp si, word [0x5a37dc]
jb 0x409816
cmp si, word [0x5a39dc]
ja 0x409816
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x409816
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5a37dc]
jae 0x4097f0
mov edi, ebx
dec edi
jmp 0x409811
cmp si, word [ebx*8 + 0x5a37dc]
jbe 0x409800
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x409811
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5a37e0]
call fcn.0040968c
jmp 0x409816
cmp edi, dword [ebp - 0xc]
jae 0x4097da
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4098c5
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4098c5
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.00407658
push dword [ebp - 0x164]
push 0x409900
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00407658
push dword [ebp - 0x168]
push 0x409910
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407658
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407a10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4098ea
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00407440
ret
Function at 0x409914
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 0x409afa
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5afb5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x5afb74]
cmp ax, word [ebp - 2]
jne 0x40996c
mov eax, dword [ebp - 6]
mov edx, 0x5afb78
mov ecx, 0x55
call fcn.00407658
push 0x5afb5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409ae4
push 0x5afb5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.00407448
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409aac
cmp byte [0x5afb58], 0
je 0x409a62
call dword [0x5afb50]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x5afb54]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x409a5b
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 [0x5afb4c]
test al, al
je 0x409a34
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.004042a4
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 [0x5afb4c]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x409a29
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x409a25
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x409a12
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00407604
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409aac
movzx eax, word [ebp - 0x16]
push eax
call dword [0x5afb54]
cmp dword [ebp - 0x10], 0
je 0x409a5a
mov eax, dword [ebp - 0x10]
call fcn.004042c0
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.0040977c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x409aac
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x409a91
mov eax, dword [ebp - 6]
mov edx, 0x409b14
call fcn.0040786c
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.0040977c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.0040786c
mov eax, dword [ebp - 6]
push 0x5afb5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x5afb74], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.004074d4
push eax
push 0x5afb78
call sub.kernel32.dll_lstrcpynW
push 0x5afb5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409b01
lea eax, [ebp - 0x1c]
call fcn.00407438
ret
Function at 0x409d38
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.00407430
xor eax, eax
push ebp
push 0x409f1d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409d78
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409d92
push 0x105
mov eax, dword [ebp - 4]
call fcn.004074d4
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409f07
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409f2c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409e21
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409f2c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409e21
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409f60
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409e21
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409f94
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409f07
xor eax, eax
push ebp
push 0x409f00
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409b3c
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 0x409e90
mov eax, dword [ebp - 0x10]
call fcn.004042a4
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.00407604
jmp 0x409edb
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409fd4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409edb
mov eax, dword [ebp - 0x10]
call fcn.004042a4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409fd4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407604
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409f07
cmp dword [ebp - 8], 0
je 0x409ef6
mov eax, dword [ebp - 8]
call fcn.004042c0
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 0x409f24
lea eax, [ebp - 4]
call fcn.00407438
ret
Function at 0x40a1e8
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.00407430
mov eax, dword [ebp - 0x21c]
call fcn.00407430
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40a387
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00407448
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004074d4
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 0x40a288
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x40a29a
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x40a285
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x40a353
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 0x40a2c3
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.00409d38
cmp dword [ebp - 0x220], 0
je 0x40a2fb
push ebp
mov eax, dword [ebp - 0x220]
call fcn.0040a0dc
pop ecx
mov ebx, eax
jmp 0x40a353
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00409914
mov eax, dword [ebp - 0x224]
call fcn.0040a0dc
pop ecx
mov ebx, eax
test bl, bl
jne 0x40a346
cmp byte [0x5afb58], 0
jne 0x40a346
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00409914
mov eax, dword [ebp - 0x228]
call fcn.0040a0dc
pop ecx
mov ebx, eax
test bl, bl
jne 0x40a353
push ebp
call fcn.0040a18c
pop ecx
mov ebx, eax
test bl, bl
je 0x40a369
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00407658
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a38e
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00407440
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x5afc5c
push 0xa
push 0x40e808
mov eax, dword [0x5afc40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40e798
call fcn.0041cc88
push ebx
mov eax, dword [0x5afc40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40e7af
call fcn.0041cc88
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40e7c1
call fcn.0041cc88
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x5afc60], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x5afc64], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x5afc68], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x5afc6c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x5afc70], ecx
add edx, dword [eax + 0x14]
mov dword [0x5afc74], edx
pop esi
pop ebx
ret

Function at 0x41366c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x413715
test eax, edx
je 0x413718
push 0
push 0
cmp word [eax - 0xa], 2
je 0x413695
push edx
mov edx, eax
mov eax, esp
call fcn.00407674
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x4136ab
push eax
lea eax, [esp + 8]
call fcn.00407674
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4136ba
movzx eax, word [eax]
sub eax, ecx
jmp 0x4136e1
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 0x4136fb
add ecx, 4
js 0x4136d2
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x4136f8
push eax
mov eax, ecx
mov edx, 2
call fcn.004067e4
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4136df
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4136e1
xor eax, eax
ret
test eax, eax
je 0x413728
test edx, edx
jne 0x41367c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004074d4
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x414c46
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x414c67
cmp ebx, 3
je 0x414c67
cmp ebx, 0x7b
je 0x414c67
mov eax, esi
call fcn.00414be8
test al, al
jne 0x414c6b
xor eax, eax
jmp 0x414c6d
mov al, 1
pop esi
pop ebx
ret

Function at 0x414c70
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.004074d4
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x414c92
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret