joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa9d68c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0xb0d578]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0xa9d6cf
cmp word [esi], dx
jne 0xa9d6cf
or byte [edi + eax + 0x28], 4
jmp 0xa9d6d4
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0xa9d80d
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0xa9d7ed
add eax, 2
cmp cx, word [ebp - 0xc]
je 0xa9d716
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0xa9d74c
cmp eax, edx
jae 0xa9d758
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0xa9d6ee
jmp 0xa9d80d
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0xa9d7e9
cmp dword [ebp - 0x14], 0
je 0xa9d7e9
mov eax, dword [ebx*4 + 0xb0d578]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0xa9d7c1
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0xa9d807
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0xb0d578]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0xb0d578]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0xb0d578]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0xa9d80a
pop ebx
cmp word [ebp - 4], bx
jne 0xa9d7d2
cmp esi, dword [ebp + 0xc]
jne 0xa9d7d2
mov word [esi], bx
jmp 0xa9d80a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00a93bb7
add esp, 0x10
cmp word [ebp - 4], bx
je 0xa9d80d
push 0xd
jmp 0xa9d806
mov ecx, dword [ebx*4 + 0xb0d578]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0xa9d804
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0xa9d80d
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0xa9e02e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a9de9f
Function at 0xa9f0aa
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00a9f026
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0xa9f222
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0xa9f222
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0xa9f1d1
jg 0xa9f103
test eax, eax
je 0xa9f1c7
push 1
push 0x1000
call fcn.00a88e6e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0xa9f129
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0xa9f1be
push 0x8000
push ebx
call fcn.00a8752d
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0xa9f155
jg 0xa9f150
cmp ecx, 0x1000
jb 0xa9f155
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00a9e926
add esp, 0x10
cmp eax, 0xffffffff
je 0xa9f19a
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0xa9f150
jl 0xa9f181
test ecx, ecx
jne 0xa9f142
push dword [ebp - 0xc]
push ebx
call fcn.00a8752d
push esi
call fcn.00a89b95
add esp, 0xc
xor edi, edi
jmp 0xa9f233
cmp byte [edi + 0x24], 0
je 0xa9f1b1
cmp dword [edi + 0x20], 5
jne 0xa9f1b1
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0xa9f1bc
mov edi, dword [edi + 0x18]
jmp 0xa9f1be
xor edi, edi
push esi
call fcn.00a89b95
pop ecx
jmp 0xa9f233
test ecx, ecx
jg 0xa9f193
jl 0xa9f1d1
test eax, eax
jae 0xa9f193
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00a93bb7
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0xa9f1f4
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0xa9f193
jmp 0xa9f22b
push ebx
call fcn.00a983d9
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0xa9f193
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0xa9f233
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0xa9f230
mov edi, dword [edi + 0x18]
jmp 0xa9f233
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00a93bb7
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0xaa502f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x407320
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40732f
pop dword [ebp - 0x44]
mov eax, 0x6421e0ba
add eax, 0x9c1e9275
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x37dcc
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0xb8931a35
add ecx, 0x476d2818
xor ebx, ebx
add ebx, eax
mov edi, 0x8e289ab9
sub edi, 0x8de75ef5
add edi, dword [ebp - 0x44]
mov edx, 0xbdf3be57
add edx, 0x7da36a11
add dword [ebp - 0x14], ebx
mov esi, dword [edi]
add dword [ebp - 0x30], 0x88910a2a
xor esi, edx
add dword [ebp - 4], 0x2eb8c33f
mov dword [ebx], esi
sub dword [ebp - 0x18], esi
add ebx, 0xc6bdfeea
sub ebx, 0xc6bdfee6
add edi, 4
loop 0x40738b
add eax, 0xfc07
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x402c30
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x4054ee
push 0x405502
push 9
push 0x405514
push 0x4051aa
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x14
mov dword [ebp - 4], 0
push 0x1bc
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x402c7d
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x6f
jge 0x402c9a
mov eax, dword [ebp - 4]
cdq
mov ecx, 0x6f
idiv ecx
mov eax, dword [ebp - 8]
mov dword [eax + edx*4], 0
jmp 0x402c74
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x402cb0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x40553e
push 0x405554
push 0x8f
push 0x405514
push 0x4051aa
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x14
mov dword [ebp - 4], 0
push 0x1bc
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x402d00
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x6f
jge 0x402d1d
mov eax, dword [ebp - 4]
cdq
mov ecx, 0x6f
idiv ecx
mov eax, dword [ebp - 8]
mov dword [eax + edx*4], 0
jmp 0x402cf7
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x402e80
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x40551c
push 0x40552e
push 0x77
push 0x405514
push 0x4051aa
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x14
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x402ec4
or eax, 0xffffffff
jmp 0x402f1b
mov dword [ebp - 4], 0
jmp 0x402ed6
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x6f
jge 0x402f0d
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x402f0b
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1c]
mov dword [ebp - 8], eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x402ee8
jmp 0x402ecd
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x402f30
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x405568
push 0x40557c
push 0xf2
push 0x405514
push 0x4051aa
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x14
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x402f77
or eax, 0xffffffff
jmp 0x402fd1
mov dword [ebp - 4], 0
jmp 0x402f89
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x6f
jge 0x402fc3
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x402fc1
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x120]
mov dword [ebp - 8], eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x402f9b
jmp 0x402f80
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x403590
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
push 0x405364
push 0x405760
push 0x163
push 0x40571e
push 0x4051aa
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x14
movzx eax, byte [0x40703c]
test eax, eax
je 0x4035d8
push 0x40576e
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
xor eax, eax
jmp 0x403604
call fcn.00404b80
call fcn.00404d10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x4035ed
jmp 0x403601
mov byte [0x40703c], 1
push 0x405784
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x403610
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0x405364
push 0x40579c
push 0x185
push 0x40571e
push 0x4051aa
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x14
movzx eax, byte [0x40703c]
test eax, eax
jne 0x40364e
push 0x4057a8
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
jmp 0x40366c
call fcn.00404ee0
call fcn.00404c70
mov byte [0x40703c], 0
push 0x4057c6
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
pop ebp
ret
Function at 0x404b80
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
push 0x405364
push 0x405996
push 0x27
push 0x4059b0
push 0x4051aa
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x14
push 0x4170b4
push 1
push 0
call sub.fwpkclnt.sys_FwpsInjectionHandleCreate0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x404c70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
push 0x405364
push 0x4059b8
push 0x35
push 0x4059b0
push 0x4051aa
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x14
mov eax, dword [0x4170b4]
push eax
call sub.fwpkclnt.sys_FwpsInjectionHandleDestroy0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x404cb9
mov dword [0x4170b4], 0
cmp dword [0x4170b4], 0
je 0x404ccb
mov dword [ebp - 8], 1
jmp 0x404cd2
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
je 0x404cf5
push 0
push 0x3b
push 0x4059b0
push 0x4059d4
call dword [sym.imp.ntoskrnl.exe_RtlAssert]
mov dword [ebp - 0xc], 0
jmp 0x404cfc
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x404d10
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x40700c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x35], 0
mov byte [ebp - 0x3d], 0
mov dword [ebp - 0x34], 0
push 0x2c
push 0
lea eax, [ebp - 0x30]
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
push 0x405364
push 0x405afe
push 0xc3
push 0x4059b0
push 0x4051aa
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x14
mov dword [ebp - 0x1c], 1
push 0x4170b0
lea ecx, [ebp - 0x34]
push ecx
push 0
push 0xa
push 0
call sub.fwpkclnt.sys_FwpmEngineOpen0
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jge 0x404d90
jmp 0x404e6a
mov byte [ebp - 0x3d], 1
push 0
mov edx, dword [0x4170b0]
push edx
call sub.fwpkclnt.sys_FwpmTransactionBegin0
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jge 0x404db0
jmp 0x404e6a
mov byte [ebp - 0x35], 1
push 0x4170c8
push 0x4170bc
push 0x4015d0
push 0x401600
push 0x401040
push 0x4061a8
push 0x406754
call fcn.00404890
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jge 0x404dea
jmp 0x404e6a
push 0x4170d8
push 0x4170d0
push 0x401c80
push 0x401cb0
push 0x401630
push 0x4061b8
push 0x406764
call fcn.00404890
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jge 0x404e1d
jmp 0x404e6a
push 0x4170e0
push 0x4170d4
push 0x402520
push 0x402550
push 0x401cf0
push 0x4061c8
push 0x406744
call fcn.00404890
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jge 0x404e50
jmp 0x404e6a
mov eax, dword [0x4170b0]
push eax
call sub.fwpkclnt.sys_FwpmTransactionCommit0
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jge 0x404e66
jmp 0x404e6a
mov byte [ebp - 0x35], 0
cmp dword [ebp - 0x3c], 0
jge 0x404ec3
push 0x405978
push 0x405afe
push 0x10a
push 0x4059b0
push 0x4051aa
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x14
movzx ecx, byte [ebp - 0x35]
test ecx, ecx
je 0x404ea5
mov edx, dword [0x4170b0]
push edx
call sub.fwpkclnt.sys_FwpmTransactionAbort0
movzx eax, byte [ebp - 0x3d]
test eax, eax
je 0x404ec3
mov ecx, dword [0x4170b0]
push ecx
call sub.fwpkclnt.sys_FwpmEngineClose0
mov dword [0x4170b0], 0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004050b4
mov esp, ebp
pop ebp
ret
Function at 0x404ee0
Capabilities:
Delete network filter via wfp api
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0x405364
push 0x405b14
push 0x11e
push 0x4059b0
push 0x4051aa
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x14
cmp dword [0x4170b0], 0
je 0x404fa8
mov eax, dword [0x4170cc]
push eax
mov ecx, dword [0x4170c8]
push ecx
mov edx, dword [0x4170b0]
push edx
call sub.fwpkclnt.sys_FwpmFilterDeleteById0
mov eax, dword [0x4170bc]
push eax
mov ecx, dword [0x4170b0]
push ecx
call sub.fwpkclnt.sys_FwpmCalloutDeleteById0
mov edx, dword [0x4170dc]
push edx
mov eax, dword [0x4170d8]
push eax
mov ecx, dword [0x4170b0]
push ecx
call sub.fwpkclnt.sys_FwpmFilterDeleteById0
mov edx, dword [0x4170d0]
push edx
mov eax, dword [0x4170b0]
push eax
call sub.fwpkclnt.sys_FwpmCalloutDeleteById0
mov ecx, dword [0x4170e4]
push ecx
mov edx, dword [0x4170e0]
push edx
mov eax, dword [0x4170b0]
push eax
call sub.fwpkclnt.sys_FwpmFilterDeleteById0
mov ecx, dword [0x4170d4]
push ecx
mov edx, dword [0x4170b0]
push edx
call sub.fwpkclnt.sys_FwpmCalloutDeleteById0
mov eax, dword [0x4170b0]
push eax
call sub.fwpkclnt.sys_FwpmEngineClose0
mov dword [0x4170b0], 0
mov ecx, dword [0x4170bc]
push ecx
call sub.fwpkclnt.sys_FwpsCalloutUnregisterById0
mov dword [0x4170bc], 0
mov edx, dword [0x4170d0]
push edx
call sub.fwpkclnt.sys_FwpsCalloutUnregisterById0
mov dword [0x4170d0], 0
mov eax, dword [0x4170d4]
push eax
call sub.fwpkclnt.sys_FwpsCalloutUnregisterById0
mov dword [0x4170d4], 0
xor eax, eax
pop ebp
ret

