joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d7bb0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f5f0d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x1010b0b8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x101a8a88]
mov edi, dword [esi + 0x174]
test edi, edi
jle 0x100d7c21
mov edx, dword [esi + 0x4cb0]
mov ecx, dword [0x101a8a2c]
add edx, dword [esi + 0x4cac]
push edx
push dword [esi + 0x4cb4]
mov eax, dword [ecx]
push 1
push edi
mov eax, dword [eax + 0xc]
call eax
cmp byte [0x101ab51c], 0
jne 0x100d7d69
movaps xmm0, xmmword [0x10100070]
xor eax, eax
movaps xmm2, xmmword [0x100ffa80]
movups xmmword [ebp - 0x58], xmm0
mov word [ebp - 0x38], 0x4a4f
movaps xmm0, xmmword [0x100ffdc0]
movups xmmword [ebp - 0x48], xmm0
mov byte [ebp - 0x36], 9
nop word [eax + eax]
movups xmm0, xmmword [ebp + eax - 0x58]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x58], xmm1
add eax, 0x10
cmp eax, 0x20
jb 0x100d7c60
cmp eax, 0x23
jae 0x100d7c8b
nop
xor byte [ebp + eax - 0x58], 9
inc eax
cmp eax, 0x23
jb 0x100d7c80
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100d7cb0
sub ecx, edx
lea eax, [ebp - 0x58]
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.10025bd0
mov dword [ebp - 4], 0
mov edx, dword [0x101a89e4]
test edx, edx
je 0x100d7cdc
mov edx, dword [edx + 0x50]
jmp 0x100d7cde
xor edx, edx
mov eax, dword [0x101a89dc]
test eax, eax
je 0x100d7cec
mov eax, dword [eax + 0x18]
jmp 0x100d7cee
xor eax, eax
lea ecx, [ebp - 0x34]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.10030b00
mov edi, dword [ebp - 0x1c]
add esp, 8
mov edx, dword [ebp - 0x20]
inc edi
cmp edx, 0x10
jb 0x100d7d38
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100d7d2e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100d7d2e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100eb980
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x18]
push eax
push 0x40
push 4
push edi
mov dword [ebp - 0x18], 0
call esi
lea eax, [ebp - 0x18]
mov dword [edi], 0x3e
push eax
push dword [ebp - 0x18]
push 4
push edi
call esi
mov byte [0x101ab51c], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100eb505
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x100d80f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
movzx eax, byte [esi]
xor al, byte [ecx]
and al, 1
xor byte [ecx], al
mov dl, byte [esi]
xor dl, byte [ecx]
and dl, 2
xor dl, byte [ecx]
mov byte [ecx], dl
movzx eax, byte [esi]
xor al, dl
and al, 4
xor al, dl
mov byte [ecx], al
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
movq xmm0, qword [esi + 0xc]
movq qword [ecx + 0xc], xmm0
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x14], eax
movq xmm0, qword [esi + 0x18]
movq qword [ecx + 0x18], xmm0
mov eax, dword [esi + 0x20]
mov dword [ecx + 0x20], eax
mov eax, dword [esi + 0x24]
mov dword [ecx + 0x24], eax
mov eax, dword [esi + 0x28]
mov dword [ecx + 0x28], eax
mov eax, dword [esi + 0x2c]
mov dword [ecx + 0x2c], eax
mov eax, dword [esi + 0x30]
mov dword [ecx + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [ecx + 0x34], eax
mov eax, dword [esi + 0x38]
mov dword [ecx + 0x38], eax
mov eax, dword [esi + 0x3c]
mov dword [ecx + 0x3c], eax
movq xmm0, qword [esi + 0x40]
movq qword [ecx + 0x40], xmm0
mov eax, dword [esi + 0x48]
mov dword [ecx + 0x48], eax
movq xmm0, qword [esi + 0x4c]
movq qword [ecx + 0x4c], xmm0
mov eax, dword [esi + 0x54]
mov dword [ecx + 0x54], eax
mov eax, dword [esi + 0x58]
mov dword [ecx + 0x58], eax
movq xmm0, qword [esi + 0x5c]
movq qword [ecx + 0x5c], xmm0
mov eax, dword [esi + 0x64]
mov dword [ecx + 0x64], eax
movq xmm0, qword [esi + 0x68]
movq qword [ecx + 0x68], xmm0
mov eax, dword [esi + 0x70]
mov dword [ecx + 0x70], eax
mov eax, dword [esi + 0x74]
mov dword [ecx + 0x74], eax
movq xmm0, qword [esi + 0x78]
movq qword [ecx + 0x78], xmm0
mov eax, dword [esi + 0x80]
mov dword [ecx + 0x80], eax
movq xmm0, qword [esi + 0x84]
movq qword [ecx + 0x84], xmm0
mov eax, dword [esi + 0x8c]
mov dword [ecx + 0x8c], eax
movq xmm0, qword [esi + 0x90]
movq qword [ecx + 0x90], xmm0
mov eax, dword [esi + 0x98]
mov dword [ecx + 0x98], eax
mov eax, dword [esi + 0x9c]
mov dword [ecx + 0x9c], eax
mov eax, dword [esi + 0xa0]
mov dword [ecx + 0xa0], eax
mov eax, dword [esi + 0xa4]
mov dword [ecx + 0xa4], eax
movzx eax, byte [esi + 0xa8]
mov byte [ecx + 0xa8], al
movq xmm0, qword [esi + 0xac]
movq qword [ecx + 0xac], xmm0
mov eax, dword [esi + 0xb4]
mov dword [ecx + 0xb4], eax
mov eax, ecx
pop esi
pop ebp
ret 4
Function at 0x404548
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.00406854
test esi, esi
jne 0x404580
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.00406990
jmp 0x40459e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040448c
mov edi, eax
test esi, esi
je 0x40459e
cmp dword [ebx], 0
je 0x40459e
dec esi
jmp 0x404587
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x405de4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b5050], 0
je 0x405e45
cmp word [0x4b532c], 0xd7b2
jne 0x405e0d
cmp dword [0x4b5334], 0
jbe 0x405e0d
mov eax, 0x4b5328
call dword [0x4b5344]
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 0x405e70
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b2030], 0
jne 0x405e61
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405fd0
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 [0x4b2034], 0
je 0x405ff6
mov edx, esi
mov eax, ebx
call dword [0x4b2034]
jmp 0x406005
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4b5051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405f98
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 0x40861c
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 0x408783
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406854
cmp si, word [0x4b27dc]
jb 0x4086b6
cmp si, word [0x4b29dc]
ja 0x4086b6
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4086b6
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4b27dc]
jae 0x408690
mov edi, ebx
dec edi
jmp 0x4086b1
cmp si, word [ebx*8 + 0x4b27dc]
jbe 0x4086a0
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4086b1
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4b27e0]
call fcn.0040852c
jmp 0x4086b6
cmp edi, dword [ebp - 0xc]
jae 0x40867a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408765
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408765
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.00406a3c
push dword [ebp - 0x164]
push 0x4087a0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406a3c
push dword [ebp - 0x168]
push 0x4087b0
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406a3c
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406df4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40878a
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.0040684c
ret
Function at 0x40893c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408a41
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4b7b58
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4b7b70]
jne 0x408988
mov eax, esi
mov edx, 0x4b7b74
mov ecx, 0x55
call fcn.00406a3c
push 0x4b7b58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408a2b
push 0x4b7b58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406854
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4089f9
cmp byte [0x4b7b54], 0
je 0x4089be
mov edx, esi
mov eax, ebx
call fcn.0040881c
jmp 0x4089f9
mov edx, esi
mov eax, ebx
call fcn.0040861c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4089f9
cmp dword [esi], 0
je 0x4089e2
mov eax, esi
mov edx, 0x408a5c
call fcn.00406c50
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040861c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406c50
push 0x4b7b58
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4b7b70], bx
push 0xaa
mov eax, dword [esi]
call fcn.004068e0
push eax
push 0x4b7b74
call sub.kernel32.dll_lstrcpynW
push 0x4b7b58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a48
lea eax, [ebp - 4]
call fcn.00406844
ret
Function at 0x408c80
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.0040683c
xor eax, eax
push ebp
push 0x408e65
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408cc0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408cda
push 0x105
mov eax, dword [ebp - 4]
call fcn.004068e0
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x408e4f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408e74
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408d69
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408e74
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408d69
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408ea8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408d69
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408edc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408e4f
xor eax, eax
push ebp
push 0x408e48
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408a84
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 0x408dd8
mov eax, dword [ebp - 0x10]
call fcn.004041d4
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.00406a00
jmp 0x408e23
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408f1c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408e23
mov eax, dword [ebp - 0x10]
call fcn.004041d4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x408f1c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406a00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e4f
cmp dword [ebp - 8], 0
je 0x408e3e
mov eax, dword [ebp - 8]
call fcn.004041f0
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 0x408e6c
lea eax, [ebp - 4]
call fcn.00406844
ret
Function at 0x409130
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.0040683c
mov eax, dword [ebp - 0x21c]
call fcn.0040683c
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x4092cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406854
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004068e0
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 0x4091d0
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x4091e2
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x4091cd
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x40929b
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 0x40920b
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.00408c80
cmp dword [ebp - 0x220], 0
je 0x409243
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409024
pop ecx
mov ebx, eax
jmp 0x40929b
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.0040893c
mov eax, dword [ebp - 0x224]
call fcn.00409024
pop ecx
mov ebx, eax
test bl, bl
jne 0x40928e
cmp byte [0x4b7b54], 0
jne 0x40928e
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.0040893c
mov eax, dword [ebp - 0x228]
call fcn.00409024
pop ecx
mov ebx, eax
test bl, bl
jne 0x40929b
push ebp
call fcn.004090d4
pop ecx
mov ebx, eax
test bl, bl
je 0x4092b1
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406a3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4092d6
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.0040684c
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x4b7c4c
push 0xa
push 0x40ca0c
mov eax, dword [0x4b7c3c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40c99c
call fcn.00417730
push ebx
mov eax, dword [0x4b7c3c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40c9b3
call fcn.00417730
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40c9c5
call fcn.00417730
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4b7c50], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4b7c54], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4b7c58], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4b7c5c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4b7c60], ecx
add edx, dword [eax + 0x14]
mov dword [0x4b7c64], edx
pop esi
pop ebx
ret

Function at 0x4102e4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41038d
test eax, edx
je 0x410390
push 0
push 0
cmp word [eax - 0xa], 2
je 0x41030d
push edx
mov edx, eax
mov eax, esp
call fcn.00406a58
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x410323
push eax
lea eax, [esp + 8]
call fcn.00406a58
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x410332
movzx eax, word [eax]
sub eax, ecx
jmp 0x410359
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 0x410373
add ecx, 4
js 0x41034a
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x410370
push eax
mov eax, ecx
mov edx, 2
call fcn.00406070
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x410357
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x410359
xor eax, eax
ret
test eax, eax
je 0x4103a0
test edx, edx
jne 0x4102f4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x414bec
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 0x414c25
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406990
jmp 0x414c2e
mov eax, ebx
mov edx, esi
call fcn.00406854
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x414c38
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 0x414c5a
movzx eax, word [esp]
jmp 0x414c5c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4153ec
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x415511
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004151fc
mov esi, eax
mov eax, dword [0x4b424c]
cmp byte [eax], 0
je 0x4154b9
mov eax, dword [0x4b400c]
call fcn.00404698
call fcn.0040433c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4153c4]
call fcn.00408018
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x41552c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4154f5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4b3fa8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b7c3c]
call fcn.0040810c
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415518
lea eax, [ebp - 4]
mov edx, dword [0x4153c4]
call fcn.00408024
ret

Function at 0x4166c8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41679e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004068a8
lea eax, [ebp - 4]
call fcn.00407240
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004068e0
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x416788
mov eax, ebx
call fcn.004041d4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x416781
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004068e0
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41676b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4167b0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41676b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416788
mov eax, dword [ebp - 0x10]
call fcn.004041f0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4167a5
lea eax, [ebp - 4]
call fcn.00406844
ret