joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e90
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
sub esp, 0x41c
mov eax, dword [0x4372c0]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push ebp
push esi
push edi
xor eax, eax
push 0x206
mov ebx, ecx
push eax
lea ecx, [esp + 0x22a]
push ecx
mov word [esp + 0x22c], ax
call fcn.0041a6e0
add esp, 0xc
push 1
push 0x23
lea edx, [esp + 0x228]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.baiduupdate_baidujp_update.ini
lea eax, [esp + 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [ebx]
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0x42be38
push 0xb5
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x403f32
mov edx, dword [ebx]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403f32
mov eax, dword [ebx]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x403f35
lea eax, [edi + 0x65]
jmp 0x404016
or edi, 0xffffffff
push edi
call fcn.004174af
mov ecx, dword [ebx]
add esp, 4
push 0x42be38
push 0xb5
mov esi, eax
push ecx
mov dword [esp + 0x1c], esi
call ebp
test eax, eax
je 0x403f5f
push esi
call fcn.00402b90
jmp 0x403f62
or eax, 0xffffffff
cmp edi, eax
je 0x403f79
push esi
call fcn.00417667
add esp, 4
mov eax, 0x66
jmp 0x404016
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22]
push eax
mov word [esp + 0x24], dx
call fcn.0041a6e0
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x42be88
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str..exe
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
push 0
push 0
push 1
push 0
push 0
push 0xc0000000
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x404007
mov eax, dword [esp + 0x10]
push 0
lea edx, [esp + 0x18]
push edx
push edi
push eax
push esi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00417667
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x428]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041752a
add esp, 0x41c
ret
Function at 0x4055b0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x1c
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov esi, dword [ebp + 0x10]
sub esi, dword [ebp + 0xc]
push edi
push ecx
push edx
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x38], 0
mov byte [esp + 0x39], 0
mov byte [esp + 0x3a], 0xff
mov byte [esp + 0x3b], 1
xor edi, edi
sar esi, 2
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x40560a
mov edi, 1
push edi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x40560a
mov edi, 2
cmp edi, esi
jl 0x405611
lea edi, [esi - 1]
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp + 0xc]
sar edx, 2
cmp edi, edx
jb 0x405623
call fcn.00417be5
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edi*4]
lea eax, [eax + edi*4]
push ecx
call fcn.00401670
mov edi, eax
add esp, 4
test edi, edi
jne 0x405644
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 0x14
lea edx, [esp + 0x10]
push edx
push 0x18
push edi
call dword [sym.imp.GDI32.dll_GetObjectW]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push edi
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
push esi
call edi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ebp, eax
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push 0
push 0
push esi
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x4c]
sub edx, ecx
push edx
push eax
push ecx
push ebx
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
push ebp
push esi
call edi
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x1c
ret 0x14
Function at 0x40f310
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push ebx
mov bl, byte [ecx + 8]
push esi
mov esi, dword [esp + 0x20]
cmp bl, 3
je 0x40f4af
push ebp
mov ebp, dword [ecx]
push edi
mov dword [esp + 0x10], 0
test bl, 2
je 0x40f366
movzx eax, byte [ecx + 9]
movzx esi, byte [edx]
mov edi, eax
sub edi, esi
movzx esi, byte [edx + 1]
mov dword [esp + 0x14], edi
mov edi, eax
sub edi, esi
movzx esi, byte [edx + 2]
sub eax, esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov edi, 3
jmp 0x40f379
movzx eax, byte [edx + 3]
movzx edi, byte [ecx + 9]
sub edi, eax
mov dword [esp + 0x14], edi
mov edi, 1
test bl, 4
je 0x40f38d
movzx edx, byte [edx + 4]
movzx eax, byte [ecx + 9]
sub eax, edx
mov dword [esp + edi*4 + 0x14], eax
inc edi
xor edx, edx
xor eax, eax
cmp edi, edx
jle case.0x40f3db.3
lea esp, [esp]
cmp dword [esp + eax*4 + 0x14], edx
jg 0x40f3ac
mov dword [esp + eax*4 + 0x14], edx
jmp 0x40f3b4
mov dword [esp + 0x10], 1
inc eax
cmp eax, edi
jl 0x40f3a0
cmp word [esp + 0x10], dx
je case.0x40f3db.3
movzx eax, byte [ecx + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x40f3db.3
movzx eax, byte [eax + 0x40f4cc]
jmp dword [eax*4 + 0x40f4b8]
mov ecx, dword [ecx + 4]
mov eax, esi
cmp ecx, edx
jbe case.0x40f3db.3
nop
mov dl, byte [eax]
shr dl, 1
and dl, 0x55
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x40f3f0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x14
ret
mov edi, dword [ecx + 4]
mov edx, dword [esp + 0x14]
mov ecx, edx
mov eax, 0xf0
sar eax, cl
mov ebx, 0xf
sar ebx, cl
and al, 0xf0
or al, bl
test edi, edi
jbe case.0x40f3db.3
lea ebx, [ebx]
mov bl, byte [esi]
mov cl, dl
shr bl, cl
inc esi
and bl, al
sub edi, 1
mov byte [esi - 1], bl
jne 0x40f430
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x14
ret
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x40f3db.3
mov eax, ebx
xor edx, edx
div edi
inc ebx
inc esi
mov cl, byte [esp + edx*4 + 0x14]
shr byte [esi - 1], cl
cmp ebx, ebp
jb 0x40f452
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x14
ret
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x40f3db.3
xor edx, edx
mov eax, ebx
div edi
movzx ax, byte [esi]
mov ecx, 0x100
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
inc esi
inc ebx
inc esi
movzx ecx, word [esp + edx*4 + 0x14]
shr ax, cl
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esi - 2], dl
mov byte [esi - 1], al
cmp ebx, ebp
jb 0x40f476
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x4140c0
Capabilities:
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x4140c7
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp fcn.004140d0
Function at 0x414600
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esi + 0x2c]
push edi
lea esp, [esp]
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea edx, [ecx + ebp - 0x106]
mov dword [esp + 0xc], edi
cmp eax, edx
jb 0x414690
mov eax, dword [esi + 0x38]
push ebp
lea ecx, [eax + ebp]
push ecx
push eax
call fcn.0041a760
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], ebp
sub dword [esi + 0x6c], ebp
add esp, 0xc
sub dword [esi + 0x5c], ebp
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x41465f
sub eax, ebp
jmp 0x414661
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x414650
mov ecx, dword [esi + 0x40]
mov edx, ebp
lea ecx, [ecx + ebp*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x414680
sub eax, ebp
jmp 0x414682
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x414671
add edi, ebp
mov dword [esp + 0xc], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x41474a
mov edx, dword [esi + 0x74]
add edx, dword [esi + 0x6c]
mov eax, dword [edi + 4]
add edx, dword [esi + 0x38]
mov ecx, dword [esp + 0xc]
mov ebx, eax
mov dword [esp + 0x10], edx
cmp ebx, ecx
jbe 0x4146b8
mov ebx, ecx
test ebx, ebx
je 0x41470c
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x4146da
mov edx, dword [edi]
mov ecx, dword [edi + 0x30]
mov eax, ebx
call fcn.00415120
jmp 0x4146f3
cmp eax, 2
jne 0x4146fa
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x4146ec
xor eax, eax
jmp 0x4146f7
mov edx, ebx
call fcn.004140d0
mov edx, dword [esp + 0x10]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.0041a760
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x414736
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x58]
add edx, eax
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x41474a
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x414610
pop edi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x41752a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4372c0]
jne 0x417534
repz ret
jmp fcn.00419486

Function at 0x421e29
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00419a07
and dword [ebp - 4], 0
cmp dword [0x439258], 0
mov ebx, eax
jne 0x421eda
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x421f8b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x421f8b
push eax
call fcn.00419995
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x439258], eax
call esi
push eax
call fcn.00419995
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43925c], eax
call esi
push eax
call fcn.00419995
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x439260], eax
call esi
push eax
call fcn.00419995
pop ecx
mov dword [0x439268], eax
test eax, eax
je 0x421eda
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00419995
pop ecx
mov dword [0x439264], eax
mov eax, dword [0x439264]
cmp eax, ebx
je 0x421f32
cmp dword [0x439268], ebx
je 0x421f32
push eax
call fcn.00419a10
push dword [0x439268]
mov esi, eax
call fcn.00419a10
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x421f32
test edi, edi
je 0x421f32
call esi
test eax, eax
je 0x421f29
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x421f29
test byte [ebp - 0xc], 1
jne 0x421f32
or dword [ebp + 0x10], 0x200000
jmp 0x421f6b
mov eax, dword [0x43925c]
cmp eax, ebx
je 0x421f6b
push eax
call fcn.00419a10
pop ecx
test eax, eax
je 0x421f6b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x421f6b
mov eax, dword [0x439260]
cmp eax, ebx
je 0x421f6b
push eax
call fcn.00419a10
pop ecx
test eax, eax
je 0x421f6b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x439258]
call fcn.00419a10
pop ecx
test eax, eax
je 0x421f8b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x421f8d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402ac0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526310
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x57f540]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [0x58ab04]
mov esi, edi
mov dword [ebp - 4], 0
call fcn.004029a0
test eax, eax
je 0x402bf9
mov esi, dword [edi + 0x90]
lea eax, [ebp - 0x24]
push eax
call fcn.004035f0
test eax, eax
je 0x402bf9
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
mov ecx, dword [edi + 0x54]
mov ebx, dword [ebp - 0x1c]
mov esi, dword [edi + 0x90]
sub ebx, dword [ebp - 0x24]
push ecx
mov dword [ebp - 0x60], eax
call fcn.00403b00
test eax, eax
jne 0x402bb9
cmp byte [edi + 0x51], al
jne 0x402bb9
cmp byte [edi + 0x53], al
jne 0x402bb9
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x402bb9
cmp dword [0x58aaf0], 3
jge 0x402bb9
mov ecx, dword [edi + 0x54]
lea esi, [ebp - 0x5c]
call fcn.00407810
mov ecx, esi
call fcn.00401430
mov edx, dword [edi + 0x90]
mov ecx, dword [edx + 0x90]
lea esi, [ebp - 0x40]
call fcn.00407810
mov ecx, esi
call fcn.00401430
mov eax, dword [edi + 0x54]
mov esi, dword [sym.imp.USER32.dll_SetParent]
push 0
push eax
call esi
mov ecx, dword [edi + 0x90]
mov edx, dword [ecx + 0x90]
mov eax, dword [edi + 0x54]
push edx
push eax
call esi
inc dword [0x58aaf0]
jmp 0x402bd0
mov ecx, dword [edi + 0x54]
mov esi, dword [edi + 0x90]
push ecx
call fcn.00403b00
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
cmp byte [edi + 0x51], 0
jne 0x402c2d
cmp byte [edi + 0x52], 0
je 0x402c2d
cmp byte [edi + 0x53], 0
jne 0x402c2d
cmp ebx, dword [edi + 4]
jge 0x402c15
cmp byte [edi + 0x4c], 0
je 0x402c2d
mov edx, dword [edi]
mov eax, dword [edx]
push 0
push 0
mov ecx, edi
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ff71d
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0x4c], 0
jne 0x402c2d
cmp byte [edi + 0x4f], 0
jne 0x402c2d
mov edx, dword [edi]
mov eax, dword [edx]
push 0
push 1
mov ecx, edi
call eax
mov eax, dword [ebp - 0x60]
mov ecx, dword [edi + 0x90]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
push eax
mov eax, dword [edi + 8]
push ebx
push eax
mov eax, dword [edi + 4]
push eax
lea eax, [ebp - 0x68]
push eax
call edx
mov ecx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x64]
cmp ecx, dword [edi + 0xc]
jne 0x402c5b
cmp eax, dword [edi + 0x10]
je 0x402bf9
mov edx, dword [edi + 8]
push 1
push edx
mov edx, dword [edi + 4]
push edx
push eax
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x54]
push ecx
push eax
mov dword [edi + 0xc], ecx
call dword [sym.imp.USER32.dll_MoveWindow]
jmp 0x402bf9
Function at 0x403f60
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525fb8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x57f540]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], ax
lea edx, [ebp - 0x30]
push edx
mov byte [ebp - 4], 1
call fcn.00407070
mov eax, dword [ebp - 0x30]
add esp, 4
cmp dword [ebp - 0x1c], 8
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
jae 0x403fc8
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x3c]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
cmp esi, ebx
je 0x40404b
push esi
call fcn.0040ba93
add esp, 4
cmp dword [ebp - 0x1c], 8
mov edi, eax
mov eax, dword [ebp - 0x30]
jae 0x403ff0
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x3c]
push edi
push esi
push edx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x404042
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x38]
push ecx
push 0x55ef8c
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x404042
cmp dword [ebp - 0x34], ebx
je 0x404042
mov eax, dword [ebp - 0x38]
cmp dword [eax], 0xfeef04bd
jne 0x404042
movzx ebx, word [eax + 0xa]
push edi
call fcn.0040ba88
add esp, 4
lea esi, [ebp - 0x30]
call fcn.004014a0
mov eax, ebx
jmp 0x404060
push edi
call fcn.0040ba88
add esp, 4
cmp dword [ebp - 0x1c], 8
jb 0x40405d
mov edx, dword [ebp - 0x30]
push edx
call fcn.0040ba88
add esp, 4
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ff71d
mov esp, ebp
pop ebp
ret

