joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56f4c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov edx, 0x6b8a38
call fcn.0040f370
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.0056f4b0
push ebp
push 0x415910
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], 0
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0xc]
lea eax, [eax + 0x34]
mov edx, 0
call fcn.00409460
mov edx, fcn.004fdc50
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 4]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 8]
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x1c]
mov dword [eax + 4], edx
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dx, 0
call fcn.00409e10
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
lea eax, [eax + 0x30]
call fcn.00409460
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x14]
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x18]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0xc]
lea ecx, [eax + 0x10]
mov eax, dword [ebp - 0xc]
lea edx, [eax + 0xc]
mov eax, dword [ebp - 4]
call fcn.0056d2a0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0056fb70
mov eax, dword [ebp - 4]
test dword [eax + 0x2c], 0x10
je 0x56f5c5
jmp 0x56f5e5
mov eax, dword [ebp - 4]
call fcn.00521de0
test al, al
je 0x56f5d3
jmp 0x56f5e5
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x24]
or edx, 0x8000000
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x24], edx
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0056f4b0
mov esp, ebp
pop ebp
ret
Function at 0x5991d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.005991c0
push ebp
push 0x415910
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov dword [eax], 0
mov eax, 0x70dfd0
call fcn.00411980
xor eax, eax
push fcn.005991b0
push ebp
push 0x415910
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00414be0
nop dword [eax + eax]
mov eax, 0x7fffffff
call fcn.0040fcb0
mov ebx, eax
call fcn.00414f00
xor ebx, eax
btr ebx, 0x1f
mov dword [ebp - 0xc], ebx
lea ecx, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00598d90
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.005987d0
test al, al
jne 0x599228
push 0xff10
push 0
mov ecx, dword [ebp - 0x10]
mov eax, 0x67429c
mov edx, 1
call fcn.0044c0c0
mov edx, dword [ebp - 4]
mov dword [edx], eax
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.005991b0
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.005991c0
mov eax, dword [ebp - 0xc]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x601a60
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x140]
push ebx
push esi
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov byte [ebp - 0xc], 1
mov dword [ebp - 0x10], 2
xor eax, eax
push 0x601af2
push ebp
push 0x415ce0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x30]
xor cl, cl
mov edx, 0x20
call dword [0x62f980]
lea eax, [ebp - 0x138]
xor cl, cl
mov edx, 0x106
call dword [0x62f980]
lea eax, [ebp - 0x138]
mov edx, dword [ebp - 4]
call fcn.004209b0
lea eax, [ebp - 0x138]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 3
mov word [ebp - 0x20], 0x14
lea eax, [ebp - 0x30]
push eax
call sub.shell32.dll_SHFileOperation
test eax, eax
sete byte [ebp - 0xc]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
jmp 0x601b4f
mov eax, dword [ebp - 4]
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x140], 0xb
lea eax, [ebp - 0x140]
push eax
push 0
mov eax, dword [ebp - 8]
mov eax, dword [eax - 4]
mov ecx, dword [str.Failed_to_remove_directory___s_._Retry_after_a_short_delay]
mov edx, 1
call fcn.00601f90
mov eax, 0x1388
call fcn.00426000
sub dword [ebp - 0x10], 1
lea eax, [ebp - 0x30]
push eax
call sub.shell32.dll_SHFileOperation
test eax, eax
sete byte [ebp - 0xc]
cmp dword [ebp - 0x10], 0
setg al
cmp byte [ebp - 0xc], 0
sete dl
and al, dl
jne 0x601b00
cmp byte [ebp - 0xc], 0
je 0x601b99
mov eax, dword [ebp - 4]
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x140], 0xb
lea eax, [ebp - 0x140]
push eax
push 0
mov eax, dword [ebp - 8]
mov eax, dword [eax - 4]
mov ecx, dword [str.Recursively_removed_directory___s_]
mov edx, 3
call fcn.00601f90
mov al, byte [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402907
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x402916
pop dword [ebp - 4]
mov eax, 0x782afd0e
add eax, 0x88152c08
sub dword [ebp - 4], eax
mov dword [ebp - 0x14], 0x9b1869ba
sub dword [ebp - 0x14], 0x4cc6246f
mov dword [ebp - 0x10], 0xdf2ef4b5
add dword [ebp - 0x10], 0x53045790
mov dword [ebp - 0xc], 0xe45d02b1
sub dword [ebp - 0xc], 0x9810be83
mov dword [ebp - 8], 0xbd25cd2f
sub dword [ebp - 8], 0xbd25cd2f
lea eax, [ebp - 0x14]
push eax
mov eax, 0xce04553f
sub eax, 0xcdc3e523
add eax, dword [ebp - 4]
call dword [eax]
mov dword [ebp - 0x14], 0x1cda54a4
sub dword [ebp - 0x14], 0xa867eb4e
mov dword [ebp - 0x10], 0x6ce07866
add dword [ebp - 0x10], 0xd48be90f
mov dword [ebp - 0xc], 0xaaf03b38
add dword [ebp - 0xc], 0xb87f3134
mov dword [ebp - 8], 0xa3417e46
sub dword [ebp - 8], 0xa3417e46
lea ebx, [ebp - 0x14]
push ebx
push eax
mov eax, 0x9512b44f
add eax, 0x6b2dbbd1
add eax, dword [ebp - 4]
call dword [eax]
push 0x40
push 0x1000
push 0x39d84
push 0
call eax
mov ecx, 0xfa0122af
add ecx, 0x5ff2dbc
xor edx, edx
add edx, eax
mov edi, 0x65e10335
sub edi, 0x65a03b35
add edi, dword [ebp - 4]
mov esi, 0x3df3f52c
mov ebx, dword [edi]
xor ebx, esi
mov dword [edx], ebx
add edx, 0x87d109fb
sub edx, 0x87d109f7
add edi, 0xd1039c87
sub edi, 0xd1039c83
loop 0x402a34
add eax, 0xca79f044
add eax, 0x3587443b
xor ebx, ebx
add ebx, eax
add eax, 0x3dd0b609
sub eax, 0x3dd0b604
mov ecx, 0x400000
add ecx, dword [ebp - 4]
call ebx
leave
ret

Function at 0x404635
Capabilities:
Check if file exists

Disassembly:
push 0x1c
mov eax, 0x4069e0
call fcn.004054fb
cmp dword [0x40a010], 0
mov esi, dword [ebp + 8]
jne 0x404654
mov al, 1
jmp 0x40471d
test esi, esi
je 0x40471b
xor ebx, ebx
cmp word [esi], bx
je 0x40471b
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40471b
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x40471b
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00402907
pop ecx
pop ecx
mov esi, dword [0x40a010]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], ebx
je 0x40470f
lea eax, [ebp - 0x28]
push eax
call fcn.00402907
pop ecx
test al, al
jne 0x40470f
cmp dword [ebp - 0x18], esi
jbe 0x40470f
cmp dword [0x40a014], 8
lea eax, [ebp - 0x28]
mov ecx, section..data
cmovae ecx, dword [section..data]
cmp dword [ebp - 0x14], 8
push esi
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x40470f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x40470f
push 0x407620
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
xor edx, edx
movzx ebx, bl
inc edx
test eax, eax
pop ecx
pop ecx
cmovne ebx, edx
lea ecx, [ebp - 0x28]
call fcn.00401788
mov al, bl
jmp 0x40471d
xor al, al
call fcn.004054b6
ret
Function at 0x404630
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.00407260
test esi, esi
jne 0x404668
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.0040739c
jmp 0x404686
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404574
mov edi, eax
test esi, esi
je 0x404686
cmp dword [ebx], 0
je 0x404686
dec esi
jmp 0x40466f
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4063d8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x52c054], 0
je 0x406439
cmp word [0x52c330], 0xd7b2
jne 0x406401
cmp dword [0x52c338], 0
jbe 0x406401
mov eax, 0x52c32c
call dword [0x52c348]
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 0x406464
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x528030], 0
jne 0x406455
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4065c4
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 [0x528038], 0
je 0x4065ea
mov edx, esi
mov eax, ebx
call dword [0x528038]
jmp 0x4065f9
mov eax, 8
call fcn.004042b0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x52c055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40658c
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 0x409458
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 0x4095bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00407260
cmp si, word [0x5287f4]
jb 0x4094f2
cmp si, word [0x5289f4]
ja 0x4094f2
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4094f2
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5287f4]
jae 0x4094cc
mov edi, ebx
dec edi
jmp 0x4094ed
cmp si, word [ebx*8 + 0x5287f4]
jbe 0x4094dc
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4094ed
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5287f8]
call fcn.00409368
jmp 0x4094f2
cmp edi, dword [ebp - 0xc]
jae 0x4094b6
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4095a1
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4095a1
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.00407448
push dword [ebp - 0x164]
push 0x4095dc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00407448
push dword [ebp - 0x168]
push 0x4095ec
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407448
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407800
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4095c6
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00407258
ret
Function at 0x4095f0
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 0x4097d6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x52eb5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x52eb74]
cmp ax, word [ebp - 2]
jne 0x409648
mov eax, dword [ebp - 6]
mov edx, 0x52eb78
mov ecx, 0x55
call fcn.00407448
push 0x52eb5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4097c0
push 0x52eb5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.00407260
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409788
cmp byte [0x52eb58], 0
je 0x40973e
call dword [0x52eb50]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x52eb54]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x409737
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 [0x52eb4c]
test al, al
je 0x409710
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.004042b0
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 [0x52eb4c]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x409705
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x409701
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x4096ee
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.0040740c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409788
movzx eax, word [ebp - 0x16]
push eax
call dword [0x52eb54]
cmp dword [ebp - 0x10], 0
je 0x409736
mov eax, dword [ebp - 0x10]
call fcn.004042cc
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.00409458
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x409788
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x40976d
mov eax, dword [ebp - 6]
mov edx, 0x4097f0
call fcn.0040765c
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.00409458
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.0040765c
mov eax, dword [ebp - 6]
push 0x52eb5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x52eb74], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.004072ec
push eax
push 0x52eb78
call sub.kernel32.dll_lstrcpynW
push 0x52eb5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4097dd
lea eax, [ebp - 0x1c]
call fcn.00407250
ret
Function at 0x409a14
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.00407248
xor eax, eax
push ebp
push 0x409bf9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409a54
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409a6e
push 0x105
mov eax, dword [ebp - 4]
call fcn.004072ec
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409be3
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409c08
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409afd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409c08
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409afd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409c3c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409afd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409c70
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409be3
xor eax, eax
push ebp
push 0x409bdc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409818
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 0x409b6c
mov eax, dword [ebp - 0x10]
call fcn.004042b0
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.0040740c
jmp 0x409bb7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409cb0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409bb7
mov eax, dword [ebp - 0x10]
call fcn.004042b0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409cb0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040740c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409be3
cmp dword [ebp - 8], 0
je 0x409bd2
mov eax, dword [ebp - 8]
call fcn.004042cc
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 0x409c00
lea eax, [ebp - 4]
call fcn.00407250
ret
Function at 0x409ec4
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.00407248
mov eax, dword [ebp - 0x21c]
call fcn.00407248
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40a063
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00407260
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004072ec
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 0x409f64
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409f76
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409f61
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x40a02f
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 0x409f9f
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.00409a14
cmp dword [ebp - 0x220], 0
je 0x409fd7
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409db8
pop ecx
mov ebx, eax
jmp 0x40a02f
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.004095f0
mov eax, dword [ebp - 0x224]
call fcn.00409db8
pop ecx
mov ebx, eax
test bl, bl
jne 0x40a022
cmp byte [0x52eb58], 0
jne 0x40a022
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.004095f0
mov eax, dword [ebp - 0x228]
call fcn.00409db8
pop ecx
mov ebx, eax
test bl, bl
jne 0x40a02f
push ebp
call fcn.00409e68
pop ecx
mov ebx, eax
test bl, bl
je 0x40a045
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00407448
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a06a
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00407258
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x52ec5c
push 0xa
push 0x40eb74
mov eax, dword [0x52ec40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40eb04
call fcn.0041b8a0
push ebx
mov eax, dword [0x52ec40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40eb1b
call fcn.0041b8a0
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40eb2d
call fcn.0041b8a0
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x52ec60], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x52ec64], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x52ec68], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x52ec6c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x52ec70], ecx
add edx, dword [eax + 0x14]
mov dword [0x52ec74], edx
pop esi
pop ebx
ret

Function at 0x413ce8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x413d91
test eax, edx
je 0x413d94
push 0
push 0
cmp word [eax - 0xa], 2
je 0x413d11
push edx
mov edx, eax
mov eax, esp
call fcn.00407464
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x413d27
push eax
lea eax, [esp + 8]
call fcn.00407464
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x413d36
movzx eax, word [eax]
sub eax, ecx
jmp 0x413d5d
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 0x413d77
add ecx, 4
js 0x413d4e
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x413d74
push eax
mov eax, ecx
mov edx, 2
call fcn.00406664
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x413d5b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x413d5d
xor eax, eax
ret
test eax, eax
je 0x413da4
test edx, edx
jne 0x413cf8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004072ec
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x415012
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x415033
cmp ebx, 3
je 0x415033
cmp ebx, 0x7b
je 0x415033
mov eax, esi
call fcn.00414fb4
test al, al
jne 0x415037
xor eax, eax
jmp 0x415039
mov al, 1
pop esi
pop ebx
ret

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

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