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

Disassembly:
push ecx
cmp byte [0x63005c], 0
je 0x409e3f
cmp word [0x630348], 0xd7b2
jne 0x409e01
cmp dword [0x630350], 0
jbe 0x409e01
mov eax, 0x630344
call dword [0x630360]
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
mov eax, 0x409e6c
call fcn.0040aa24
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x629032], 0
jne 0x409e5b
push 0
push 0x6299c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40a008
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x629034], 0
je 0x40a033
mov edx, edi
mov eax, esi
call dword [0x629034]
mov ebx, eax
jmp 0x40a044
mov eax, 8
call fcn.00406a9c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x63005d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409fd0
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x40a074
mov eax, ebx
call fcn.00406ab8
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40cd0c
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 0x40ce71
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a148
cmp si, word [0x629a00]
jb 0x40cda4
cmp si, word [0x629c00]
ja 0x40cda4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40cda4
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x629a00]
jae 0x40cd7e
mov edi, ebx
dec edi
jmp 0x40cd9f
cmp si, word [ebx*8 + 0x629a00]
jbe 0x40cd8e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40cd9f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x629a04]
call fcn.0040cc2c
jmp 0x40cda4
cmp edi, dword [ebp - 8]
jae 0x40cd68
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40ce53
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ce53
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.0040ae58
push dword [ebp - 0x160]
push 0x40ce8c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040ae58
push dword [ebp - 0x164]
push 0x40ce9c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040ae58
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b090
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ce78
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a1a8
ret
Function at 0x40d024
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 0x40d128
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x632b8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x632ba4]
jne 0x40d070
mov eax, esi
mov edx, 0x632ba6
mov ecx, 0x55
call fcn.0040ae58
push 0x632b8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40d112
push 0x632b8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a148
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d0df
cmp byte [0x632b88], 0
je 0x40d0a4
mov edx, esi
mov eax, ebx
call fcn.0040cf08
jmp 0x40d0df
mov edx, esi
mov eax, ebx
call fcn.0040cd0c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40d0df
cmp dword [esi], 0
je 0x40d0c8
mov eax, esi
mov edx, 0x40d140
call fcn.0040afb0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040cd0c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040afb0
push 0x632b8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x632ba4], bx
mov eax, dword [esi]
call fcn.0040ad9c
mov ecx, eax
mov eax, 0x632ba6
mov edx, 0xaa
call fcn.0040cb8c
push 0x632b8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d12f
lea eax, [ebp - 4]
call fcn.0040a148
ret
Function at 0x40d358
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.0040a22c
xor eax, eax
push ebp
push 0x40d57d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40d398
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40d3b2
mov eax, dword [ebp - 4]
call fcn.0040ad9c
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040cb8c
cmp word [ebp - 0x21a], 0
je 0x40d567
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d58c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d481
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d58c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d481
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d5c8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d481
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d5c8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d481
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d5fc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d481
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d630
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40d567
xor eax, eax
push ebp
push 0x40d560
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040d168
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 0x40d4f0
mov eax, dword [ebp - 0x10]
call fcn.00406a9c
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.0040ae04
jmp 0x40d53b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40d670
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40d53b
mov eax, dword [ebp - 0x10]
call fcn.00406a9c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40d670
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040ae04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d567
cmp dword [ebp - 8], 0
je 0x40d556
mov eax, dword [ebp - 8]
call fcn.00406ab8
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 0x40d584
lea eax, [ebp - 4]
call fcn.0040a148
ret
Function at 0x40d86c
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.0040a22c
xor eax, eax
push ebp
push 0x40d92c
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.0040ae58
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b008
mov eax, dword [ebx]
call fcn.0040d734
test al, al
jne 0x40d909
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040ae58
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b008
mov eax, dword [ebx]
call fcn.0040d734
test al, al
jne 0x40d909
mov eax, ebx
call fcn.0040a148
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d933
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a1a8
lea eax, [ebp - 4]
call fcn.0040a148
ret

Function at 0x4212c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x421319
test eax, edx
je 0x42131c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4212d7
movzx eax, word [eax]
sub eax, ecx
jmp 0x4212fe
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 0x4212ff
add ecx, 4
js 0x4212ef
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4212fc
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4212fe
xor eax, eax
ret
test eax, eax
je 0x421328
test edx, edx
jne 0x4212c8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x422490
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 0x4224bd
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x422590
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.0040ad9c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4225fa
test ah, 4
je 0x4225f3
test bl, bl
jne 0x4225b8
mov al, 1
jmp 0x422621
test al, 0x10
je 0x4225c0
xor eax, eax
jmp 0x422621
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x4225e4
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x422621
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x422621
test al, 0x10
sete al
jmp 0x422621
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x42261b
cmp ebx, 3
je 0x42261b
cmp ebx, 0x7b
je 0x42261b
mov eax, esi
call fcn.00422550
test al, al
jne 0x42261f
xor eax, eax
jmp 0x422621
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x422628
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.0040ad9c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x4226cf
test esi, 0x400
jne 0x422664
test esi, 0x10
setne bl
jmp 0x4226ff
cmp byte [esp], 0
je 0x422698
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x4226ff
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x4226ff
test esi, 0x10
je 0x4226a4
mov bl, 1
jmp 0x4226ff
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x4226cb
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x4226ff
mov bl, 1
jmp 0x4226ff
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x4226f9
cmp eax, 3
je 0x4226f9
cmp eax, 0xa1
je 0x4226f9
cmp eax, 0x7b
je 0x4226f9
cmp eax, 0x35
je 0x4226f9
cmp eax, 0x15
je 0x4226f9
cmp eax, 0x43
jne 0x4226fd
xor ebx, ebx
jmp 0x4226ff
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x426c4c
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 0x426c85
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a2d0
jmp 0x426c8e
mov eax, ebx
mov edx, esi
call fcn.0040a528
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x426c98
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 0x426cba
movzx eax, word [esp]
jmp 0x426cbc
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x427cd0
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 0x427df5
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00427ad8
mov esi, eax
mov eax, dword [0x62f234]
cmp byte [eax], 0
je 0x427d9d
mov eax, dword [0x62ed04]
call fcn.004074bc
call fcn.00406c10
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 [0x427ca0]
call fcn.0040c2d0
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 0x427e10
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x427dd9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x62ec2c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x632c54]
call fcn.0040c82c
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 0x427dfc
lea eax, [ebp - 4]
mov edx, dword [0x427ca0]
call fcn.0040c3f4
ret

Function at 0x428cfc
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 0x428dd2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a570
lea eax, [ebp - 4]
call fcn.0040a710
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040ad9c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x428dbc
mov eax, ebx
call fcn.00406a9c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x428db5
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.0040ad9c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x428d9f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x428de4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x428d9f
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 0x428dbc
mov eax, dword [ebp - 0x10]
call fcn.00406ab8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428dd9
lea eax, [ebp - 4]
call fcn.0040a148
ret
Function at 0x46e180
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 0x46e188
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4a359c
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a363a
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xd]
je 0x4a35fe
cmp byte [ebx + 0x11], 0
jne 0x4a35fe
cmp byte [ebx + 0x3c], 0
jne 0x4a35fe
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 0x4a361f
lea edx, [ebp - 4]
mov eax, dword [0x62f150]
call fcn.0040e2dc
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x47cc4c]
call fcn.00427e20
call fcn.00409804
jmp 0x4a361f
lea edx, [ebp - 8]
mov eax, dword [0x62f150]
call fcn.0040e2dc
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x47cc4c]
call fcn.00427e20
call fcn.00409804
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a3641
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a1a8
ret

Function at 0x4a3aa8
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 0x4a3af6
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.004a34e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a3b0f
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

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

Function at 0x4a6394
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x635440
cmp dword [edi], 0
jne 0x4a6410
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x63543c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x62b78c
mov ecx, 2
call fcn.00406c60
mov edx, 0x4a636c
lea eax, [esi + 5]
call fcn.004a638c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004a638c
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 0x4a63e5
mov dword [0x63543c], 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 0x4c69c8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c6b22
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 4], 0
je 0x4c6af7
mov eax, dword [ebx + 4]
mov dl, 1
call fcn.00422590
test al, al
je 0x4c6af7
push 0x20
mov ecx, dword [ebx + 4]
mov dl, 1
mov eax, dword [0x4788f8]
call fcn.00497cc0
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4c6af0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
mov esi, eax
mov eax, dword [ebp - 0xc]
call fcn.004974d0
sub esi, eax
push esi
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4046f0]
call fcn.0040c2d0
add esp, 4
mov edx, dword [ebp - 4]
mov ecx, esi
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebx + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042ac38
mov esi, eax
mov dl, 1
mov eax, dword [0x475a68]
call fcn.00497470
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4c6ad3
push dword fs:[eax]
mov dword fs:[eax], esp
mov edi, dword [ebp - 4]
test edi, edi
je 0x4c6a94
sub edi, 4
mov edi, dword [edi]
sub edi, esi
push edi
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 0xc]
mov ecx, esi
mov edx, dword [ebp - 4]
call fcn.0042b1e8
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004c6d9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c6ada
mov eax, dword [ebp - 8]
call fcn.00408484
ret
mov eax, ebx
call fcn.004c67cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c6b29
lea eax, [ebp - 0x10]
call fcn.0040a148
lea eax, [ebp - 4]
mov edx, dword [0x4046f0]
call fcn.0040c3f4
ret

Function at 0x4c9248
Capabilities:
Set registry value

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
movzx eax, byte [ebp + 8]
call fcn.004c8a18
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.0040ad9c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.004c8ae0
test al, al
jne 0x4c92b0
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x62efc4]
mov dl, 1
mov eax, dword [0x4c77e4]
call fcn.00427f18
call fcn.00409804
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4c92bc
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.0040ad9c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.004c8ae0
test al, al
jne 0x4c931d
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x62f554]
mov dl, 1
mov eax, dword [0x4c77e4]
call fcn.00427f18
call fcn.00409804
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004c8a48
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 0x4d1928
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 0x4d192e
ret