joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d584
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov eax, str.D9E0ADE5DCBA765F365DDBF7A8E0AA9F03335306CAFBDF88A7A3093B437CAB9BC6FDD1C90C15267CB7FAAD84DFB60632315EB5EEA5F5CADC
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.0041d746
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x41d5b8
push ebx
call fcn.00450ca6
add esp, 4
mov ebx, dword [0x71f2fe]
add ebx, 8
mov dword [ebp - 0x10], ebx
push 0x40
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
push eax
push 1
push dword [0x71f382]
push 0x71f33e
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x41d5f7
push ebx
call fcn.00450ca6
add esp, 4
mov eax, str.DA7DDF26A941AC35C57E853BEA0AEF339C6AC43BBC
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.0041dace
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x41d61b
push ebx
call fcn.00450ca6
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x41d62f
push ebx
call fcn.00450ca6
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00457390
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.004020ae
add esp, 8
cmp eax, 0
mov eax, 0
setne al
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x41d681
push ebx
call fcn.00450ca6
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x41d724
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00457390
add esp, 0x10
mov dword [ebp - 8], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00457390
add esp, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push 1
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x41d704
push 6
call fcn.00450cac
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x41d714
push ebx
call fcn.00450ca6
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x41d724
push ebx
call fcn.00450ca6
add esp, 4
mov eax, 0
jmp 0x41d72e
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x41d73f
push ebx
call fcn.00450ca6
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41ff90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push dword [ebp + 8]
call fcn.00420026
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
push 0x40
push 0x1000
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x41ffe3
push 6
call fcn.00450cac
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x41fff8
add eax, 8
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x420018
push 6
call fcn.00450cac
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x420020
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push esi
mov al, byte [esp + 8]
mov cl, byte [esp + 0xc]
lea edx, [esi + 0x408]
mov byte [esi + 0x40a], cl
mov cl, byte [esp + 0x14]
push ebx
mov byte [edx], al
mov al, byte [esp + 0x14]
mov byte [esi + 0x40b], al
mov al, byte [esp + 0x1c]
mov byte [esi + 0x409], cl
mov cl, byte [esp + 0x20]
mov byte [esi + 0x40c], al
mov al, byte [esp + 0x24]
mov byte [esi + 0x40e], cl
mov cl, byte [esp + 0x28]
mov byte [esi + 0x40f], al
mov eax, dword [edx]
push ebp
lea ebp, [esi + 4]
push edi
mov byte [esi + 0x40d], cl
mov dword [esi + 0x410], eax
mov dword [esi + 0x414], eax
mov ecx, 0x80
xor eax, eax
mov edi, ebp
mov dword [esi + 0x418], 1
mov dword [esi], 0x10317e4
mov dword [esp + 0x18], 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov al, byte [ecx + 1]
xor edi, edi
mov byte [esp + 0x14], al
mov byte [edi + ebp], al
mov eax, dword [esp + 0x14]
xor edx, edx
and eax, 0xff
mov dl, byte [ecx]
xor ebx, ebx
imul edx, eax
mov bl, byte [ecx + 2]
add edx, ebx
imul edx, eax
xor eax, eax
mov al, byte [ecx + 3]
add eax, edx
and eax, 0x800000ff
jns 0x4201f8
dec eax
or eax, 0xffffff00
inc eax
inc edi
mov byte [esp + 0x14], al
cmp edi, 0x100
jl 0x4201c6
mov eax, dword [esp + 0x18]
add ecx, 4
add ebp, 0x100
dec eax
mov dword [esp + 0x18], eax
jne 0x4201bd
mov ecx, 0x80
xor eax, eax
lea edi, [esi + 0x204]
rep stosd dword es:[edi], eax
mov ecx, 0xfffffefc
lea eax, [esi + 0x104]
sub ecx, esi
mov edx, dword [eax - 0x100]
mov edi, dword [eax]
xor edx, edi
mov dword [eax + 0x100], edx
mov edx, dword [eax - 0x100]
mov ebp, dword [eax]
add eax, 4
and edx, ebp
mov dword [eax + 0x1fc], edx
lea edx, [ecx + eax]
cmp edx, 0x100
jl 0x420235
xor eax, eax
pop edi
mov word [esi + 0x406], ax
mov word [esi + 0x404], ax
pop ebp
mov eax, esi
pop ebx
pop esi
ret
Function at 0x422c71
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x422cac
push 6
call fcn.00450cac
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.00457b10
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x422d0f
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00457330
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x422d33
push 6
call fcn.00450cac
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.00457b10
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x422d96
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00457330
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x422dba
push 6
call fcn.00450cac
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.00457b10
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x422e1d
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00457330
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x422e25
mov esp, ebp
pop ebp
ret
Function at 0x4272ba
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x427300
push 6
call fcn.00450cac
add esp, 4
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x484377]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.00401142
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.00457350
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x427353
push ebx
call fcn.00450ca6
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x42738c
push 6
call fcn.00450cac
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x4273a8
push eax
mov ebx, eax
call fcn.0040107b
inc eax
push eax
call fcn.00450ca0
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4273ad
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4273be
push ebx
call fcn.00450ca6
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x42f373
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
test ebp, ebp
jle 0x42f3ed
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
mov al, byte [ecx + 0x404]
mov dl, byte [eax + ecx + 4]
mov al, byte [esi + edi]
xor al, dl
mov byte [esi + edi], al
mov dl, al
xor eax, eax
mov al, byte [ecx + 0x404]
mov al, byte [eax + ecx + 0x204]
add al, dl
xor edx, edx
mov byte [esi + edi], al
mov dl, byte [ecx + 0x405]
mov dl, byte [edx + ecx + 0x104]
xor dl, al
xor eax, eax
mov byte [esi + edi], dl
mov al, byte [ecx + 0x405]
mov al, byte [eax + ecx + 0x304]
add al, dl
mov dl, al
shr dl, 4
shl al, 4
or dl, al
mov byte [esi + edi], dl
inc word [ecx + 0x404]
inc esi
cmp esi, ebp
jl 0x42f384
pop edi
pop esi
pop ebp
ret 8
Function at 0x42f4da
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
test ebp, ebp
jle 0x42f55b
push ebx
push edi
mov edi, dword [esp + 0x14]
mov dl, byte [esi + edi]
mov al, dl
shr al, 4
shl dl, 4
or al, dl
xor edx, edx
mov byte [esi + edi], al
mov dl, byte [ecx + 0x407]
mov bl, byte [edx + ecx + 0x304]
xor edx, edx
sub al, bl
mov byte [esi + edi], al
mov dl, byte [ecx + 0x407]
mov dl, byte [edx + ecx + 0x104]
xor dl, al
xor eax, eax
mov byte [esi + edi], dl
mov al, byte [ecx + 0x406]
mov ebx, eax
mov al, dl
mov dl, byte [ebx + ecx + 0x204]
sub al, dl
xor edx, edx
mov byte [esi + edi], al
mov dl, byte [ecx + 0x406]
mov dl, byte [edx + ecx + 4]
xor dl, al
mov byte [esi + edi], dl
inc word [ecx + 0x406]
inc esi
cmp esi, ebp
jl 0x42f4ec
pop edi
pop ebx
pop esi
pop ebp
ret 8
Function at 0x4552b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4754a0
push 0x45e36c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
je 0x455316
mov byte [ebp - 0x3d], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3d]
jmp 0x45539f
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx], 0x4550
je 0x45533d
mov byte [ebp - 0x3e], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3e]
jmp 0x45539f
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
add eax, dword [edx + 0xd8]
cmp dword [ebp + 0xc], eax
jb 0x455378
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
add edx, dword [ecx + 0xd8]
mov eax, dword [ebp - 0x3c]
add edx, dword [eax + 0xdc]
cmp dword [ebp + 0xc], edx
jae 0x455378
mov byte [ebp - 0x3f], 1
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3f]
jmp 0x45539f
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x40]
jmp 0x45539f
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x455440
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x7243f8]
mov dword [ebp - 4], eax
jmp 0x455459
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x455476
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x455450
mov esp, ebp
pop ebp
ret
Function at 0x455480
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x724408], eax
je 0x45549e
mov eax, 0x10dd
jmp 0x455580
mov eax, dword [0x724418]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x45551d
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
xor eax, eax
mov al, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x4554fb
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x10], 0
je 0x4554fb
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
push eax
call fcn.004555f0
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.00469d0b
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x4554a6
mov dword [0x724418], 0
call fcn.00455590
mov ecx, dword [0x724414]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x45556a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00469d0b
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], edx
jmp 0x455535
mov dword [0x724414], 0
mov dword [0x724408], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x455af0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x455b05
xor eax, eax
jmp 0x455b7a
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
add edx, 0x10000
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
jmp 0x455b32
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x38d
jae 0x455b75
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x48
mov eax, dword [ebp - 0x10]
cmp dword [eax + edx + 0x40], 0
je 0x455b73
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x455b6f
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x455b73
xor eax, eax
jmp 0x455b7a
jmp 0x455b29
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x455c30
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x72440c], 0
je 0x455c49
mov eax, dword [0x72440c]
jmp 0x455ce9
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x455c5b
xor eax, eax
jmp 0x455ce9
push 8
call fcn.00469ce2
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x455cb1
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x455c9a
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00469d0b
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x72440c], eax
mov dword [0x724410], 0
mov eax, dword [ebp - 8]
jmp 0x455ce9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x455ccb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x455c7b
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x724414]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x724414], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x456530
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.00456600
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x4565ec
cmp dword [ebp - 4], 0x50000000
jb 0x45656c
cmp dword [ebp - 4], 0x80000000
ja 0x45656c
mov dword [ebp - 4], 0x80010000
jmp 0x456545
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.0045e450
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x456592
jmp 0x4565ec
cmp dword [ebp - 0x10], 0x10000
jne 0x4565d5
cmp dword [ebp - 0x14], 0x10000
jb 0x4565d5
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4565c8
mov eax, dword [ebp - 0x24]
jmp 0x4565ee
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x4565e7
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.00456600
add esp, 4
mov dword [ebp - 4], eax
jmp 0x456545
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x456640
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.00456710
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x456704
cmp dword [ebp - 4], 0x50000000
jb 0x456681
cmp dword [ebp - 4], 0x80000000
ja 0x456681
mov dword [ebp - 4], 0x4fff0000
jmp 0x45665a
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.0045e450
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x4566a7
jmp 0x456704
cmp dword [ebp - 0x10], 0x10000
jne 0x4566ea
cmp dword [ebp - 0x14], 0x10000
jb 0x4566ea
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4566dd
mov eax, dword [ebp - 0x24]
jmp 0x456706
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x4566ff
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.00456710
add esp, 4
mov dword [ebp - 4], eax
jmp 0x45665a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4575e0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x4575fe
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x4575f3
pop esi
ret
Function at 0x4576e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
push eax
call fcn.0045bdb0
mov esi, dword [esp + 0x38]
mov ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ebp
test ebx, ebx
je 0x457830
test ecx, ecx
je 0x457830
inc ecx
push ecx
call fcn.00469ce2
mov ebp, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov edx, ecx
mov esi, edi
mov edi, ebp
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0045e640
mov edi, eax
add esp, 0xc
test edi, edi
je 0x457759
mov byte [edi], 0
inc edi
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x45781d
push 0x400
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x1c], 1
call fcn.00469ce2
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push 0
push edi
push eax
call ebx
test eax, eax
je 0x4577e1
cmp eax, 0xea
jne 0x457809
push esi
call fcn.00469d0b
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00469ce2
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x14]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
jne 0x4577ac
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x4577ef
cmp eax, 2
jne 0x457809
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
call fcn.0045bd20
add esp, 8
mov dword [esp + 0x10], eax
push esi
call fcn.00469d0b
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.00469d0b
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x45785e
mov ebp, eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x45786a
mov edx, dword [esp + 0x40]
test edx, edx
je 0x45786a
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.0045bd20
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x457930
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x28]
sub esp, 0x18
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
cmp eax, 0x80000301
push edi
ja 0x4579b0
je 0x4579a1
cmp eax, 0x80000101
ja 0x45799a
je 0x4579a1
cmp eax, reloc.WS2_32.dll_connect
je 0x45797d
cmp eax, 0x80000005
jne 0x4579c5
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], 3
test eax, eax
je 0x457a0b
mov ebx, dword [eax + 4]
lea ebp, [eax + 8]
jmp 0x457a0b
mov ebp, dword [esp + 0x44]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 1
mov ebx, ecx
inc ebx
jmp 0x457a0b
cmp eax, 0x80000201
jne 0x4579c5
mov ebx, 4
lea ebp, [esp + 0x44]
mov dword [esp + 0xc], ebx
jmp 0x457a0b
cmp eax, 0x80000401
je 0x4579f6
cmp eax, 0x80000501
je 0x4579e2
cmp eax, 0x80000601
je 0x4579ce
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
fld qword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
call fcn.0045e540
jmp 0x457a03
fld dword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
call fcn.0045e540
jmp 0x457a03
mov eax, dword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
lea ebp, [esp + 0x10]
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0045bdb0
mov edi, dword [esp + 0x3c]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [esp + 0x20], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], 0
test edx, edx
je 0x457ae6
test ecx, ecx
je 0x457ae6
inc ecx
push esi
push ecx
call fcn.00469ce2
mov edi, dword [esp + 0x40]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x2c], edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0045e640
mov esi, eax
add esp, 0xc
test esi, esi
je 0x457a88
mov byte [esi], 0
inc esi
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push 0
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x457adc
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ebx
push ebp
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x457ad1
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.00469d0b
add esp, 4
pop esi
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x457b00
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret