joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419eb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x50e3e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x419ee0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d65c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x419f1c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x419f1c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d65c
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x41a001
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x419f44
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x419f77
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0049e50d
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d65c
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x41a001
cmp eax, 1
jle 0x419fd4
cmp eax, 3
jne 0x41a001
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.0040d830
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d65c
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x419ff1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0049ee84
add esp, 0x10
cmp edi, eax
jne 0x41a001
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x419f07
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048d65c
mov esp, ebp
pop ebp
ret 4
Function at 0x41c530
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca738
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x50e3e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x40]
push eax
call fcn.0041d8f0
push 0x4dc144
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.004024a0
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x41c583
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x14]
test eax, eax
sete bl
cmp edx, 8
jb 0x41c5c5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41c5bb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c62b
push edx
push ecx
call fcn.0048d64e
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x41c60f
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41c605
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c62b
push edx
push ecx
call fcn.0048d64e
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048d65c
mov esp, ebp
pop ebp
ret
call fcn.00498fa9
int3

Function at 0x41c8e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41c939
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41c939
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x41c92a
cmp esi, edx
jae 0x41c939
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x41c918
cmp esi, edx
jae 0x41c939
cmp word [esi], 0
je 0x41c939
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x41e600
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4caa88
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x50e3e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], 0
je 0x41e726
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x10], 0
je 0x41e726
cmp dword [eax + 0x14], 8
jb 0x41e649
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x14]
call fcn.0041b7f0
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x41e661
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x10]
call fcn.0041b7f0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 0x2001f
push 0
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41e6d4
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41e6be
cmp dword [ebp - 0x1c], 4
mov ecx, 0xd
cmovne eax, ecx
mov esi, dword [ebp + 0x14]
test eax, eax
cmove esi, dword [ebp - 0x20]
test edi, edi
je 0x41e6d7
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41e6d7
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41e6f4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x41e713
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41ece0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cab58
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x50e3e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], 0
je 0x41edf6
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x10], 0
je 0x41edf6
cmp dword [eax + 0x14], 8
jb 0x41ed29
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x14]
call fcn.0041b7f0
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x41ed41
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x10]
call fcn.0041b7f0
lea eax, [ebp - 0x1c]
mov dword [ebp + 0xc], 0
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41eda5
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
push 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 4
push 0
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
test esi, esi
je 0x41eda7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41eda7
xor bl, bl
mov edx, dword [ebp - 0x10]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41edc4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x41ede3
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f3e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x50e3e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push edi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x41f448
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x234], 0x103
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d65c
mov esp, ebp
pop ebp
ret
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], 0x22c
push 0
push eax
call fcn.0048fe50
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x41f48a
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d65c
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x230]
xor bl, bl
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x41f4bd
mov edi, edi
cmp dword [ebp - 0x228], edi
je 0x41f4bb
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41f4a0
jmp 0x41f4bd
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0048d65c
mov esp, ebp
pop ebp
ret
Function at 0x428270
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp + 0xc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test esi, esi
je 0x4282a1
cmp esi, 0xffffffff
je 0x4282a1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret 8

Function at 0x4282e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x50e3e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4283be
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareKingsoftwpscloudperfinfoc
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4283be
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x42837d
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
sub ecx, 0xd53e8000
push 0
push 0x2710
sbb eax, 0x19db1de
push eax
push ecx
call fcn.0048da50
jmp 0x428381
xor eax, eax
xor edx, edx
push 8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 0xb
push 0
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x24], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d65c
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0048d65c
mov esp, ebp
pop ebp
ret 8
Function at 0x42c9f0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x514544]
test al, 1
jne 0x42caa8
or eax, 1
mov dword [0x514544], eax
mov dword [0x514530], 0
mov dword [0x514534], 0
mov dword [0x514538], 0
mov dword [0x51453c], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x4dd3b4
push eax
call fcn.004903ff
add esp, 8
test eax, eax
setne byte [0x514540]
test eax, eax
je 0x42ca9b
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x514530], eax
test eax, eax
je 0x42ca9b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EventRegister
push eax
call esi
push str.EventWrite
push dword [0x514530]
mov dword [0x514534], eax
call esi
push str.EventUnregister
push dword [0x514530]
mov dword [0x51453c], eax
call esi
mov dword [0x514538], eax
pop esi
push 0x4d4ff0
call fcn.0048d9ef
add esp, 4
mov eax, 0x514530
ret
Function at 0x433640
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc888
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x50e3e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
lea eax, [edi + 4]
push eax
call fcn.00402fd0
cmp dword [ebp - 0x18], 0
je 0x43368f
cmp dword [edi + 0x34], 0xffffffff
je 0x43368f
mov esi, 1
jmp 0x433691
xor esi, esi
lea ecx, [ebp - 0x28]
call fcn.00402a60
test esi, esi
jne 0x4336d4
test edi, edi
je 0x433794
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x4336b5
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_UnregisterWaitEx]
lea ecx, [edi + 4]
mov dword [edi + 0x4c], 0
call fcn.00405b10
push 0x50
push edi
call fcn.0048d64e
add esp, 8
jmp 0x433794
lea esi, [ebx + 8]
push esi
mov dword [ebp - 0x38], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 4], 0x15555555
mov eax, dword [ebx]
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], eax
je 0x4337b2
mov dword [ebp - 0x34], ebx
push 0xc
mov byte [ebp - 4], 1
mov dword [ebp - 0x30], 0
call fcn.0048d61e
mov edx, dword [ebp - 0x2c]
add esp, 4
mov byte [ebp - 4], 0
mov dword [ebp - 0x2c], 0
mov dword [eax + 8], edi
inc dword [ebx + 4]
mov ecx, dword [edx + 4]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [edx + 4], eax
mov dword [ecx], eax
lea eax, [ebp - 0x2c]
push eax
push 0
push edi
push 0x433e30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x43378d
mov edi, dword [ebx + 0x20]
add ebx, 0x20
cmp dword [ebx + 4], 0x15555555
je 0x4337bc
mov dword [ebp - 0x40], ebx
push 0xc
mov byte [ebp - 4], 2
mov dword [ebp - 0x3c], 0
call fcn.0048d61e
mov ecx, dword [ebp - 0x30]
add esp, 4
mov dword [eax + 8], ecx
inc dword [ebx + 4]
mov ecx, dword [edi + 4]
mov dword [eax], edi
mov dword [eax + 4], ecx
mov dword [edi + 4], eax
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048d65c
mov esp, ebp
pop ebp
ret 4
push str.list_too_long
call fcn.0048bf1c
push str.list_too_long
call fcn.0048bf1c
int3
Function at 0x433b50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc966
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x50e3e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x433c52
mov edi, dword [esi + 0x34]
lea eax, [esi + 0x1c]
push eax
lea ecx, [ebp - 0x58]
call fcn.00402fd0
mov dword [ebp - 4], 0
test edi, edi
je 0x433c45
cmp dword [ebp - 0x48], 0
je 0x433c45
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x58]
push eax
push edi
lea ecx, [ebp - 0xb0]
call fcn.00435b90
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x433c1b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x433c11
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x433dad
push edx
push ecx
call fcn.0048d64e
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00437380
lea ecx, [ebp - 0xb0]
call fcn.00435d50
lea ecx, [ebp - 0x58]
call fcn.00402a60
jmp 0x433d92
cmp dword [esi + 0x3c], 0
je 0x433d92
lea ecx, [ebp - 0xd4]
call fcn.004059f0
mov dword [ebp - 4], 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [esi + 0x1c]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x70]
call fcn.00402fd0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0xd4]
call fcn.00406e70
lea ecx, [ebp - 0x70]
call fcn.00402a60
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 4], 4
test esi, esi
je 0x433d5e
mov edi, dword [ebp - 0x18]
cmp esi, edi
je 0x433d1e
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x433d01
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x433cf7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x433db2
mov eax, edx
push ecx
push eax
call fcn.0048d64e
add esp, 8
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
add esi, 0x18
cmp esi, edi
jne 0x433cc8
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x433d54
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x433db2
push ecx
push esi
call fcn.0048d64e
add esp, 8
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xd4]
call fcn.00405db0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x40]
call fcn.00402a60
lea ecx, [ebp - 0xd4]
call fcn.00405bb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048d65c
mov esp, ebp
pop ebp
ret
call fcn.00498fa9
call fcn.00498fa9
int3
Function at 0x434340
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, ecx
push esi
mov dword [esi + 0x14], 1
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov ebx, eax
test ebx, ebx
jne 0x4343cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4343b3
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov dword [esi + 0x14], 1
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push esi
mov dword [esi + 0x10], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov ebx, eax
test ebx, ebx
je 0x434371
pop edi
pop esi
pop ebx
pop ebp
ret 8
test ebx, ebx
jne 0x4343cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x4343cd
push ebx
push esi
mov ecx, edi
call fcn.004343e0
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4343e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push 0x90
push 0
mov dword [ebp + 8], 0
push dword [esi + 0x18]
mov dword [esi + 0x14], 2
call fcn.0048fe50
add esp, 0xc
lea eax, [ebp + 8]
push esi
push eax
push 0x90
push dword [esi + 0x18]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43444f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x43444f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x43444f
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push 0
push esi
mov ecx, ebx
call fcn.00434340
pop esi
pop ebx
pop ebp
ret 8
Function at 0x434c70
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov eax, ecx
mov dword [ebp - 4], 0
push 0xffffffffffffffff
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x20], eax
push ecx
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], 0
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 8], 0
push ecx
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov esi, dword [ebp - 8]
test esi, esi
je 0x434e54
mov edx, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push edi
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x434e4b
mov eax, dword [edi + 0x14]
dec eax
cmp eax, 4
ja case.default.0x434cd9
jmp dword [eax*4 + 0x434e5c]
push dword [ebp - 4]
mov ecx, esi
push edi
call fcn.004343e0
jmp case.default.0x434cd9
cmp dword [ebp - 4], 0x90
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x18], eax
jne 0x434e0b
mov edx, dword [eax + 0x8c]
mov dword [ebp - 0x14], edx
test edx, edx
jne 0x434d1e
push edx
push edi
mov ecx, esi
call fcn.00434460
jmp case.default.0x434cd9
lea ecx, [eax + 0x90]
mov eax, dword [ecx]
push edx
push ecx
call dword [eax]
test eax, eax
je 0x434e0b
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push edi
add ecx, 0x90
mov dword [edi + 0x14], 3
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne case.default.0x434cd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je case.default.0x434cd9
jmp 0x434e0b
push dword [ebp - 4]
mov ecx, esi
push edi
call fcn.00434460
jmp case.default.0x434cd9
cmp dword [ebp - 4], 0x90
mov eax, dword [edi + 0x18]
jne 0x434e0b
cmp dword [eax + 0x8c], 0
je 0x434e07
push edi
lea edx, [ebp - 0x1c]
mov dword [edi + 0x14], 5
lea ecx, [eax + 0x90]
mov dword [ebp - 0x1c], 0
push edx
push dword [eax + 0x8c]
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebp - 0x18], ecx
test eax, eax
je 0x434de3
xor eax, eax
jmp 0x434dec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne case.default.0x434cd9
cmp eax, 0x3e5
je case.default.0x434cd9
jmp 0x434e0b
mov ecx, dword [edi + 0x18]
mov eax, dword [ebp - 4]
cmp eax, dword [ecx + 0x8c]
jne 0x434e0b
push dword [esi]
call edx
push dword [esi]
call ebx
push 0
push edi
mov ecx, esi
call fcn.00434340
push 0xffffffffffffffff
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x20]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov esi, dword [ebp - 8]
mov edx, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test esi, esi
jne 0x434cc1
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret