joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c6a7
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x44106e
call fcn.004230e7
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x43c79f
cmp byte [esi + 0x46], bl
je 0x43c79f
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x43c6e3
xor al, al
jmp 0x43c7a1
push ebx
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.00409be0
mov dword [ebp - 4], ebx
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov ebx, edi
cmp eax, 0x10
jae 0x43c710
lea ebx, [ebp - 0x28]
mov edi, ebx
mov ecx, dword [esi + 0x40]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, ebx
mov edx, dword [ecx]
push eax
push edi
lea eax, [esi + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x43c737
dec eax
je 0x43c73b
dec eax
dec eax
je 0x43c78d
xor bl, bl
jmp 0x43c78f
mov byte [esi + 0x46], 0
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
mov ecx, edi
cmp eax, 0x10
jae 0x43c74b
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
sub ebx, ecx
je 0x43c773
cmp eax, 0x10
jae 0x43c75a
lea edi, [ebp - 0x28]
push dword [esi + 0x50]
push ebx
push 1
push edi
call fcn.00421da0
add esp, 0x10
cmp ebx, eax
jne 0x43c733
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
cmp byte [esi + 0x46], 0
je 0x43c78d
test ebx, ebx
jne 0x43c704
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.00409b30
jmp 0x43c6fe
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004032e0
mov al, bl
jmp 0x43c7a1
mov al, 1
call fcn.00423096
ret
Function at 0x13144548
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.13146a0c
test esi, esi
jne 0x13144580
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.13146b48
jmp 0x1314459e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.1314448c
mov edi, eax
test esi, esi
je 0x1314459e
cmp dword [ebx], 0
je 0x1314459e
dec esi
jmp 0x13144587
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x13145e70
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x131ef054], 0
je 0x13145ed1
cmp word [0x131ef330], 0xd7b2
jne 0x13145e99
cmp dword [0x131ef338], 0
jbe 0x13145e99
mov eax, 0x131ef32c
call dword [0x131ef348]
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 0x13145efc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x131ec030], 0
jne 0x13145eed
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x1314605c
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 [0x131ec034], 0
je 0x13146082
mov edx, esi
mov eax, ebx
call dword [0x131ec034]
jmp 0x13146091
mov eax, 8
call fcn.131441d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x131ef055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x13146024
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 0x131488cc
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 0x13148a33
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.13146a0c
cmp si, word [0x131ec7d0]
jb 0x13148966
cmp si, word [0x131ec9d0]
ja 0x13148966
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x13148966
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x131ec7d0]
jae 0x13148940
mov edi, ebx
dec edi
jmp 0x13148961
cmp si, word [ebx*8 + 0x131ec7d0]
jbe 0x13148950
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x13148961
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x131ec7d4]
call fcn.131487dc
jmp 0x13148966
cmp edi, dword [ebp - 0xc]
jae 0x1314892a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x13148a15
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x13148a15
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.13146c1c
push dword [ebp - 0x164]
push 0x13148a50
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.13146c1c
push dword [ebp - 0x168]
push 0x13148a60
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.13146c1c
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.13146fd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x13148a3a
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.13146a04
ret
Function at 0x13148a64
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 0x13148c4a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x131f1b5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x131f1b74]
cmp ax, word [ebp - 2]
jne 0x13148abc
mov eax, dword [ebp - 6]
mov edx, 0x131f1b78
mov ecx, 0x55
call fcn.13146c1c
push 0x131f1b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x13148c34
push 0x131f1b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.13146a0c
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x13148bfc
cmp byte [0x131f1b58], 0
je 0x13148bb2
call dword [0x131f1b50]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x131f1b54]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x13148bab
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 [0x131f1b4c]
test al, al
je 0x13148b84
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.131441d4
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 [0x131f1b4c]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x13148b79
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x13148b75
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x13148b62
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.13146bc8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x13148bfc
movzx eax, word [ebp - 0x16]
push eax
call dword [0x131f1b54]
cmp dword [ebp - 0x10], 0
je 0x13148baa
mov eax, dword [ebp - 0x10]
call fcn.131441f0
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.131488cc
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x13148bfc
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x13148be1
mov eax, dword [ebp - 6]
mov edx, 0x13148c64
call fcn.13146e30
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.131488cc
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.13146e30
mov eax, dword [ebp - 6]
push 0x131f1b5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x131f1b74], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.13146a98
push eax
push 0x131f1b78
call sub.kernel32.dll_lstrcpynW
push 0x131f1b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x13148c51
lea eax, [ebp - 0x1c]
call fcn.131469fc
ret
Function at 0x13148e88
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.131469f4
xor eax, eax
push ebp
push 0x1314906d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x13148ec8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x13148ee2
push 0x105
mov eax, dword [ebp - 4]
call fcn.13146a98
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x13149057
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x1314907c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x13148f71
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x1314907c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x13148f71
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x131490b0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x13148f71
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x131490e4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x13149057
xor eax, eax
push ebp
push 0x13149050
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.13148c8c
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 0x13148fe0
mov eax, dword [ebp - 0x10]
call fcn.131441d4
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.13146bc8
jmp 0x1314902b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x13149124
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x1314902b
mov eax, dword [ebp - 0x10]
call fcn.131441d4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x13149124
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.13146bc8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x13149057
cmp dword [ebp - 8], 0
je 0x13149046
mov eax, dword [ebp - 8]
call fcn.131441f0
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 0x13149074
lea eax, [ebp - 4]
call fcn.131469fc
ret
Function at 0x13149338
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.131469f4
mov eax, dword [ebp - 0x21c]
call fcn.131469f4
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x131494d7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.13146a0c
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.13146a98
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 0x131493d8
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x131493ea
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x131493d5
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x131494a3
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 0x13149413
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.13148e88
cmp dword [ebp - 0x220], 0
je 0x1314944b
push ebp
mov eax, dword [ebp - 0x220]
call fcn.1314922c
pop ecx
mov ebx, eax
jmp 0x131494a3
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.13148a64
mov eax, dword [ebp - 0x224]
call fcn.1314922c
pop ecx
mov ebx, eax
test bl, bl
jne 0x13149496
cmp byte [0x131f1b58], 0
jne 0x13149496
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.13148a64
mov eax, dword [ebp - 0x228]
call fcn.1314922c
pop ecx
mov ebx, eax
test bl, bl
jne 0x131494a3
push ebp
call fcn.131492dc
pop ecx
mov ebx, eax
test bl, bl
je 0x131494b9
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.13146c1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x131494de
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.13146a04
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x131f1c54
push 0xa
push 0x1314c904
mov eax, dword [0x131f1c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x1314c894
call fcn.131576a0
push ebx
mov eax, dword [0x131f1c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x1314c8ab
call fcn.131576a0
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x1314c8bd
call fcn.131576a0
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x131f1c58], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x131f1c5c], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x131f1c60], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x131f1c64], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x131f1c68], ecx
add edx, dword [eax + 0x14]
mov dword [0x131f1c6c], edx
pop esi
pop ebx
ret

