joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c5d4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405480
xor eax, eax
push ebp
push 0x45c6ee
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
call fcn.00404fd0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00405490
mov ebx, eax
push ebx
call sub.version.dll_GetFileVersionInfoSizeA
mov esi, eax
mov eax, esi
call fcn.00402ac8
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x45c700
push edi
call sub.version.dll_VerQueryValueA
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx + 8]
shr eax, 0x10
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x14]
call fcn.0040980c
mov eax, dword [ebx + 8]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x18]
call fcn.0040980c
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
call fcn.00405298
mov eax, dword [ebx + 0xc]
shr eax, 0x10
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1c]
call fcn.0040980c
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
call fcn.00405298
mov eax, dword [ebx + 0xc]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.0040980c
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
call fcn.00405298
mov edx, esi
mov eax, edi
call fcn.00402af8
mov eax, dword [ebp - 0x14]
call fcn.0040985c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c6f5
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00404ff4
lea eax, [ebp - 4]
call fcn.00404fd0
ret

Function at 0x45c76c
Capabilities:
Delete file
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push esp
push 0
push 0x45c7a8
mov eax, ebx
call fcn.00405490
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
je 0x45c79c
push esp
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x45c79e
xor eax, eax
add esp, 0x108
pop ebx
ret

Function at 0x45df10
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.0040372c
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x48b17c]
cmp byte [edx + 0xc], 0
je 0x45df74
mov edx, dword [0x48b170]
cmp dword [edx], 2
jne 0x45df74
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x45df78
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x45e030
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0045df10
test al, al
je 0x45e012
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.004050c0
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x45e012
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405490
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 0xc]
call fcn.00405490
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.004051c8
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x45dfcb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e037
lea eax, [ebp - 0x2c]
call fcn.00404fd0
lea eax, [ebp - 0xc]
call fcn.00404fd0
ret

Function at 0x45e130
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00405490
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x45e188
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x48b188]
mov dl, 1
mov eax, dword [0x45db24]
call fcn.0040dae0
call fcn.00404940
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0045dc2c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x45ff38
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov esi, eax
xor ebx, ebx
mov word [esp], 0
mov word [esp + 2], 1
mov word [esp + 4], dx
push 0
lea eax, [esp + 0xc]
push eax
push 6
lea eax, [esp + 0xc]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x45ff6f
xor ebx, ebx
jmp 0x45ff78
cmp dword [esp + 8], 6
jne 0x45ff78
mov bl, 1
mov eax, ebx
add esp, 0xc
pop esi
pop ebx
ret
Function at 0x45ffa8
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov esi, edx
mov dword [esp], eax
mov byte [esp + 4], 0
mov edi, dword [esi]
dec edi
test edi, edi
jb 0x460068
inc edi
xor ebx, ebx
lea eax, [ebx + ebx*2]
mov dl, byte [esi + eax*8 + 4]
mov byte [esp + 0x10], dl
mov dl, byte [esi + eax*8 + 8]
mov byte [esp + 0x11], dl
mov byte [esp + 0x13], 0
mov edx, dword [esi + eax*8 + 0x18]
mov dx, word [edx + 0xc]
mov word [esp + 0x14], dx
lea edx, [ebx + ebx*2]
mov edx, dword [esi + edx*8 + 0x18]
mov dx, word [edx + 0xe]
mov word [esp + 0x16], dx
movzx ecx, word [esp + 0x14]
movzx edx, dx
imul ecx, edx
cmp ecx, 8
jb 0x460013
mov byte [esp + 0x12], 0
jmp 0x460028
movzx ecx, word [esp + 0x14]
movzx edx, word [esp + 0x16]
imul ecx, edx
mov dl, 1
shl dl, cl
mov byte [esp + 0x12], dl
mov eax, dword [esi + eax*8 + 0x14]
mov dword [esp + 0x18], eax
mov edx, ebx
mov eax, esi
call fcn.0045ff80
mov dword [esp + 0x1c], eax
push 0
lea eax, [esp + 0xc]
push eax
push 0x10
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x4600c2
cmp dword [esp + 8], 0x10
jne 0x4600c2
inc ebx
dec edi
jne 0x45ffc7
mov edi, dword [esi]
dec edi
test edi, edi
jb 0x4600bd
inc edi
xor ebx, ebx
lea ebp, [ebx + ebx*2]
mov eax, dword [esi + ebp*8 + 0x18]
mov edx, dword [eax + 0x14]
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [eax + 0x14], edx
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + ebp*8 + 0x14]
push eax
mov eax, dword [esi + ebp*8 + 0x10]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x4600c2
mov eax, dword [esi + ebp*8 + 0x14]
cmp eax, dword [esp + 8]
jne 0x4600c2
mov eax, dword [esi + ebp*8 + 0x18]
mov edx, dword [esp + 0xc]
mov dword [eax + 0x14], edx
inc ebx
dec edi
jne 0x460072
mov byte [esp + 4], 1
mov al, byte [esp + 4]
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4610ec
Capabilities:
Get file version info
Impersonate file version information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00405480
mov eax, dword [ebp - 8]
call fcn.00405480
xor eax, eax
push ebp
push 0x4611ec
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405490
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4611d1
mov eax, ebx
call fcn.00402ac8
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4611ca
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
mov eax, dword [ebp - 0x14]
call fcn.00407f2c
mov eax, dword [ebp - 0x14]
push eax
push ebx
push 0
push esi
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x4611fc
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x461186
call fcn.004049ec
jmp 0x4611d1
push 0
mov eax, dword [ebp - 8]
call fcn.00405490
push eax
call sub.kernel32.dll_BeginUpdateResourceA
mov esi, eax
push ebx
mov eax, dword [ebp - 0x14]
push eax
push 0x41f
push 1
push 0x10
push esi
call sub.kernel32.dll_UpdateResourceA
push 0
push esi
call sub.kernel32.dll_EndUpdateResourceA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4611d1
mov eax, dword [ebp - 0x14]
call fcn.00402af8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4611f3
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ff4
ret
Function at 0x463580
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov eax, ebx
call fcn.00463090
test al, al
je 0x4635ab
mov eax, dword [ebx + 0x38]
call fcn.00405490
push eax
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
mov dword [ebx + 0x48], esi
test esi, esi
je 0x46364a
push 0x463650
mov eax, dword [ebx + 0x48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebx + 0x54], eax
push 0x463654
mov eax, dword [ebx + 0x48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebx + 0x58], eax
cmp dword [ebx + 0x54], 0
je 0x46364a
cmp dword [ebx + 0x58], 0
je 0x46364a
push 0x46365c
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov esi, eax
mov dword [ebx + 0x40], esi
test esi, esi
je 0x46364a
push 0
push 0
push 0
push 2
push esi
call sub.kernel32.dll_MapViewOfFile
mov edi, eax
mov dword [ebx + 0x4c], edi
mov eax, dword [0x48ce14]
mov dword [edi], eax
push 0x463664
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov esi, eax
mov dword [ebx + 0x44], esi
test esi, esi
je 0x46364a
push 0
push 0
push 0
push 2
push esi
call sub.kernel32.dll_MapViewOfFile
mov edi, eax
mov dword [ebx + 0x50], edi
mov eax, dword [0x48ce14]
mov dword [edi], eax
call dword [ebx + 0x54]
pop edi
pop esi
pop ebx
ret

Function at 0x463668
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x108], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x463763
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
lea eax, [ebp - 0x102]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx + 0x3c]
push eax
push 0
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 0x102]
push eax
mov eax, dword [ebx + 0x3c]
push eax
push 2
mov edi, dword [esi + 4]
push edi
call sub.user32.dll_MapVirtualKeyExA
push eax
push edi
call sub.user32.dll_ToAsciiEx
mov edx, dword [esi + 8]
test edx, 0x80000000
jne 0x463711
test al, al
jbe 0x463707
lea eax, [ebp - 0x108]
mov dl, byte [ebp - 2]
call fcn.004051b8
mov ecx, dword [ebp - 0x108]
mov edx, dword [esi + 4]
mov eax, ebx
call fcn.004631d0
xor eax, eax
mov dword [0x48ce0c], eax
jmp 0x463745
mov eax, dword [esi + 4]
mov dword [0x48ce0c], eax
jmp 0x463745
shr edx, 0x1f
and edx, 1
dec edx
jne 0x463745
cmp al, 1
jae 0x463745
cmp dword [0x48ce0c], 0
je 0x463745
lea eax, [ebp - 0x10c]
mov dl, byte [ebp - 2]
call fcn.004051b8
mov ecx, dword [ebp - 0x10c]
mov edx, dword [esi + 4]
mov eax, ebx
call fcn.004631d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46376a
lea eax, [ebp - 0x10c]
mov edx, 2
call fcn.00404ff4
ret

Function at 0x4641a0
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
cmp byte [ebx + 0xd], 0
je 0x4641bb
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 0xffffffff
je 0x4641bb
mov byte [ebx + 0xd], 0
pop ebx
ret
Function at 0x4648c4
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405480
xor eax, eax
push ebp
push 0x46492f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405490
mov esi, eax
push esi
call sub.wsock32.dll_inet_addr
mov ebx, eax
mov dword [ebp - 8], ebx
inc ebx
jne 0x464919
push esi
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x464919
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464936
lea eax, [ebp - 4]
call fcn.00404fd0
ret

Function at 0x464ae0
Capabilities:
Create tcp socket

Disassembly:
push ebx
push esi
mov esi, eax
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov dword [esi + 4], ebx
inc ebx
setne al
mov ebx, eax
test bl, bl
jne 0x464b05
mov eax, esi
call fcn.00464b7c
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x464fb4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x464fbd
mov eax, dword [ebp - 4]
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
call fcn.004641c0
xor eax, eax
push ebp
push 0x465119
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4c], 0
je 0x465100
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
call fcn.0041ba08
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x10010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
mov ecx, 0x10000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x4650e9
push 0
push ebx
lea eax, [ebp - 0x10010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov esi, eax
cmp esi, 0xffffffff
jne 0x465090
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x46507d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
call fcn.004041a0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x4c], edx
mov eax, dword [ebp - 4]
call fcn.00464b7c
mov eax, dword [ebp - 4]
call fcn.00465264
jmp 0x4650fc
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
call fcn.0041ba28
jmp 0x4650fc
cmp esi, ebx
jge 0x4650ac
mov eax, dword [ebp - 0xc]
add eax, esi
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
call fcn.0041ba28
jmp 0x464ffc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
call fcn.0041ba08
cmp edx, dword [esp + 4]
jne 0x4650cc
cmp eax, dword [esp]
pop edx
pop eax
jne 0x464ffc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
call fcn.004041a0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x4c], edx
jmp 0x4650fc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
call fcn.004041a0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x4c], edx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465120
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
call fcn.004641cc
ret

Function at 0x4653dc
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, edx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, eax
cmp byte [esi + 0x30], 0
jne 0x465438
mov eax, esi
call fcn.00464c98
test al, al
je 0x465438
push 0x10
lea eax, [esp + 4]
push eax
mov eax, dword [esi + 4]
push eax
call sub.wsock32.dll_connect
inc eax
setne bl
mov byte [esi + 0x30], bl
test bl, bl
jne 0x465429
mov eax, esi
call fcn.00464b7c
mov eax, esi
call fcn.00464b0c
jmp 0x465438
cmp word [esi + 0x1a], 0
je 0x465438
mov edx, esi
mov eax, dword [esi + 0x1c]
call dword [esi + 0x18]
mov al, byte [esi + 0x30]
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4683d4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x468402
mov eax, ebx
call fcn.00468e88
cmp dword [ebx + 0x40], 0
je 0x4683fb
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x468473
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x468465
cmp dword [ebx + 8], 0
je 0x468424
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x468436
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x468465
cmp dword [ebx + 8], 0
je 0x468417
cmp eax, 3
je 0x468449
dec eax
jne 0x468417
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x468417
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x468417
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x468491
cmp dword [ebx + 0x14], 0xcc
je 0x468491
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0046849c
pop ebx
ret
Function at 0x48048c
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes
Execute shell command and capture output
Get comspec environment variable
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
xor edx, edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x48058b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
mov edx, 0xff
call fcn.0040561c
push 0xff
lea eax, [ebp - 4]
call fcn.004054e8
push eax
push 0x48059c
call sub.kernel32.dll_GetEnvironmentVariableA
lea edx, [ebp - 4]
xchg edx, eax
call fcn.0040561c
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 8], 0xffffffff
xor eax, eax
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x34]
push eax
lea eax, [esi + 0x30]
push eax
call sub.kernel32.dll_CreatePipe
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x3c]
push eax
lea eax, [esi + 0x38]
push eax
call sub.kernel32.dll_CreatePipe
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x44
call fcn.0040372c
mov dword [ebp - 0x54], 0x44
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], 0x101
mov word [ebp - 0x24], 0
lea eax, [esi + 0x48]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x100010
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00405490
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x480575
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480592
lea eax, [ebp - 4]
call fcn.00404fd0
ret

Function at 0x4805fc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405480
xor eax, eax
push ebp
push 0x4806a5
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 4]
push 0x4806bc
push 0x4806dc
lea eax, [ebp - 4]
mov edx, 3
call fcn.00405350
mov eax, dword [ebp - 4]
call fcn.00405290
mov edx, eax
lea eax, [ebp - 0xc]
call fcn.0040561c
mov eax, dword [ebp - 0xc]
call fcn.00405490
push eax
mov eax, dword [ebp - 4]
call fcn.00405490
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405290
push eax
lea eax, [ebp - 0xc]
call fcn.004054e8
push eax
mov eax, dword [ebx + 0x34]
push eax
call sub.kernel32.dll_WriteFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4806ac
lea eax, [ebp - 0xc]
call fcn.00404fd0
lea eax, [ebp - 4]
call fcn.00404fd0
ret
Function at 0x4806e0
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 8
add esp, 0xfffff004
push eax
dec eax
jne 0x4806e9
mov eax, dword [ebp - 4]
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x8018], ecx
mov dword [ebp - 0x8014], ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
lea edi, [ebp - 8]
xor eax, eax
push ebp
push 0x480832
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404fd0
mov dword [ebp - 0xc], 0x7fff
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, dword [esi + 0x38]
push eax
call sub.kernel32.dll_PeekNamedPipe
cmp dword [edi], 0
jbe 0x480730
push 0
push edi
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x800f]
push eax
mov eax, dword [esi + 0x38]
push eax
call sub.kernel32.dll_ReadFile_1
lea eax, [ebp - 0x800f]
push eax
lea eax, [ebp - 0x800f]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 4]
lea edx, [ebp - 0x800f]
mov ecx, 0x7fff
call fcn.004050c0
lea eax, [ebp - 4]
mov edx, dword [edi]
call fcn.0040561c
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00405298
mov edx, dword [ebx]
mov eax, 0x480848
call fcn.004055d4
test eax, eax
jle 0x480800
mov al, byte [0x480854]
push eax
lea eax, [ebp - 0x8014]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x480860
call fcn.0040ef90
mov edx, dword [ebp - 0x8014]
mov eax, ebx
call fcn.00405024
mov al, byte [0x480854]
push eax
lea eax, [ebp - 0x8018]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x480848
call fcn.0040ef90
mov edx, dword [ebp - 0x8018]
mov eax, ebx
call fcn.00405024
jmp 0x48080c
push 0x4b
call sub.kernel32.dll_Sleep_1
jmp 0x480730
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480839
lea eax, [ebp - 0x8018]
mov edx, 2
call fcn.00404ff4
lea eax, [ebp - 4]
call fcn.00404fd0
ret

Function at 0x483210
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov esi, ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x483291
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1e]
mov edx, 0x1e
call fcn.00407f2c
mov dword [ebp - 0x1a], 2
mov word [ebp - 0xe], 0x94
lea eax, [ebp - 0x24]
mov ecx, 0x4832a8
mov edx, ebx
call fcn.004052dc
mov eax, dword [ebp - 0x24]
call fcn.00405490
mov dword [ebp - 0x16], eax
mov eax, esi
call fcn.00405490
mov dword [ebp - 0x12], eax
lea eax, [ebp - 0x1e]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483298
lea eax, [ebp - 0x24]
call fcn.00404fd0
ret