joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f02c
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.0040aa00
xor eax, eax
push ebp
push 0x40f0ee
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.0040b478
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b62c
mov eax, dword [ebx]
call fcn.0040eed8
test al, al
jne 0x40f0c9
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040b478
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b62c
mov eax, dword [ebx]
call fcn.0040eed8
test al, al
jne 0x40f0c9
mov eax, ebx
call fcn.0040a90c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f0f5
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a96c
lea eax, [ebp - 4]
call fcn.0040a90c
pop eax
jmp eax

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

Disassembly:
cmp eax, edx
je 0x421b89
test eax, edx
je 0x421b8c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x421b47
movzx eax, word [eax]
sub eax, ecx
jmp 0x421b6e
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 0x421b6f
add ecx, 4
js 0x421b5f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x421b6c
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x421b6e
xor eax, eax
ret
test eax, eax
je 0x421b98
test edx, edx
jne 0x421b38
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x422e4c
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.0040b3c4
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x422eb6
test ah, 4
je 0x422eaf
test bl, bl
jne 0x422e74
mov al, 1
jmp 0x422edd
test al, 0x10
je 0x422e7c
xor eax, eax
jmp 0x422edd
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x422ea0
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x422edd
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x422edd
test al, 0x10
sete al
jmp 0x422edd
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x422ed7
cmp ebx, 3
je 0x422ed7
cmp ebx, 0x7b
je 0x422ed7
mov eax, esi
call fcn.00422e0c
test al, al
jne 0x422edb
xor eax, eax
jmp 0x422edd
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x427d24
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 0x427d5d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040aaa4
jmp 0x427d66
mov eax, ebx
mov edx, esi
call fcn.0040acfc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x427d70
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 0x427d94
movzx eax, word [esp]
jmp 0x427d96
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x429a8c
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 0x429bb3
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00429894
mov esi, eax
mov eax, dword [0x57fa84]
cmp byte [eax], 0
je 0x429b59
mov eax, dword [0x57f544]
call fcn.00407df0
call fcn.00406fac
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 [0x429a5c]
call fcn.0040d8e4
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 0x429bcc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x429b95
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x57f498]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x583634]
call fcn.0040dfb4
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 0x429bba
lea eax, [ebp - 4]
mov edx, dword [0x429a5c]
call fcn.0040da08
pop eax
jmp eax
Function at 0x42b014
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 0x42b057
mov eax, dword [ebp - 0x10c]
mov dword [0x5838ec], eax
mov eax, 0x5838f0
lea edx, [ebp - 0x108]
mov ecx, 0x80
call fcn.0040b478
mov eax, 0x5838f4
call fcn.0040a90c
xor eax, eax
mov dword [0x5838f8], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x5837b0], 0xa
jl 0x42b1ad
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x42b1b8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x42b1ad
xor eax, eax
push ebp
push 0x42b1a6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42b214
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42b106
cmp dword [ebp - 8], 2
jle 0x42b106
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42b0d9
adc edx, 0
mov eax, 0x5838f4
call fcn.0040b550
lea eax, [ebp - 8]
push eax
mov eax, dword [0x5838f4]
call fcn.0040b3c4
push eax
push 0
push 0
push 0x42b214
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x42b160
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42b234
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42b160
cmp dword [ebp - 8], 2
jle 0x42b160
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42b135
adc edx, 0
mov eax, 0x5838f4
call fcn.0040b550
lea eax, [ebp - 8]
push eax
mov eax, dword [0x5838f4]
call fcn.0040b3c4
push eax
push 0
push 0
push 0x42b234
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
push 0x5838f8
push 0
push 0
push 0x42b248
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x42b18d
xor eax, eax
mov dword [0x5838f8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42b1ad
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
mov byte [0x57a720], 1
mov esp, ebp
pop ebp
ret
Function at 0x42c2cc
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.0040adf4
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00410c30
mov edi, eax
cmp edi, 0x104
jbe 0x42c277
mov eax, edi
add eax, eax
call fcn.00406e34
mov esi, eax
jmp 0x42c279
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00410c30
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42c2b2
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 0x42c29c
mov eax, esp
cmp esi, eax
je 0x42c2bf
mov eax, esi
call fcn.00406e50
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 0x42c2f8
cmp bl, 0
je 0x42c2f4
cmp bl, 0x41
jl 0x42c2ef
cmp bl, 0x5a
jg 0x42c2ef
or bl, 0x20
xor al, bl
inc esi
jmp 0x42c2d3
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42c238

Function at 0x42cc14
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0040b478
add esp, 0x800
pop ebx
ret

Function at 0x42d210
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.0040a90c
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.0040b3c4
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x42d255
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.0040aaa4
jmp 0x42d26e
mov edx, ebx
dec edx
mov eax, esi
call fcn.0040b550
push ebx
mov eax, dword [esi]
call fcn.0040b3c4
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42f4dc
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 0x42f4fa
mov eax, dword [eax - 4]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x42f512
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42f50d
mov eax, dword [eax - 4]
mov dword [ebp - 8], eax
jmp 0x42f517
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x42f585
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x42f5ce
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42f543
inc dword [ebp - 0xc]
jmp 0x42f55b
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x42f55b
cmp dword [ebp - 0xc], 0
jle 0x42f55b
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x42f57d
xor eax, eax
jmp 0x42f579
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42f578
mov eax, esi
jmp 0x42f5d1
inc eax
cmp eax, ecx
jle 0x42f565
inc esi
cmp esi, dword [ebp - 8]
jl 0x42f52f
jmp 0x42f5ce
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x42f5ce
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42f5a6
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x42f5c8
xor eax, eax
jmp 0x42f5c4
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42f5c3
mov eax, esi
jmp 0x42f5d1
inc eax
cmp eax, ecx
jle 0x42f5b0
inc esi
cmp esi, dword [ebp - 8]
jl 0x42f58e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42f7c0
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 0x42f7dd
mov eax, dword [eax - 4]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42f7eb
mov eax, dword [eax - 4]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x42f90d
test ebx, ebx
jl 0x42f90d
test esi, esi
jle 0x42f90d
mov eax, dword [ebp - 8]
call fcn.0040b3c4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040b3c4
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 0x42f8aa
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x42f90d
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42f88f
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42f85e
inc dword [ebp - 0x14]
jmp 0x42f86e
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x42f86e
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x42f879
or eax, 0xffffffff
jmp 0x42f88f
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42f88c
inc eax
jmp 0x42f88f
or eax, 0xffffffff
test eax, eax
jl 0x42f897
cmp esi, eax
jg 0x42f84c
cmp esi, eax
jg 0x42f8a2
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42f910
inc edx
dec dword [ebp - 0x1c]
jne 0x42f848
jmp 0x42f90d
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x42f90d
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42f8f4
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42f8d3
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x42f8de
or eax, 0xffffffff
jmp 0x42f8f4
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42f8f1
inc eax
jmp 0x42f8f4
or eax, 0xffffffff
test eax, eax
jl 0x42f8fc
cmp esi, eax
jg 0x42f8bc
cmp esi, eax
jg 0x42f907
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42f910
inc edx
dec dword [ebp - 0x1c]
jne 0x42f8b8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43fbe4
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 0x43fbec
mov eax, edx
pop esi
pop ebx
ret

Function at 0x442860
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
add edx, eax
cmp edx, eax
jbe 0x442877
movzx ebx, byte [eax]
xor ecx, ebx
imul ecx, ecx, 0x1000193
inc eax
cmp edx, eax
ja 0x442867
mov eax, ecx
pop ebx
ret
Function at 0x456d34
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
test dl, dl
je 0x456d48
add esp, 0xfffffff0
call fcn.00409124
mov ebx, edx
mov esi, eax
mov dl, 1
mov eax, dword [0x450cb8]
call fcn.00475458
mov dword [esi + 4], eax
mov dl, 1
mov eax, dword [0x455d04]
call fcn.0047820c
mov dword [esi + 8], eax
mov dl, 1
mov eax, dword [0x455d04]
call fcn.0047820c
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 0x456d9d
call fcn.0040917c
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4bfc90
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
or dl, byte [ebx + 0xd]
je 0x4bfcd3
cmp byte [ebx + 0x11], 0
jne 0x4bfcd3
cmp byte [ebx + 0x24], 0
jne 0x4bfcd3
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 0x4bfcea
mov ecx, dword [0x57f9cc]
mov dl, 1
mov eax, dword [0x48f8cc]
call fcn.00429d38
call fcn.00409ff4
pop ebx
ret
mov ecx, dword [0x57f9cc]
mov dl, 1
mov eax, dword [0x48f8cc]
call fcn.00429d38
call fcn.00409ff4
pop ebx
ret

Function at 0x4c0658
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 0x4c06a6
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.004bfb3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c06bf
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4c06c8
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.004bfb3c
dec esi
jne 0x4c06ea
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret
Function at 0x506e24
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x506fe3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040ad44
mov eax, dword [ebp - 4]
call fcn.00506704
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x506e76
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.0040b7e4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00507da8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x506f57
xor eax, eax
push ebp
push 0x506f50
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00506a10
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.00507018
test al, al
je 0x506f2c
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.0040aaa4
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x506f2c
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.0040b3c4
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.00506970
test al, al
je 0x506f26
mov eax, dword [ebp - 8]
call fcn.0040b3c4
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0040b424
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.00506e24
dec ebx
cmp ebx, 0xffffffff
jne 0x506ed5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x506f57
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00506a10
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
cmp byte [0x5869a8], 0
je 0x506f97
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.0040b3c4
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.005069fc
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.00506970
mov ebx, eax
jmp 0x506fbe
mov eax, dword [ebp - 4]
call fcn.0040b3c4
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.005069fc
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.00506970
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x506fea
lea eax, [ebp - 0x3c]
call fcn.0040a90c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a96c
pop eax
jmp eax
Function at 0x507088
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 0x507142
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.00507018
test al, al
je 0x507122
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.0040aaa4
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x507122
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.0040b3c4
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov eax, dword [ebp - 4]
call fcn.0040b3c4
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040b424
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
inc esi
dec ebx
jne 0x5070db
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x507149
lea eax, [ebp - 0x2c]
call fcn.0040a90c
lea eax, [ebp - 4]
call fcn.0040a90c
pop eax
jmp eax

Function at 0x507c84
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.0050671c
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.0040b3c4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.00506970
test al, al
jne 0x507cec
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x57f7f8]
mov dl, 1
mov eax, dword [0x50532c]
call fcn.00429e0c
call fcn.00409ff4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x507cf8
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.0040b3c4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.00506970
test al, al
jne 0x507d59
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x57fd5c]
mov dl, 1
mov eax, dword [0x50532c]
call fcn.00429e0c
call fcn.00409ff4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00506784
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 0x508370
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x50849c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.00506a10
xor eax, eax
push ebp
push 0x508475
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00507018
test al, al
je 0x508457
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00508248
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.0040aaa4
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x508457
inc ebx
xor edi, edi
mov eax, dword [ebp - 0x20]
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.0040b3c4
push eax
push edi
push esi
call sub.advapi32.dll_RegEnumValueW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00506970
test al, al
je 0x508453
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040b3c4
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.0040b424
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00508248
pop ecx
inc edi
dec ebx
jne 0x5083fb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50847c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.00506a10
pop eax
jmp eax