joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d8b0
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 0x40d9b6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x655c18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x655c30]
jne 0x40d8fc
mov eax, esi
mov edx, 0x655c32
mov ecx, 0x55
call fcn.0040a918
push 0x655c18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40d99e
push 0x655c18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409e58
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d96b
cmp byte [0x655c14], 0
je 0x40d930
mov edx, esi
mov eax, ebx
call fcn.0040d794
jmp 0x40d96b
mov edx, esi
mov eax, ebx
call fcn.0040d594
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40d96b
cmp dword [esi], 0
je 0x40d954
mov eax, esi
mov edx, 0x40d9d0
call fcn.0040aa70
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040d594
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040aa70
push 0x655c18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x655c30], bx
mov eax, dword [esi]
call fcn.0040a864
mov ecx, eax
mov eax, 0x655c32
mov edx, 0xaa
call fcn.0040d410
push 0x655c18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d9bd
lea eax, [ebp - 4]
call fcn.00409e58
pop eax
jmp eax
Function at 0x40e134
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.00409f4c
xor eax, eax
push ebp
push 0x40e1f6
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.0040a918
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040aac8
mov eax, dword [ebx]
call fcn.0040dfdc
test al, al
jne 0x40e1d1
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a918
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040aac8
mov eax, dword [ebx]
call fcn.0040dfdc
test al, al
jne 0x40e1d1
mov eax, ebx
call fcn.00409e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e1fd
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409eb8
lea eax, [ebp - 4]
call fcn.00409e58
pop eax
jmp eax

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

Disassembly:
cmp eax, edx
je 0x421ea9
test eax, edx
je 0x421eac
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x421e67
movzx eax, word [eax]
sub eax, ecx
jmp 0x421e8e
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 [eax + ecx]
xor ebx, dword [edx + ecx]
jne 0x421e8f
add ecx, 4
js 0x421e7f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x421e8c
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x421e8e
xor eax, eax
ret
test eax, eax
je 0x421eb8
test edx, edx
jne 0x421e58
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x423184
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 0x4232d8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x423124]
call fcn.0040caf0
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x423154]
call fcn.0040caf0
add esp, 4
mov bl, 0
mov dl, 1
mov eax, esi
call fcn.00423468
test al, al
jne 0x4231fa
mov dl, 1
mov eax, esi
call fcn.004233d0
test al, al
je 0x423284
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.00423798
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.0042aec0
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 0x42327f
test byte [ebp - 0x14], 1
je 0x42324a
or bl, 1
test byte [ebp - 0x14], 2
je 0x423253
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x42325c
or bl, 0x20
push edi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x423270
dec eax
je 0x423275
dec eax
je 0x42327a
dec eax
jne 0x42329c
or bl, 0x10
jmp 0x42329c
or bl, 4
jmp 0x42329c
or bl, 8
jmp 0x42329c
call fcn.0042bf2c
push esi
mov ecx, dword [0x652a84]
mov dl, 1
mov eax, dword [0x41c1ec]
call fcn.00429bf8
call fcn.00409550
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4232df
lea eax, [ebp - 0x1c]
call fcn.00409e58
lea eax, [ebp - 0xc]
mov edx, dword [0x423154]
call fcn.0040cc14
lea eax, [ebp - 8]
mov edx, dword [0x423124]
call fcn.0040cc14
lea eax, [ebp - 4]
call fcn.00409e58
pop eax
jmp eax

Function at 0x4233d0
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 0x42343a
test ah, 4
je 0x423433
test bl, bl
jne 0x4233f8
mov al, 1
jmp 0x423461
test al, 0x10
je 0x423400
xor eax, eax
jmp 0x423461
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x423424
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x423461
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x423461
test al, 0x10
sete al
jmp 0x423461
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x42345b
cmp ebx, 3
je 0x42345b
cmp ebx, 0x7b
je 0x42345b
mov eax, esi
call fcn.00423390
test al, al
jne 0x42345f
xor eax, eax
jmp 0x423461
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x423468
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 0x423506
test esi, 0x400
jne 0x42349d
test esi, 0x10
setne bl
jmp 0x423506
cmp byte [esp], 0
je 0x4234d1
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x423506
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x423506
test esi, 0x10
je 0x4234dd
mov bl, 1
jmp 0x423506
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x423504
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x423506
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

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

Function at 0x428190
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 0x4281b4
movzx eax, word [esp]
jmp 0x4281b6
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4295e8
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 0x42970f
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004293f0
mov esi, eax
mov eax, dword [0x6528dc]
cmp byte [eax], 0
je 0x4296b5
mov eax, dword [0x652268]
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 [0x4295b8]
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 0x429728
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x4296f1
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x652180]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x65663c]
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 0x429716
lea eax, [ebp - 4]
mov edx, dword [0x4295b8]
call fcn.0040cc14
pop eax
jmp eax
Function at 0x42a744
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 0x42a787
mov eax, dword [ebp - 0x10c]
mov dword [0x6568f8], eax
mov eax, 0x6568fc
lea edx, [ebp - 0x108]
mov ecx, 0x80
call fcn.0040a918
mov eax, 0x656900
call fcn.00409e58
xor eax, eax
mov dword [0x656904], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x6567bc], 0xa
jl 0x42a8dd
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x42a8e8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x42a8dd
xor eax, eax
push ebp
push 0x42a8d6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42a944
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42a836
cmp dword [ebp - 8], 2
jle 0x42a836
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42a809
adc edx, 0
mov eax, 0x656900
call fcn.0040a9f0
lea eax, [ebp - 8]
push eax
mov eax, dword [0x656900]
call fcn.0040a864
push eax
push 0
push 0
push 0x42a944
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x42a890
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42a964
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42a890
cmp dword [ebp - 8], 2
jle 0x42a890
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42a865
adc edx, 0
mov eax, 0x656900
call fcn.0040a9f0
lea eax, [ebp - 8]
push eax
mov eax, dword [0x656900]
call fcn.0040a864
push eax
push 0
push 0
push 0x42a964
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
push 0x656904
push 0
push 0
push 0x42a978
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x42a8bd
xor eax, eax
mov dword [0x656904], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a8dd
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
mov byte [0x64c320], 1
mov esp, ebp
pop ebp
ret
Function at 0x42aa20
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 0x42aafa
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 0x42aae2
mov eax, ebx
call fcn.00407000
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x42aadb
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 0x42aac3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42ab0c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42aac3
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 0x42aae2
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 0x42ab01
lea eax, [ebp - 4]
call fcn.00409e58
pop eax
jmp eax

Function at 0x42c71c
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 0x42c761
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00409ff0
jmp 0x42c77a
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 0x42cdc8
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 0x42cde8
sub eax, 4
mov eax, dword [eax]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x42ce02
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42cdfd
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x42ce07
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x42ce75
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x42cebe
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42ce33
inc dword [ebp - 0xc]
jmp 0x42ce4b
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x42ce4b
cmp dword [ebp - 0xc], 0
jle 0x42ce4b
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x42ce6d
xor eax, eax
jmp 0x42ce69
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42ce68
mov eax, esi
jmp 0x42cec1
inc eax
cmp eax, ecx
jle 0x42ce55
inc esi
cmp esi, dword [ebp - 8]
jl 0x42ce1f
jmp 0x42cebe
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x42cebe
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42ce96
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x42ceb8
xor eax, eax
jmp 0x42ceb4
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42ceb3
mov eax, esi
jmp 0x42cec1
inc eax
cmp eax, ecx
jle 0x42cea0
inc esi
cmp esi, dword [ebp - 8]
jl 0x42ce7e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42d050
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 0x42d06f
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42d07f
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 0x42d1a1
test ebx, ebx
jl 0x42d1a1
test esi, esi
jle 0x42d1a1
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 0x42d13e
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x42d1a1
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42d123
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42d0f2
inc dword [ebp - 0x14]
jmp 0x42d102
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x42d102
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x42d10d
or eax, 0xffffffff
jmp 0x42d123
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42d120
inc eax
jmp 0x42d123
or eax, 0xffffffff
test eax, eax
jl 0x42d12b
cmp esi, eax
jg 0x42d0e0
cmp esi, eax
jg 0x42d136
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42d1a4
inc edx
dec dword [ebp - 0x1c]
jne 0x42d0dc
jmp 0x42d1a1
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x42d1a1
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42d188
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42d167
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x42d172
or eax, 0xffffffff
jmp 0x42d188
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42d185
inc eax
jmp 0x42d188
or eax, 0xffffffff
test eax, eax
jl 0x42d190
cmp esi, eax
jg 0x42d150
cmp esi, eax
jg 0x42d19b
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42d1a4
inc edx
dec dword [ebp - 0x1c]
jne 0x42d14c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43a960
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 0x43a968
mov eax, edx
pop esi
pop ebx
ret
Function at 0x4a6ee4
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 0x4a6f32
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.004a6840
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a6f4b
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

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

Function at 0x4a98f4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x6598a4
cmp dword [edi], 0
jne 0x4a9970
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
mov eax, dword [0x6598a0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x64ce84
mov ecx, 2
call fcn.00407550
mov edx, 0x4a98cc
lea eax, [esi + 5]
call fcn.004a98ec
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004a98ec
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 0x4a9945
mov dword [0x6598a0], 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 0x4b3630
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
add edx, eax
cmp edx, eax
jbe 0x4b3647
movzx ebx, byte [eax]
xor ecx, ebx
imul ecx, ecx, 0x1000193
inc eax
cmp edx, eax
ja 0x4b3637
mov eax, ecx
pop ebx
ret
Function at 0x4d57f4
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 0x4d58ae
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.004d5784
test al, al
je 0x4d588e
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 0x4d588e
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 0x4d5847
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d58b5
lea eax, [ebp - 0x2c]
call fcn.00409e58
lea eax, [ebp - 4]
call fcn.00409e58
pop eax
jmp eax

Function at 0x4d5a68
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 0x4d5b22
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.004d5784
test al, al
je 0x4d5b02
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 0x4d5b02
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 0x4d5abb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5b29
lea eax, [ebp - 0x2c]
call fcn.00409e58
lea eax, [ebp - 4]
call fcn.00409e58
pop eax
jmp eax