Function at 0x131501b4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x1315025d
test eax, edx
je 0x13150260
push 0
push 0
cmp word [eax - 0xa], 2
je 0x131501dd
push edx
mov edx, eax
mov eax, esp
call fcn.13146c38
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x131501f3
push eax
lea eax, [esp + 8]
call fcn.13146c38
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x13150202
movzx eax, word [eax]
sub eax, ecx
jmp 0x13150229
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 0x13150243
add ecx, 4
js 0x1315021a
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x13150240
push eax
mov eax, ecx
mov edx, 2
call fcn.131460fc
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x13150227
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x13150229
xor eax, eax
ret
test eax, eax
je 0x13150270
test edx, edx
jne 0x131501c4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.13146a98
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x1315140e
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x1315142f
cmp ebx, 3
je 0x1315142f
cmp ebx, 0x7b
je 0x1315142f
mov eax, esi
call fcn.131513b0
test al, al
jne 0x13151433
xor eax, eax
jmp 0x13151435
mov al, 1
pop esi
pop ebx
ret

Function at 0x13151438
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.13146a98
push eax
call sub.kernel32.dll_GetFileAttributesW
pop ebx
ret
Function at 0x1315144c
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.13146a98
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x1315146e
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x131549b8
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 0x131549f1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.13146b48
jmp 0x131549fa
mov eax, ebx
mov edx, esi
call fcn.13146a0c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x131551b8
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 0x131552dd
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.13154fc8
mov esi, eax
mov eax, dword [0x131ee748]
cmp byte [eax], 0
je 0x13155285
mov eax, dword [0x131ee4fc]
call fcn.1314467c
call fcn.1314433c
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 [0x13155190]
call fcn.131482f4
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 0x131552f8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x131552c1
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x131ee498]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x131f1c40]
call fcn.131483e8
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 0x131552e4
lea eax, [ebp - 4]
mov edx, dword [0x13155190]
call fcn.13148300
ret
Function at 0x13156494
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 0x1315656a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.13146a60
lea eax, [ebp - 4]
call fcn.13147420
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.13146a98
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x13156554
mov eax, ebx
call fcn.131441d4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x1315654d
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.13146a98
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x13156537
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x1315657c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x13156537
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 0x13156554
mov eax, dword [ebp - 0x10]
call fcn.131441f0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x13156571
lea eax, [ebp - 4]
call fcn.131469fc
ret

Function at 0x13157548
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.13146430
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 0x131574f2
mov eax, edi
add eax, eax
call fcn.131441d4
mov esi, eax
jmp 0x131574f4
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 0x1315752d
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 0x13157517
mov eax, esp
cmp esi, eax
je 0x1315753a
mov eax, esi
call fcn.131441f0
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 0x13157574
cmp bl, 0
je 0x13157570
cmp bl, 0x41
jl 0x1315756b
cmp bl, 0x5a
jg 0x1315756b
or bl, 0x20
xor al, bl
inc esi
jmp 0x1315754f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x131574b4