joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d6c0
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 0x40d7c4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x68ac14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x68ac2c]
jne 0x40d70c
mov eax, esi
mov edx, 0x68ac2e
mov ecx, 0x55
call fcn.0040b294
push 0x68ac14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40d7ae
push 0x68ac14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a6e8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d77b
cmp byte [0x68ac10], 0
je 0x40d740
mov edx, esi
mov eax, ebx
call fcn.0040d5a4
jmp 0x40d77b
mov edx, esi
mov eax, ebx
call fcn.0040d3a8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40d77b
cmp dword [esi], 0
je 0x40d764
mov eax, esi
mov edx, 0x40d7dc
call fcn.0040b3ec
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040d3a8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b3ec
push 0x68ac14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x68ac2c], bx
mov eax, dword [esi]
call fcn.0040b1dc
mov ecx, eax
mov eax, 0x68ac2e
mov edx, 0xaa
call fcn.0040d228
push 0x68ac14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d7cb
lea eax, [ebp - 4]
call fcn.0040a6e8
ret
Function at 0x40d9f4
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.0040a7cc
xor eax, eax
push ebp
push 0x40dc19
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40da34
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40da4e
mov eax, dword [ebp - 4]
call fcn.0040b1dc
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040d228
cmp word [ebp - 0x21a], 0
je 0x40dc03
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dc28
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40db1d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dc28
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40db1d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dc64
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40db1d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dc64
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40db1d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dc98
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40db1d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dccc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40dc03
xor eax, eax
push ebp
push 0x40dbfc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040d804
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 0x40db8c
mov eax, dword [ebp - 0x10]
call fcn.00406f04
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.0040b240
jmp 0x40dbd7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40dd0c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40dbd7
mov eax, dword [ebp - 0x10]
call fcn.00406f04
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40dd0c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040b240
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dc03
cmp dword [ebp - 8], 0
je 0x40dbf2
mov eax, dword [ebp - 8]
call fcn.00406f20
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 0x40dc20
lea eax, [ebp - 4]
call fcn.0040a6e8
ret
Function at 0x40df20
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.0040a7cc
xor eax, eax
push ebp
push 0x40dfe0
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.0040b294
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b444
mov eax, dword [ebx]
call fcn.0040ddd0
test al, al
jne 0x40dfbd
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040b294
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b444
mov eax, dword [ebx]
call fcn.0040ddd0
test al, al
jne 0x40dfbd
mov eax, ebx
call fcn.0040a6e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dfe7
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a748
lea eax, [ebp - 4]
call fcn.0040a6e8
ret

Function at 0x40fcec
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 0x424390
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4243e9
test eax, edx
je 0x4243ec
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4243a7
movzx eax, word [eax]
sub eax, ecx
jmp 0x4243ce
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 0x4243cf
add ecx, 4
js 0x4243bf
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4243cc
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4243ce
xor eax, eax
ret
test eax, eax
je 0x4243f8
test edx, edx
jne 0x424398
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x4258e0
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 0x42590d
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x4259e0
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.0040b1dc
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x425a4a
test ah, 4
je 0x425a43
test bl, bl
jne 0x425a08
mov al, 1
jmp 0x425a71
test al, 0x10
je 0x425a10
xor eax, eax
jmp 0x425a71
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x425a34
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x425a71
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x425a71
test al, 0x10
sete al
jmp 0x425a71
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x425a6b
cmp ebx, 3
je 0x425a6b
cmp ebx, 0x7b
je 0x425a6b
mov eax, esi
call fcn.004259a0
test al, al
jne 0x425a6f
xor eax, eax
jmp 0x425a71
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x425a78
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.0040b1dc
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x425b1f
test esi, 0x400
jne 0x425ab4
test esi, 0x10
setne bl
jmp 0x425b4f
cmp byte [esp], 0
je 0x425ae8
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x425b4f
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x425b4f
test esi, 0x10
je 0x425af4
mov bl, 1
jmp 0x425b4f
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x425b1b
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x425b4f
mov bl, 1
jmp 0x425b4f
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x425b49
cmp eax, 3
je 0x425b49
cmp eax, 0xa1
je 0x425b49
cmp eax, 0x7b
je 0x425b49
cmp eax, 0x35
je 0x425b49
cmp eax, 0x15
je 0x425b49
cmp eax, 0x43
jne 0x425b4d
xor ebx, ebx
jmp 0x425b4f
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x425d7c
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.0040b1dc
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x425dd1
call sub.kernel32.dll_GetLastError
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x425dcb
test ah, 4
je 0x425dcb
test al, 0x10
je 0x425dcb
mov eax, esi
call fcn.0040b1dc
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x425dd1
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x429fe8
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 0x42a021
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a870
jmp 0x42a02a
mov eax, ebx
mov edx, esi
call fcn.0040aac8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42a034
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 0x42a056
movzx eax, word [esp]
jmp 0x42a058
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x42b390
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 0x42b4b5
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042b198
mov esi, eax
mov eax, dword [0x687c5c]
cmp byte [eax], 0
je 0x42b45d
mov eax, dword [0x6875f8]
call fcn.00407cf0
call fcn.00407078
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 [0x42b360]
call fcn.0040caac
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 0x42b4d0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x42b499
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x68750c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x68b634]
call fcn.0040cecc
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 0x42b4bc
lea eax, [ebp - 4]
mov edx, dword [0x42b360]
call fcn.0040cbd0
ret

Function at 0x42c634
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 0x42c70a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040ab10
lea eax, [ebp - 4]
call fcn.0040ac84
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040b1dc
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42c6f4
mov eax, ebx
call fcn.00406f04
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x42c6ed
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.0040b1dc
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42c6d7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42c71c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42c6d7
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 0x42c6f4
mov eax, dword [ebp - 0x10]
call fcn.00406f20
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c711
lea eax, [ebp - 4]
call fcn.0040a6e8
ret
Function at 0x42c720
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 0x42c820
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040ab10
lea eax, [ebp - 4]
call fcn.0040ac84
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040b1dc
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42c80a
mov eax, ebx
call fcn.00406f04
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x42c803
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.0040b1dc
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42c7ed
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42c834
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42c7ed
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 0x42c80a
mov eax, dword [ebp - 0x10]
call fcn.00406f20
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c827
lea eax, [ebp - 4]
call fcn.0040a6e8
ret

Function at 0x42d8a8
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.0040abc4
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040fccc
mov edi, eax
cmp edi, 0x104
jbe 0x42d853
mov eax, edi
add eax, eax
call fcn.00406f04
mov esi, eax
jmp 0x42d855
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040fccc
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42d88e
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 0x42d878
mov eax, esp
cmp esi, eax
je 0x42d89b
mov eax, esi
call fcn.00406f20
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 0x42d8d4
cmp bl, 0
je 0x42d8d0
cmp bl, 0x41
jl 0x42d8cb
cmp bl, 0x5a
jg 0x42d8cb
or bl, 0x20
xor al, bl
inc esi
jmp 0x42d8af
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42d814

Function at 0x42e1ec
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.0040b294
add esp, 0x800
pop ebx
ret
Function at 0x42e7f0
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.0040a6e8
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.0040b1dc
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x42e835
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.0040a870
jmp 0x42e84e
mov edx, ebx
dec edx
mov eax, esi
call fcn.0040b36c
push ebx
mov eax, dword [esi]
call fcn.0040b1dc
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x488890
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 0x488898
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4cb01c
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
or dl, byte [ebx + 0xd]
je 0x4cb05f
cmp byte [ebx + 0x11], 0
jne 0x4cb05f
cmp byte [ebx + 0x2c], 0
jne 0x4cb05f
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 0x4cb076
mov ecx, dword [0x687b80]
mov dl, 1
mov eax, dword [0x4994c0]
call fcn.0042b634
call fcn.00409de4
pop ebx
ret
mov ecx, dword [0x687b80]
mov dl, 1
mov eax, dword [0x4994c0]
call fcn.0042b634
call fcn.00409de4
pop ebx
ret

Function at 0x4cb8a8
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 0x4cb8f6
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.004cae9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4cb90f
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4cb918
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.004cae9c
dec esi
jne 0x4cb93a
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x4ce4a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x68e42c
cmp dword [edi], 0
jne 0x4ce51c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
mov eax, dword [0x68e428]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x683814
mov ecx, 2
call fcn.00407144
mov edx, 0x4ce478
lea eax, [esi + 5]
call fcn.004ce498
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004ce498
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4ce4f1
mov dword [0x68e428], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4fef9c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x43eb24]
call fcn.0040b8e4
xor eax, eax
push ebp
push 0x4ff121
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x683848], 0
jne 0x4feff1
mov ecx, dword [0x687288]
mov dl, 1
mov eax, dword [0x41d884]
call fcn.0042b634
call fcn.00409de4
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00407d60
mov eax, ebx
call fcn.0040b098
mov dword [ebp - 0x24], eax
mov esi, 0x4ff130
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.0040e3b4
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
test eax, eax
je 0x4ff036
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x4ff08b
mov dword [ebp - 0x14], 0x20
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x4ff084
lea eax, [ebp - 0x5c]
mov edx, ebx
call fcn.0040b2d0
mov eax, dword [ebp - 0x5c]
push eax
lea eax, [ebp - 0x60]
lea edx, [ebp - 0x58]
mov ecx, 0x10
call fcn.0040b294
mov eax, dword [ebp - 0x60]
pop edx
call fcn.00424654
test eax, eax
jne 0x4ff084
mov ebx, 0x15
jmp 0x4ff090
mov ebx, 0x10
jmp 0x4ff090
mov ebx, 0x15
xor eax, eax
push ebp
push 0x4ff0de
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x687f24]
movzx eax, word [eax]
or ax, 8
call fcn.0040744c
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [0x683848]
call fcn.004fed64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ff0e5
call fcn.0040743c
ret