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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push edi
push 0x98
push 0
lea eax, [esi + 0x110]
mov dword [ebp - 8], esi
push eax
call sub.msvcrt.dll_memset
mov eax, dword [esi + 0x30]
add esp, 0xc
add eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x40], eax
mov dword [esi + 0x2c], 0
lea edi, [eax + ecx]
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
shr edx, 3
imul eax, edx, 0x54
mov edx, edi
sub edx, eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x44], edx
mov dword [esi + 0xc], eax
cmp eax, 0xc
jb 0x429d30
mov eax, 0xc
not eax
mov dword [esi + 0x14], 0
lea ecx, [edi - 0xc]
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
lea eax, [edx + 0x600]
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x38], eax
lea eax, [edx + 2]
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [ecx], 0x1010100
mov dword [ecx + 4], edx
mov dword [ecx + 8], 0
xor ecx, ecx
jmp 0x429d70
mov byte [eax - 2], cl
lea eax, [eax + 6]
xor edx, edx
mov byte [eax - 7], 1
inc ecx
mov dword [eax - 6], edx
cmp ecx, 0x100
jb 0x429d70
lea eax, [esi + 0x9fc]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
mov esi, eax
xor edi, edi
jmp 0x429da0
movzx eax, word [edi + 0x451b40]
lea ecx, [ebx + 2]
xor edx, edx
div ecx
mov ecx, 0x4000
sub ecx, eax
xor eax, eax
movzx ecx, cx
lea ebx, [ebx]
mov word [esi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x429dc0
add edi, 2
add esi, 2
cmp edi, 0x10
jb 0x429da0
mov eax, dword [ebp - 4]
inc ebx
sub eax, 0xffffff80
mov dword [ebp - 4], eax
cmp ebx, 0x80
jb 0x429d94
mov edi, dword [ebp - 8]
mov edx, 0x50
pop ebx
lea esi, [edi + 0x3bc]
jmp 0x429e00
mov eax, esi
mov ecx, 0x10
jmp 0x429e10
mov word [eax], dx
lea eax, [eax + 4]
mov word [eax - 2], 0x403
sub ecx, 1
jne 0x429e10
add edx, 0x28
add esi, 0x40
cmp edx, 0x438
jb 0x429e00
mov dword [edi + 0x3b8], 0x40070000
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42ba20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f4ec
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x45c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebx + 8], 0
xor eax, eax
mov dword [ebx + 0xc], 0x10
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x70], eax
mov dword [ebp - 4], eax
push 0x34
mov dword [ebx], vtable.NCrypto::N7z::CDecoder.1.0
mov dword [ebx + 4], vtable.NCrypto::N7z::CDecoder.0
mov dword [ebx + 0x74], vtable.NCrypto::N7z::CDecoder.2.0
call fcn.00449b08
mov edi, eax
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 1
mov dword [edi + 8], 0
push pe_nt_image_headers32
mov dword [edi], vtable.NCrypto::CAesCoder.0
mov dword [edi + 4], vtable.NCrypto::CAesCoder.1.0
mov byte [edi + 0xc], 0
mov dword [edi + 0x10], 0x20
push 0x451b60
mov dword [edi + 0x20], 0
call fcn.0042c120
add esp, 0xc
mov dword [edi + 0x20], eax
test eax, eax
je 0x42bb7f
xor eax, eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
mov eax, dword [0x45fc7c]
mov dword [edi], vtable.NCrypto::CAesCbcDecoder.0
mov dword [edi + 4], vtable.NCrypto::CAesCbcDecoder.1.0
mov dword [edi + 0x1c], 0x438ad0
mov dword [edi + 0x18], eax
mov byte [ebp - 4], 0
mov esi, dword [method.NArchive::NSplit::CHandler.1.virtual_4]
mov ecx, esi
push edi
call dword [0x4502ac]
call esi
mov ecx, dword [ebx + 0x70]
test ecx, ecx
je 0x42bb68
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4502ac]
call esi
mov dword [ebx + 0x70], edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x45aa6c
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 1
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x4429b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, edx
mov dword [ebp - 4], eax
and edi, 0x1f
mov dword [ebp - 8], edi
cmp edi, 8
jb 0x442ad6
mov ecx, edi
shr ecx, 3
cmp dword [ebp + 0x10], 1
jne 0x442a55
mov dword [ebp - 8], ecx
push 0xc2b2ae3d
push 0x27d4eb4f
push dword [eax + 4]
push dword [eax]
call fcn.0044bd30
add dword [ebp - 4], 8
mov ecx, eax
push 0x9e3779b1
shld ecx, edx, 0x1f
shld edx, eax, 0x1f
push 0x85ebca87
push edx
push ecx
call fcn.0044bd30
mov ecx, eax
xor edx, esi
xor ecx, ebx
mov eax, ecx
push 0x9e3779b1
shld eax, edx, 0x1b
shld edx, ecx, 0x1b
push 0x85ebca87
push edx
push eax
call fcn.0044bd30
mov ebx, eax
mov esi, edx
mov eax, dword [ebp - 4]
add ebx, 0xc2b2ae63
adc esi, 0x85ebca77
sub edi, 8
sub dword [ebp - 8], 1
jne 0x4429e3
jmp 0x442ad0
mov dword [ebp - 8], ecx
jmp 0x442a60
push 0xc2b2ae3d
push 0x27d4eb4f
push dword [eax + 4]
push dword [eax]
call fcn.0044bd30
add dword [ebp - 4], 8
mov ecx, eax
push 0x9e3779b1
shld ecx, edx, 0x1f
shld edx, eax, 0x1f
push 0x85ebca87
push edx
push ecx
call fcn.0044bd30
mov ecx, eax
xor edx, esi
xor ecx, ebx
mov eax, ecx
push 0x9e3779b1
shld eax, edx, 0x1b
shld edx, ecx, 0x1b
push 0x85ebca87
push edx
push eax
call fcn.0044bd30
mov ebx, eax
mov esi, edx
mov eax, dword [ebp - 4]
add ebx, 0xc2b2ae63
adc esi, 0x85ebca77
sub edi, 8
sub dword [ebp - 8], 1
jne 0x442a60
mov eax, dword [ebp - 4]
mov dword [ebp - 8], edi
mov ecx, eax
cmp edi, 4
jb 0x442b2d
add eax, 4
mov dword [ebp - 4], eax
mov eax, 0x9e3779b1
mul dword [ecx]
push 0xc2b2ae3d
mov edi, eax
mov eax, 0x85ebca87
mul dword [ecx]
push 0x27d4eb4f
add edi, edx
xor eax, ebx
xor edi, esi
mov ecx, eax
shld ecx, edi, 0x17
shld edi, eax, 0x17
push edi
push ecx
call fcn.0044bd30
mov edi, dword [ebp - 8]
mov ebx, eax
mov eax, dword [ebp - 4]
add ebx, 0x9e3779f9
mov esi, edx
adc esi, 0x165667b1
sub edi, 4
test edi, edi
je 0x442b74
movzx eax, byte [eax]
push 0x27d4eb2f
cdq
push 0x165667c5
push edx
push eax
call fcn.0044bd30
inc dword [ebp - 4]
xor ebx, eax
xor esi, edx
mov eax, ebx
push 0x9e3779b1
shld eax, esi, 0xb
push 0x85ebca87
shld esi, ebx, 0xb
push esi
push eax
call fcn.0044bd30
mov ebx, eax
mov eax, dword [ebp - 4]
mov esi, edx
sub edi, 1
jne 0x442b31
push 0xc2b2ae3d
xor ecx, ecx
mov edx, esi
push 0x27d4eb4f
shr edx, 1
xor ecx, esi
xor edx, ebx
push ecx
push edx
call fcn.0044bd30
mov esi, eax
mov ecx, edx
shrd esi, ecx, 0x1d
push 0x165667b1
shr ecx, 0x1d
xor esi, eax
push 0x9e3779f9
xor ecx, edx
push ecx
push esi
call fcn.0044bd30
mov ecx, edx
xor esi, esi
pop edi
xor eax, ecx
xor edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x448960
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
movzx eax, byte [ebx + 9]
push eax
lea ecx, [esi + 0x44]
mov dword [ebp - 4], esi
call fcn.00409720
movzx eax, byte [ebx + 8]
lea ecx, [esi + 0x50]
push eax
call fcn.00409720
lea ecx, [esi + 0x74]
call fcn.00403240
push 0x88
call fcn.00449b08
push 0x88
mov edi, eax
push 0
push edi
mov dword [ebp - 8], edi
call sub.msvcrt.dll_memset
mov dword [edi + 0x18], 0
add esp, 0x10
mov dword [edi + 0x1c], 0
mov byte [edi + 0x24], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi], vtable.NCoderMixer2::CCoderMT.0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov byte [edi + 0x68], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
mov ecx, dword [esi + 0x78]
lea eax, [ecx + 1]
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0x74]
mov dword [eax + ecx*4], edi
mov eax, dword [ebx + 0xc]
mov dword [edi + 0x20], eax
mov ebx, dword [ebx]
test ebx, ebx
je 0x448a92
mov eax, dword [ebx]
push ebx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4502ac]
call esi
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x448aa9
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4502ac]
call esi
mov dword [edi + 0x18], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx + 4]
test ebx, ebx
je 0x448ac6
mov eax, dword [ebx]
push ebx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4502ac]
call esi
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x448add
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4502ac]
call esi
mov eax, dword [ebp - 4]
mov dword [edi + 0x1c], ebx
mov al, byte [eax + 0x5c]
mov byte [edi + 0x68], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44a741
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44a780
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44a780
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44a780
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44a780
cmp dword [ecx + 0x74], 0xe
jbe 0x44a780
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x44acd0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x45c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x44acf7
mov ecx, 5
int 0x29
push 2
call fcn.0044a7e6
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x44ae02
test esi, esi
jne 0x44ae02
push 2
call fcn.0044a7e6
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00449a40
mov esp, ebp
pop ebp
ret

