joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41dd81
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x444664]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x38]
mov esi, ecx
push eax
push esi
mov ebx, edx
call dword [0x447470]
test eax, eax
jne 0x41ddc3
mov eax, 0x200
jmp 0x41df47
mov ecx, dword [ebp - 0x38]
xor eax, eax
xor edi, edi
inc eax
mov dword [ebp - 0x40], ecx
and dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edi
je 0x41ddd9
mov dword [ebp - 0x3c], eax
test cl, 2
je 0x41dde2
or dword [ebp - 0x3c], 2
test cl, 4
je 0x41ddeb
or dword [ebp - 0x3c], 4
mov eax, ecx
and eax, 0x10
je 0x41ddf6
or dword [ebp - 0x3c], 0x10
test cl, 0x20
je 0x41ddff
or dword [ebp - 0x3c], 0x20
cmp eax, edi
je 0x41de0c
or dword [ebp - 0x3c], 0x40000000
jmp 0x41de13
or dword [ebp - 0x3c], 0x80000000
or dword [ebp - 0x3c], 0x1000000
cmp dword [ebp - 0x40], edi
jne 0x41de26
or dword [ebp - 0x3c], 0x800000
push edi
push esi
call dword [0x447550]
mov dword [ebp - 0x48], eax
cmp eax, 0x28
jbe 0x41decb
push edi
push edi
push edi
push esi
call dword [0x447390]
push edi
lea eax, [ebp - 0x44]
push eax
push 2
lea eax, [ebp - 0x40]
push eax
push esi
call dword [0x44749c]
push edi
push edi
push 0x24
push esi
call dword [0x447390]
push edi
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [0x44749c]
mov eax, 0x54ad
cmp word [ebp - 0x40], ax
jne 0x41decb
mov eax, dword [ebp - 0x4c]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x48], ecx
jbe 0x41decb
push edi
push edi
push eax
push esi
call dword [0x447390]
push edi
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [0x44749c]
mov eax, dword [ebp - 0x5c]
cmp eax, 0x5a4d
je 0x41dec4
cmp eax, 0x454e
je 0x41dec4
cmp eax, 0x454c
je 0x41dec4
cmp eax, 0x4550
jne 0x41decb
or dword [ebp - 0x3c], 0x400000
mov eax, dword [ebp - 0x58]
cmp eax, edi
je 0x41ded7
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x50]
cmp eax, edi
je 0x41dee3
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
cmp ebx, edi
je 0x41df1c
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0041dcf6
push dword [ebp - 0x20]
mov dword [ebx], eax
push dword [ebp - 0x24]
mov dword [ebx + 4], edx
call fcn.0041dcf6
push dword [ebp - 0x30]
mov dword [ebx + 8], eax
push dword [ebp - 0x34]
mov dword [ebx + 0xc], edx
call fcn.0041dcf6
add esp, 0x18
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
mov ebx, dword [ebp - 0x54]
cmp ebx, edi
je 0x41df45
push dword [ebp - 0x20]
lea edi, [ebp - 0x3c]
push dword [ebp - 0x24]
lea esi, [ebp - 0x40]
call fcn.0041dd1a
movzx eax, word [ebp - 0x40]
pop ecx
pop ecx
movzx ecx, word [ebp - 0x3c]
shl eax, 0x10
or eax, ecx
mov dword [ebx], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fa2e
leave
ret

Function at 0x41fa2e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444664]
jne 0x41fa38
repz ret
jmp fcn.0042612f
Function at 0x42dabc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x444664]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00428355
and dword [ebp - 0x14], 0
cmp dword [0x4469b8], 0
mov dword [ebp - 0x18], eax
jne 0x42db6f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42dc17
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x42dc17
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4469b8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4469bc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4469c0], eax
call edi
push eax
call esi
mov dword [0x4469c8], eax
test eax, eax
je 0x42db6f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4469c4], eax
mov eax, dword [0x4469c4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42dbc8
cmp dword [0x4469c8], ecx
je 0x42dbc8
push eax
call esi
push dword [0x4469c8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42dbc8
test ebx, ebx
je 0x42dbc8
call edi
test eax, eax
je 0x42dbbf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42dbbf
test byte [ebp - 8], 1
jne 0x42dbc8
or dword [ebp + 0x10], 0x200000
jmp 0x42dbfb
mov eax, dword [0x4469bc]
cmp eax, dword [ebp - 0x18]
je 0x42dbfb
push eax
call esi
test eax, eax
je 0x42dbfb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42dbfb
mov eax, dword [0x4469c0]
cmp eax, dword [ebp - 0x18]
je 0x42dbfb
push eax
call esi
test eax, eax
je 0x42dbfb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4469b8]
call esi
test eax, eax
je 0x42dc17
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42dc19
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fa2e
leave
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40915c
mov ecx, 0x4e5b7c19
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
mov ecx, 0x48e54778
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x404584
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.004070a8
test esi, esi
jne 0x4045bc
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.004071e4
jmp 0x4045da
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044c8
mov edi, eax
test esi, esi
je 0x4045da
cmp dword [ebx], 0
je 0x4045da
dec esi
jmp 0x4045c3
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406638
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4af054], 0
je 0x406699
cmp word [0x4af330], 0xd7b2
jne 0x406661
cmp dword [0x4af338], 0
jbe 0x406661
mov eax, 0x4af32c
call dword [0x4af348]
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 0x4066c4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ac030], 0
jne 0x4066b5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406824
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 [0x4ac038], 0
je 0x40684a
mov edx, esi
mov eax, ebx
call dword [0x4ac038]
jmp 0x406859
mov eax, 8
call fcn.00404204
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4af055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4067ec
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 0x408ef4
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 0x40905b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004070a8
cmp si, word [0x4ac820]
jb 0x408f8e
cmp si, word [0x4aca20]
ja 0x408f8e
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408f8e
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4ac820]
jae 0x408f68
mov edi, ebx
dec edi
jmp 0x408f89
cmp si, word [ebx*8 + 0x4ac820]
jbe 0x408f78
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408f89
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4ac824]
call fcn.00408e04
jmp 0x408f8e
cmp edi, dword [ebp - 0xc]
jae 0x408f52
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x40903d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40903d
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.00407290
push dword [ebp - 0x164]
push 0x409078
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00407290
push dword [ebp - 0x168]
push 0x409088
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407290
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407648
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409062
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.004070a0
ret
Function at 0x40908c
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 0x409272
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4b1b5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x4b1b74]
cmp ax, word [ebp - 2]
jne 0x4090e4
mov eax, dword [ebp - 6]
mov edx, 0x4b1b78
mov ecx, 0x55
call fcn.00407290
push 0x4b1b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40925c
push 0x4b1b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.004070a8
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409224
cmp byte [0x4b1b58], 0
je 0x4091da
call dword [0x4b1b50]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x4b1b54]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x4091d3
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 [0x4b1b4c]
test al, al
je 0x4091ac
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.00404204
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 [0x4b1b4c]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x4091a1
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x40919d
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x40918a
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00407254
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409224
movzx eax, word [ebp - 0x16]
push eax
call dword [0x4b1b54]
cmp dword [ebp - 0x10], 0
je 0x4091d2
mov eax, dword [ebp - 0x10]
call fcn.00404220
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.00408ef4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x409224
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x409209
mov eax, dword [ebp - 6]
mov edx, 0x40928c
call fcn.004074a4
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.00408ef4
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.004074a4
mov eax, dword [ebp - 6]
push 0x4b1b5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x4b1b74], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.00407134
push eax
push 0x4b1b78
call sub.kernel32.dll_lstrcpynW
push 0x4b1b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409279
lea eax, [ebp - 0x1c]
call fcn.00407098
ret
Function at 0x4094b0
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.00407090
xor eax, eax
push ebp
push 0x409695
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4094f0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40950a
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407134
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40967f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4096a4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409599
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4096a4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409599
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4096d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409599
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40970c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40967f
xor eax, eax
push ebp
push 0x409678
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004092b4
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 0x409608
mov eax, dword [ebp - 0x10]
call fcn.00404204
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.00407254
jmp 0x409653
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40974c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409653
mov eax, dword [ebp - 0x10]
call fcn.00404204
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40974c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407254
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40967f
cmp dword [ebp - 8], 0
je 0x40966e
mov eax, dword [ebp - 8]
call fcn.00404220
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 0x40969c
lea eax, [ebp - 4]
call fcn.00407098
ret
Function at 0x409960
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.00407090
mov eax, dword [ebp - 0x21c]
call fcn.00407090
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409aff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.004070a8
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00407134
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 0x409a00
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409a12
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x4099fd
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409acb
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 0x409a3b
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.004094b0
cmp dword [ebp - 0x220], 0
je 0x409a73
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409854
pop ecx
mov ebx, eax
jmp 0x409acb
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.0040908c
mov eax, dword [ebp - 0x224]
call fcn.00409854
pop ecx
mov ebx, eax
test bl, bl
jne 0x409abe
cmp byte [0x4b1b58], 0
jne 0x409abe
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.0040908c
mov eax, dword [ebp - 0x228]
call fcn.00409854
pop ecx
mov ebx, eax
test bl, bl
jne 0x409acb
push ebp
call fcn.00409904
pop ecx
mov ebx, eax
test bl, bl
je 0x409ae1
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00407290
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409b06
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.004070a0
ret

Function at 0x40d470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4b1c50
push 0xa
push 0x40d504
mov eax, dword [0x4b1c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40d494
call fcn.004184b8
push ebx
mov eax, dword [0x4b1c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40d4ab
call fcn.004184b8
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40d4bd
call fcn.004184b8
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4b1c54], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4b1c58], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4b1c5c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4b1c60], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4b1c64], ecx
add edx, dword [eax + 0x14]
mov dword [0x4b1c68], edx
pop esi
pop ebx
ret
Function at 0x410e70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x410f19
test eax, edx
je 0x410f1c
push 0
push 0
cmp word [eax - 0xa], 2
je 0x410e99
push edx
mov edx, eax
mov eax, esp
call fcn.004072ac
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x410eaf
push eax
lea eax, [esp + 8]
call fcn.004072ac
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x410ebe
movzx eax, word [eax]
sub eax, ecx
jmp 0x410ee5
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 0x410eff
add ecx, 4
js 0x410ed6
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x410efc
push eax
mov eax, ecx
mov edx, 2
call fcn.004068c4
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x410ee3
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x410ee5
xor eax, eax
ret
test eax, eax
je 0x410f2c
test edx, edx
jne 0x410e80
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00407134
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41209a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x4120bb
cmp ebx, 3
je 0x4120bb
cmp ebx, 0x7b
je 0x4120bb
mov eax, esi
call fcn.0041203c
test al, al
jne 0x4120bf
xor eax, eax
jmp 0x4120c1
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00407134
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4120dd
test al, 0x10
jne 0x4120e1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4120e8
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.00407134
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x41210a
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x415768
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 0x100
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4157a1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004071e4
jmp 0x4157aa
mov eax, ebx
mov edx, esi
call fcn.004070a8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4157b4
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_1
test eax, eax
jle 0x4157d6
movzx eax, word [esp]
jmp 0x4157d8
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret