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

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push eax
push 1
push ecx
push edi
call fcn.004353ef
mov ecx, dword [esi + 8]
add esp, 0x10
cmp eax, 1
mov eax, ecx
sete bl
cdq
idiv dword [esi + 0x18]
mov byte [esp + 0x12], bl
mov dword [esi + 0x1c], eax
test bl, bl
je 0x41f309
add dword [esi + 0x14], ecx
cmp dword [esi + 0x54], 8
push 0xffffffffffffffff
push eax
push 0x18
push ecx
mov ecx, esp
jb 0x41f1e3
mov eax, dword [esi + 0x40]
jmp 0x41f1e6
lea eax, [esi + 0x40]
mov dword [ecx], eax
push ecx
mov eax, esp
mov dword [eax], str.read
lea eax, [esi + 0x20]
push eax
mov dword [esp + 0x2c], eax
call fcn.0041d2d0
mov ecx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
add esp, 0x18
xor ebp, ebp
xor eax, eax
cmp ecx, 1
sete byte [esp + 0x13]
test ebx, ebx
je 0x41f2a4
xor edx, edx
dec ebx
cmp byte [esp + 0x13], dl
je 0x41f228
cmp byte [edi], dl
jmp 0x41f22c
cmp word [edi], 0
sete dl
test edx, edx
je 0x41f256
test eax, eax
je 0x41f24f
cmp edi, eax
je 0x41f24f
imul ecx, ebp
mov edx, edi
sub edx, eax
push edx
push eax
sub eax, ecx
push eax
call fcn.004348f0
add esp, 0xc
mov ecx, dword [esi + 0x18]
lea eax, [ecx + edi]
inc ebp
add edi, ecx
test ebx, ebx
jne 0x41f21b
test eax, eax
je 0x41f279
cmp edi, eax
je 0x41f279
mov ecx, dword [esi + 0x18]
imul ecx, ebp
sub edi, eax
push edi
push eax
sub eax, ecx
push eax
call fcn.004348f0
add esp, 0xc
test ebp, ebp
je 0x41f2a4
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push ebp
push 1
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
push edx
mov dword [eax], str.nulls_removed
call fcn.0041d2d0
add esp, 0x18
sub dword [esi + 0x1c], ebp
cmp dword [esi + 0x18], 1
jle 0x41f2fb
test byte [esi + 4], 0x80
je 0x41f2fb
mov esi, dword [esi + 0x1c]
test esi, esi
je 0x41f2d6
jmp 0x41f2c0
mov ecx, dword [esp + 0x1c]
movzx eax, word [ecx + esi*2 - 2]
dec esi
rol ax, 8
mov word [ecx + esi*2], ax
test esi, esi
jne 0x41f2c0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
mov dword [eax], 0
push ecx
mov eax, esp
mov dword [eax], str.endian_swap
mov eax, dword [esp + 0x28]
push eax
call fcn.0041d2d0
add esp, 0x18
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push esi
call fcn.0041eb80
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 8
ret 4
Function at 0x41f820
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
imul ecx, eax
push edi
mov dword [esi + 8], ecx
test ebp, ebp
jne 0x41f83c
mov ebp, edx
mov ecx, dword [esi + 4]
xor edi, edi
test cl, cl
jns 0x41f8b6
test edx, edx
jne 0x41f875
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00431e44
mov edi, eax
mov eax, dword [esi + 0x1c]
add eax, eax
push eax
push ebp
push edi
call fcn.00436120
add esp, 0x10
mov edx, edi
mov ebp, edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x41f892
lea esp, [esp]
movzx ecx, word [edx + eax*2 - 2]
dec eax
rol cx, 8
mov word [edx + eax*2], cx
test eax, eax
jne 0x41f880
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
lea ecx, [esi + 0x20]
push ecx
mov dword [eax], str.endian_swap
call fcn.0041d2d0
add esp, 0x18
mov edx, dword [esi]
mov eax, dword [esi + 8]
push edx
push 1
push eax
push ebp
call fcn.00433348
add esp, 0x10
cmp eax, 1
sete bl
test edi, edi
je 0x41f8db
push edi
call fcn.004329b8
add esp, 4
test bl, bl
je 0x41f91e
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 8]
add dword [esi + 0x14], ecx
cmp dword [esi + 0x54], 8
push 0xffffffffffffffff
push edx
push 0x18
push ecx
mov ecx, esp
jb 0x41f8fb
mov eax, dword [esi + 0x40]
jmp 0x41f8fe
lea eax, [esi + 0x40]
push ecx
mov dword [ecx], eax
mov eax, esp
add esi, 0x20
push esi
mov dword [eax], str.write
call fcn.0041d2d0
add esp, 0x18
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
ret 4
push esi
call fcn.0041eb80
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 4
Function at 0x421110
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4500a9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4642d8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
xor esi, esi
mov dword [esp + 0x18], esi
lea edi, [ebp + 4]
xor eax, eax
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], esi
mov dword [esp + 0x1c], ebp
mov word [edi], ax
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], 1
mov ebx, eax
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x421170
sub eax, edx
mov esi, dword [ebp + 0x14]
sar eax, 1
mov ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [ecx + eax + 7]
cmp esi, eax
ja 0x4211c1
cmp dword [ebp + 0x18], eax
je 0x4211c1
push 1
push eax
mov eax, ebp
call fcn.00425210
test al, al
je 0x4211c1
cmp dword [ebp + 0x18], 8
mov dword [ebp + 0x14], esi
jb 0x4211bb
mov edi, dword [edi]
xor ecx, ecx
mov word [edi + esi*2], cx
movzx eax, word [ebx]
test ax, ax
je 0x4212db
mov esi, dword [esp + 0x38]
and esi, 0x100
mov dword [esp + 0x14], esi
test esi, esi
je 0x4211f8
lea edx, [eax - 0x22]
cmp dx, 0x1c
ja 0x4212c1
movzx ecx, ax
movsx edi, byte [ecx + 0x45c8de]
jmp 0x42120f
lea edx, [eax - 0x26]
cmp dx, 0x18
ja 0x4212c1
movzx ecx, ax
movsx edi, byte [ecx + 0x45c8fa]
test edi, edi
je 0x4212c1
test byte [esp + 0x38], 8
je 0x421297
cmp ax, 0x26
jne 0x421297
movzx eax, word [ebx + 2]
lea esi, [ebx + 2]
lea edx, [eax - 0x23]
cmp dx, 0x57
ja 0x421242
movzx ecx, ax
movsx ecx, byte [ecx + 0x45c91d]
test ecx, ecx
jne 0x421248
cmp ax, 0x7f
jbe 0x421297
movzx eax, word [esi + 2]
add esi, 2
cmp ax, 0x3b
je 0x42127f
lea edx, [eax - 0x2d]
cmp dx, 0x4d
ja 0x42126c
movzx ecx, ax
movsx ecx, byte [ecx + 0x45c973]
test ecx, ecx
jne 0x421272
cmp ax, 0x7f
jbe 0x421297
movzx eax, word [esi + 2]
add esi, 2
cmp ax, 0x3b
jne 0x421255
mov eax, esi
sub eax, ebx
sar eax, 1
inc eax
push eax
push ebx
mov eax, ebp
call fcn.00424630
mov ebx, esi
mov esi, dword [esp + 0x14]
jmp 0x4212cb
mov edx, dword [edi*4 + 0x466cc8]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4212a3
sub eax, esi
sar eax, 1
push eax
push edx
mov eax, ebp
call fcn.00424630
mov esi, dword [esp + 0x14]
jmp 0x4212cb
push 1
push ebx
mov eax, ebp
call fcn.00424630
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
jne 0x4211db
mov eax, ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x425b40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x45f798
push 0x436860
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4642d8]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov edx, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], dx
jne 0x425be2
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x425be2
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
cmp esi, edi
jb 0x425be2
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x425be2
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x425c80
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
mov esi, dword [0x467dd4]
test esi, esi
je 0x425caa
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x425c93
pop edi
pop esi
pop ecx
ret
Function at 0x426090
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x467de0], eax
je 0x4260a6
mov eax, 0x10dd
pop ecx
ret
push ebx
push ebp
push esi
mov esi, dword [0x467df0]
xor ebp, ebp
push edi
cmp esi, ebp
je 0x426121
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [esp]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0x10]
push eax
movzx eax, byte [edx + 0x17]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call ebx
cmp dword [esi + 4], ebp
jne 0x426110
mov eax, dword [esi + 0x10]
cmp eax, ebp
je 0x426110
mov edx, eax
and edx, 0xffff0000
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 0x18], ecx
mov dword [edx + 8], eax
mov dword [esi + 0x10], ebp
mov edi, dword [esi]
push esi
call fcn.0043206e
add esp, 4
mov esi, edi
cmp edi, ebp
jne 0x4260c0
mov dword [0x467df0], ebp
call fcn.00425cb0
mov esi, dword [0x467dec]
cmp esi, ebp
je 0x426157
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
lea esp, [esp]
mov edx, dword [esi + 4]
push edx
call ebx
mov edi, dword [esi]
push esi
call fcn.0043206e
add esp, 4
mov esi, edi
cmp edi, ebp
jne 0x426140
pop edi
pop esi
mov dword [0x467dec], ebp
mov dword [0x467de0], ebp
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x426440
Capabilities:
Suspend thread

Disassembly:
push edi
mov edi, eax
mov eax, dword [0x467de4]
test eax, eax
jne 0x4264b5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp edi, eax
jne 0x42645a
xor eax, eax
pop edi
ret
push esi
push 8
call fcn.00432419
mov esi, eax
add esp, 4
test esi, esi
jne 0x426470
lea edi, [eax + 8]
jmp 0x42648d
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x4264a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.0043206e
add esp, 4
pop esi
mov dword [0x467de4], edi
mov eax, edi
mov dword [0x467de8], 0
pop edi
ret
mov eax, dword [0x467dec]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x467dec], esi
xor eax, eax
pop esi
pop edi
ret
Function at 0x4264c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x10
push ebx
push edi
xor edi, edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x467de0], eax
je 0x4264e4
pop edi
mov eax, 0x10dd
pop ebx
add esp, 0x10
ret 8
mov eax, dword [0x467de4]
cmp eax, edi
jne 0x426702
mov eax, dword [esp + 0x1c]
cmp eax, edi
jne 0x426506
pop edi
mov eax, 6
pop ebx
add esp, 0x10
ret 8
push esi
mov esi, dword [eax]
cmp esi, edi
jne 0x42652a
pop esi
pop edi
mov dword [0x467de8], eax
mov dword [0x467de4], 6
mov eax, 6
pop ebx
add esp, 0x10
ret 8
push ebp
mov dword [esp + 0x10], edi
call fcn.00425ff0
mov esi, dword [esp + 0x28]
mov ebp, eax
call fcn.00425ff0
mov dword [esp + 0x28], eax
cmp eax, ebp
jne 0x426558
cmp dword [0x467ddc], ebx
jne 0x426698
jmp 0x426676
push 0x18
call fcn.00432419
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x426572
lea ebx, [eax + 8]
jmp 0x426676
mov eax, ebp
call fcn.00425ce0
mov edi, eax
test edi, edi
jne 0x426587
lea ebx, [eax + 8]
jmp 0x426676
mov esi, ebp
xor ebx, ebx
jmp 0x426590
lea eax, [ebx + edi]
push eax
lea edx, [esp + 0x18]
mov ecx, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], 0
call fcn.00426710
cmp dword [esp + 0x14], 0
mov esi, eax
jne 0x4265d9
mov ecx, dword [esp + 0x1c]
mov ebx, esi
sub ebx, ebp
call fcn.00425c30
test eax, eax
jne 0x4265d9
cmp ebx, 5
jl 0x426590
cmp ebx, 0x12
jbe 0x4265f5
mov ebx, 6
jmp 0x426676
cmp ebx, 5
jge 0x4265ca
cmp dword [0x467ddc], 0
mov ebx, 9
jne 0x42667c
jmp 0x426676
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x1c], ecx
lea ecx, [ebx + edi]
lea edx, [ebx + ebp]
mov dword [edi + 0x18], edx
lea eax, [edi + 0x17]
lea esi, [ecx + 5]
mov byte [eax], bl
mov byte [ecx], 0xe9
inc ecx
sub edx, esi
mov dword [ecx], edx
add ecx, 4
call fcn.00425c00
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [esp + 0x18]
push edx
push 0x40
push ebx
push ebp
mov dword [esp + 0x28], 0
call esi
test eax, eax
je 0x42666e
mov ecx, ebp
call fcn.00425f40
mov ebx, eax
test ebx, ebx
je 0x4266d2
mov eax, 0x6544
cmp word [ebx + 0x1c], ax
je 0x4266d2
lea ecx, [esp + 0x28]
push ecx
push 0x40
push 0x40
push ebx
mov dword [esp + 0x38], 0
call esi
test eax, eax
jne 0x4266ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [0x467de4], ebx
test edi, edi
je 0x426687
mov eax, edi
call fcn.00425f10
mov eax, dword [esp + 0x10]
test eax, eax
je 0x426698
push eax
call fcn.0043206e
add esp, 4
mov edx, dword [esp + 0x24]
pop ebp
pop esi
pop edi
mov eax, ebx
mov dword [0x467de8], edx
pop ebx
add esp, 0x10
ret 8
mov eax, 0x6544
mov word [ebx + 0x1c], ax
mov ecx, 0x6f74
mov edx, 0x7275
mov eax, 0x2173
mov word [ebx + 0x1e], cx
mov word [ebx + 0x20], dx
mov word [ebx + 0x22], ax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov dword [eax + 8], ecx
mov ecx, dword [0x467df0]
mov dword [eax + 0xc], ebp
mov dword [eax + 4], 0
mov dword [eax + 0x10], edi
mov edx, dword [esp + 0x18]
pop ebp
mov dword [eax + 0x14], edx
mov dword [eax], ecx
mov dword [0x467df0], eax
xor eax, eax
pop esi
pop edi
pop ebx
add esp, 0x10
ret 8
Function at 0x427010
Capabilities:
Print debug messages

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [ebp + 0x50]
push edi
test esi, esi
je 0x427099
call fcn.00428050
test eax, eax
je 0x427086
mov eax, dword [ebp + 0x58]
test eax, eax
je 0x427075
push eax
call fcn.00435726
add esp, 4
push eax
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x58]
push 0
push eax
call fcn.00435a70
mov edi, dword [ebp + 0x58]
mov ebx, dword [ebp + 0x50]
add esp, 0xc
lea esi, [esp + 0x14]
call fcn.004281c0
test eax, eax
jne 0x427075
cmp dword [ebp + 0x5c], eax
je 0x427075
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ecx]
mov edx, dword [edx]
push eax
mov eax, dword [ebp + 0x58]
push eax
call edx
mov esi, dword [ebp + 0x50]
call fcn.00428170
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.CNPIpcThread_m_pipc__start_error_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 4

Function at 0x427270
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [esi + 4], 0
je 0x42727e
mov eax, 1
pop ecx
ret
mov eax, dword [esi + 0x14]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call edi
mov ecx, dword [esi + 0x10]
push ecx
call edi
lea edx, [esp + 4]
push edx
push 0
push esi
push 0x427230
push 0
push 0
mov dword [esp + 0x1c], 0
call fcn.004358ca
add esp, 0x18
test eax, eax
jg 0x4272bb
xor eax, eax
pop edi
pop ecx
ret
cmp dword [esi + 8], 0
mov dword [esi + 4], eax
je 0x4272cd
push 0xfffffffffffffff1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esi + 0xc]
push ebx
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0xc]
push ecx
mov ebx, eax
call edi
xor eax, eax
test ebx, ebx
pop ebx
sete al
pop edi
pop ecx
ret

Function at 0x4272f0
Capabilities:
Terminate thread

Disassembly:
cmp dword [esi + 4], 0
je 0x427351
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esp + 4]
mov edx, dword [esi + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x427331
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
ret 4
mov ecx, dword [esi + 4]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
ret 4
mov eax, dword [esi + 0x10]
mov dword [esp + 4], eax
jmp dword [sym.imp.KERNEL32.dll_ResetEvent]
Function at 0x427500
Capabilities:
Create thread

Disassembly:
cmp dword [esi + 0x30], 0
je 0x42750a
mov eax, dword [esi + 0x38]
ret
push edi
lea edi, [esi + 0x34]
push edi
push 0
push esi
push 0x427410
push 0
push 0
call fcn.004358ca
add esp, 0x18
test eax, eax
jg 0x427531
mov dword [edi], 0
xor eax, eax
pop edi
ret
mov dword [esi + 0x30], eax
mov eax, dword [esi + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x38]
pop edi
ret

Function at 0x427550
Capabilities:
Terminate thread

Disassembly:
push edi
xor edi, edi
cmp dword [esi + 0x30], edi
je 0x4275a2
mov eax, dword [esi + 0x34]
push edi
push edi
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov ecx, dword [esp + 8]
mov edx, dword [esi + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4275a2
mov eax, dword [esi + 0x30]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x30]
cmp eax, edi
je 0x427593
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
pop edi
ret 4
Function at 0x427670
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x45151b
mov eax, dword fs:[0]
push eax
mov eax, 0x2014
call fcn.00448ca0
mov eax, dword [0x4642d8]
xor eax, esp
mov dword [esp + 0x2010], eax
push ebx
push esi
mov eax, dword [0x4642d8]
xor eax, esp
push eax
lea eax, [esp + 0x2020]
mov dword fs:[0], eax
mov dword [esp + 0x10], 0
xor eax, eax
push 0x1ffe
mov ebx, 1
push eax
lea ecx, [esp + 0x26]
mov dword [esp + 0x2030], ebx
push ecx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x28], ax
call fcn.00435a70
mov edx, dword [0x466ddc]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x466ddc
mov dword [esp + 0x18], 0x2000
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
lea ecx, [esp + 0x14]
push ecx
push ebx
mov byte [esp + 0x2030], 2
mov edx, dword [esp + 0x2038]
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x427756
add esi, 0xfffffff0
mov eax, esi
call fcn.00404120
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x2028], bl
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4277e1
mov ecx, dword [esi]
push esi
jmp 0x4277da
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x2038]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x427725
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x427785
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x1c]
mov ebx, eax
push ecx
lea eax, [esp + 0x10]
call fcn.00404080
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
lea ecx, [esp + 0x20]
call fcn.004056e0
mov byte [esp + 0x2028], 1
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4277e1
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2028], 0
mov eax, dword [esp + 0x2030]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42780c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2028], 0xffffffff
mov eax, dword [esp + 0x2034]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42783a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x2020]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x2010]
xor ecx, esp
call fcn.00432079
add esp, 0x2020
ret
Function at 0x4278f0
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x451030
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4642d8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0x20]
mov ecx, dword [edx - 0xc]
test ecx, ecx
jne 0x42795e
mov dword [esp + 0x18], 0xffffffff
lea eax, [edx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42794a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
lea eax, [ecx - 1]
test eax, eax
jl 0x427a01
cmp eax, ecx
jg 0x427a01
movzx ecx, word [edx + eax*2]
cmp cx, 0x5c
jne 0x4279bf
lea ecx, [esp + 0xc]
lea edx, [esp + 0x20]
call fcn.004158d0
lea edi, [esp + 0x20]
mov byte [esp + 0x18], 1
call fcn.00403f90
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4279bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edx
call esi
test eax, eax
jne 0x4279ed
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [esp + 0x20]
and eax, 0xfffffffc
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x20]
push eax
call esi
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
jmp 0x427931
push 0x80070057
call fcn.004030a0
int3
Function at 0x428050
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov eax, dword [esi + 0x1c]
cmp eax, 1
jne 0x4280cc
cmp dword [esi + 0x20], 0
jne 0x4280ad
cmp dword [esi + 0x18], 0x10
jb 0x428069
mov eax, dword [esi + 4]
jmp 0x42806c
lea eax, [esi + 4]
push 0
push 0x3e8
push 0x1000
push 0x1000
push 0xff
push 0
push 3
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [esi + 0x20], eax
cmp eax, 0xffffffff
jne 0x4280ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x20], 0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
ret
cmp dword [esi + 0x24], 0
jne 0x4280c6
mov eax, dword [esi + 0x20]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov dword [esi + 0x24], eax
test eax, eax
je 0x4280a2
mov eax, 1
ret
cmp eax, 2
jne 0x4280aa
cmp dword [esi + 0x20], 0
jne 0x4280c6
push ebp
push edi
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
mov ecx, esi
call fcn.00401f10
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x20], eax
cmp eax, 0xffffffff
jne 0x42814e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
call ebp
cmp eax, 0xe7
jne 0x42814d
push 0x64
mov ecx, esi
call fcn.00401f10
push eax
call ebx
test eax, eax
je 0x42814d
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
mov ecx, esi
call fcn.00401f10
push eax
call edi
mov dword [esi + 0x20], eax
cmp eax, 0xffffffff
je 0x428110
pop ebx
call ebp
cmp dword [esi + 0x20], 0xffffffff
pop edi
pop ebp
jne 0x4280c6
push 0x64
mov dword [esi + 0x20], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
ret

Function at 0x4281c0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x42820c
cmp dword [ebx + 0x24], 0
je 0x42820c
test edi, edi
jne 0x4281d7
lea eax, [edi + 2]
pop ecx
ret
mov ecx, dword [esi]
push 0
push esi
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4281f0
mov eax, 3
pop ecx
ret
mov edx, dword [ebx + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [esi]
push esi
push edi
lea ecx, [ebx + 0x28]
mov edx, edi
call fcn.0042a890
xor eax, eax
pop ecx
ret
mov eax, 1
pop ecx
ret