Function at 0x405090
Capabilities:
Create device object
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.00418000
pop ebp
jmp fcn.004032f0

Function at 0x4c6ccf
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.004c6d4e
jae 0x4c6cdb
xor ecx, ecx
call fcn.004c6d4e
jae 0x4c6d05
xor eax, eax
call fcn.004c6d4e
jae 0x4c6d16
mov al, 0x10
call fcn.004c6d4e
adc al, al
jae 0x4c6cf7
jne 0x4c6d43
stosb byte es:[edi], al
jmp 0x4c6cdc
call fcn.004c6d5a
dec ecx
loop 0x4c6d22
mov eax, ebp
call fcn.004c6d58
jmp 0x4c6d44
lodsb al, byte [esi]
shr eax, 1
je 0x4c6d6a
adc ecx, 2
mov ebp, eax
jmp 0x4c6d44
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.004c6d58
cmp eax, 0x7d00
jae 0x4c6d42
cmp eax, 0x500
jae 0x4c6d43
cmp eax, 0x7f
ja 0x4c6d44
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4c6cdc
pop ebp
ret 8
Function at 0x401523
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x22c]
push ebx
sub esp, 0x25c
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov esi, dword [ebp + 0xc]
and edi, 0x300
mov dword [esp], ebx
mov eax, edi
mov dword [esp + 4], esi
or eax, 9
mov dword [esp + 8], eax
call fcn.00408a18
sub esp, 0x10
test eax, eax
jne 0x40169b
test byte [ebp + 0x10], 2
je 0x4015cd
lea eax, [ebp - 0x228]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x222]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x228], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
sub esp, 0x20
cmp eax, 0x103
jne 0x40163a
mov eax, dword [ebp + 0x10]
and eax, 1
mov dword [ebp - 0x23c], eax
jmp 0x4015f5
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.00401523
sub esp, 0xc
test eax, eax
jne 0x401651
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x222]
mov dword [esp + 0xc], 0x105
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea edx, [ebp - 0x222]
sub esp, 0x10
test eax, eax
jne 0x401651
cmp dword [ebp - 0x23c], 0
mov eax, dword [ebp - 0x22c]
je 0x4015db
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
push ecx
jmp 0x40169b
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov dword [esp], 3
call fcn.00409b3f
push edx
test eax, eax
jne 0x401683
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push edx
push edx
jmp 0x40169b
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call eax
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x40434a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
cmp dword [ebp + 8], 0
mov eax, dword [0x432180]
je 0x40437c
test eax, eax
je 0x40436d
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push ecx
mov dword [0x432180], 0
jmp 0x404431
test eax, eax
je 0x404392
mov dword [esp], 0
call fcn.00409bb1
push edx
jmp 0x404431
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x42a120]
jbe 0x404431
cmp dword [0x43e24c], 0
je 0x4043e8
test byte [0x416094], 1
je 0x404431
call fcn.00404270
lea ebx, [ebp - 0x88]
mov dword [esp + 4], str....__d__
mov dword [esp], ebx
mov dword [esp + 8], eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.00407bea
jmp 0x40442f
mov eax, dword [0x43e248]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x4042a2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6f
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
sub esp, 0x14
mov dword [0x432180], eax
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push eax
push eax
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x40467c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
test eax, eax
js 0x4046c2
add eax, dword [0x42a178]
mov dword [esp + 0xc], 0
mov dword [0x43e238], eax
mov dword [esp + 4], eax
mov eax, dword [0x40b010]
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
mov dword [esp], 4
call fcn.00404490
mov edi, eax
push ecx
test eax, eax
js 0x4047da
lea eax, [ebp - 0x1c]
mov dword [esp + 8], 4
mov dword [esp + 4], eax
mov eax, dword [0x40b010]
mov dword [esp], eax
call fcn.00408821
sub esp, 0xc
test eax, eax
jne 0x404706
mov edi, 0xfffffffd
jmp 0x4047da
mov eax, dword [ebp - 0x1c]
add dword [0x43e238], 4
mov dword [esp], eax
call fcn.00404490
mov edi, eax
push edx
test eax, eax
js 0x4047da
test esi, esi
jne 0x404793
mov eax, dword [ebp - 0x1c]
test eax, eax
jle 0x4047da
cmp eax, 0x4000
mov edx, 0x4000
mov dword [esp + 4], 0x43a1a0
cmovg eax, edx
mov dword [ebp - 0x20], eax
mov dword [esp + 8], eax
mov eax, dword [0x40b010]
mov dword [esp], eax
call fcn.00408821
sub esp, 0xc
test eax, eax
je 0x4046fc
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], 0x43a1a0
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00408867
sub esp, 0xc
test eax, eax
je 0x4047d5
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x1c], eax
add dword [0x43e238], eax
add edi, eax
jmp 0x404727
lea eax, [ebp - 0x20]
cmp dword [ebp - 0x1c], ebx
cmovle ebx, dword [ebp - 0x1c]
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
mov eax, dword [0x40b010]
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x4046fc
mov edi, dword [ebp - 0x20]
add dword [0x43e238], edi
jmp 0x4047da
mov edi, 0xfffffffe
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0x10