joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cf90
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40d0f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409c38
cmp si, word [0x4f7a08]
jb 0x40d028
cmp si, word [0x4f7c08]
ja 0x40d028
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40d028
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4f7a08]
jae 0x40d002
mov edi, ebx
dec edi
jmp 0x40d023
cmp si, word [ebx*8 + 0x4f7a08]
jbe 0x40d012
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40d023
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4f7a0c]
call fcn.0040ceb0
jmp 0x40d028
cmp edi, dword [ebp - 8]
jae 0x40cfec
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40d0d7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d0d7
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a774
push dword [ebp - 0x160]
push 0x40d110
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a774
push dword [ebp - 0x164]
push 0x40d120
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a774
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a9ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d0fc
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409c98
ret
Function at 0x40d2a8
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 0x40d3ac
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4fec10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4fec28]
jne 0x40d2f4
mov eax, esi
mov edx, 0x4fec2a
mov ecx, 0x55
call fcn.0040a774
push 0x4fec10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40d396
push 0x4fec10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409c38
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d363
cmp byte [0x4fec0c], 0
je 0x40d328
mov edx, esi
mov eax, ebx
call fcn.0040d18c
jmp 0x40d363
mov edx, esi
mov eax, ebx
call fcn.0040cf90
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40d363
cmp dword [esi], 0
je 0x40d34c
mov eax, esi
mov edx, 0x40d3c4
call fcn.0040a8cc
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040cf90
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a8cc
push 0x4fec10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4fec28], bx
mov eax, dword [esi]
call fcn.0040a6d4
mov ecx, eax
mov eax, 0x4fec2a
mov edx, 0xaa
call fcn.0040ce10
push 0x4fec10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d3b3
lea eax, [ebp - 4]
call fcn.00409c38
ret
Function at 0x40d5dc
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.00409d1c
xor eax, eax
push ebp
push 0x40d801
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40d61c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40d636
mov eax, dword [ebp - 4]
call fcn.0040a6d4
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040ce10
cmp word [ebp - 0x21a], 0
je 0x40d7eb
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d810
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d705
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d810
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d705
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d84c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d705
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d84c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d705
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d880
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d705
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d8b4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40d7eb
xor eax, eax
push ebp
push 0x40d7e4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040d3ec
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 0x40d774
mov eax, dword [ebp - 0x10]
call fcn.00406e2c
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.0040a738
jmp 0x40d7bf
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40d8f4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40d7bf
mov eax, dword [ebp - 0x10]
call fcn.00406e2c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40d8f4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a738
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d7eb
cmp dword [ebp - 8], 0
je 0x40d7da
mov eax, dword [ebp - 8]
call fcn.00406e48
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 0x40d808
lea eax, [ebp - 4]
call fcn.00409c38
ret
Function at 0x40db08
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409d1c
xor eax, eax
push ebp
push 0x40dbc8
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a774
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a924
mov eax, dword [ebx]
call fcn.0040d9b8
test al, al
jne 0x40dba5
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a774
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a924
mov eax, dword [ebx]
call fcn.0040d9b8
test al, al
jne 0x40dba5
mov eax, ebx
call fcn.00409c38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dbcf
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409c98
lea eax, [ebp - 4]
call fcn.00409c38
ret

Function at 0x40f7fc
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 0x4129d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebp, edx
mov esi, eax
mov eax, ebp
call fcn.0040a108
mov ebx, eax
inc ebx
push 0x40
push 0x3000
push ebx
push 0
push esi
call sub.kernel32.dll_VirtualAllocEx
mov edi, eax
lea eax, [esp + 4]
push eax
push 0x40
push ebx
push edi
push esi
call sub.kernel32.dll_VirtualProtectEx
push esp
push ebx
push ebp
push edi
push esi
call sub.kernel32.dll_WriteProcessMemory
mov eax, edi
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x412a1c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, ecx
mov ebp, edx
mov ebx, eax
push 0x40
push 0x3000
push esi
push 0
push ebx
call sub.kernel32.dll_VirtualAllocEx
mov edi, eax
push esp
push esi
push ebp
push edi
push ebx
call sub.kernel32.dll_WriteProcessMemory
mov eax, edi
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x412a4c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00412a1c
mov esi, eax
mov eax, edi
call fcn.004129ac
mov ecx, eax
mov edx, edi
mov eax, ebx
call fcn.00412a1c
lea edx, [ebp - 0xc]
push edx
push 0
push esi
push eax
push 0
push 0
push ebx
call sub.kernel32.dll_CreateRemoteThread
mov edi, eax
cmp byte [ebp + 8], 0
je 0x412ab2
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push ebx
call sub.kernel32.dll_ReadProcessMemory
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x412bd4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
mov edx, dword [0x412654]
call fcn.0040ad0c
xor eax, eax
push ebp
push 0x412ce5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x1d], 0
mov eax, dword [ebp - 0x1c]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edi, eax
mov esi, 0x10000000
add esi, 0x10000
push 0x40
push 0x3000
mov eax, dword [edi + 0x50]
push eax
mov eax, dword [edi + 0x34]
add eax, esi
push eax
call sub.kernel32.dll_VirtualAlloc
mov ebx, eax
test ebx, ebx
je 0x412c6d
push 0x8000
push 0
push ebx
call sub.kernel32.dll_VirtualFree
push 0x40
push 0x3000
mov eax, dword [edi + 0x50]
push eax
mov eax, dword [edi + 0x34]
add eax, esi
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov ebx, eax
test ebx, ebx
jne 0x412c79
cmp esi, 0x30000000
jbe 0x412c22
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, ebx
mov eax, dword [ebp - 0x18]
call fcn.00413204
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x412cc9
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 8]
mov dword [ebp - 0x24], edx
lea edx, [ebp - 0x2c]
push edx
mov edx, dword [ebp - 0x10]
push edx
push eax
push ebx
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_WriteProcessMemory
push 8
push 0
lea ecx, [ebp - 0x28]
mov edx, 0x412bac
mov eax, dword [ebp - 0x18]
call fcn.00412a4c
test eax, eax
je 0x412cc9
mov byte [ebp - 0x1d], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412cec
lea eax, [ebp - 0x14]
mov edx, dword [0x412654]
call fcn.0040b0c0
ret

Function at 0x412fb8
Capabilities:
Inspect section memory permissions

Disassembly:
xor edx, edx
test eax, 0x4000000
je 0x412fc7
or edx, 0x200
test eax, 0x20000000
je 0x412ffb
test eax, 0x40000000
je 0x412fe6
test eax, 0x80000000
je 0x412fe1
or edx, 0x40
jmp 0x413022
or edx, 0x20
jmp 0x413022
test eax, 0x80000000
je 0x412ff5
or edx, 0x80
jmp 0x413022
or edx, 0x10
mov eax, edx
ret
test eax, 0x40000000
je 0x413013
test eax, 0x80000000
je 0x41300e
or edx, 4
jmp 0x413022
or edx, 2
jmp 0x413022
test eax, 0x80000000
je 0x41301f
or edx, 8
jmp 0x413022
or edx, 1
mov eax, edx
ret

Function at 0x420ab8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x420b11
test eax, edx
je 0x420b14
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x420acf
movzx eax, word [eax]
sub eax, ecx
jmp 0x420af6
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 0x420af7
add ecx, 4
js 0x420ae7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x420af4
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x420af6
xor eax, eax
ret
test eax, eax
je 0x420b20
test edx, edx
jne 0x420ac0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x421a7c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x421aa9
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040a6d4
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x421be6
test ah, 4
je 0x421bdf
test bl, bl
jne 0x421ba4
mov al, 1
jmp 0x421c0d
test al, 0x10
je 0x421bac
xor eax, eax
jmp 0x421c0d
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x421bd0
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x421c0d
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x421c0d
test al, 0x10
sete al
jmp 0x421c0d
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x421c07
cmp ebx, 3
je 0x421c07
cmp ebx, 0x7b
je 0x421c07
mov eax, esi
call fcn.00421b3c
test al, al
jne 0x421c0b
xor eax, eax
jmp 0x421c0d
mov al, 1
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.0040a6d4
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x421cbb
test esi, 0x400
jne 0x421c50
test esi, 0x10
setne bl
jmp 0x421ceb
cmp byte [esp], 0
je 0x421c84
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x421ceb
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x421ceb
test esi, 0x10
je 0x421c90
mov bl, 1
jmp 0x421ceb
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x421cb7
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x421ceb
mov bl, 1
jmp 0x421ceb
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x421ce5
cmp eax, 3
je 0x421ce5
cmp eax, 0xa1
je 0x421ce5
cmp eax, 0x7b
je 0x421ce5
cmp eax, 0x35
je 0x421ce5
cmp eax, 0x15
je 0x421ce5
cmp eax, 0x43
jne 0x421ce9
xor ebx, ebx
jmp 0x421ceb
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42598c
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
test eax, eax
jle 0x4259c5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409dc0
jmp 0x4259ce
mov eax, ebx
mov edx, esi
call fcn.0040a018
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4259d8
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
test eax, eax
jle 0x4259fa
movzx eax, word [esp]
jmp 0x4259fc
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x426ce4
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 0x426e09
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00426aec
mov esi, eax
mov eax, dword [0x4fafb8]
cmp byte [eax], 0
je 0x426db1
mov eax, dword [0x4fae04]
call fcn.00407714
call fcn.00406fa0
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
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x426cb4]
call fcn.0040c6c4
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
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x426e24
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x426ded
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4fadcc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4ff634]
call fcn.0040cab4
push eax
call sub.user32.dll_LoadStringW
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 0x426e10
lea eax, [ebp - 4]
mov edx, dword [0x426cb4]
call fcn.0040c7e8
ret
Function at 0x427f54
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x428054
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a060
lea eax, [ebp - 4]
call fcn.0040a17c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a6d4
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42803e
mov eax, ebx
call fcn.00406e2c
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x428037
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a6d4
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x428021
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x428068
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x428021
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42803e
mov eax, dword [ebp - 0x10]
call fcn.00406e48
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42805b
lea eax, [ebp - 4]
call fcn.00409c38
ret

Function at 0x4290a4
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.0040a108
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040f7dc
mov edi, eax
cmp edi, 0x104
jbe 0x42904f
mov eax, edi
add eax, eax
call fcn.00406e2c
mov esi, eax
jmp 0x429051
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040f7dc
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42908a
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 0x429074
mov eax, esp
cmp esi, eax
je 0x429097
mov eax, esi
call fcn.00406e48
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 0x4290d0
cmp bl, 0
je 0x4290cc
cmp bl, 0x41
jl 0x4290c7
cmp bl, 0x5a
jg 0x4290c7
or bl, 0x20
xor al, bl
inc esi
jmp 0x4290ab
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x429010

Function at 0x4299c8
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0040a774
add esp, 0x800
pop ebx
ret
Function at 0x429f48
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00409c38
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.0040a6d4
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x429f8d
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00409dc0
jmp 0x429fa6
mov edx, ebx
dec edx
mov eax, esi
call fcn.0040a84c
push ebx
mov eax, dword [esi]
call fcn.0040a6d4
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x488344
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x48834c
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4c14c0
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
or dl, byte [ebx + 0xd]
je 0x4c1503
cmp byte [ebx + 0x11], 0
jne 0x4c1503
cmp byte [ebx + 0x24], 0
jne 0x4c1503
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4c151a
mov ecx, dword [0x4faf74]
mov dl, 1
mov eax, dword [0x496240]
call fcn.00426f68
call fcn.004092b4
pop ebx
ret
mov ecx, dword [0x4faf74]
mov dl, 1
mov eax, dword [0x496240]
call fcn.00426f68
call fcn.004092b4
pop ebx
ret

Function at 0x4c1d70
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4c1dbe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004c136c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c1dd7
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4c1de0
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004c136c
dec esi
jne 0x4c1e02
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret