joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4025e6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, edx
mov edi, ecx
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x462304]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x402661
mov dword [ebp - 0x1c], ecx
xor eax, eax
lea ecx, [ebp - 0x14]
mov dword [ecx], eax
lea edx, [ebp - 0x18]
mov dword [edx], 4
push edx
push ecx
push eax
push 0x10
push esi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x40267b
mov ecx, edi
mov edx, esi
push dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
push esi
call fcn.004026a5
add esp, 8
test al, al
je 0x40268b
mov eax, dword [esi]
test eax, eax
je 0x4026a1
push 0xa
push 0
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_wcstol
add esp, 0xc
cmp eax, 1
jmp 0x40267f
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00446150
mov ecx, edi
mov edx, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.004026a5
cmp dword [ebp - 0x14], 1
sete al
movzx eax, al
mov dword [ebx], eax
mov bl, 1
jmp 0x40268d
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00446150
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x402682

Function at 0x4026a5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x214
mov edi, edx
mov dword [ebp - 0x220], ecx
mov eax, dword [0x462304]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea esi, [ebp - 0x218]
push 0x208
push ebx
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
mov dword [eax], 0x104
push eax
push esi
push ebx
push 2
push edi
push ebx
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov esi, eax
test eax, eax
jne 0x40271c
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov ecx, edi
lea eax, [ebp - 0x218]
push eax
call fcn.00401f12
mov ecx, edi
call fcn.004020b6
mov dword [ebx], eax
test esi, esi
sete bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00446150
mov eax, ebx
add esp, 0x214
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40f7d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44794d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x462304]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x462704], 0
jne 0x40f834
push str.WARNING:_Attempt_to_disable_turned_off_pause_cover
lea ecx, [ebp - 0x28]
call fcn.004098b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x462030
call fcn.00404da0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040ae30
jmp 0x40f843
push 0
mov ecx, dword [0x462704]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00446150
mov esp, ebp
pop ebp
ret
Function at 0x417500
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44829d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x462304]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
je 0x417541
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0x4f
je 0x41755d
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
je 0x417564
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0x4e
jne 0x417564
xor eax, eax
jmp 0x4175f2
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 0x100
jne case.0x41758b.1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
sub ecx, 0x70
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x2c], 0xb
ja case.0x41758b.1
mov edx, dword [ebp - 0x2c]
jmp dword [edx*4 + 0x41760c]
movzx eax, byte [0x462674]
test eax, eax
jne case.0x41758b.0
call fcn.00407380
mov eax, 1
jmp 0x4175f2
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00436160
add esp, 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
push ecx
push 0xc
call fcn.00414780
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040ae30
mov eax, 1
jmp 0x4175f2
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00446150
mov esp, ebp
pop ebp
ret
Function at 0x41dd10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4489f6
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x462304]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x14
push 0
mov eax, dword [ebp + 8]
add eax, 4
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x41dd5a
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 0
push str.UuidCreateSequential
push 0x451248
call fcn.004441b0
add esp, 8
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x190], 0xffffffff
cmp dword [ebp - 0x194], 0
je 0x41dda1
mov edx, dword [ebp - 0x194]
mov dword [ebp - 0x198], edx
lea eax, [ebp - 0x20]
push eax
call dword [ebp - 0x198]
mov dword [ebp - 0x190], eax
cmp dword [ebp - 0x190], 0
jne 0x41ddc1
push 6
lea ecx, [ebp - 0x16]
push ecx
mov edx, dword [ebp + 8]
add edx, 4
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x41ddd5
mov eax, dword [ebp - 0x190]
push eax
push str.Cant_create_UUID____d
call fcn.00407380
add esp, 8
push 0
push 0
lea ecx, [ebp - 0x1a8]
push ecx
lea edx, [ebp - 0x1ac]
push edx
mov eax, 1
imul ecx, eax, 6
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 4]
push eax
push 0
push 0
push 0x45126c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea ecx, [ebp - 0x188]
call fcn.0041dcc0
mov dword [ebp - 4], 0
push 0xe
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x188]
call fcn.0041e350
mov dword [ebp - 0x19c], eax
lea ecx, [ebp - 0x110]
call fcn.0041dcc0
mov byte [ebp - 4], 1
push 0xa
mov edx, dword [ebp - 0x19c]
push edx
lea ecx, [ebp - 0x110]
call fcn.0041e350
mov dword [ebp - 0x1a0], eax
mov eax, dword [ebp - 0x1a0]
push eax
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.0041dce0
lea ecx, [ebp - 0x98]
call fcn.0041dcc0
mov byte [ebp - 4], 2
push 4
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x98]
call fcn.0041e350
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 0x18c], 0
jmp 0x41deab
mov edx, dword [ebp - 0x18c]
add edx, 4
mov dword [ebp - 0x18c], edx
cmp dword [ebp - 0x18c], 0x14
je 0x41dedc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x18c]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x1a4]
add edx, dword [ebp - 0x18c]
add ecx, dword [edx]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x18c]
mov dword [eax + 4], ecx
jmp 0x41de9c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x98]
call fcn.0040b260
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x110]
call fcn.0040b260
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x188]
call fcn.0040b260
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00446150
mov esp, ebp
pop ebp
ret
Function at 0x41e070
Capabilities:
Check if file exists
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448cd0
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x462304]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x444], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x451804
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push eax
lea ecx, [ebp - 0x438]
call fcn.00409b90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.00419c70
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41e111
mov byte [ebp - 0x43a], 1
jmp 0x41e118
mov byte [ebp - 0x43a], 0
mov cl, byte [ebp - 0x43a]
mov byte [ebp - 0x439], cl
movzx edx, byte [ebp - 0x439]
test edx, edx
jne 0x41e171
push str..old
lea ecx, [ebp - 0x438]
call fcn.0041d4e0
lea ecx, [ebp - 0x438]
call fcn.00419c70
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41e15e
mov byte [ebp - 0x43b], 1
jmp 0x41e165
mov byte [ebp - 0x43b], 0
mov al, byte [ebp - 0x43b]
mov byte [ebp - 0x439], al
movzx ecx, byte [ebp - 0x439]
test ecx, ecx
jne 0x41e1eb
push 1
push 0x1a
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41e1e3
call fcn.0041d580
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push eax
lea ecx, [ebp - 0x438]
call fcn.0040b720
push str.settings.dat
lea ecx, [ebp - 0x438]
call fcn.00419c70
push eax
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push eax
lea ecx, [ebp - 0x438]
call fcn.0040b720
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
jmp 0x41e229
lea ecx, [ebp - 0x438]
call fcn.00419c70
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x41e20e
mov dword [ebp - 0x440], 1
jmp 0x41e218
mov dword [ebp - 0x440], 0
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
or edx, dword [ebp - 0x440]
mov eax, dword [ebp + 0xc]
mov byte [eax], dl
lea ecx, [ebp - 0x438]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00409980
mov edx, dword [ebp - 0x444]
or edx, 1
mov dword [ebp - 0x444], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call fcn.0040ae50
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00446150
mov esp, ebp
pop ebp
ret
Function at 0x42e1f0
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a1c5
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x462304]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x44]
add eax, 0x6c
push eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x88]
push edx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0xa0], eax
cmp dword [ebp - 0x4c], 0
jne 0x42e342
mov edx, dword [ebp - 0x44]
cmp dword [edx + 0xa0], 0x217
jne 0x42e270
mov dword [ebp - 0x4c], 1
jmp 0x42e342
mov eax, dword [ebp - 0x44]
cmp dword [eax + 0xa0], 0x3e5
jne 0x42e304
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp - 0x44]
cmp dword [ecx + 0x6c], 0x103
je 0x42e2a1
mov dword [ebp - 0x4c], 1
jmp 0x42e2bb
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x48]
add edx, 0x64
mov dword [ebp - 0x48], edx
cmp dword [ebp - 0x48], 0x2710
jb 0x42e28a
cmp dword [ebp - 0x48], 0x2710
jb 0x42e302
push str.waiting_for_send_pipe_connection
lea ecx, [ebp - 0x28]
call fcn.004098b0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x44]
add eax, 0xa0
push eax
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x28]
push edx
push 1
mov ecx, dword [ebp - 0x44]
call fcn.0042c5c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040ae30
jmp 0x42e342
push str.connecting_to_send_pipe
lea ecx, [ebp - 0x40]
call fcn.004098b0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x44]
add eax, 0xa0
push eax
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x40]
push edx
push 1
mov ecx, dword [ebp - 0x44]
call fcn.0042c5c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040ae30
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00446150
mov esp, ebp
pop ebp
ret
Function at 0x42e440
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44816d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x462304]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], 0
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0xff
push 6
push 0x40080002
mov ecx, dword [ebp + 8]
call fcn.00419c70
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x88], eax
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x88], 0xffffffff
jne 0x42e4ee
push str.creating_send_pipe
lea ecx, [ebp - 0x28]
call fcn.004098b0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
add eax, 0xa0
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x28]
push edx
push 4
mov ecx, dword [ebp - 0x2c]
call fcn.0042c5c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040ae30
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00446150
mov esp, ebp
pop ebp
ret 0xc

Function at 0x42eaa0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44829d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x462304]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x30], 2
jne 0x42eaea
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x40000080
push 3
push 0
push 0
push SysReAllocString
mov ecx, dword [ebp - 0x2c]
add ecx, 0x40
call fcn.00419c70
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x8c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 2
je 0x42ead9
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x8c], 0xffffffff
jne 0x42eb70
push str.opening_receive_pipe
lea ecx, [ebp - 0x28]
call fcn.004098b0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
add eax, 0x9c
push eax
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x28]
push edx
push 8
mov ecx, dword [ebp - 0x2c]
call fcn.0042c5c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040ae30
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00446150
mov esp, ebp
pop ebp
ret
Function at 0x42f8c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x462304]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x48], 0
push 0x40
push 0
lea eax, [ebp - 0x44]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1f
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp + 8]
call fcn.00409b90
mov ecx, dword [ebp - 0x48]
or ecx, 1
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00446150
mov esp, ebp
pop ebp
ret

Function at 0x430170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x70], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x74], 0
mov ecx, dword [ebp + 8]
call fcn.0041a440
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
call fcn.00419c50
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x4c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 4]
add ecx, 0x68
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4301de
mov dword [ebp - 0x10], 0
jmp 0x4301e5
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x3e5
jne 0x43025d
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x43024b
push 1
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x68
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x43023c
mov dword [ebp - 0x14], 0
jmp 0x430243
mov dword [ebp - 0x14], 2
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
jmp 0x430252
mov dword [ebp - 0xc], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x43028b
cmp dword [ebp - 0xc], 0
jne 0x43028b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov dword [ebp - 0xc], 4
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8
Function at 0x4302a0
Capabilities:
Check if file exists
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 1
mov eax, dword [ebp + 8]
mov dword [eax], 0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 0x50], edx
cmp dword [ebp - 0xc], 0
je 0x430418
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x64], ecx
cmp dword [ebp - 0x10], 0
je 0x430418
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x78], eax
cmp dword [ebp - 0x14], 0
je 0x430418
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x1c]
test edx, edx
je 0x430375
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 4]
add ecx, 0x2c
call fcn.00419c70
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x1c]
push edx
push 0
push 0x2000
push 0x2000
push 0xff
push 6
push 0x40080003
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x4c], eax
jmp 0x4303c5
mov edx, dword [ebp + 8]
cmp dword [edx], 2
jne 0x430388
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x40000080
push 3
push 0
push 0
push 0xc0000000
mov ecx, dword [ebp - 4]
add ecx, 0x2c
call fcn.00419c70
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x4c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 2
je 0x430375
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x4c], 0xffffffff
je 0x430411
mov edx, dword [ebp - 4]
add edx, 0x44
push edx
push 0
mov eax, dword [ebp - 4]
push eax
push 0x430440
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x48], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x48], 0
je 0x430402
mov dword [ebp - 0x18], 0
jmp 0x430409
mov dword [ebp - 0x18], 3
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
jmp 0x430418
mov dword [ebp - 8], 2
cmp dword [ebp - 8], 0
je 0x430429
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x430e90
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a53a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x462304]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x455248
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 4], 0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], 1
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x18], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x1c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x20], 1
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x24], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x28], 0
mov eax, dword [ebp - 0x10]
add eax, 0x2c
mov dword [ebp - 0x1c], eax
push 0
mov ecx, dword [ebp - 0x1c]
call fcn.0042ab10
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0040a350
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x3c
mov dword [ebp - 0x24], ecx
push 0xc
call fcn.00445c61
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], 0
je 0x430f78
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.004311e0
mov dword [ebp - 0x18], eax
jmp 0x430f7f
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x24]
call fcn.0042ab10
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4