joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426c20
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 0x426d74
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x426bc0]
call fcn.0040e7b8
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x426bf0]
call fcn.0040e7b8
add esp, 4
mov bl, 0
mov dl, 1
mov eax, esi
call fcn.00426f10
test al, al
jne 0x426c96
mov dl, 1
mov eax, esi
call fcn.00426e78
test al, al
je 0x426d20
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.004275dc
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.0042ec1c
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.0040bfcc
mov edi, eax
push edi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x426d1b
test byte [ebp - 0x14], 1
je 0x426ce6
or bl, 1
test byte [ebp - 0x14], 2
je 0x426cef
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x426cf8
or bl, 0x20
push edi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x426d0c
dec eax
je 0x426d11
dec eax
je 0x426d16
dec eax
jne 0x426d38
or bl, 0x10
jmp 0x426d38
or bl, 4
jmp 0x426d38
or bl, 8
jmp 0x426d38
call fcn.0042fc88
push esi
mov ecx, dword [0x68f270]
mov dl, 1
mov eax, dword [0x41f7cc]
call fcn.0042dc80
call fcn.0040a9e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426d7b
lea eax, [ebp - 0x1c]
call fcn.0040b324
lea eax, [ebp - 0xc]
mov edx, dword [0x426bf0]
call fcn.0040e8dc
lea eax, [ebp - 8]
mov edx, dword [0x426bc0]
call fcn.0040e8dc
lea eax, [ebp - 4]
call fcn.0040b324
pop eax
jmp eax

Function at 0x426e78
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.0040bfcc
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x426ee2
test ah, 4
je 0x426edb
test bl, bl
jne 0x426ea0
mov al, 1
jmp 0x426f09
test al, 0x10
je 0x426ea8
xor eax, eax
jmp 0x426f09
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x426ecc
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x426f09
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x426f09
test al, 0x10
sete al
jmp 0x426f09
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x426f03
cmp ebx, 3
je 0x426f03
cmp ebx, 0x7b
je 0x426f03
mov eax, esi
call fcn.00426e38
test al, al
jne 0x426f07
xor eax, eax
jmp 0x426f09
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x426f10
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.0040bfcc
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x426fae
test esi, 0x400
jne 0x426f45
test esi, 0x10
setne bl
jmp 0x426fae
cmp byte [esp], 0
je 0x426f79
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x426fae
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x426fae
test esi, 0x10
je 0x426f85
mov bl, 1
jmp 0x426fae
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x426fac
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x426fae
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4270b8
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42718d
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040b75c
cmp byte [ebp - 9], 0
je 0x427149
mov eax, ebx
call fcn.0040bfcc
push eax
call sub.kernel32.dll_GetFileAttributesW
test ah, 4
je 0x427149
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0042584c
test al, al
je 0x427149
mov eax, dword [ebp - 8]
call fcn.004276ec
test al, al
je 0x42713e
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0042749c
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0042ec1c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.0040c230
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040b75c
push edi
mov eax, dword [ebp - 4]
call fcn.0040bfcc
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x427163
call sub.kernel32.dll_GetLastError
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427194
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040b384
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040b384
pop eax
jmp eax

Function at 0x4272cc
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.0040bfcc
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x427321
call sub.kernel32.dll_GetLastError
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42731b
test ah, 4
je 0x42731b
test al, 0x10
je 0x42731b
mov eax, esi
call fcn.0040bfcc
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x427321
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42bf80
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 0x42bfb9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040b4bc
jmp 0x42bfc2
mov eax, ebx
mov edx, esi
call fcn.0040b714
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42bfcc
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 0x42bff0
movzx eax, word [esp]
jmp 0x42bff2
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x42d61c
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 0x42d743
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042d424
mov esi, eax
mov eax, dword [0x68f184]
cmp byte [eax], 0
je 0x42d6e9
mov eax, dword [0x68ee5c]
call fcn.004083d4
call fcn.00407484
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 [0x42d5ec]
call fcn.0040e7b8
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 0x42d75c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x42d725
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x68ede0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x693634]
call fcn.0040f0a0
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 0x42d74a
lea eax, [ebp - 4]
mov edx, dword [0x42d5ec]
call fcn.0040e8dc
pop eax
jmp eax
Function at 0x42fad0
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.0040b840
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00411ad8
mov edi, eax
cmp edi, 0x104
jbe 0x42fa7b
mov eax, edi
add eax, eax
call fcn.004072c0
mov esi, eax
jmp 0x42fa7d
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00411ad8
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42fab6
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 0x42faa0
mov eax, esp
cmp esi, eax
je 0x42fac3
mov eax, esi
call fcn.004072dc
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 0x42fafc
cmp bl, 0
je 0x42faf8
cmp bl, 0x41
jl 0x42faf3
cmp bl, 0x5a
jg 0x42faf3
or bl, 0x20
xor al, bl
inc esi
jmp 0x42fad7
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42fa3c

Function at 0x4303d0
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.0040b324
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.0040bfcc
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x430415
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.0040b4bc
jmp 0x43042e
mov edx, ebx
dec edx
mov eax, esi
call fcn.0040c158
push ebx
mov eax, dword [esi]
call fcn.0040bfcc
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x430ec8
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 0x430ee8
sub eax, 4
mov eax, dword [eax]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x430f02
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x430efd
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x430f07
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x430f75
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x430fbe
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x430f33
inc dword [ebp - 0xc]
jmp 0x430f4b
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x430f4b
cmp dword [ebp - 0xc], 0
jle 0x430f4b
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x430f6d
xor eax, eax
jmp 0x430f69
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x430f68
mov eax, esi
jmp 0x430fc1
inc eax
cmp eax, ecx
jle 0x430f55
inc esi
cmp esi, dword [ebp - 8]
jl 0x430f1f
jmp 0x430fbe
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x430fbe
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x430f96
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x430fb8
xor eax, eax
jmp 0x430fb4
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x430fb3
mov eax, esi
jmp 0x430fc1
inc eax
cmp eax, ecx
jle 0x430fa0
inc esi
cmp esi, dword [ebp - 8]
jl 0x430f7e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x431374
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 0x431393
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x4313a3
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 0x4314c5
test ebx, ebx
jl 0x4314c5
test esi, esi
jle 0x4314c5
mov eax, dword [ebp - 8]
call fcn.0040bfcc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040bfcc
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 0x431462
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x4314c5
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x431447
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x431416
inc dword [ebp - 0x14]
jmp 0x431426
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x431426
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x431431
or eax, 0xffffffff
jmp 0x431447
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x431444
inc eax
jmp 0x431447
or eax, 0xffffffff
test eax, eax
jl 0x43144f
cmp esi, eax
jg 0x431404
cmp esi, eax
jg 0x43145a
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x4314c8
inc edx
dec dword [ebp - 0x1c]
jne 0x431400
jmp 0x4314c5
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x4314c5
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x4314ac
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x43148b
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x431496
or eax, 0xffffffff
jmp 0x4314ac
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x4314a9
inc eax
jmp 0x4314ac
or eax, 0xffffffff
test eax, eax
jl 0x4314b4
cmp esi, eax
jg 0x431474
cmp esi, eax
jg 0x4314bf
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x4314c8
inc edx
dec dword [ebp - 0x1c]
jne 0x431470
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

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

Disassembly:
push ebx
add edx, eax
cmp edx, eax
jbe 0x442ba3
movzx ebx, byte [eax]
xor ecx, ebx
imul ecx, ecx, 0x1000193
inc eax
cmp edx, eax
ja 0x442b93
mov eax, ecx
pop ebx
ret
Function at 0x4a83e0
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
or dl, byte [ebx + 0xd]
je 0x4a8423
cmp byte [ebx + 0x11], 0
jne 0x4a8423
cmp byte [ebx + 0x24], 0
jne 0x4a8423
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 0x4a843a
mov ecx, dword [0x68f114]
mov dl, 1
mov eax, dword [0x47f994]
call fcn.0042d82c
call fcn.0040a9e0
pop ebx
ret
mov ecx, dword [0x68f114]
mov dl, 1
mov eax, dword [0x47f994]
call fcn.0042d82c
call fcn.0040a9e0
pop ebx
ret

Function at 0x4a8b74
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 0x4a8bc2
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.004a828c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a8bdb
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4bcf3c
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
push eax
add esp, 0xfffff004
push eax
add esp, 0xfffff004
push eax
add esp, 0xfffff004
push eax
add esp, 0xfffff004
push eax
add esp, 0xffffffe8
mov esi, ecx
mov ebx, eax
add edx, eax
mov dword [esp + 8], esi
mov dword [esp + 0x10], edx
movzx eax, word [ebx]
mov dword [esp], eax
or eax, eax
je 0x4bd0c8
add ebx, 2
mov eax, dword [esp]
test ah, 0x80
je 0x4bcf9a
and eax, 0x7fff
movzx edx, word [ebx]
shl edx, 0xf
or eax, edx
mov dword [esp], eax
add ebx, 2
lea ebp, [esi - 1]
mov ecx, dword [ebx]
add ebx, 4
mov dword [esp + 0x14], ecx
mov edi, 1
cmp ebx, dword [esp + 0x10]
jae 0x4bd0c8
mov ecx, dword [esp + 0x14]
test ecx, edi
jne 0x4bcfee
mov al, byte [ebx]
inc ebx
mov byte [esi], al
inc esi
cmp ebx, dword [esp + 0x10]
lea eax, [esi - 3]
jae 0x4bd0c8
cmp eax, ebp
jbe 0x4bcfe8
inc ebp
mov eax, dword [ebp]
mov edx, eax
shr eax, 0xc
xor eax, edx
and eax, 0xfff
mov dword [esp + eax*4 + 0x1c], ebp
add edi, edi
jne 0x4bcfb9
jmp 0x4bcf9d
movzx edx, word [ebx]
add ebx, 2
mov eax, edx
and edx, 0xf
add edx, 2
shr eax, 4
cmp edx, 2
jne 0x4bd00b
movzx edx, byte [ebx]
inc ebx
add edx, 0x12
mov eax, dword [esp + eax*4 + 0x1c]
mov ecx, esi
mov dword [esp + 0x18], edx
sub ecx, eax
cmp ecx, edx
jl 0x4bd0b6
cmp edx, 0x20
ja 0x4bd058
sub edx, 8
jg 0x4bd035
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
jmp 0x4bd080
fild qword [eax + edx]
fild qword [eax]
cmp edx, 8
jle 0x4bd050
fild qword [eax + 8]
cmp edx, 0x10
jle 0x4bd04d
fild qword [eax + 0x10]
fistp qword [esi + 0x10]
fistp qword [esi + 8]
fistp qword [esi]
fistp qword [esi + edx]
jmp 0x4bd080
push esi
fild qword [eax]
lea eax, [eax + edx - 8]
lea edx, [esi + edx - 8]
fild qword [eax]
push edx
neg edx
and esi, 0xfffffff8
lea edx, [edx + esi + 8]
pop esi
fild qword [eax + edx]
fistp qword [esi + edx]
add edx, 8
jl 0x4bd070
fistp qword [esi]
pop esi
fistp qword [esi]
cmp esi, ebp
jbe 0x4bd09c
inc ebp
mov edx, dword [ebp]
mov eax, edx
shr edx, 0xc
xor eax, edx
and eax, 0xfff
mov dword [esp + eax*4 + 0x1c], ebp
cmp esi, ebp
ja 0x4bd084
add esi, dword [esp + 0x18]
cmp ebx, dword [esp + 0x10]
jae 0x4bd0c8
add edi, edi
lea ebp, [esi - 1]
je 0x4bcf9d
jmp 0x4bcfb5
push ebx
xor ecx, ecx
dec edx
mov bl, byte [eax + ecx]
mov byte [esi + ecx], bl
lea ecx, [ecx + 1]
jne 0x4bd0b9
pop ebx
jmp 0x4bd080
mov eax, dword [esp]
add esp, 0x401c
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4bd0d8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
mov esi, ebx
dec esi
mov eax, dword [edi]
mov dword [ebp - 0xc], eax
add edi, 4
mov dword [ebp - 8], 1
cmp edi, dword [ebp - 4]
jae 0x4bd235
mov eax, dword [ebp - 0xc]
and eax, dword [ebp - 8]
jne 0x4bd14d
movzx eax, byte [edi]
mov byte [ebx], al
inc edi
inc ebx
cmp edi, dword [ebp - 4]
jae 0x4bd235
cmp ebx, dword [ebp + 0xc]
jae 0x4bd235
mov eax, ebx
sub eax, 3
cmp esi, eax
jae 0x4bd142
inc esi
mov eax, dword [esi]
mov edx, eax
shr edx, 0xc
xor eax, edx
and eax, 0xfff
mov edx, dword [ebp + 8]
mov dword [edx + eax*4], esi
shl dword [ebp - 8], 1
cmp dword [ebp - 8], 0
jne 0x4bd103
jmp 0x4bd0eb
movzx eax, word [edi]
add edi, 2
mov edx, 0xf
and edx, eax
add edx, 2
mov dword [ebp - 0x10], edx
shr eax, 4
cmp dword [ebp - 0x10], 2
jne 0x4bd173
movzx edx, byte [edi]
add edx, 0x12
mov dword [ebp - 0x10], edx
inc edi
mov edx, ebx
add edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 0xc]
jb 0x4bd1a6
mov edx, dword [ebp + 8]
mov esi, dword [edx + eax*4]
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 0xc]
sub eax, ebx
add esi, eax
add dword [ebp - 0x14], eax
neg eax
movzx edx, byte [esi + eax]
mov ecx, dword [ebp - 0x14]
mov byte [ecx + eax], dl
inc eax
test eax, eax
jne 0x4bd192
jmp 0x4bd235
cmp dword [ebp - 0x10], 8
jbe 0x4bd1b9
mov edx, dword [ebp + 8]
mov ecx, ebx
sub ecx, dword [edx + eax*4]
cmp ecx, dword [ebp - 0x10]
jae 0x4bd1eb
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x18], eax
add dword [ebp - 0x1c], eax
neg eax
mov edx, dword [ebp - 0x18]
movzx edx, byte [edx + eax]
mov byte [ebp - 0x1d], dl
mov edx, dword [ebp - 0x1c]
movzx ecx, byte [ebp - 0x1d]
mov byte [edx + eax], cl
inc eax
test eax, eax
jne 0x4bd1d0
jmp 0x4bd1fb
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax*4]
mov edx, ebx
mov ecx, dword [ebp - 0x10]
call fcn.00407830
cmp edi, dword [ebp - 4]
jae 0x4bd235
cmp ebx, esi
jbe 0x4bd21d
inc esi
mov eax, dword [esi]
mov edx, eax
shr edx, 0xc
xor eax, edx
and eax, 0xfff
mov edx, dword [ebp + 8]
mov dword [edx + eax*4], esi
cmp ebx, esi
ja 0x4bd204
add ebx, dword [ebp - 0x10]
mov esi, ebx
dec esi
shl dword [ebp - 8], 1
cmp dword [ebp - 8], 0
jne 0x4bd103
jmp 0x4bd0eb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4d2ebc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1018], ebx
mov byte [ebp - 1], cl
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d2fc1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.0040b348
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
mov edi, esi
push edi
mov eax, dword [ebx]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4d2fa6
lea eax, [ebp - 0x1014]
mov edx, dword [ebp - 0xc]
call fcn.004ce214
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1010]
push eax
push 0
push 0
push edi
mov eax, dword [ebx]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4d2f8d
mov eax, dword [ebp - 8]
dec eax
sub eax, 2
jb 0x4d2f48
sub eax, 4
jne 0x4d2f69
movzx eax, byte [0x4d2fd4]
push eax
mov ebx, dword [ebp - 0x1010]
mov eax, ebx
call fcn.004d26ec
mov edx, eax
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.004cf9c0
cmp byte [ebp - 1], 0
je 0x4d2f8d
lea edx, [ebp - 0x1018]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.004d1dac
mov edx, dword [ebp - 0x1018]
mov eax, dword [ebp + 8]
call fcn.0040b7b0
lea edx, [ebp - 0x100c]
mov eax, dword [ebp - 0x1010]
cmp edx, eax
je 0x4d2fa6
test eax, eax
je 0x4d2fa6
call fcn.004072dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d2fc8
lea eax, [ebp - 0x1018]
call fcn.0040b348
pop eax
jmp eax