joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ba94
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 0x40bb98
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x6cdb8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x6cdba4]
jne 0x40bae0
mov eax, esi
mov edx, 0x6cdba6
mov ecx, 0x55
call fcn.004097e8
push 0x6cdb8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40bb82
push 0x6cdb8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004086a0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bb4f
cmp byte [0x6cdb88], 0
je 0x40bb14
mov edx, esi
mov eax, ebx
call fcn.0040b978
jmp 0x40bb4f
mov edx, esi
mov eax, ebx
call fcn.0040b77c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40bb4f
cmp dword [esi], 0
je 0x40bb38
mov eax, esi
mov edx, 0x40bbb0
call fcn.00409940
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040b77c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00409940
push 0x6cdb8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x6cdba4], bx
mov eax, dword [esi]
call fcn.0040972c
mov ecx, eax
mov eax, 0x6cdba6
mov edx, 0xaa
call fcn.0040b5fc
push 0x6cdb8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bb9f
lea eax, [ebp - 4]
call fcn.004086a0
ret
Function at 0x40bdc8
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.00408784
xor eax, eax
push ebp
push 0x40bfed
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40be08
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40be22
mov eax, dword [ebp - 4]
call fcn.0040972c
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040b5fc
cmp word [ebp - 0x21a], 0
je 0x40bfd7
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40bffc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bef1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40bffc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bef1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c038
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bef1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c038
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bef1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c06c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bef1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c0a0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40bfd7
xor eax, eax
push ebp
push 0x40bfd0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040bbd8
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 0x40bf60
mov eax, dword [ebp - 0x10]
call fcn.004050b4
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.00409794
jmp 0x40bfab
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c0e0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40bfab
mov eax, dword [ebp - 0x10]
call fcn.004050b4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c0e0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00409794
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bfd7
cmp dword [ebp - 8], 0
je 0x40bfc6
mov eax, dword [ebp - 8]
call fcn.004050d0
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 0x40bff4
lea eax, [ebp - 4]
call fcn.004086a0
ret
Function at 0x40c2dc
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.00408784
xor eax, eax
push ebp
push 0x40c39c
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.004097e8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409998
mov eax, dword [ebx]
call fcn.0040c1a4
test al, al
jne 0x40c379
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004097e8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409998
mov eax, dword [ebx]
call fcn.0040c1a4
test al, al
jne 0x40c379
mov eax, ebx
call fcn.004086a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c3a3
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00408700
lea eax, [ebp - 4]
call fcn.004086a0
ret

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

Disassembly:
cmp eax, edx
je 0x41ebfd
test eax, edx
je 0x41ec00
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41ebbb
movzx eax, word [eax]
sub eax, ecx
jmp 0x41ebe2
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 0x41ebe3
add ecx, 4
js 0x41ebd3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41ebe0
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41ebe2
xor eax, eax
ret
test eax, eax
je 0x41ec0c
test edx, edx
jne 0x41ebac
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41fd94
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_1
test eax, eax
jne 0x41fdc1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x41fe94
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.0040972c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41fefe
test ah, 4
je 0x41fef7
test bl, bl
jne 0x41febc
mov al, 1
jmp 0x41ff25
test al, 0x10
je 0x41fec4
xor eax, eax
jmp 0x41ff25
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41fee8
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41ff25
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41ff25
test al, 0x10
sete al
jmp 0x41ff25
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41ff1f
cmp ebx, 3
je 0x41ff1f
cmp ebx, 0x7b
je 0x41ff1f
mov eax, esi
call fcn.0041fe54
test al, al
jne 0x41ff23
xor eax, eax
jmp 0x41ff25
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x41ff2c
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.0040972c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41ffd3
test esi, 0x400
jne 0x41ff68
test esi, 0x10
setne bl
jmp 0x420003
cmp byte [esp], 0
je 0x41ff9c
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x420003
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x420003
test esi, 0x10
je 0x41ffa8
mov bl, 1
jmp 0x420003
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41ffcf
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x420003
mov bl, 1
jmp 0x420003
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x41fffd
cmp eax, 3
je 0x41fffd
cmp eax, 0xa1
je 0x41fffd
cmp eax, 0x7b
je 0x41fffd
cmp eax, 0x35
je 0x41fffd
cmp eax, 0x15
je 0x41fffd
cmp eax, 0x43
jne 0x420001
xor ebx, ebx
jmp 0x420003
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42023c
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.0040972c
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x420291
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42028b
test ah, 4
je 0x42028b
test al, 0x10
je 0x42028b
mov eax, esi
call fcn.0040972c
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x420291
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x424268
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 0x4242a1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00408828
jmp 0x4242aa
mov eax, ebx
mov edx, esi
call fcn.00408a80
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x4252ec
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 0x425411
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004250f4
mov esi, eax
mov eax, dword [0x6ca988]
cmp byte [eax], 0
je 0x4253b9
mov eax, dword [0x6ca5d4]
call fcn.00405c90
call fcn.00405228
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 [0x4252bc]
call fcn.0040ae7c
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 0x42542c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4253f5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x6ca544]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x6cdc54]
call fcn.0040b29c
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 0x425418
lea eax, [ebp - 4]
mov edx, dword [0x4252bc]
call fcn.0040afa0
ret
Function at 0x426318
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 0x4263ee
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00408ac8
lea eax, [ebp - 4]
call fcn.00408c7c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040972c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4263d8
mov eax, ebx
call fcn.004050b4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4263d1
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.0040972c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4263bb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x426400
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4263bb
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 0x4263d8
mov eax, dword [ebp - 0x10]
call fcn.004050d0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4263f5
lea eax, [ebp - 4]
call fcn.004086a0
ret

Function at 0x426e28
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.00408bbc
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040cd7c
mov edi, eax
cmp edi, 0x104
jbe 0x426dd3
mov eax, edi
add eax, eax
call fcn.004050b4
mov esi, eax
jmp 0x426dd5
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040cd7c
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x426e0e
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 0x426df8
mov eax, esp
cmp esi, eax
je 0x426e1b
mov eax, esi
call fcn.004050d0
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 0x426e54
cmp bl, 0
je 0x426e50
cmp bl, 0x41
jl 0x426e4b
cmp bl, 0x5a
jg 0x426e4b
or bl, 0x20
xor al, bl
inc esi
jmp 0x426e2f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x426d94
Function at 0x433034
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x433086
test eax, edx
je 0x433089
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x433049
movzx eax, byte [eax]
sub eax, ecx
ret
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]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x43306f
add ecx, 4
js 0x43305f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x43306c
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x433095
test edx, edx
jne 0x43303c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x4697c4
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

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 0x4697cc
mov eax, edx
pop esi
pop ebx
ret

Function at 0x49efb4
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x49f052
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xd]
je 0x49f016
cmp byte [ebx + 0x11], 0
jne 0x49f016
cmp byte [ebx + 0x3c], 0
jne 0x49f016
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 0x49f037
lea edx, [ebp - 4]
mov eax, dword [0x6ca8f8]
call fcn.0040cce8
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x478658]
call fcn.0042543c
call fcn.00407d20
jmp 0x49f037
lea edx, [ebp - 8]
mov eax, dword [0x6ca8f8]
call fcn.0040cce8
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x478658]
call fcn.0042543c
call fcn.00407d20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f059
lea eax, [ebp - 8]
mov edx, 2
call fcn.00408700
ret

Function at 0x49f4c8
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 0x49f516
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.0049ef00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49f52f
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x49f538
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.0049ef00
dec esi
jne 0x49f55a
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x4a1c6c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x6d03e0
cmp dword [edi], 0
jne 0x4a1ce8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x6d03dc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x6c06a4
mov ecx, 2
call fcn.00405284
mov edx, 0x4a1c44
lea eax, [esi + 5]
call fcn.004a1c64
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004a1c64
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 0x4a1cbd
mov dword [0x6d03dc], 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 0x4c4680
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040972c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.004c4154
test al, al
jne 0x4c46e1
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x6caba8]
mov dl, 1
mov eax, dword [0x4c2e88]
call fcn.00425534
call fcn.00407d20
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004c40bc
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4ccedc
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4ccee2
ret
Function at 0x4e6394
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x6c2874
test edx, edx
jne 0x4e63b3
xor eax, eax
jmp 0x4e64d1
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x4e63d0
push esi
push edx
push eax
call fcn.004e64d8
add esp, 0xc
jmp 0x4e64d1
push esi
push edx
push eax
call fcn.004e6798
add esp, 0xc
jmp 0x4e64d1
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4e7688
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x43271c]
call fcn.0040a084
xor eax, eax
push ebp
push 0x4e780b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x6c4930], 0
jne 0x4e76dc
mov ecx, dword [0x6ca40c]
mov dl, 1
mov eax, dword [0x418d64]
call fcn.004254f8
call fcn.00407d20
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x10
call fcn.00405dd8
mov eax, ebx
call fcn.004093d4
mov dword [ebp - 0x20], eax
push esi
mov esi, 0x4e781c
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.0040c700
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
test eax, eax
je 0x4e7723
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x4e7778
mov dword [ebp - 0x14], 0x20
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x4e7771
lea eax, [ebp - 0x58]
mov edx, ebx
call fcn.00409824
mov eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0x54]
mov ecx, 0x10
call fcn.004097e8
mov eax, dword [ebp - 0x5c]
pop edx
call fcn.0041ee1c
test eax, eax
jne 0x4e7771
mov ebx, 0x15
jmp 0x4e777d
mov ebx, 0x10
jmp 0x4e777d
mov ebx, 0x15
xor eax, eax
push ebp
push 0x4e77c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x6cab1c]
movzx eax, word [eax]
or ax, 8
call fcn.00405588
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
push ebx
push 0
push esi
call dword [0x6c4930]
call fcn.004e74b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e77cf
call fcn.00405578
ret
Function at 0x4f465c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x6d0618], 0
je 0x4f479d
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x6ca8bc]
mov edx, dword [edx]
xor al, byte [edx + 0xd4]
je 0x4f479d
mov eax, dword [0x6d061c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x6d0618]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4f476c
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x6d0618]
call fcn.0048ec9c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4f4764
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x205], 0
je 0x4f4764
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x6c]
test al, al
je 0x4f4764
mov eax, dword [ebp - 0x14]
call fcn.0050010c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4f4764
push ebp
call fcn.004f4618
pop ecx
test al, al
jne 0x4f4764
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffb9
call fcn.00406c60
test al, al
je 0x4f4764
mov byte [ebp - 9], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 9]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffba
call fcn.00406c60
cmp byte [ebp - 9], 0
je 0x4f4764
lea edx, [ebp - 8]
lea eax, [ebp - 0x28]
call fcn.0040e950
test al, al
je 0x4f4764
mov edx, dword [ebp - 0x14]
mov eax, dword [0x6d061c]
call fcn.004f3d60
inc edi
dec ebx
jne 0x4f46c1
mov eax, dword [0x6d061c]
cmp dword [eax + 8], 0
jle 0x4f4784
mov eax, dword [0x6d061c]
call fcn.004f3e14
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4f479d
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004f4480
pop ecx
test al, al
jne 0x4f479d
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret