joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415c93
Capabilities:
Get file size

Disassembly:
mov eax, dword [eax]
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x415cc2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x415cda
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test esi, esi
je 0x415cd8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x415edd
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x43c07c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x78]
call fcn.0042259d
mov edx, dword [edx]
xor edi, edi
push edi
push edi
push 3
push edi
push 3
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x90], eax
cmp eax, 0xffffffff
jne 0x415f2b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x415ff8
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
sub ebx, dword [ebp + 8]
mov esi, 0xc000
push esi
mov dword [ebp - 0x84], edi
call fcn.0042371a
pop ecx
push edi
lea ecx, [ebp - 0x80]
push ecx
push esi
push eax
push dword [ebp - 0x90]
mov dword [ebp - 0x88], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x415fc5
mov edi, dword [ebp - 0x80]
test edi, edi
je 0x415fc3
mov eax, dword [ebp - 0x84]
lea ecx, [edi + eax]
mov byte [ebp - 0x79], 0
cmp ecx, ebx
jbe 0x415f8a
mov edi, ebx
sub edi, eax
mov dword [ebp - 0x80], edi
mov byte [ebp - 0x79], 1
push dword [ebp - 0x88]
mov eax, edi
lea ecx, [ebp - 0x78]
call fcn.0042241e
cmp byte [ebp - 0x79], 0
jne 0x415fc3
add dword [ebp - 0x84], edi
push 0
lea eax, [ebp - 0x80]
push eax
push esi
push dword [ebp - 0x88]
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x415f67
xor edi, edi
lea esi, [ebp - 0x78]
call fcn.004224cf
mov eax, esi
call fcn.00422546
push dword [ebp - 0x88]
mov esi, eax
call fcn.00423725
pop ecx
cmp dword [ebp - 0x90], edi
je 0x415ff6
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042370b
leave
ret
Function at 0x416076
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x60]
push ebx
push eax
mov dword [ebp - 0x64], 0x44
call fcn.00423730
xor eax, eax
mov dword [ebp - 0x1c], ebx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
mov dword [ebp - 0xc], ebx
mov byte [ebp - 8], bl
cmp byte [ebp + 0x18], bl
je 0x4160b5
lea esi, [ebp - 0xc]
call fcn.00418877
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push dword [ebp + 0x14]
push ebx
push ebx
push ebx
call fcn.0040642d
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
cmp byte [ebp + 0x18], bl
je 0x4160e9
lea esi, [ebp - 0xc]
call fcn.0041888d
cmp edi, ebx
jne 0x4160fc
lea esi, [ebp - 0xc]
call fcn.0041888d
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
cmp dword [ebp + 0x10], ebx
je 0x416118
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x4160ed

Function at 0x416125
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push 0x38
xor ebx, ebx
lea eax, [ebp - 0x38]
push ebx
push eax
call fcn.00423730
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
cmp dword [ebp + 0xc], ebx
je 0x416150
mov dword [ebp - 0x38], 0x40
push esi
mov esi, dword [edi]
push edi
call fcn.00407945
pop ecx
test al, al
je 0x416161
add esi, 8
xor eax, eax
cmp byte [ebp + 0x10], bl
mov dword [ebp - 0x2c], esi
sete al
mov dword [ebp - 0x30], str.open
pop esi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
je 0x416184
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x416196
xor al, al
jmp 0x4161b9
cmp dword [ebp + 0xc], ebx
je 0x4161b7
cmp dword [ebp - 4], ebx
je 0x4161b7
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov al, 1
pop ebx
leave
ret
Function at 0x416730
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x43c07c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push eax
mov dword [ebp - 0x414], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [ebp - 0x410]
push ecx
mov edi, 0x3ff
push edi
lea ecx, [ebp - 0x40c]
push ecx
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x410], ebx
push eax
jmp 0x4167c9
mov eax, dword [ebp - 0x410]
mov byte [ebp + eax - 0x40c], bl
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0x414]
call fcn.00416b1d
push ebx
lea eax, [ebp - 0x410]
push eax
push edi
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0x41c]
call esi
cmp dword [ebp - 0x410], ebx
jne 0x416794
mov edi, dword [ebp - 0x414]
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
cmp eax, 2
jl 0x416806
lea ecx, [eax - 2]
lea edx, [ebp - 0x414]
mov eax, edi
call fcn.004063f7
call fcn.004060b8
mov eax, dword [ebp - 0x414]
add eax, 0xfffffff0
call fcn.004039c4
cmp dword [ebp - 0x41c], ebx
je 0x41681a
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042370b
leave
ret
Function at 0x416f4c
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov esi, eax
mov eax, dword [esi]
push edi
sub eax, 0x10
call fcn.00407082
mov ebx, eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
add ebx, 0x10
sub eax, 0x10
mov dword [ebp - 4], ebx
call fcn.00407082
mov edi, eax
mov eax, dword [esi]
add edi, 0x10
xor esi, esi
mov dword [ebp + 0x10], edi
cmp dword [eax - 0xc], esi
jne 0x4170b3
push 0x3c
lea eax, [ebp - 0x48]
push esi
push eax
call fcn.00423730
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x48]
push ecx
push esi
push esi
push eax
mov dword [ebp - 0x18], 0x104
mov dword [ebp - 0x48], 0x3c
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov ecx, 0x43d85c
test eax, eax
jne 0x416fe2
mov esi, dword [ebp + 8]
call fcn.004039a9
lea eax, [edi - 0x10]
call fcn.004039c4
lea eax, [ebx - 0x10]
call fcn.004039c4
mov eax, esi
jmp 0x417130
push dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
lea esi, [ebp - 8]
call fcn.00406769
cmp dword [ebp - 0x3c], 5
push 0x2f
pop eax
jne 0x416ffc
push 0x5c
pop eax
push eax
lea esi, [ebp - 8]
call fcn.004062ac
mov ebx, dword [ebp - 8]
mov esi, eax
test esi, esi
jl 0x417033
mov ecx, dword [ebx - 0xc]
lea eax, [ebp - 0xc]
sub ecx, esi
push eax
dec ecx
lea eax, [ebp - 8]
call fcn.0040d768
lea edi, [ebp - 4]
call fcn.004060b8
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.004039c4
cmp dword [ebp - 0x3c], 3
jne 0x41703d
push 0x3f
jmp 0x417045
cmp dword [ebp - 0x3c], 1
jne 0x417051
push 0x3b
xor ecx, ecx
lea esi, [ebp - 4]
call fcn.00406251
mov esi, eax
test esi, esi
jl 0x417075
mov ecx, esi
lea edx, [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.004063f7
lea edi, [ebp - 4]
call fcn.004060b8
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.004039c4
lea eax, [ebp - 4]
push eax
call fcn.00407854
lea eax, [ebp - 8]
mov dword [esp], str..aiu
call fcn.004038d0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
call fcn.00407449
mov eax, dword [ebp - 8]
pop ecx
add eax, 0xfffffff0
call fcn.004039c4
lea eax, [ebx - 0x10]
call fcn.004039c4
mov ebx, dword [ebp - 4]
mov edi, dword [ebp + 0x10]
push 0x3a
xor ecx, ecx
lea esi, [ebp - 4]
call fcn.00406251
test eax, eax
jle 0x4170e4
add ebx, 0xfffffff0
mov eax, ebx
call fcn.00407082
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
lea eax, [edi - 0x10]
call fcn.004039c4
mov eax, ebx
jmp 0x416fd6
cmp dword [edi - 0xc], 0
je 0x4170ff
lea esi, [ebp + 0x10]
call fcn.004070da
push dword [ebx - 0xc]
mov eax, esi
push ebx
call fcn.00401663
jmp 0x41710a
lea eax, [ebp - 4]
lea edi, [ebp + 0x10]
call fcn.004060b8
mov esi, dword [ebp + 0x10]
add esi, 0xfffffff0
mov eax, esi
call fcn.00407082
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.004039c4
lea eax, [ebx - 0x10]
call fcn.004039c4
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417135
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.00423730
add esp, 0xc
push 0x64
pop eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x40], esi
mov edi, dword [eax - 0xc]
mov ebx, 0x43d85c
push eax
mov ecx, ebx
lea esi, [ebp + 8]
call fcn.00406769
lea eax, [ebp - 0x40]
push eax
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x4171ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004039c4
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
push dword [ebp - 0x30]
mov edi, dword [ebp - 0x2c]
mov ecx, ebx
lea esi, [ebp - 4]
call fcn.00406769
mov edi, dword [ebp + 0x14]
mov eax, esi
call fcn.004060b8
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004039c4
push dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov ecx, ebx
lea esi, [ebp - 4]
call fcn.00406769
mov edi, dword [ebp + 0x18]
mov eax, esi
call fcn.004060b8
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004039c4
cmp dword [ebp - 0x24], 0
je 0x417221
push dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov ecx, ebx
lea esi, [ebp - 4]
call fcn.00406769
mov edi, dword [ebp + 0x1c]
mov eax, esi
call fcn.004060b8
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004039c4
cmp dword [ebp - 0x1c], 0
je 0x41724c
push dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
mov ecx, ebx
lea esi, [ebp - 4]
call fcn.00406769
mov edi, dword [ebp + 0x20]
mov eax, esi
call fcn.004060b8
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004039c4
cmp dword [ebp - 0xc], 0
je 0x417277
push dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov ecx, ebx
lea esi, [ebp - 4]
call fcn.00406769
mov edi, dword [ebp + 0x24]
mov eax, esi
call fcn.004060b8
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004039c4
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov ax, word [ebp - 0x28]
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
xor esi, esi
jmp 0x41719a
Function at 0x417ad8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x43c07c]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push edi
push eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x417b6b
push ebx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
call fcn.004038d0
lea ebx, [ebp - 0x7c]
call fcn.00406b45
mov eax, dword [ebp - 0x7c]
inc dword [ebp - 0x74]
add eax, 0xfffffff0
call fcn.004039c4
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x104
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x417b25
pop ebx
mov ecx, dword [ebp + 0x198]
pop edi
xor ecx, ebp
pop esi
call fcn.0042370b
add ebp, 0x19c
leave
ret 4

Function at 0x417b84
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
push ecx
mov esi, eax
mov eax, dword [ebx]
push 0
push eax
push dword [ebp + 8]
call edi
mov dword [ebp - 8], eax
cmp eax, 0xea
jne 0x417be3
push dword [ebp - 4]
call fcn.0040380a
mov ebx, dword [ebx]
lea eax, [ebp - 4]
push eax
call fcn.0040642d
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
push dword [ebp + 8]
call edi
mov dword [ebp - 8], eax
call fcn.00407069
xor eax, eax
cmp dword [ebp - 8], eax
pop edi
pop esi
setne al
pop ebx
leave
ret 4
Function at 0x417bf2
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x43c07c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
lea esi, [ebp + 8]
mov dword [ebp - 0x270], ecx
mov dword [ebp - 0x274], eax
call fcn.004070da
mov eax, dword [0x43d85c]
mov ecx, 0x43d85c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x264], eax
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
lea esi, [ebp - 0x264]
mov ebx, esp
call fcn.00407082
add eax, 0x10
mov edx, esi
mov ecx, edi
mov dword [ebx], eax
call fcn.00417e50
test al, al
je 0x417ce3
mov eax, esi
push eax
lea eax, [ebp - 0x288]
push eax
call fcn.0041850d
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x288]
push eax
call fcn.004186d6
mov esi, dword [ebp - 0x274]
mov ebx, eax
call fcn.00406b45
mov eax, dword [ebp - 0x260]
add eax, 0xfffffff0
call fcn.004039c4
lea eax, [ebp - 0x288]
push eax
mov eax, dword [ebp - 0x270]
call fcn.00417f35
test al, al
je 0x417ce3
xor esi, esi
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
call fcn.004039c4
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004039c4
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042370b
leave
ret 0x10
cmp dword [ebp + 0xc], 1
jge 0x417cee
xor esi, esi
inc esi
jmp 0x417cb7
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00407082
add eax, 0x10
mov dword [ebp - 0x25c], eax
push 0x4357c0
lea eax, [ebp - 0x25c]
push eax
call fcn.0040147d
lea eax, [ebp - 0x258]
push eax
lea esi, [ebp - 0x25c]
call fcn.0040642d
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp dword [ebp - 0x26c], 0xffffffff
setne al
test al, al
je 0x417dca
lea eax, [ebp - 0x258]
call fcn.00417e28
test al, al
je 0x417db2
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp + 8]
lea ecx, [ebp - 0x260]
call fcn.00418459
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x260]
pop ecx
push dword [ebp - 0x274]
dec eax
push edi
push eax
push ecx
add esi, 0xfffffff0
mov eax, esi
mov ebx, esp
call fcn.00407082
mov ecx, dword [ebp - 0x270]
add eax, 0x10
mov dword [ebx], eax
call fcn.00417bf2
test eax, eax
je 0x417df2
mov eax, esi
call fcn.004039c4
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x417d53
cmp dword [ebp - 0x26c], 0
je 0x417ddf
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
call fcn.004039c4
jmp 0x417ce9
mov eax, dword [ebp - 0x260]
add eax, 0xfffffff0
call fcn.004039c4
cmp dword [ebp - 0x26c], 0
je 0x417e15
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
call fcn.004039c4
jmp 0x417cb5
Function at 0x4180dd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov esi, eax
cmp byte [ebp + 0xc], bl
jne 0x41811e
push dword [ebp + 8]
call fcn.00418061
pop ecx
cmp byte [ebp + 0x10], bl
je 0x418116
cmp eax, ebx
setne byte [ebp + 0x13]
cmp eax, ebx
je 0x41810e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp + 0x13]
jmp 0x4181ae
cmp eax, ebx
sete byte [ebp + 0x13]
jmp 0x418103
push 0x5c
call fcn.004062ac
mov edi, eax
cmp edi, ebx
mov dword [ebp + 0xc], 3
jl 0x418199
lea eax, [ebp - 4]
push eax
mov ecx, edi
xor edx, edx
mov eax, esi
call fcn.00406380
push dword [ebp + 8]
lea eax, [ebp - 4]
call fcn.00418061
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x41818e
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
lea eax, [ebp + 0xc]
lea edx, [edi + 1]
push eax
sub ecx, edx
mov eax, esi
call fcn.00406380
mov esi, dword [ebp + 0xc]
push ebx
push ebx
push ebx
push ebx
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp + 0xc], eax
lea eax, [esi - 0x10]
call fcn.004039c4
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004039c4
xor eax, eax
cmp byte [ebp + 0x10], bl
je 0x4181a8
cmp dword [ebp + 0xc], ebx
sete al
jmp 0x4181ae
cmp dword [ebp + 0xc], ebx
setne al
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4188a9
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp byte [esi], bl
je 0x4188ba
mov al, 1
jmp 0x41893b
mov eax, dword [ebp + 8]
push edi
lea edi, [esi + 4]
mov byte [esi], 1
mov byte [esi + 1], bl
call fcn.004060b8
push str..pipeToServer
lea eax, [ebp + 8]
call fcn.004038d0
mov edi, dword [edi]
push dword [edi - 0xc]
lea eax, [ebp + 8]
push edi
call fcn.00401663
mov edi, dword [ebp + 8]
cmp byte [esi + 1], bl
je 0x418914
push ebx
push 0x1388
mov eax, 0x7f90
push eax
push eax
push 0xff
push 6
push 3
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 8], eax
cmp byte [esi + 1], bl
jne 0x418929
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp dword [esi + 8], 0xffffffff
lea eax, [edi - 0x10]
setne bl
call fcn.004039c4
mov al, bl
pop edi
pop ebx
pop ebp
ret 4