Function at 0x404a50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404a6b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404aa2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x404a9e
jmp 0x404a90
cmp esi, eax
jae 0x404aa2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404a90
cmp esi, eax
jb 0x404aa9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x405b40
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525a20
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x57f540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
cmp byte [esi + 8], 0
je 0x405c18
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
push 0x1000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x405c18
cmp dword [ebp - 0x14], 0
je 0x405c18
mov edi, dword [ebp + 8]
jmp 0x405bb0
push 0x2000
call fcn.0040ba93
mov edx, dword [esi + 4]
add esp, 4
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0x2000
push eax
push edx
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405bf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x405c18
lea eax, [ebp + 8]
call fcn.00405d10
jmp 0x405bb0
lea eax, [ebp + 8]
call fcn.00405d10
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405c30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.00501860
mov eax, dword [0x57f540]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x405c66
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff71d
mov esp, ebp
pop ebp
ret 4
push ebx
push edi
lea ecx, [ebp - 0x2004]
call fcn.00405af0
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 0x2008]
push ecx
lea edi, [eax + eax + 2]
mov eax, dword [esi + 4]
push edi
lea edx, [ebp - 0x2004]
push edx
push eax
call ebx
test eax, eax
je 0x405cad
cmp edi, dword [ebp - 0x2008]
je 0x405cd8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 4]
push 0
lea ecx, [ebp - 0x2008]
push ecx
push edi
lea edx, [ebp - 0x2004]
push edx
push eax
call ebx
test eax, eax
je 0x405cf0
cmp edi, dword [ebp - 0x2008]
jne 0x405cf0
pop edi
pop ebx
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff71d
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004ff71d
mov esp, ebp
pop ebp
ret 4
Function at 0x4070f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525e9e
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x57f540]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x44
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0x104]
push edi
push ecx
mov ebx, edx
mov dword [ebp - 0xa4], eax
call fcn.00501560
xor eax, eax
add esp, 0xc
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], eax
xor edx, edx
mov eax, esi
mov dword [ebp - 0x104], 0x44
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], dx
lea ecx, [eax + 2]
mov edi, edi
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x407180
sub eax, ecx
sar eax, 1
push eax
mov eax, esi
lea esi, [ebp - 0x30]
call fcn.004017b0
mov eax, esi
push eax
mov edx, 0x55f18c
lea eax, [ebp - 0x84]
mov dword [ebp - 4], edi
call fcn.00409360
push eax
mov eax, 0x55f18c
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.004093b0
add esp, 8
cmp dword [ebp - 0x70], 8
jb 0x4071da
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.0040ba88
add esp, 4
mov esi, 7
xor edx, edx
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], edi
mov word [ebp - 0x84], dx
mov byte [ebp - 4], 4
cmp dword [ebp - 0x1c], 8
jb 0x407204
mov eax, dword [ebp - 0x30]
push eax
call fcn.0040ba88
add esp, 4
xor ecx, ecx
xor edx, edx
mov eax, ebx
mov word [ebp - 0x4c], dx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], cx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x407221
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [ebp - 0x4c]
call fcn.004017b0
mov eax, esi
push eax
mov edx, 0x55f190
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 5
call fcn.00409360
add esp, 4
push edi
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x68]
mov byte [ebp - 4], 6
call fcn.00408ec0
mov ebx, 8
cmp dword [ebp - 0x8c], ebx
jb 0x407282
mov ecx, dword [ebp - 0xa0]
push ecx
call fcn.0040ba88
add esp, 4
xor edx, edx
mov dword [ebp - 0x8c], 7
mov dword [ebp - 0x90], edi
mov word [ebp - 0xa0], dx
cmp dword [ebp - 0x38], ebx
jb 0x4072ac
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0040ba88
add esp, 4
mov eax, dword [ebp - 0x68]
cmp dword [ebp - 0x54], ebx
jae 0x4072b7
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0xb8]
push ecx
lea edx, [ebp - 0x104]
push edx
push edi
push edi
push edi
push edi
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4072ec
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xa4]
mov esi, 1
mov dword [ecx], eax
jmp 0x4072f2
mov esi, dword [ebp - 0xa8]
mov edx, dword [ebp - 0xb4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x54], ebx
jb 0x407310
mov eax, dword [ebp - 0x68]
push eax
call fcn.0040ba88
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ff71d
mov esp, ebp
pop ebp
ret