joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1016f690
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
mov eax, dword [ebx]
nop
cmp edi, 7
ja case.default.0x1016f6a5
jmp dword [edi*4 + 0x1016f83c]
mov ecx, esi
and ecx, 3
sub edi, ecx
sub ecx, 1
je 0x1016f6e8
sub ecx, 1
je 0x1016f6d5
sub ecx, 1
jne 0x1016f6fb
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1026f1b8]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1026f1b8]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1026f1b8]
inc esi
mov edx, edi
sar edx, 3
test edx, edx
je 0x1016f77d
xor eax, dword [esi]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x1026f1b8]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x1026f1b8]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x1026f1b8]
mov ecx, eax
movzx eax, cl
shr ecx, 8
mov eax, dword [eax*4 + 0x1026f1b8]
xor eax, dword [esi + 4]
add esi, 8
xor eax, ecx
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x1026f1b8]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x1026f1b8]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x1026f1b8]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x1026f1b8]
sub edx, 1
jne 0x1016f704
and edi, 7
jmp 0x1016f6a0
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1026f1b8]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1026f1b8]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1026f1b8]
inc esi
xor eax, dword [esi]
movzx ecx, al
shr eax, 8
pop edi
pop esi
xor eax, dword [ecx*4 + 0x1026f1b8]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x1026f1b8]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x1026f1b8]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x1026f1b8]
mov dword [ebx], eax
pop ebx
pop ebp
ret
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1026f1b8]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1026f1b8]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1026f1b8]
pop edi
pop esi
mov dword [ebx], eax
pop ebx
pop ebp
ret

Function at 0x10172102
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x10172129
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x1017212c
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.101720de
pop esi
leave
ret 8
Function at 0x4f115e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pushal
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x4030a5
sub eax, 0x2000
add eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x403030
sub eax, 0x2000
add eax, dword [ebp + 0x10]
push dword [eax]
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x40302c
sub eax, 0x2000
add eax, dword [ebp + 0x10]
call dword [eax]
push eax
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x403015
sub eax, 0x2000
add eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x403030
sub eax, 0x2000
add eax, dword [ebp + 0x10]
push dword [eax]
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x40302c
sub eax, 0x2000
add eax, dword [ebp + 0x10]
call dword [eax]
pop eax
call eax
or eax, eax
jne 0x4f121f
push eax
jmp 0x4f122d
cmp eax, 0x7f
jne 0x4f122b
push 0x100
jmp 0x4f122d
push 1
mov esi, dword [ebp + 8]
mov ebx, 0xa
mov ecx, dword [ebp + 0xc]
shr ecx, 2
xor edx, edx
mov eax, dword [ebp + 0xc]
shr eax, 2
sub eax, ecx
push eax
div ebx
add edx, 2
sub dword [esi], edx
xor edx, edx
pop eax
div ebx
add edx, dword [esp]
add edx, 0x45f982a0
xor dword [esi], edx
add esi, 4
loop 0x4f123b
pop eax
popal
leave
ret 0x10

Function at 0x4f1268
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
and eax, 0xffff0000
mov dword [ebp - 4], eax
mov dword [ebp - 4], eax
cmp word [eax], 0x5a4d
jne 0x4f1290
add eax, dword [eax + 0x3c]
cmp word [eax], 0x4550
je 0x4f129c
sub eax, 0x10000
cmp eax, 0x10000
jne 0x4f127c
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [edx], eax
add eax, dword [eax + 0x3c]
lea edx, [eax + 0x18]
lea eax, [edx + 0x60]
mov edx, dword [eax]
add edx, dword [ebp - 4]
mov eax, dword [edx + 0x20]
add eax, dword [ebp - 4]
xor ebx, ebx
mov esi, dword [eax + ebx*4]
add esi, dword [ebp - 4]
mov edi, dword [ebp + 0x10]
add edi, dword [edi + 0x3c]
add edi, 0x14
add edi, 4
mov edi, dword [edi + 0x18]
add edi, 0x403019
sub edi, 0x2000
add edi, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x403028
sub eax, 0x2000
add eax, dword [ebp + 0xc]
mov ecx, dword [eax]
pop eax
repe cmpsb byte [esi], byte es:[edi]
or ecx, ecx
je 0x4f130a
inc ebx
cmp ebx, dword [edx + 0x18]
jne 0x4f12ba
mov esi, dword [edx + 0x24]
add esi, dword [ebp - 4]
xor eax, eax
mov ax, word [esi + ebx*2]
add eax, dword [edx + 0x10]
mov ebx, eax
dec ebx
mov esi, dword [edx + 0x1c]
add esi, dword [ebp - 4]
mov eax, dword [esi + ebx*4]
add eax, dword [ebp - 4]
pop ebx
leave
ret 0xc
Function at 0x4047f8
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.00407110
test esi, esi
jne 0x404830
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.0040724c
jmp 0x40484e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040473c
mov edi, eax
test esi, esi
je 0x40484e
cmp dword [ebx], 0
je 0x40484e
dec esi
jmp 0x404837
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4062a8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x553054], 0
je 0x406309
cmp word [0x553330], 0xd7b2
jne 0x4062d1
cmp dword [0x553338], 0
jbe 0x4062d1
mov eax, 0x55332c
call dword [0x553348]
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 0x406334
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x54f030], 0
jne 0x406325
push 0
push 0x54f79c
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406494
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 [0x54f034], 0
je 0x4064ba
mov edx, esi
mov eax, ebx
call dword [0x54f034]
jmp 0x4064c9
mov eax, 8
call fcn.00404484
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x553055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40645c
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 0x40922c
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 0x409393
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00407110
cmp si, word [0x54f7e4]
jb 0x4092c6
cmp si, word [0x54f9e4]
ja 0x4092c6
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4092c6
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x54f7e4]
jae 0x4092a0
mov edi, ebx
dec edi
jmp 0x4092c1
cmp si, word [ebx*8 + 0x54f7e4]
jbe 0x4092b0
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4092c1
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x54f7e8]
call fcn.0040913c
jmp 0x4092c6
cmp edi, dword [ebp - 0xc]
jae 0x40928a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x409375
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409375
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.004072f8
push dword [ebp - 0x164]
push 0x4093b0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.004072f8
push dword [ebp - 0x168]
push 0x4093c0
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.004072f8
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004076b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40939a
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00407108
ret
Function at 0x40954c
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 0x409651
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x555b5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x555b74]
jne 0x409598
mov eax, esi
mov edx, 0x555b78
mov ecx, 0x55
call fcn.004072f8
push 0x555b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40963b
push 0x555b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00407110
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409609
cmp byte [0x555b58], 0
je 0x4095ce
mov edx, esi
mov eax, ebx
call fcn.0040942c
jmp 0x409609
mov edx, esi
mov eax, ebx
call fcn.0040922c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409609
cmp dword [esi], 0
je 0x4095f2
mov eax, esi
mov edx, 0x40966c
call fcn.0040750c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040922c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040750c
push 0x555b5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x555b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040719c
push eax
push 0x555b78
call sub.kernel32.dll_lstrcpynW
push 0x555b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409658
lea eax, [ebp - 4]
call fcn.00407100
ret
Function at 0x409890
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.004070f8
xor eax, eax
push ebp
push 0x409a75
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4098d0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4098ea
push 0x105
mov eax, dword [ebp - 4]
call fcn.0040719c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409a5f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409a84
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409979
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409a84
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409979
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409ab8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409979
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409aec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409a5f
xor eax, eax
push ebp
push 0x409a58
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409694
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 0x4099e8
mov eax, dword [ebp - 0x10]
call fcn.00404484
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.004072bc
jmp 0x409a33
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409b2c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409a33
mov eax, dword [ebp - 0x10]
call fcn.00404484
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409b2c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004072bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a5f
cmp dword [ebp - 8], 0
je 0x409a4e
mov eax, dword [ebp - 8]
call fcn.004044a0
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 0x409a7c
lea eax, [ebp - 4]
call fcn.00407100
ret
Function at 0x409d40
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.004070f8
mov eax, dword [ebp - 0x21c]
call fcn.004070f8
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409edf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00407110
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.0040719c
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 0x409de0
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409df2
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409ddd
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409eab
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 0x409e1b
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.00409890
cmp dword [ebp - 0x220], 0
je 0x409e53
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409c34
pop ecx
mov ebx, eax
jmp 0x409eab
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.0040954c
mov eax, dword [ebp - 0x224]
call fcn.00409c34
pop ecx
mov ebx, eax
test bl, bl
jne 0x409e9e
cmp byte [0x555b58], 0
jne 0x409e9e
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.0040954c
mov eax, dword [ebp - 0x228]
call fcn.00409c34
pop ecx
mov ebx, eax
test bl, bl
jne 0x409eab
push ebp
call fcn.00409ce4
pop ecx
mov ebx, eax
test bl, bl
je 0x409ec1
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.004072f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409ee6
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00407108
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x555c5c
push 0xa
push 0x40e010
mov eax, dword [0x555c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40dfa0
call fcn.0041bc4c
push ebx
mov eax, dword [0x555c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40dfb7
call fcn.0041bc4c
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40dfc9
call fcn.0041bc4c
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x555c60], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x555c64], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x555c68], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x555c6c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x555c70], ecx
add edx, dword [eax + 0x14]
mov dword [0x555c74], edx
pop esi
pop ebx
ret

Function at 0x412f38
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x412fe1
test eax, edx
je 0x412fe4
push 0
push 0
cmp word [eax - 0xa], 2
je 0x412f61
push edx
mov edx, eax
mov eax, esp
call fcn.00407314
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x412f77
push eax
lea eax, [esp + 8]
call fcn.00407314
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x412f86
movzx eax, word [eax]
sub eax, ecx
jmp 0x412fad
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 0x412fc7
add ecx, 4
js 0x412f9e
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x412fc4
push eax
mov eax, ecx
mov edx, 2
call fcn.00406534
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x412fab
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x412fad
xor eax, eax
ret
test eax, eax
je 0x412ff4
test edx, edx
jne 0x412f48
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.0040719c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x414626
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x414647
cmp ebx, 3
je 0x414647
cmp ebx, 0x7b
je 0x414647
mov eax, esi
call fcn.004145c8
test al, al
jne 0x41464b
xor eax, eax
jmp 0x41464d
mov al, 1
pop esi
pop ebx
ret

Function at 0x418e0c
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 0x418e45
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040724c
jmp 0x418e4e
mov eax, ebx
mov edx, esi
call fcn.00407110
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x418e58
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 0x418e7a
movzx eax, word [esp]
jmp 0x418e7c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x41960c
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 0x419731
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041941c
mov esi, eax
mov eax, dword [0x5522ac]
cmp byte [eax], 0
je 0x4196d9
mov eax, dword [0x551ef0]
call fcn.0040492c
call fcn.004045ec
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 [0x4195e4]
call fcn.00408b14
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 0x41974c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x419715
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x551e64]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x555c40]
call fcn.00408d1c
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 0x419738
lea eax, [ebp - 4]
mov edx, dword [0x4195e4]
call fcn.00408c34
ret
Function at 0x41a91c
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 0x41a9f2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00407164
lea eax, [ebp - 4]
call fcn.00407afc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040719c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x41a9dc
mov eax, ebx
call fcn.00404484
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x41a9d5
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.0040719c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41a9bf
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41aa04
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41a9bf
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 0x41a9dc
mov eax, dword [ebp - 0x10]
call fcn.004044a0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a9f9
lea eax, [ebp - 4]
call fcn.00407100
ret

Function at 0x41baf4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00406878
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x41ba9e
mov eax, edi
add eax, eax
call fcn.00404484
mov esi, eax
jmp 0x41baa0
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x41bad9
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x41bac3
mov eax, esp
cmp esi, eax
je 0x41bae6
mov eax, esi
call fcn.004044a0
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x41bb20
cmp bl, 0
je 0x41bb1c
cmp bl, 0x41
jl 0x41bb17
cmp bl, 0x5a
jg 0x41bb17
or bl, 0x20
xor al, bl
inc esi
jmp 0x41bafb
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41ba60