joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x28
lea eax, [esp]
push eax
call dword [sym.imp.shell32.dll_SHGetMalloc]
test eax, eax
je 0x403b58
xor eax, eax
add esp, 0x28
ret
push edi
mov ecx, 8
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
call sub.mfc42u.dll_AfxGetThread
test eax, eax
pop edi
je 0x403b7b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
test eax, eax
jne 0x403b7f
xor eax, eax
jmp 0x403b82
mov eax, dword [eax + 0x20]
lea ecx, [esp + 4]
push ecx
push 4
push eax
call dword [sym.imp.shell32.dll_SHGetSpecialFolderLocation]
mov edx, dword [esp + 4]
neg eax
sbb eax, eax
not eax
and eax, edx
mov dword [esp + 0xc], eax
call sub.mfc42u.dll_AfxGetThread
test eax, eax
je 0x403bb4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
test eax, eax
jne 0x403bbe
mov dword [esp + 8], 0
jmp 0x403bc5
mov eax, dword [eax + 0x20]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0x2000
mov dword [esp + 0x20], 0x403b10
mov dword [esp + 0x24], eax
call dword [sym.imp.shell32.dll_SHBrowseForFolderW]
test eax, eax
mov dword [esp + 4], eax
jne 0x403c14
mov eax, dword [esp]
push 0
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [esp]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
add esp, 0x28
ret
mov ecx, dword [esp]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x14]
mov eax, dword [esp]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, 1
add esp, 0x28
ret

Function at 0x4043b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x21c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x22c]
push edi
push esi
call fcn.00401de0
add esp, 4
test al, al
jne 0x4043e5
mov al, 0x39
mov byte [esi], 0x4b
mov byte [esi + 1], 0x4b
mov byte [esi + 2], 0x32
mov byte [esi + 3], al
mov byte [esi + 4], al
mov byte [esi + 5], 0x42
lea eax, [esp + 0x2c]
push 0x104
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
lea ecx, [esi + 6]
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.00404340
lea eax, [esi + 0xe]
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.00404340
add esp, 0x10
lea edx, [esp + 0x10]
lea eax, [esp + 0x2c]
push edx
push 0x200
push eax
push 1
push 0
push 0
call sub.winspool.drv_GetPrinterDriverDirectoryW
test eax, eax
je 0x404443
lea ecx, [esi + 0x16]
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.00404340
add esp, 8
mov ecx, 5
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ebp, dword [esp + 0x234]
mov ebx, 0xb
movsw word es:[edi], word [esi]
lea edi, [esp + 0x14]
mov esi, ebp
mov ax, word [edi]
push esi
push eax
call fcn.00401f40
add esp, 8
add esi, 6
add edi, 2
dec ebx
jne 0x404462
xor esi, esi
mov word [ebp + 0x42], si
call fcn.00403ad0
test eax, eax
je 0x404491
mov word [ebp + 0x42], 0x41
mov word [ebp + 0x44], si
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
Function at 0x404870
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov edx, dword [0x40ac68]
lea eax, [esp + 0xc]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 1
push 0
push 0
push edx
push 0x80000005
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4048de
mov ecx, dword [esp + 0x18]
mov dword [esp + 8], eax
lea eax, [esp + 4]
push esi
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x20], 0xc
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov edx, dword [esp + 4]
mov esi, eax
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x4048f0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov edx, dword [0x40ac68]
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 1
push 0
push 0
push edx
push 0x80000005
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40494c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp]
push esi
push 0xc
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret

Function at 0x405d70
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x1c
push ebp
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.advapi32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
je 0x405e6d
mov eax, dword [0x40ac6c]
push 0xf01ff
push eax
push ebp
call dword [sym.imp.advapi32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x405e54
push 0
push 0
push esi
call dword [sym.imp.advapi32.dll_StartServiceW]
test eax, eax
je 0x405e34
push ebx
push edi
mov edi, dword [sym.imp.kernel32.dll_Sleep]
push 0x3e8
call edi
mov ebx, dword [sym.imp.advapi32.dll_QueryServiceStatus]
lea ecx, [esp + 0x10]
push ecx
push esi
call ebx
test eax, eax
je 0x405df4
cmp dword [esp + 0x14], 2
jne 0x405df4
push 0x3e8
call edi
lea edx, [esp + 0x10]
push edx
push esi
call ebx
test eax, eax
jne 0x405dda
mov eax, dword [esp + 0x14]
pop edi
cmp eax, 4
pop ebx
je 0x405e2c
push 0
push 0
push 0x40de7c
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
push eax
call sub.mfc42u.dll_AfxMessageBox
push esi
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
pop esi
xor al, al
pop ebp
add esp, 0x1c
ret
pop esi
mov al, 1
pop ebp
add esp, 0x1c
ret
push 5
call fcn.00404eb0
add esp, 4
push esi
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
pop esi
xor al, al
pop ebp
add esp, 0x1c
ret
push 5
call fcn.00404eb0
add esp, 4
push ebp
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
pop esi
xor al, al
pop ebp
add esp, 0x1c
ret
push 5
call fcn.00404eb0
add esp, 4
xor al, al
pop esi
pop ebp
add esp, 0x1c
ret
Function at 0x405e80
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.advapi32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x405f48
mov eax, dword [0x40ac6c]
push 0xf01ff
push eax
push edi
call dword [sym.imp.advapi32.dll_OpenServiceW]
mov ebx, dword [sym.imp.advapi32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x405f32
lea ecx, [esp + 0xc]
push ecx
push 1
push esi
call dword [sym.imp.advapi32.dll_ControlService]
test eax, eax
je 0x405f19
mov edi, dword [sym.imp.kernel32.dll_Sleep]
push 0x3e8
call edi
mov ebx, dword [sym.imp.advapi32.dll_QueryServiceStatus]
lea edx, [esp + 0xc]
push edx
push esi
call ebx
test eax, eax
je 0x405f08
cmp dword [esp + 0x10], 3
jne 0x405f08
push 0x3e8
call edi
lea eax, [esp + 0xc]
push eax
push esi
call ebx
test eax, eax
jne 0x405eee
mov eax, dword [esp + 0x10]
pop edi
cmp eax, 1
pop esi
sete al
pop ebx
add esp, 0x1c
ret
push 4
call fcn.00404eb0
add esp, 4
push esi
call ebx
push edi
call ebx
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x1c
ret
push 4
call fcn.00404eb0
add esp, 4
push edi
call ebx
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x1c
ret
push 4
call fcn.00404eb0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x408670
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x484
push ebx
push esi
push edi
mov esi, ecx
call fcn.00407e70
mov ebx, dword [ebp + 8]
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], eax
lea eax, [esi + 0x160]
push eax
push edi
push ebx
mov dword [esp + 0x60], 0x404e0000
mov dword [esp + 0x68], 0x403e0000
call fcn.00408440
fmul qword [0x40b318]
fld qword [0x40a560]
add esp, 0xc
fcomp st(1)
fnstsw ax
test ah, 1
je 0x4086eb
fstp st(0)
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0x404e0000
jmp 0x4086ef
fstp qword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0
add esi, 0x60
push ecx
push esi
call sub.winspool.drv_OpenPrinterW
test eax, eax
je 0x40887f
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
xor edx, edx
push eax
mov dword [esp + 0x28], edx
push ecx
mov dword [esp + 0x30], edx
push 0x40e11c
mov dword [esp + 0x38], edx
lea edx, [esp + 0x9c]
push edx
call dword [sym.imp.msvcrt.dll_swprintf]
mov esi, dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [esp + 0x2a0]
push 0x40e168
push eax
call esi
lea ecx, [esp + 0x1a8]
push 0x40de68
push ecx
call esi
lea edx, [esp + 0xb0]
add esp, 0x20
mov dword [esp + 0x24], edx
lea eax, [esp + 0x290]
lea edx, [esp + 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
push edx
lea ecx, [esp + 0x194]
push 1
push eax
mov dword [esp + 0x38], ecx
call sub.winspool.drv_StartDocPrinterW
test eax, eax
je 0x408875
mov ecx, dword [esp + 0x10]
push ecx
call sub.winspool.drv_StartPagePrinter
test eax, eax
je 0x40886b
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x34]
push 0x60
push eax
push ecx
call sub.winspool.drv_WritePrinter
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push 4
push eax
push ecx
mov dword [esp + 0x24], 0x81557ff8
call sub.winspool.drv_WritePrinter
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push 4
mov esi, 0x81cdc798
push eax
push ecx
mov dword [esp + 0x24], esi
call sub.winspool.drv_WritePrinter
test edi, edi
jle 0x408811
mov eax, ebx
mov ecx, edi
mov edx, dword [eax]
add eax, 4
xor edx, 0x81cde978
dec ecx
mov dword [eax - 4], edx
jne 0x408800
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
lea eax, [edi*4]
push edx
push eax
push ebx
push ecx
call sub.winspool.drv_WritePrinter
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push 4
push eax
push ecx
mov dword [esp + 0x24], 0x81557ff9
call sub.winspool.drv_WritePrinter
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push 4
push eax
push ecx
mov dword [esp + 0x24], esi
call sub.winspool.drv_WritePrinter
mov edx, dword [esp + 0x10]
push edx
call sub.winspool.drv_EndPagePrinter
mov eax, dword [esp + 0x10]
push eax
call sub.winspool.drv_EndDocPrinter
mov ecx, dword [esp + 0x10]
push ecx
call sub.winspool.drv_ClosePrinter
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0xa5b0a7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov ecx, dword [esp + 4]
lea ecx, [ecx + 0x6c]
xchg dword [esp + 4], ecx
mov dword [esp + 4], ecx
mov ecx, dword [esp]
lea esp, [esp + 4]
add dword [esp], 0x19250
xchg dword [esp], ebx
push edx
mov edx, dword [esp + 4]
lea edx, [edx + 0x10]
xchg dword [esp + 4], edx
mov dword [esp + 4], edx
mov edx, dword [esp]
lea esp, [esp + 4]
xchg dword [esp + 4], ebx
push esi
mov esi, dword [esp + 4]
lea esi, [esi + 0x26]
xchg dword [esp + 4], esi
mov dword [esp + 4], esi
mov esi, dword [esp]
lea esp, [esp + 4]
xchg dword [esp], ebx
push ebp
mov ebp, esp
leave
popfd
push eax
mov eax, dword [esp + 4]
lea eax, [eax + 0xb]
xchg dword [esp + 4], eax
mov dword [esp + 4], eax
mov eax, dword [esp]
lea esp, [esp + 4]
jmp fcn.00a5c790

Function at 0xa5c790
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
mov ecx, dword [esi + 4]
test eax, eax
jle 0xa5c7eb
push edi
mov edi, dword [ebp + 0x10]
sub dword [ebp + 0xc], edi
mov dword [ebp + 8], eax
mov edi, edi
inc bl
lea edi, [edi + 1]
movzx ebx, bl
mov dl, byte [esi + ebx + 8]
add cl, dl
movzx ecx, cl
mov al, byte [esi + ecx + 8]
mov byte [esi + ebx + 8], al
add al, dl
movzx eax, al
mov byte [esi + ecx + 8], dl
movzx edx, byte [eax + esi + 8]
mov eax, dword [ebp + 0xc]
xor dl, byte [eax + edi - 1]
sub dword [ebp + 8], 1
mov byte [edi - 1], dl
jne 0xa5c7b0
mov eax, dword [ebp + 0x14]
pop edi
mov dword [esi], ebx
mov dword [esi + 4], ecx
pop esi
pop ebx
pop ebp
ret

Function at 0xa6af8e
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ecx
mov ecx, dword [esp + 4]
lea ecx, [ecx + 2]
xchg dword [esp + 4], ecx
mov dword [esp + 4], ecx
mov ecx, dword [esp]
lea esp, [esp + 4]
add dword [esp], 0x14aba6
xchg dword [esp], ecx
push eax
mov eax, dword [esp + 4]
lea eax, [eax + 0x7a]
xchg dword [esp + 4], eax
mov dword [esp + 4], eax
mov eax, dword [esp]
lea esp, [esp + 4]
xchg dword [esp + 4], ecx
push esi
mov esi, dword [esp + 2]
pop esi
xchg dword [esp], ecx
push ebp
mov ebp, esp
leave
popfd
lea esi, [esi]
jmp 0xbb5aec
Function at 0x40689a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068be
xor eax, eax
test eax, eax
je 0x4068d1
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068d1
xor ecx, ecx
jmp 0x4068d4
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4069f7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43190c], 0
push esi
jne 0x406a2e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a08
mov dword [ecx*4 + 0x431908], eax
inc ecx
cmp ecx, 0x100
jl 0x406a03
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a5f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431908]
xor eax, esi
inc ecx
dec edx
jne 0x406a41
pop edi
not eax
pop esi
ret 0xc

Function at 0x43b650
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x43b3c1
and ecx, ecx
mov ecx, eax
sub eax, ecx
call fcn.0043b691
sub ecx, 0xd7c3b686
xor dword [esi], edi
mov eax, 0x87143674
and eax, ecx
inc esi
add ecx, eax
add ecx, 0xd9390792
sub ecx, 0x355a0385
cmp esi, ebx
jne fcn.0043b650
inc ecx
mov ecx, 0x137c63ed
sub eax, ecx
ret

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ed0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x7c4e5153
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
mov esi, 0x14316e73
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x402373
Capabilities:
Create pipe

Disassembly:
sub esp, 0x1c
mov eax, dword [0x448780]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
xor eax, eax
mov ebp, dword [esp + 0x30]
lea edi, [esp + 0x10]
mov ebx, ecx
stosd dword es:[edi], eax
lea esi, [esp + 0x10]
push 5
pop ecx
or dword [ebx + 8], 0xffffffff
stosd dword es:[edi], eax
mov byte [ebx + 0x20], 1
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea edi, [ebx + 0xc]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 1
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx + 0x1c], eax
test eax, eax
jne 0x4023c3
xor al, al
jmp 0x402404
push ebp
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
call fcn.00402419
cmp dword [eax + 0x14], 7
jbe 0x4023d8
mov eax, dword [eax]
push esi
push dword [ebx]
mov ecx, 0x4000
push ecx
push ecx
push 1
push esi
push 0x40000003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea ecx, [esp + 0x10]
mov dword [ebx + 8], eax
call fcn.00401ac8
cmp dword [ebx + 8], 0xffffffff
setne al
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004253a4
add esp, 0x1c
ret 4
Function at 0x402477
Capabilities:
Read file on windows
Read pipe
Write file on windows

Disassembly:
sub esp, 0x428
mov eax, dword [0x448780]
xor eax, esp
mov dword [esp + 0x424], eax
push ebx
mov ebx, dword [esp + 0x430]
push ebp
push esi
push edi
mov edi, dword [esp + 0x440]
mov esi, ecx
xor ebp, ebp
push ebx
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.00402419
cmp dword [esp + 0x30], 7
lea eax, [esp + 0x1c]
jbe 0x4024bd
mov eax, dword [esp + 0x1c]
push ebp
push ebp
push 3
push ebp
push ebp
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x402531
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x40250b
cmp dword [esp + 0x30], 7
lea eax, [esp + 0x1c]
jbe 0x4024f3
mov eax, dword [esp + 0x1c]
push dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x40250b
lea ecx, [esp + 0x1c]
call fcn.00401ac8
jmp 0x4024a1
lea ecx, [esp + 0x1c]
call fcn.00401ac8
xor al, al
mov ecx, dword [esp + 0x434]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004253a4
add esp, 0x428
ret 8
lea ecx, [esp + 0x1c]
call fcn.00401ac8
xor ebx, ebx
mov eax, dword [edi]
cmp eax, dword [edi + 4]
je 0x40255f
push ebx
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x4025a4
cmp dword [esp + 0x10], ebx
je 0x4025a4
push ebx
lea eax, [esp + 0x14]
push eax
push 0x400
lea eax, [esp + 0x40]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402514
cmp dword [esp + 0x10], ebx
je 0x4025a4
push dword [esp + 0x10]
lea eax, [esp + 0x38]
mov ecx, edi
push eax
push dword [edi + 4]
call fcn.0040217c
mov eax, dword [edi + 4]
sub eax, dword [edi]
cmp eax, dword [esi + 4]
jbe 0x40253c
jmp 0x402514
push ebx
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 1
push eax
push 4
lea eax, [esp + 0x20]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
jmp 0x402516
Function at 0x4025cc
Capabilities:
Connect pipe
Read file on windows
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x448780]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xc]
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x402665
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x402611
push edi
push dword [esi + 8]
mov ecx, esi
call fcn.00402434
test al, al
je 0x402665
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x48]
sub eax, dword [ebx]
push edi
push ecx
push eax
push dword [ebx]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40263a
push edi
push dword [esi + 8]
mov ecx, esi
call fcn.00402434
test al, al
je 0x402665
push edi
lea eax, [ebp - 0x4c]
push eax
push 0x40
lea eax, [ebp - 0x44]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402661
push edi
push dword [esi + 8]
mov ecx, esi
call fcn.00402434
test al, al
je 0x402665
mov al, 1
jmp 0x402667
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004253a4
leave
ret 4
Function at 0x406b82
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x454268], 2
jl 0x406bc3
movaps xmm0, xmmword [0x43b870]
movaps xmmword [0x449080], xmm0
movaps xmm0, xmmword [0x43b860]
movaps xmmword [0x449090], xmm0
movaps xmm0, xmmword [0x43b840]
movaps xmmword [0x4490a0], xmm0
movaps xmm0, xmmword [0x43b850]
movaps xmmword [0x4490b0], xmm0
push esi
mov esi, dword [esp + 8]
mov ecx, esi
call fcn.00406f8c
xor edx, edx
mov ecx, dword [esi + 0xf4]
mov eax, dword [edx + 0x43b820]
mov dword [edx + ecx], eax
add edx, 4
cmp edx, 0x20
jl 0x406bd1
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0xc]
xor dword [ecx + 8], eax
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0x10]
or eax, 0x2000
shl eax, 0x10
xor dword [ecx + 0xc], eax
pop esi
ret 0xc

Function at 0x407c94
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x407cbe
movzx ecx, byte [edi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x4490c0]
inc edi
sub esi, 1
jne 0x407ca6
pop edi
mov eax, edx
pop esi
ret 0xc

Function at 0x407e8b
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
mov eax, dword [0x448780]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
mov ebp, dword [esp + 0x38]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x3c]
cmp dword [edi], 2
lea esi, [edi + 4]
jne 0x407eea
mov eax, dword [esi]
push ebx
push ebx
push ebx
push ebx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push eax
push 4
lea eax, [esp + 0x28]
push eax
push 0x20
push ebp
call fcn.00408666
xor edx, edx
movzx eax, byte [esp + edx + 0x14]
mov ecx, edx
and ecx, 3
shl ecx, 3
shl eax, cl
xor ebx, eax
inc edx
cmp edx, 0x20
jb 0x407ecf
mov dword [esi], ebx
xor ebx, ebx
cmp dword [edi], 3
jne 0x407f13
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
push 0x20
push esi
push 0x20
push ebp
call fcn.00408666
push 0x20
lea eax, [esp + 0x18]
push eax
push esi
call fcn.004268c0
add esp, 0xc
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004253a4
add esp, 0x28
ret 8