joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422fa8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x423001
test eax, edx
je 0x423004
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x422fbf
movzx eax, word [eax]
sub eax, ecx
jmp 0x422fe6
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 0x422fe7
add ecx, 4
js 0x422fd7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x422fe4
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x422fe6
xor eax, eax
ret
test eax, eax
je 0x423010
test edx, edx
jne 0x422fb0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x4244a0
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
test eax, eax
jne 0x4244cd
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x4245a0
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.0040b860
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42460a
test ah, 4
je 0x424603
test bl, bl
jne 0x4245c8
mov al, 1
jmp 0x424631
test al, 0x10
je 0x4245d0
xor eax, eax
jmp 0x424631
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4245f4
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x424631
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x424631
test al, 0x10
sete al
jmp 0x424631
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x42462b
cmp ebx, 3
je 0x42462b
cmp ebx, 0x7b
je 0x42462b
mov eax, esi
call fcn.00424560
test al, al
jne 0x42462f
xor eax, eax
jmp 0x424631
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x4246e0
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.0040b860
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x424735
call sub.kernel32.dll_GetLastError
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42472f
test ah, 4
je 0x42472f
test al, 0x10
je 0x42472f
mov eax, esi
call fcn.0040b860
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x424735
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x428430
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 0x428469
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040ac1c
jmp 0x428472
mov eax, ebx
mov edx, esi
call fcn.0040ae74
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42847c
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
test eax, eax
jle 0x42849e
movzx eax, word [esp]
jmp 0x4284a0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4297a0
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 0x4298c7
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004295a8
mov esi, eax
mov eax, dword [0x7c55c8]
cmp byte [eax], 0
je 0x42986d
mov eax, dword [0x7c53d4]
call fcn.00407f70
call fcn.004072a0
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 [0x429770]
call fcn.0040d870
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 0x4298e0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x4298a9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x7c5390]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x7c9634]
call fcn.0040dd9c
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 0x4298ce
lea eax, [ebp - 4]
mov edx, dword [0x429770]
call fcn.0040d994
pop eax
jmp eax
Function at 0x42aaf0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42abf4
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040aebc
lea eax, [ebp - 4]
call fcn.0040b064
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040b860
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42abdc
mov eax, ebx
call fcn.004070bc
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x42abd5
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040b860
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42abbd
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42ac08
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42abbd
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42abdc
mov eax, dword [ebp - 0x10]
call fcn.004070d8
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42abfb
lea eax, [ebp - 4]
call fcn.0040aa94
pop eax
jmp eax

Function at 0x42bc54
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.0040afa4
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00410c54
mov edi, eax
cmp edi, 0x104
jbe 0x42bbff
mov eax, edi
add eax, eax
call fcn.004070bc
mov esi, eax
jmp 0x42bc01
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00410c54
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42bc3a
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 0x42bc24
mov eax, esp
cmp esi, eax
je 0x42bc47
mov eax, esi
call fcn.004070d8
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 0x42bc80
cmp bl, 0
je 0x42bc7c
cmp bl, 0x41
jl 0x42bc77
cmp bl, 0x5a
jg 0x42bc77
or bl, 0x20
xor al, bl
inc esi
jmp 0x42bc5b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42bbc0

Function at 0x42c578
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.0040b918
add esp, 0x800
pop ebx
ret
Function at 0x489bc4
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 0x489bcc
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4ca368
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 0x4ca3b6
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.004c9950
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ca3cf
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4cc388
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x7ceadc
cmp dword [edi], 0
jne 0x4cc404
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
mov eax, dword [0x7cead8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x7a214c
mov ecx, 2
call fcn.004072f0
mov edx, 0x4cc360
lea eax, [esi + 5]
call fcn.004cc380
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004cc380
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 0x4cc3d9
mov dword [0x7cead8], 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 0x4fa874
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp], edx
mov ebx, eax
xor eax, eax
mov dword [esp + 4], eax
test ebx, ebx
je 0x4fa918
mov eax, ebx
mov edx, dword [eax + 0x3c]
add edx, eax
mov eax, edx
mov esi, eax
mov edx, dword [esi + 0x78]
mov eax, ebx
call fcn.004fa5d8
mov esi, eax
mov ebp, dword [esi + 0x18]
dec ebp
test ebp, ebp
jb 0x4fa918
inc ebp
xor edi, edi
mov edx, dword [esi + 0x20]
mov eax, ebx
call fcn.004fa5d8
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
mov edx, dword [esp + 8]
mov eax, ebx
call fcn.004fa5d8
mov dword [esp + 0xc], eax
mov eax, dword [esp]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.kernel32.dll_lstrcmpA
test eax, eax
jne 0x4fa914
mov edx, dword [esi + 0x24]
mov eax, ebx
call fcn.004fa5d8
movzx eax, word [eax + edi*2]
mov word [esp + 0x10], ax
mov edx, dword [esi + 0x1c]
mov eax, ebx
call fcn.004fa5d8
movzx edx, word [esp + 0x10]
mov eax, dword [eax + edx*4]
mov edx, eax
mov eax, ebx
call fcn.004fa5d8
mov dword [esp + 4], eax
inc edi
dec ebp
jne 0x4fa8b0
mov eax, dword [esp + 4]
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4fc90c
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor esi, esi
mov edi, 0x12
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x48]
lea eax, [esi + 1]
xor edx, edx
div dword [ebp - 8]
mov eax, dword [ebp - 4]
movzx ebx, byte [eax + edx]
shl ebx, 0x10
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi]
shl eax, 0x18
add ebx, eax
lea eax, [esi + 2]
xor edx, edx
div dword [ebp - 8]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edx]
shl eax, 8
add ebx, eax
lea eax, [esi + 3]
xor edx, edx
div dword [ebp - 8]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edx]
add ebx, eax
xor dword [ecx], ebx
lea eax, [esi + 4]
xor edx, edx
div dword [ebp - 8]
mov esi, edx
add ecx, 4
dec edi
jne 0x4fc928
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor edi, edi
mov eax, dword [ebp + 8]
push eax
push 1
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x48]
lea edx, [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.004fc54c
pop ecx
mov eax, edi
add eax, eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [edx + eax*4 - 0x48], ecx
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [edx + eax*4 - 0x44], ecx
inc edi
cmp edi, 9
jne 0x4fc989
mov edi, 4
mov eax, dword [ebp + 8]
lea ebx, [eax - 0x1048]
xor esi, esi
mov eax, dword [ebp + 8]
push eax
push 1
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x48]
lea edx, [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.004fc54c
pop ecx
mov eax, esi
add eax, eax
mov edx, dword [ebp - 0xc]
mov dword [ebx + eax*4], edx
mov edx, dword [ebp - 0x10]
mov dword [ebx + eax*4 + 4], edx
inc esi
cmp esi, 0x80
jne 0x4fc9cf
add ebx, 0x400
dec edi
jne 0x4fc9cd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fca14
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffff9c
push ebx
push esi
push edi
mov byte [ebp - 0x1051], cl
mov dword [ebp - 0x1050], edx
mov dword [ebp - 0x104c], eax
mov ebx, dword [ebp + 0x14]
lea esi, [ebp - 0x1060]
push esi
mov esi, 0x7a2288
lea edi, [ebp - 0x48]
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
pop esi
push esi
mov esi, 0x7a22d0
lea edi, [ebp - 0x1048]
mov ecx, 0x400
rep movsd dword es:[edi], dword [esi]
pop esi
mov edi, ebx
test edi, edi
je 0x4fca6f
sub edi, 4
mov edi, dword [edi]
push ebp
mov eax, ebx
call fcn.0040b4a8
mov edx, edi
call fcn.004fc90c
pop ecx
mov ebx, dword [ebp - 0x104c]
cmp byte [ebp - 0x1051], 0
je 0x4fcaa3
lea eax, [ebp - 0x48]
mov dword [ebp - 0x1058], eax
mov dword [ebp - 0x105c], 1
jmp 0x4fcab6
lea eax, [ebp - 4]
mov dword [ebp - 0x1058], eax
mov dword [ebp - 0x105c], 0xffffffff
mov edi, dword [ebp - 0x1050]
shr edi, 3
dec edi
test edi, edi
jl 0x4fcbcb
inc edi
cmp dword [ebp + 0x10], 0
jne 0x4fcad3
cmp dword [ebp + 0xc], 0
je 0x4fcb52
mov dword [esi], 7
lea eax, [ebp + 0xc]
add eax, dword [esi]
movzx eax, byte [eax]
inc eax
and al, 0xff
lea edx, [ebp + 0xc]
add edx, dword [esi]
mov byte [edx], al
lea eax, [ebp + 0xc]
add eax, dword [esi]
cmp byte [eax], 0
jne 0x4fcafe
dec dword [esi]
cmp dword [esi], 0xffffffff
jne 0x4fcadb
mov eax, dword [ebp + 0xc]
call fcn.004fc520
mov dword [esi], eax
lea eax, [ebp + 0xc]
add eax, 4
mov eax, dword [eax]
call fcn.004fc520
mov dword [ebp - 0x1064], eax
push ebp
mov eax, dword [ebp - 0x105c]
push eax
lea edx, [ebp - 0x1064]
mov eax, esi
mov ecx, dword [ebp - 0x1058]
call fcn.004fc54c
pop ecx
mov eax, dword [esi]
call fcn.004fc520
xor dword [ebx], eax
mov eax, dword [ebp - 0x1064]
call fcn.004fc520
lea edx, [ebx + 4]
xor dword [edx], eax
jmp 0x4fcbc1
cmp byte [ebp + 8], 0
jne 0x4fcba8
mov eax, dword [ebx]
call fcn.004fc520
mov dword [esi], eax
lea eax, [ebx + 4]
mov eax, dword [eax]
call fcn.004fc520
mov dword [ebp - 0x1064], eax
push ebp
mov eax, dword [ebp - 0x105c]
push eax
lea edx, [ebp - 0x1064]
mov eax, esi
mov ecx, dword [ebp - 0x1058]
call fcn.004fc54c
pop ecx
mov eax, dword [esi]
call fcn.004fc520
mov dword [ebx], eax
mov eax, dword [ebp - 0x1064]
call fcn.004fc520
lea edx, [ebx + 4]
mov dword [edx], eax
jmp 0x4fcbc1
push ebp
mov eax, dword [ebp - 0x105c]
push eax
mov edx, ebx
lea eax, [ebx + 4]
mov ecx, dword [ebp - 0x1058]
call fcn.004fc54c
pop ecx
add ebx, 8
dec edi
jne 0x4fcac9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x5007a8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.0040b860
mov edx, eax
mov eax, esi
test eax, eax
je 0x5007c2
sub eax, 4
mov eax, dword [eax]
xor ecx, ecx
test eax, eax
jle 0x5007d4
imul ecx, ecx, 0x2b
movzx esi, byte [edx]
xor ecx, esi
inc edx
dec eax
jne 0x5007c8
mov eax, ecx
xor edx, edx
div dword [ebx + 0xc]
mov eax, edx
pop esi
pop ebx
ret
Function at 0x5007e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebp, edx
mov esi, eax
mov eax, ebp
test eax, eax
je 0x5007f3
sub eax, 4
mov eax, dword [eax]
mov edi, eax
xor ebx, ebx
mov eax, ebp
call fcn.0040b860
mov edx, eax
mov eax, edi
test eax, eax
jle 0x500818
mov ecx, ebx
shl ecx, 5
sub ecx, ebx
movzx ebx, byte [edx]
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x500806
mov eax, ebx
xor edx, edx
div dword [esi + 0xc]
mov eax, edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x500828
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebp, edx
mov esi, eax
mov eax, ebp
test eax, eax
je 0x50083b
sub eax, 4
mov eax, dword [eax]
mov edi, eax
xor ebx, ebx
mov eax, ebp
call fcn.0040b860
mov edx, eax
mov eax, edi
test eax, eax
jle 0x500863
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
xor ecx, ebx
movzx ebx, byte [edx]
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x50084e
mov eax, ebx
xor edx, edx
div dword [esi + 0xc]
mov eax, edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x502c18
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
xor edx, edx
mov dword [esp], edx
lea edx, [eax + 0x250]
xor ecx, ecx
mov dword [edx], ecx
inc dword [esp]
add edx, 4
cmp dword [esp], 8
jb 0x502c28
xor edx, edx
mov dword [esp], edx
jmp 0x502d05
mov ecx, dword [esp]
mov edx, dword [eax + 0x240]
shl ecx, 6
xor ebx, ebx
movzx esi, byte [edx + ecx]
xor edx, edx
jmp 0x502c93
lea edi, [edx + ecx]
mov ebp, dword [eax + 0x240]
inc edx
movzx edi, byte [ebp + edi]
xor edi, esi
mov ebp, dword [eax + 0x240]
or ebx, edi
lea edi, [edx + ecx]
inc edx
movzx edi, byte [ebp + edi]
xor edi, esi
mov ebp, dword [eax + 0x240]
or ebx, edi
lea edi, [edx + ecx]
inc edx
movzx edi, byte [ebp + edi]
xor edi, esi
mov ebp, dword [eax + 0x240]
or ebx, edi
lea edi, [edx + ecx]
movzx edi, byte [ebp + edi]
xor edi, esi
or ebx, edi
inc edx
cmp edx, 0x40
jb 0x502c93
test ebx, ebx
jne 0x502d02
mov ecx, dword [esp]
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov ecx, dword [esp]
shr ecx, 5
or dword [eax + ecx*4 + 0x250], edx
inc dword [esp]
mov edx, dword [esp]
cmp edx, dword [eax + 0xcc]
jb 0x502c42
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x50ec08
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 0x50edc7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040aebc
mov eax, dword [ebp - 4]
call fcn.0050e554
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x50ec5a
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.0040bc80
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.0050f85c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x50ed3b
xor eax, eax
push ebp
push 0x50ed34
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0050e7f4
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.0050edfc
test al, al
je 0x50ed10
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.0040ac1c
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x50ed10
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.0040b860
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.0050e754
test al, al
je 0x50ed0a
mov eax, dword [ebp - 8]
call fcn.0040b860
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0040b8c4
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.0050ec08
dec ebx
cmp ebx, 0xffffffff
jne 0x50ecb9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50ed3b
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0050e7f4
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
cmp byte [0x7ceff8], 0
je 0x50ed7b
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.0040b860
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0050e7e0
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0050e754
mov ebx, eax
jmp 0x50eda2
mov eax, dword [ebp - 4]
call fcn.0040b860
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0050e7e0
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0050e754
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50edce
lea eax, [ebp - 0x3c]
call fcn.0040aa94
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040aaf4
pop eax
jmp eax
Function at 0x50f738
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.0050e56c
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.0040b860
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.0050e754
test al, al
jne 0x50f7a0
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x7c54d0]
mov dl, 1
mov eax, dword [0x50d338]
call fcn.00429b00
call fcn.0040a150
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x50f7ac
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.0040b860
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.0050e754
test al, al
jne 0x50f80d
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x7c56e8]
mov dl, 1
mov eax, dword [0x50d338]
call fcn.00429b00
call fcn.0040a150
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0050e59c
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