joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42319c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x4232f0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x42313c]
call fcn.0040caf0
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x42316c]
call fcn.0040caf0
add esp, 4
mov bl, 0
mov dl, 1
mov eax, esi
call fcn.00423480
test al, al
jne 0x423212
mov dl, 1
mov eax, esi
call fcn.004233e8
test al, al
je 0x42329c
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.0042380c
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.0042af50
push 0x104
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x104
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a864
mov edi, eax
push edi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x423297
test byte [ebp - 0x14], 1
je 0x423262
or bl, 1
test byte [ebp - 0x14], 2
je 0x42326b
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x423274
or bl, 0x20
push edi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x423288
dec eax
je 0x42328d
dec eax
je 0x423292
dec eax
jne 0x4232b4
or bl, 0x10
jmp 0x4232b4
or bl, 4
jmp 0x4232b4
or bl, 8
jmp 0x4232b4
call fcn.0042bfbc
push esi
mov ecx, dword [0x653a84]
mov dl, 1
mov eax, dword [0x41c204]
call fcn.00429c88
call fcn.00409550
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4232f7
lea eax, [ebp - 0x1c]
call fcn.00409e58
lea eax, [ebp - 0xc]
mov edx, dword [0x42316c]
call fcn.0040cc14
lea eax, [ebp - 8]
mov edx, dword [0x42313c]
call fcn.0040cc14
lea eax, [ebp - 4]
call fcn.00409e58
pop eax
jmp eax

Function at 0x4233e8
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.0040a864
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x423452
test ah, 4
je 0x42344b
test bl, bl
jne 0x423410
mov al, 1
jmp 0x423479
test al, 0x10
je 0x423418
xor eax, eax
jmp 0x423479
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42343c
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x423479
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x423479
test al, 0x10
sete al
jmp 0x423479
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x423473
cmp ebx, 3
je 0x423473
cmp ebx, 0x7b
je 0x423473
mov eax, esi
call fcn.004233a8
test al, al
jne 0x423477
xor eax, eax
jmp 0x423479
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x423480
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.0040a864
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x42351e
test esi, 0x400
jne 0x4234b5
test esi, 0x10
setne bl
jmp 0x42351e
cmp byte [esp], 0
je 0x4234e9
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42351e
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x42351e
test esi, 0x10
je 0x4234f5
mov bl, 1
jmp 0x42351e
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42351c
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x42351e
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x423654
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.0040a864
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4236a9
call sub.kernel32.dll_GetLastError
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4236a3
test ah, 4
je 0x4236a3
test al, 0x10
je 0x4236a3
mov eax, esi
call fcn.0040a864
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4236a9
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4281d4
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 0x42820d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409ff0
jmp 0x428216
mov eax, ebx
mov edx, esi
call fcn.0040a248
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x428220
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x428244
movzx eax, word [esp]
jmp 0x428246
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x429678
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 0x42979f
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00429480
mov esi, eax
mov eax, dword [0x6538dc]
cmp byte [eax], 0
je 0x429745
mov eax, dword [0x653268]
call fcn.00407ab4
call fcn.00407174
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 [0x429648]
call fcn.0040caf0
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 0x4297b8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x429781
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x653180]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x65763c]
call fcn.0040d0b4
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 0x4297a6
lea eax, [ebp - 4]
mov edx, dword [0x429648]
call fcn.0040cc14
pop eax
jmp eax
Function at 0x42a7d4
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
mov dword [ebp - 0x11c], 0x114
lea eax, [ebp - 0x11c]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x42a817
mov eax, dword [ebp - 0x10c]
mov dword [0x6578f8], eax
mov eax, 0x6578fc
lea edx, [ebp - 0x108]
mov ecx, 0x80
call fcn.0040a918
mov eax, 0x657900
call fcn.00409e58
xor eax, eax
mov dword [0x657904], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x6577bc], 0xa
jl 0x42a96d
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x42a978
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x42a96d
xor eax, eax
push ebp
push 0x42a966
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42a9d4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42a8c6
cmp dword [ebp - 8], 2
jle 0x42a8c6
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42a899
adc edx, 0
mov eax, 0x657900
call fcn.0040a9f0
lea eax, [ebp - 8]
push eax
mov eax, dword [0x657900]
call fcn.0040a864
push eax
push 0
push 0
push 0x42a9d4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x42a920
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42a9f4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42a920
cmp dword [ebp - 8], 2
jle 0x42a920
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42a8f5
adc edx, 0
mov eax, 0x657900
call fcn.0040a9f0
lea eax, [ebp - 8]
push eax
mov eax, dword [0x657900]
call fcn.0040a864
push eax
push 0
push 0
push 0x42a9f4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
push 0x657904
push 0
push 0
push 0x42aa08
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x42a94d
xor eax, eax
mov dword [0x657904], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a96d
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
mov byte [0x64d320], 1
mov esp, ebp
pop ebp
ret
Function at 0x42aab0
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 0x42ab8a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a290
lea eax, [ebp - 4]
call fcn.0040a3b0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a864
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42ab72
mov eax, ebx
call fcn.00407000
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x42ab6b
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.0040a864
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42ab53
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42ab9c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42ab53
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 0x42ab72
mov eax, dword [ebp - 0x10]
call fcn.0040701c
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ab91
lea eax, [ebp - 4]
call fcn.00409e58
pop eax
jmp eax

Function at 0x42c7ac
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.00409e58
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.0040a864
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x42c7f1
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00409ff0
jmp 0x42c80a
mov edx, ebx
dec edx
mov eax, esi
call fcn.0040a9f0
push ebx
mov eax, dword [esi]
call fcn.0040a864
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42ce58
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42ce78
sub eax, 4
mov eax, dword [eax]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x42ce92
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42ce8d
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x42ce97
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x42cf05
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x42cf4e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42cec3
inc dword [ebp - 0xc]
jmp 0x42cedb
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x42cedb
cmp dword [ebp - 0xc], 0
jle 0x42cedb
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x42cefd
xor eax, eax
jmp 0x42cef9
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42cef8
mov eax, esi
jmp 0x42cf51
inc eax
cmp eax, ecx
jle 0x42cee5
inc esi
cmp esi, dword [ebp - 8]
jl 0x42ceaf
jmp 0x42cf4e
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x42cf4e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42cf26
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x42cf48
xor eax, eax
jmp 0x42cf44
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42cf43
mov eax, esi
jmp 0x42cf51
inc eax
cmp eax, ecx
jle 0x42cf30
inc esi
cmp esi, dword [ebp - 8]
jl 0x42cf0e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42d0e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x42d0ff
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42d10f
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x42d231
test ebx, ebx
jl 0x42d231
test esi, esi
jle 0x42d231
mov eax, dword [ebp - 8]
call fcn.0040a864
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040a864
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x42d1ce
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x42d231
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42d1b3
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42d182
inc dword [ebp - 0x14]
jmp 0x42d192
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x42d192
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x42d19d
or eax, 0xffffffff
jmp 0x42d1b3
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42d1b0
inc eax
jmp 0x42d1b3
or eax, 0xffffffff
test eax, eax
jl 0x42d1bb
cmp esi, eax
jg 0x42d170
cmp esi, eax
jg 0x42d1c6
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42d234
inc edx
dec dword [ebp - 0x1c]
jne 0x42d16c
jmp 0x42d231
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x42d231
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42d218
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42d1f7
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x42d202
or eax, 0xffffffff
jmp 0x42d218
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42d215
inc eax
jmp 0x42d218
or eax, 0xffffffff
test eax, eax
jl 0x42d220
cmp esi, eax
jg 0x42d1e0
cmp esi, eax
jg 0x42d22b
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42d234
inc edx
dec dword [ebp - 0x1c]
jne 0x42d1dc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43a9f0
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 0x43a9f8
mov eax, edx
pop esi
pop ebx
ret
Function at 0x449efc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
test dl, dl
je 0x449f10
add esp, 0xfffffff0
call fcn.004086c0
mov ebx, edx
mov esi, eax
mov dl, 1
mov eax, dword [0x443f98]
call fcn.00464394
mov dword [esi + 4], eax
mov dl, 1
mov eax, dword [0x448f38]
call fcn.004659f0
mov dword [esi + 8], eax
mov dl, 1
mov eax, dword [0x448f38]
call fcn.004659f0
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x10], eax
mov eax, esi
test bl, bl
je 0x449f65
call fcn.00408718
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a6f74
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 0x4a6fc2
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.004a68d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a6fdb
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

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

Function at 0x4a9984
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x65a8a4
cmp dword [edi], 0
jne 0x4a9a00
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
mov eax, dword [0x65a8a0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x64de84
mov ecx, 2
call fcn.00407550
mov edx, 0x4a995c
lea eax, [esi + 5]
call fcn.004a997c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004a997c
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 0x4a99d5
mov dword [0x65a8a0], 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 0x4b36c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
add edx, eax
cmp edx, eax
jbe 0x4b36d7
movzx ebx, byte [eax]
xor ecx, ebx
imul ecx, ecx, 0x1000193
inc eax
cmp edx, eax
ja 0x4b36c7
mov eax, ecx
pop ebx
ret
Function at 0x4d588c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4d5946
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x48]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.004d581c
test al, al
je 0x4d5926
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00409ff0
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x4d5926
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a864
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov eax, dword [ebp - 4]
call fcn.0040a864
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040a8c4
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
inc esi
dec ebx
jne 0x4d58df
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d594d
lea eax, [ebp - 0x2c]
call fcn.00409e58
lea eax, [ebp - 4]
call fcn.00409e58
pop eax
jmp eax

Function at 0x4d5b00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4d5bba
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x48]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.004d581c
test al, al
je 0x4d5b9a
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00409ff0
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x4d5b9a
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a864
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueW
mov eax, dword [ebp - 4]
call fcn.0040a864
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040a8c4
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
inc esi
dec ebx
jne 0x4d5b53
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5bc1
lea eax, [ebp - 0x2c]
call fcn.00409e58
lea eax, [ebp - 4]
call fcn.00409e58
pop eax
jmp eax
Function at 0x4d5d24
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.004d5268
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.0040a864
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.004d536c
test al, al
jne 0x4d5d8c
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x6535d0]
mov dl, 1
mov eax, dword [0x4d4034]
call fcn.004298e4
call fcn.00409550
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4d5d98
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.0040a864
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.004d536c
test al, al
jne 0x4d5df9
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x653c60]
mov dl, 1
mov eax, dword [0x4d4034]
call fcn.004298e4
call fcn.00409550
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004d5298
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 0x4defd0
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 0x4defd6
ret