Function at 0x418a8e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
mov edi, ecx
lea ecx, [ebp + 8]
push ecx
mov esi, eax
mov eax, dword [edi + 0xc]
push 0x7f90
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 0xc]
shr ecx, 1
xor ebx, ebx
mov word [edx + ecx*2], bx
test eax, eax
je 0x418aee
cmp dword [ebp + 8], ebx
je 0x418aee
push dword [edi + 0xc]
lea eax, [ebp - 4]
call fcn.004038d0
mov edi, dword [ebp - 4]
add edi, 0xfffffff0
mov eax, edi
call fcn.00407082
add eax, 0x10
mov dword [esi], eax
mov eax, edi
call fcn.004039c4
jmp 0x418af8
mov ecx, 0x43d85c
call fcn.004039a9
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x418b01
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, eax
jne 0x418b19
mov ecx, 0x43d85c
call fcn.004039a9
jmp 0x418b45
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push 0
lea edx, [ebp + 0x10]
push edx
add ecx, ecx
push ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x418b0d
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, esi
call fcn.00418a8e
mov eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x418f05
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
push edi
xor esi, esi
mov edi, eax
mov dword [ebx + 0x10], edi
cmp dword [ebx + 4], esi
je 0x418f92
cmp edi, esi
je 0x418f3d
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
lea esi, [ebx + 0x14]
call fcn.00406465
push dword [ebx + 0x14]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x20]
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 0x418f99
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp edi, esi
je 0x418f5d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x418f87
mov edi, dword [ebp - 4]
cmp ebx, esi
je 0x418f83
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x418f94
cmp ebx, esi
je 0x418f92
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4194d4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x2e
mov esi, ebx
mov edi, eax
call fcn.004062ac
test eax, eax
jg 0x4194f6
mov al, 1
jmp 0x419657
mov ecx, eax
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004063f7
mov eax, dword [0x43d85c]
mov esi, 0x43d85c
mov ecx, esi
call dword [eax + 0xc]
push dword [ebp - 8]
add eax, 0x10
push dword [ebx]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 0x10]
push 0x438fb8
push eax
call fcn.00406c06
add esp, 0x14
cmp dword [edi + 0x10], 0
je 0x419541
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
push 0
push 0x8000008
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0xc]
push eax
call fcn.00416076
add esp, 0x14
lea ecx, [ebp - 8]
mov byte [ebp - 1], 1
call fcn.004077d2
test al, al
je 0x419579
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x419622
mov eax, dword [0x43d85c]
mov ecx, esi
call dword [eax + 0xc]
push dword [ebp + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.00416730
mov eax, dword [0x43d85c]
pop ecx
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
push 0xca
lea esi, [ebp - 0x18]
mov dword [ebp - 0xc], eax
call fcn.00416ecc
mov eax, dword [ebp - 8]
mov ebx, dword [eax - 0xc]
pop ecx
push 0x5c
lea esi, [ebp - 8]
call fcn.004062ac
mov ecx, ebx
sub ecx, eax
lea eax, [ebp - 0x1c]
push eax
mov eax, esi
call fcn.0040d768
mov ebx, dword [ebp - 0x14]
push ebx
push dword [eax]
lea eax, [ebp - 0xc]
push dword [ebp - 0x18]
push eax
call fcn.00406c06
mov eax, dword [ebp - 0x1c]
add esp, 0x10
add eax, 0xfffffff0
call fcn.004039c4
push 0
lea esi, [ebp - 0xc]
call fcn.0040d91c
mov eax, dword [ebp - 0x18]
pop ecx
add eax, 0xfffffff0
mov byte [ebp - 1], 0
call fcn.004039c4
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.004039c4
lea eax, [ebx - 0x10]
call fcn.004039c4
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [edi + 0x10], 0
je 0x41963e
mov edi, dword [edi + 0x10]
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x18]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004039c4
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004039c4
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 8