Function at 0x44b030
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.00410670
mov esi, dword [ebp + 8]
test al, al
je 0x44b04e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.0044b060
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x44b190
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44b1ec
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44b1ec
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44b1ec
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44b1ec
cmp dword [ecx + 0x74], 0xe
jbe 0x44b1ec
cmp dword [ecx + 0xe8], 0
je 0x44b1ec
push dword [ebp + 8]
call fcn.0044b060
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x45d3ec
call fcn.0044ae40
add esp, 8
cmp dword [ebp - 8], 0
jne 0x44b221
push dword [ebp + 8]
call fcn.0044b030
mov esp, ebp
pop ebp
ret

Function at 0x44b260
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44b2bc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44b2bc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44b2bc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44b2bc
cmp dword [ecx + 0x74], 0xe
jbe 0x44b2bc
cmp dword [ecx + 0xe8], 0
je 0x44b2bc
push dword [ebp + 8]
call fcn.0044b060
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x45d3ec
call fcn.0044ae40
add esp, 8
cmp dword [ebp - 8], 0
jne 0x44b2f1
push dword [ebp + 8]
call fcn.0044b030
mov esp, ebp
pop ebp
ret

Function at 0x44b970
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60000
jae 0x44b99a
mov eax, 2
pop ebp
ret
push esi
call fcn.0044ab90
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x70]
mov ecx, edx
and cl, 2
movzx ecx, cl
neg ecx
sbb ecx, ecx
inc eax
cmp eax, 3
ja case.default.0x44b9ba
jmp dword [eax*4 + 0x44b9f0]
or edx, 2
lea eax, [ecx + 2]
mov dword [esi + 0x70], edx
pop esi
pop ebp
ret
and edx, 0xfffffffd
mov dword [esi + 0x70], edx
lea eax, [ecx + 2]
pop esi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.0044ac90
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x403093
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [edi - 0x4b4]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov dword [eax + edi - 0x4b4], 0x4b1858
mov eax, dword [ecx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x4b4]
mov dword [edx + edi - 0x4b8], eax
mov eax, dword [edi - 0x3cc]
test eax, eax
jne 0x475078
xor ebx, ebx
push ebx
push ebx
push ebx
push 0x4aef0c
call dword [0x48d7a8]
mov esi, ebx
cmp dword [edi - 0x2e8], ebx
ja 0x403292
cmp dword [edi - 0x318], ebx
ja 0x475084
lea ebx, [edi - 0x4b4]
mov ecx, ebx
call fcn.00403025
xor esi, esi
cmp dword [edi - 0x308], esi
ja 0x4750e8
xor esi, esi
cmp dword [edi - 0x2f8], esi
ja 0x47510c
lea esi, [edi - 0x2dc]
mov ecx, esi
call fcn.00412c20
mov eax, dword [edi - 0x2ec]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
test eax, eax
je 0x4032c4
push dword [eax]
push dword [0x4c10e8]
call dword [0x48d5cc]
mov eax, dword [edi - 0x2ec]
mov eax, dword [eax + esi*4]
mov ecx, dword [eax]
test ecx, ecx
je 0x4032c4
push ecx
call fcn.0041ecf0
inc esi
cmp esi, dword [edi - 0x2e8]
jae 0x4030f0
jmp 0x403292
loop 0x4045b5
add byte [eax], al
add byte [ecx + 0x56891046], cl
adc al, 0x5e
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
pop esi
ret
inc ebp
cld
jmp 0x4045b2
adc byte [esi - 0x75], dl
xor dword [edi - 0x73], edx
jge 0x475084
xor al, al
jmp 0x5099e9a3
mov esi, dword [ecx + 0x10]
push ecx
call fcn.0043f828
mov ecx, esi
test esi, esi
jne 0x4750e4
pop esi
ret
adc byte [ecx - 0x18], dl
cmpsb byte [esi], byte es:[edi]
jne 0x475108
dec dword [ebx + 0x75f685ce]
int1
pop esi
ret
Function at 0x408e6e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, ecx
push ebx
mov dword [ebp - 0x24], edx
mov edx, dword [ebp + 0x10]
push esi
mov esi, dword [eax]
xor ecx, ecx
inc ecx
shr edx, 0xb
push edi
movzx edi, word [esi + 2]
add ah, byte [ebx]
sal dword [ebx], 1
fild dword [ebx + 0x458904c6]
loopne 0x408e1f
dec ebp
in al, dx
mov dword [ebp - 4], edx
test edx, edx
je 0x408eb1
mov eax, edi
and eax, 0xfc00
add ah, bh
add byte [eax], al
cmp eax, 0xd800
je 0x47e909
sub esi, 2
mov dword [ebp - 0x10], esi
test edi, edi
je 0x408f11
lea eax, [edi - 0x30]
cmp eax, 0x4a
ja 0x408eef
lea eax, [edi - 0x30]
mov dword [ebp - 0x18], 0x7b
movsx ecx, word [eax*2 + 0x49e488]
mov ah, ah
dec ecx
add byte [ecx - 0x367a1bb3], cl
jg 0x408f0d
je 0x47e92a
mov ebx, ecx
neg ebx
cmp ebx, 0xc
je 0x47ef2f
test dword [ebp + 0x10], 0x20000000
jne 0x47ef5a
mov eax, dword [ebp - 0x20]
mov dword [eax], esi
mov eax, dword [ebp - 0x24]
mov dword [eax], edi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
mov edi, ecx
jmp 0x408eef
mov eax, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x408eef
mov dword [ecx + 2], eax
inc edi
add byte [esi - 0x7d], ah
push es
or ecx, ebp
mov bh, 0xa4
clc
mov ebp, dword [edx + 8]
jmp 0x47e93b
pop eax
add word [esi], ax
jmp 0x8c408dec
jne 0x47ee13
or bh, al
add byte [edx], ah
or ecx, dword [ecx - 0x5e4b1700]
clc
sbb byte [ebp - 0x537bf02e], al
mov eax, dword [0x878d18f8]
add byte [eax], ch
invalid
test edx, edx
je 0x19408f8e
lea eax, [edi - 0xd800]
cmp eax, 0x240207ff
ja 0x9408f8e
jne 0x47ee3a
or bh, al
add byte [ecx + 0xb], cl
mov dword [eax], eax
jmp 0x9408f8e
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
movzx eax, word [eax]
inc ebp
in al, 0xf
mov bh, 0
inc ecx
cmp ax, dx
ja 0x19408f8e
test byte [eax + 0x4b5f10], 8
je 0x9408f8e
jne 0x47eea6
in al, 0xf
mov bh, 6
mov dword [ebp - 0x14], eax
cmp eax, 0x61
popal
jb 0x47ee43
sub eax, 0x20
mov dword [ebp - 0x14], eax
cmp eax, 0x41
sbb eax, eax
and eax, 0xfffffff9
shl edi, 4
add eax, 0x37
sub edi, eax
add edi, dword [ebp - 0x14]
cmp ecx, 2
jl 0x47ee0f
jmp 0x408f8e
movzx eax, word [esi + 6]
cmp ax, dx
ja 0x19408f8e
test byte [eax + 0x4b5f10], 8
je 0x408f8e
movzx eax, word [esi + 8]
cmp ax, dx
ja 0x19408f8e
test byte [eax + 0x4b5f10], 8
je 0x19408f8e
push 4
mov edi, ebx
pop edx
cmp dword [esi + 2], 0x7b
je 0x47ef43
mov eax, dword [ebp + 8]
mov dword [eax], 0x890b51
jmp 0x19408f8e
add esi, 4
push 0x30
movzx eax, word [esi]
pop ecx
mov edi, ebx
cmp ax, cx
jb 0x47ef8f
push 0x37
pop edx
cmp ax, dx
ja 0x47ef8c
xor dword [ebx - 0x48f0fd3a], eax
rol byte [ebp + 0x3b0475ff], 0xc1
add esi, 2
movzx eax, ax
test edi, edi
jne 0x47ef69
cmp eax, ecx
je 0x47ef84
add eax, 0xffffffd0
lea edi, [eax + edi*8]
mov eax, dword [ebp - 4]
neg eax
sbb eax, eax
and eax, 0xf7c24
add eax, 0x7c2408ba
cmp edi, eax
ja 0x47efb3
movzx eax, word [esi]
cmp ax, cx
jae 0x47ef56
add al, 0x55
cld
cmp word [esi], 0x7d
je 0x47edda
sti
inc ebp
or bh, al
add byte [eax - 0x71], dl
add ah, byte [ecx + ebp*8]
out 0x9f, eax
clc
jmp dword [esi + 0x3b]
cmp ax, dx
ja 0x47edcc
add esi, 2
movzx eax, word [esi]
cmp ax, cx
jae 0x47efa7
jmp 0x47edcc
Function at 0x40de6b
Capabilities:
Encode data using xor

Disassembly:
add al, 0
mov dword [esi + 4], ebx
mov byte [esi + 9], 0
pop ebx
dec dword [esi]
Function at 0x403ef0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
push esi
mov esi, ecx
push eax
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40404b
mov eax, dword [esp + 0x14]
dec eax
je 0x403fa9
dec eax
jne 0x40404b
mov eax, dword [esp + 8]
mov dword [esi + 0xc0], 1
sub eax, 3
je 0x403f9c
dec eax
je 0x403f8f
dec eax
je 0x403f4c
mov eax, 0x63
pop esi
add esp, 0x94
ret
mov eax, dword [esp + 0xc]
sub eax, 0
je 0x403f82
dec eax
je 0x403f75
dec eax
je 0x403f68
mov eax, 0x63
pop esi
add esp, 0x94
ret
mov eax, 0xc
pop esi
add esp, 0x94
ret
mov eax, 0xb
pop esi
add esp, 0x94
ret
mov eax, 0xa
pop esi
add esp, 0x94
ret
mov eax, 9
pop esi
add esp, 0x94
ret
mov eax, 4
pop esi
add esp, 0x94
ret
cmp dword [esp + 8], 4
jne 0x40404b
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x403fea
mov eax, dword [esp + 0x10]
cmp eax, 0x3b6
jne 0x403fd4
mov eax, 1
pop esi
add esp, 0x94
ret
jbe 0x403fc7
cmp eax, 0x438
ja 0x403fc7
mov eax, 2
pop esi
add esp, 0x94
ret
cmp eax, 0xa
jae 0x403ffc
mov eax, 3
pop esi
add esp, 0x94
ret
jne 0x404039
mov eax, dword [esp + 0x10]
cmp eax, 0x7ce
jne 0x404016
mov eax, 5
pop esi
add esp, 0x94
ret
jbe 0x40402c
cmp eax, 0x887
jae 0x40402c
mov eax, 6
pop esi
add esp, 0x94
ret
mov eax, 7
pop esi
add esp, 0x94
ret
cmp eax, 0x5a
jne 0x40404b
mov eax, 8
pop esi
add esp, 0x94
ret
xor eax, eax
pop esi
add esp, 0x94
ret

Function at 0x4042d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0x14]
inc eax
push esi
mov esi, ecx
push eax
mov byte [ebp], 0
mov dword [esp + 0x1c], 0
call fcn.00421599
mov edx, dword [esp + 0x18]
add esp, 4
lea ecx, [esp + 0x18]
mov ebx, eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00404290
test eax, eax
jne 0x40439c
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
inc ecx
mov dword [esp + 0x14], 1
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push ebx
push edx
push eax
mov eax, dword [esp + 0x30]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x18]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x404388
test esi, esi
jne 0x404388
cmp byte [ebx], 0
je 0x404388
dec eax
push edi
mov dword [esp + 0x20], eax
mov edi, ebx
mov byte [ebx + eax], 0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
call fcn.004215c2
add esp, 4
mov eax, 1
pop esi
pop ebp
pop ebx
ret 0x14
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x14