joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002c08
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cmp ecx, dword [0x1000e0cc]
jne 0x10002c12
repz ret
jmp 0x10004fac
aad 0xc6
inc ebp
salc
aam 0x88
pop ebp
xlatb
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.10004b97
push eax
push esi
push dword [ebp + 8]
call fcn.10004b4c
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.10004b87
int1
mov esi, 0x9d887fb3
jl 0x1000500c
invalid
invalid

Function at 0x10004f60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
wait
xor eax, 0x349c45c6
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.10004b97
push eax
push esi
push dword [ebp + 8]
call fcn.10004b4c
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
Function at 0x10008b27
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10004924
and dword [ebp - 4], 0
cmp dword [0x1000f744], 0
mov ebx, eax
jne 0x10008bd8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10008c89
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10008c89
push eax
call fcn.100048b2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1000f744], eax
call esi
push eax
call fcn.100048b2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1000f748], eax
call esi
push eax
call fcn.100048b2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1000f74c], eax
call esi
push eax
call fcn.100048b2
pop ecx
mov dword [0x1000f754], eax
test eax, eax
je 0x10008bd8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100048b2
pop ecx
mov dword [0x1000f750], eax
mov eax, dword [0x1000f750]
cmp eax, ebx
je 0x10008c30
cmp dword [0x1000f754], ebx
je 0x10008c30
push eax
call fcn.1000492d
push dword [0x1000f754]
mov esi, eax
call fcn.1000492d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10008c30
test edi, edi
je 0x10008c30
call esi
test eax, eax
je 0x10008c27
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10008c27
test byte [ebp - 0xc], 1
jne 0x10008c30
or dword [ebp + 0x10], 0x200000
jmp 0x10008c69
mov eax, dword [0x1000f748]
cmp eax, ebx
je 0x10008c69
push eax
call fcn.1000492d
pop ecx
test eax, eax
je 0x10008c69
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10008c69
mov eax, dword [0x1000f74c]
cmp eax, ebx
je 0x10008c69
push eax
call fcn.1000492d
pop ecx
test eax, eax
je 0x10008c69
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1000f744]
call fcn.1000492d
pop ecx
test eax, eax
je 0x10008c89
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10008c8b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401190
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
xor ecx, ecx
xor edx, edx
push edi
test eax, eax
je 0x4012d0
cmp dword [ebp + 0xc], ecx
je 0x4012d0
cmp eax, dword [ebp + 0xc]
jae 0x4012d0
inc edx
mov eax, edx
and eax, 0x80000001
jns 0x4011c6
dec eax
or eax, 0xfffffffe
inc eax
jne 0x4011c9
inc edx
cmp edx, 0x917
jl 0x4011b7
mov esi, 0x536
mov eax, 0x22b63cbf
imul esi
sar edx, 3
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x4011d6
xor edi, edi
jmp 0x4011f0
inc edi
mov eax, 0x38e38e39
imul edi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, edi
lea eax, [eax + eax*8]
sub ecx, eax
jne 0x40120b
inc edi
cmp edi, 0x2636
jl 0x4011f0
mov edi, 0xa0
mov ebx, 0x2ca1
lea ecx, [ecx]
mov eax, 0x6bca1af3
imul ebx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x401220
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
mov ebx, 0x3a6c
mov dword [ebp + 0xc], eax
mov esi, 0x3a88
mov eax, 0x10624dd3
imul esi
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x401246
xor ecx, ecx
mov esi, 0x6049
cmp dword [ebp + 0xc], ecx
jbe 0x401283
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
jmp 0x401270
mov al, byte [ecx + edx + 1]
add al, 0x2f
xor byte [ecx + edx], al
inc ecx
cmp ecx, edi
jb 0x401270
mov edi, 0xa0
mov eax, 0x939a85c5
imul ebx
add edx, ebx
sar edx, 6
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x401283
jmp 0x4012a0
mov eax, 0x891ac73b
imul esi
add edx, esi
sar edx, 7
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x4012a0
mov eax, 0x416e
mov ecx, 0xdc
nop
cmp edi, ecx
cmovl edi, ecx
dec eax
jne 0x4012c0
pop edi
pop esi
pop ebx
pop ebp
ret
inc ecx
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
lea eax, [eax + eax*2]
sub edx, eax
jne 0x4012e9
inc ecx
cmp ecx, 0x551a
jl 0x4012d0
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x402d60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ecx, 0x22f
push edi
mov esi, 0x3a88
xor edi, edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x799f
nop
mov eax, 0x91a2b3c5
imul esi
add edx, esi
sar edx, 7
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x402d80
mov esi, dword [ebp + 8]
inc byte [esi + 8]
movzx eax, byte [esi + 8]
lea ebx, [esi + 0xe]
add ebx, eax
movzx eax, byte [esi + 0x11e]
movzx edx, byte [ebx]
add eax, edx
mov dword [ebp - 8], ebx
mov dword [ebp + 8], eax
mov byte [esi + 0x11e], al
lea esp, [esp]
inc edi
mov eax, 0x2aaaaaab
imul edi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*2]
add edx, edx
mov eax, edi
sub eax, edx
jne 0x402ddd
add edi, 2
cmp edi, 0x869
jl 0x402dc0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov bl, byte [ebx]
movzx edx, al
movzx eax, byte [edx + esi + 0xe]
mov byte [ecx], al
mov byte [edx + esi + 0xe], bl
mov al, byte [ecx]
add al, bl
movzx eax, al
mov ecx, 0x5e7f
mov bl, byte [eax + esi + 0xe]
jmp 0x402e10
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402e10
mov ecx, dword [ebp - 0xc]
mov eax, 0x8ca29c05
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402e25
lea ebx, [ebx]
mov eax, 0x4d4873ed
imul dword [ebp - 4]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 4], eax
jne 0x402e40
movzx ecx, byte [ebp + 0xc]
movzx eax, bl
pop edi
pop esi
xor eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404510
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.00406b98
test esi, esi
jne 0x404548
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.00406cd4
jmp 0x404566
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404454
mov edi, eax
test esi, esi
je 0x404566
cmp dword [ebx], 0
je 0x404566
dec esi
jmp 0x40454f
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4061dc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x44304c], 0
je 0x40623d
cmp word [0x443328], 0xd7b2
jne 0x406205
cmp dword [0x443330], 0
jbe 0x406205
mov eax, 0x443324
call dword [0x443340]
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 0x406268
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x441030], 0
jne 0x406259
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408834
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 0x40899b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406b98
cmp si, word [0x4417e8]
jb 0x4088ce
cmp si, word [0x4419e8]
ja 0x4088ce
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4088ce
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4417e8]
jae 0x4088a8
mov edi, ebx
dec edi
jmp 0x4088c9
cmp si, word [ebx*8 + 0x4417e8]
jbe 0x4088b8
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4088c9
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4417ec]
call fcn.00408744
jmp 0x4088ce
cmp edi, dword [ebp - 0xc]
jae 0x408892
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x40897d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40897d
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.00406d80
push dword [ebp - 0x164]
push 0x4089b8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406d80
push dword [ebp - 0x168]
push 0x4089c8
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406d80
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.0040712c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4089a2
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406b90
ret
Function at 0x4089cc
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 0x408bb2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x445b54
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x445b6c]
cmp ax, word [ebp - 2]
jne 0x408a24
mov eax, dword [ebp - 6]
mov edx, 0x445b70
mov ecx, 0x55
call fcn.00406d80
push 0x445b54
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408b9c
push 0x445b54
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.00406b98
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408b64
cmp byte [0x445b50], 0
je 0x408b1a
call dword [0x445b48]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x445b4c]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x408b13
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 [0x445b44]
test al, al
je 0x408aec
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.004041b0
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 [0x445b44]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x408ae1
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x408add
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x408aca
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00406d44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408b64
movzx eax, word [ebp - 0x16]
push eax
call dword [0x445b4c]
cmp dword [ebp - 0x10], 0
je 0x408b12
mov eax, dword [ebp - 0x10]
call fcn.004041cc
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.00408834
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x408b64
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x408b49
mov eax, dword [ebp - 6]
mov edx, 0x408bcc
call fcn.00406f88
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.00408834
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00406f88
mov eax, dword [ebp - 6]
push 0x445b54
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x445b6c], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.00406c24
push eax
push 0x445b70
call sub.kernel32.dll_lstrcpynW
push 0x445b54
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408bb9
lea eax, [ebp - 0x1c]
call fcn.00406b88
ret
Function at 0x408df0
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.00406b80
xor eax, eax
push ebp
push 0x408fd5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408e30
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408e4a
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406c24
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x408fbf
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408fe4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408ed9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408fe4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408ed9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409018
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408ed9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40904c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408fbf
xor eax, eax
push ebp
push 0x408fb8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408bf4
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 0x408f48
mov eax, dword [ebp - 0x10]
call fcn.004041b0
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.00406d44
jmp 0x408f93
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40908c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408f93
mov eax, dword [ebp - 0x10]
call fcn.004041b0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40908c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406d44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408fbf
cmp dword [ebp - 8], 0
je 0x408fae
mov eax, dword [ebp - 8]
call fcn.004041cc
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 0x408fdc
lea eax, [ebp - 4]
call fcn.00406b88
ret
Function at 0x4092a0
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.00406b80
mov eax, dword [ebp - 0x21c]
call fcn.00406b80
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40943f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406b98
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406c24
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 0x409340
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409352
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x40933d
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x40940b
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 0x40937b
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.00408df0
cmp dword [ebp - 0x220], 0
je 0x4093b3
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409194
pop ecx
mov ebx, eax
jmp 0x40940b
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.004089cc
mov eax, dword [ebp - 0x224]
call fcn.00409194
pop ecx
mov ebx, eax
test bl, bl
jne 0x4093fe
cmp byte [0x445b50], 0
jne 0x4093fe
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.004089cc
mov eax, dword [ebp - 0x228]
call fcn.00409194
pop ecx
mov ebx, eax
test bl, bl
jne 0x40940b
push ebp
call fcn.00409244
pop ecx
mov ebx, eax
test bl, bl
je 0x409421
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406d80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409446
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406b90
ret

Function at 0x40adb8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x445c48
push 0xa
push 0x40ae4c
mov eax, dword [0x445c38]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40addc
call fcn.00415824
push ebx
mov eax, dword [0x445c38]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40adf3
call fcn.00415824
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40ae05
call fcn.00415824
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x445c4c], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x445c50], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x445c54], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x445c58], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x445c5c], ecx
add edx, dword [eax + 0x14]
mov dword [0x445c60], edx
pop esi
pop ebx
ret
Function at 0x40e520
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40e5c9
test eax, edx
je 0x40e5cc
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40e549
push edx
mov edx, eax
mov eax, esp
call fcn.00406d9c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40e55f
push eax
lea eax, [esp + 8]
call fcn.00406d9c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40e56e
movzx eax, word [eax]
sub eax, ecx
jmp 0x40e595
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 0x40e5af
add ecx, 4
js 0x40e586
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40e5ac
push eax
mov eax, ecx
mov edx, 2
call fcn.004063b4
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40e593
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40e595
xor eax, eax
ret
test eax, eax
je 0x40e5dc
test edx, edx
jne 0x40e530
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406c24
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40f6d6
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x40f6f7
cmp ebx, 3
je 0x40f6f7
cmp ebx, 0x7b
je 0x40f6f7
mov eax, esi
call fcn.0040f678
test al, al
jne 0x40f6fb
xor eax, eax
jmp 0x40f6fd
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406c24
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40f719
test al, 0x10
jne 0x40f71d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x412bb8
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_1
test eax, eax
jle 0x412bf1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406cd4
jmp 0x412bfa
mov eax, ebx
mov edx, esi
call fcn.00406b98
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x412c04
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 0x412c26
movzx eax, word [esp]
jmp 0x412c28
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret