joyce8/EMBER2024-capa huggingface dataset:
Function at 0x491cbc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x491d16
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.00491cac
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0048f59c
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0048f0b4
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491d1d
lea eax, [ebp - 4]
call fcn.00404bbc
ret
Function at 0x49ad18
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x49ada1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4afbd0
push 0x202
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x49ad8b
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040d0e4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x49adb8
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x4a9468]
mov dl, 1
mov eax, dword [0x49a03c]
call fcn.0040da14
call fcn.00404530
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ada8
lea eax, [ebp - 0x1c]
call fcn.00404bbc
ret

Function at 0x49b398
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, eax
xor esi, esi
xor edi, edi
movzx eax, byte [0x49b3f4]
cmp al, byte [ebx + 0x28]
je 0x49b3bc
mov esi, 0x401
mov eax, ebx
call fcn.0049b4f0
mov edi, eax
movzx eax, byte [ebx + 0x28]
push eax
push esi
push edi
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_WSAAsyncSelect
movzx eax, byte [0x49b3f4]
cmp al, byte [ebx + 0x28]
jne 0x49b3ec
xor eax, eax
mov dword [esp], eax
push esp
push 0x8004667e
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_ioctlsocket
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x49b480
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0049b398
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403eb8
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, eax
mov ecx, 0x49b4e8
mov eax, ebx
call fcn.0049ac5c
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x49b4da
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403eb8
pop esi
pop ebx
ret

Function at 0x49b50c
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.0040504c
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.004035dc
test ebx, ebx
je 0x49b55b
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
movzx ecx, byte [edx]
mov byte [esp + 4], cl
movzx ecx, byte [edx + 1]
mov byte [esp + 5], cl
movzx ecx, byte [edx + 2]
mov byte [esp + 6], cl
movzx eax, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret
Function at 0x49b638
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x49b669
mov ecx, dword [0x4a95b4]
mov dl, 1
mov eax, dword [0x49a03c]
call fcn.0040d9d8
call fcn.00404530
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x49b696
mov ecx, dword [0x4a9288]
mov dl, 1
mov eax, dword [0x49a03c]
call fcn.0040d9d8
call fcn.00404530
xor eax, eax
push ebp
push 0x49b717
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403eb8
cmp byte [ebp + 8], 0
je 0x49b6f1
mov eax, dword [ebp + 0x14]
push eax
movzx eax, word [ebp + 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0049b5a0
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
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 edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0049b3f8
jmp 0x49b70d
mov eax, dword [ebp + 0x14]
push eax
movzx eax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0049af50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49b734
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x49b918
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0049b218
xor eax, eax
push ebp
push 0x49ba8b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x49ba75
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x49b964
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x49b96e
call fcn.004045dc
jmp 0x49ba92
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041c108
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x49ba6a
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov edi, eax
cmp edi, 0xffffffff
jne 0x49ba1d
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x49ba0a
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403eb8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.0049b8d0
pop ecx
mov eax, dword [ebp - 4]
movzx edx, byte [0x49baa0]
cmp dl, byte [eax + 0x28]
je 0x49ba71
call fcn.0040d8fc
jmp 0x49ba71
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041c128
jmp 0x49ba71
cmp edi, ebx
jge 0x49ba39
mov eax, dword [ebp - 0xc]
add eax, edi
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041c128
jmp 0x49b96e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041c108
cmp edx, dword [esp + 4]
jne 0x49ba59
cmp eax, dword [esp]
pop edx
pop eax
jne 0x49b96e
push ebp
call fcn.0049b8d0
pop ecx
jmp 0x49ba71
push ebp
call fcn.0049b8d0
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ba92
mov eax, dword [ebp - 4]
call fcn.0049b224
ret
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49baa4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49bbc6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0049b218
xor eax, eax
push ebp
push 0x49bba9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x49baf4
call fcn.004045dc
jmp 0x49bbb0
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x49bb93
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x49bb93
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403eb8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x49bb93
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040d0e4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x49bbe0
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4a9468]
mov dl, 1
mov eax, dword [0x49a03c]
call fcn.0040da14
call fcn.00404530
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49bbb0
mov eax, dword [ebp - 4]
call fcn.0049b224
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49bbcd
lea eax, [ebp - 0x28]
call fcn.00404bbc
ret
Function at 0x49bc2c
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49bd76
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0049b218
xor eax, eax
push ebp
push 0x49bd59
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x49bc91
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x49bc91
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x49bd43
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x49bca4
call fcn.004045dc
jmp 0x49bd60
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x49bd43
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x49bd43
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403eb8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x49bd43
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040d0e4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x49bd90
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4a9468]
mov dl, 1
mov eax, dword [0x49a03c]
call fcn.0040da14
call fcn.00404530
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49bd60
mov eax, dword [ebp - 4]
call fcn.0049b224
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49bd7d
lea eax, [ebp - 0x28]
call fcn.00404bbc
ret
Function at 0x49e914
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
jmp 0x49e9ae
mov eax, dword [edi + 0xc]
add eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 8], eax
mov ebx, dword [edi + 0x10]
add ebx, dword [ebp + 8]
mov esi, ebx
cmp dword [edi + 4], 0xffffffff
jne 0x49e9a6
mov ebx, dword [edi]
add ebx, dword [ebp + 8]
jmp 0x49e9a6
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push esi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x49e9a0
test byte [ebx + 3], 0x80
je 0x49e97c
mov eax, dword [ebx]
and eax, 0xffff
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [esi], eax
jmp 0x49e990
mov eax, dword [ebp + 8]
add eax, dword [ebx]
add eax, 2
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [esi], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 4
push esi
call sub.kernel32.dll_VirtualProtect
add ebx, 4
add esi, 4
cmp dword [ebx], 0
jne 0x49e94f
add edi, 0x14
cmp dword [edi + 0x10], 0
je 0x49e9be
cmp dword [edi + 0xc], 0
jne 0x49e925
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x49e9c8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
mov edi, dword [ebp - 4]
push 0x40
push edi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x49eb25
cmp word [edi], 0x5a4d
jne 0x49eb25
mov esi, dword [edi + 0x3c]
add esi, dword [ebp - 4]
push 0xf8
push esi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x49eb25
cmp dword [esi], 0x4550
jne 0x49eb25
xor eax, eax
mov dword [ebp - 0x10], eax
mov ebx, esi
add ebx, 0xf8
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x49eb25
push 0x40
push 0x3000
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x49eb25
movzx eax, word [esi + 6]
mov dword [ebp - 0xc], eax
mov ecx, ebx
sub ecx, edi
mov eax, dword [ebp - 0xc]
add eax, eax
add eax, eax
add eax, eax
lea eax, [eax + eax*4]
add ecx, eax
mov edx, edi
mov eax, dword [ebp - 0x18]
call fcn.004079d8
mov ecx, dword [ebp - 0x10]
dec ecx
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x14]
xor edx, edx
call fcn.004079d8
mov edi, dword [ebp - 0xc]
dec edi
test edi, edi
jl 0x49eab2
inc edi
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
add edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
add eax, dword [ebp - 0x18]
call fcn.004079d8
add ebx, 0x28
dec edi
jne 0x49ea98
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x49ead3
mov edx, dword [esi + 0xa4]
push edx
mov ecx, eax
add ecx, dword [ebp - 0x18]
mov eax, dword [esi + 0x34]
mov edx, dword [ebp - 0x18]
call fcn.0049e8a0
mov eax, dword [esi + 0x80]
mov ebx, dword [ebp - 0x18]
add eax, ebx
push eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.0049e914
mov eax, dword [esi + 0x28]
mov edi, eax
add edi, ebx
mov edx, edi
test eax, eax
je 0x49eb1f
xor eax, eax
push ebp
push 0x49eb15
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 1
push 0
call edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49eb1f
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49eb30
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push ecx
mov dword [esp], eax
xor ebx, ebx
cmp dword [esp], 0
je 0x49eb6e
mov eax, dword [esp]
cmp word [eax], 0x5a4d
jne 0x49eb6e
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
jne 0x49eb6e
push 0x4000
mov eax, dword [esi + 0x50]
push eax
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_VirtualFree_1
test eax, eax
je 0x49eb6e
mov bl, 1
mov eax, ebx
pop edx
pop esi
pop ebx
ret
Function at 0x49f6c8
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.004035dc
ret
Function at 0x4a1abc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a1c46
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor edx, edx
mov eax, 2
call fcn.0049d634
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x140], 0x128
lea edx, [ebp - 0x140]
mov eax, dword [ebp - 0x10]
call fcn.0049d654
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 1
jne 0x4a1c22
mov edi, dword [0x4afdec]
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.00404e2c
mov ebx, dword [ebp - 0x144]
test ebx, ebx
je 0x4a1b50
sub ebx, 4
mov ebx, dword [ebx]
mov dword [ebp - 0x148], edi
mov esi, dword [ebp - 0x148]
test esi, esi
je 0x4a1b65
sub esi, 4
mov esi, dword [esi]
push esi
mov dword [ebp - 0x148], edi
mov eax, dword [ebp - 0x148]
call fcn.0040504c
push eax
push ebx
lea eax, [ebp - 0x14c]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.00404e2c
mov eax, dword [ebp - 0x14c]
call fcn.0040504c
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
sete byte [ebp - 0x12]
cmp byte [ebp - 0x12], 0
je 0x4a1bf0
mov eax, dword [ebp - 0x138]
cmp eax, dword [0x4afe20]
je 0x4a1bf0
mov eax, dword [ebp - 0x138]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0xc], eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x138]
cmp eax, dword [ebp - 4]
jne 0x4a1c01
mov byte [ebp - 5], 1
jmp 0x4a1c22
lea edx, [ebp - 0x140]
mov eax, dword [ebp - 0x10]
call fcn.0049d674
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 1
je 0x4a1b25
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1c4d
lea eax, [ebp - 0x14c]
call fcn.00404bbc
lea eax, [ebp - 0x144]
call fcn.00404bbc
ret
Function at 0x4a1c58
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040503c
xor eax, eax
push ebp
push 0x4a1ddf
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor edx, edx
mov eax, 2
call fcn.0049d634
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x148], 0x128
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 0x10]
call fcn.0049d654
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 1
jne 0x4a1db9
lea eax, [ebp - 0x150]
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.00404e2c
mov eax, dword [ebp - 0x150]
lea edx, [ebp - 0x14c]
call fcn.00408d24
mov edi, dword [ebp - 0x14c]
lea edx, [ebp - 0x154]
mov eax, dword [ebp - 4]
call fcn.00408d24
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x158], edi
mov ebx, dword [ebp - 0x158]
test ebx, ebx
je 0x4a1d28
sub ebx, 4
mov ebx, dword [ebx]
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x4a1d34
sub esi, 4
mov esi, dword [esi]
push esi
mov eax, dword [ebp - 0x18]
call fcn.0040504c
push eax
push ebx
mov dword [ebp - 0x158], edi
mov eax, dword [ebp - 0x158]
call fcn.0040504c
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
sete byte [ebp - 0x19]
cmp byte [ebp - 0x19], 0
je 0x4a1d98
mov eax, dword [ebp - 0x140]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0xc], eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 0x10]
call fcn.0049d674
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 1
je 0x4a1ccf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1de6
lea eax, [ebp - 0x154]
mov edx, 3
call fcn.00404be0
lea eax, [ebp - 4]
call fcn.00404bbc
ret
Function at 0x4a1df4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffca0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040503c
xor eax, eax
push ebp
push 0x4a1edb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x209]
mov edx, dword [ebp - 4]
call fcn.00409ce4
lea edx, [ebp - 8]
xor eax, eax
call fcn.004030bc
lea eax, [ebp - 0x309]
mov edx, dword [ebp - 8]
call fcn.00409ce4
lea eax, [ebp - 0x350]
xor ecx, ecx
mov edx, 0x44
call fcn.004035dc
mov dword [ebp - 0x350], 0x44
mov dword [ebp - 0x324], 1
mov word [ebp - 0x320], 0
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x350]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
lea eax, [ebp - 0x209]
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4a1ea2
or ebx, 0xffffffff
jmp 0x4a1ec0
mov ebx, dword [ebp - 0x358]
mov eax, dword [ebp - 0x360]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x35c]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1ee2
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404be0
ret

Function at 0x4a20b4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
push esp
push 0x10
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404e2c
add esp, 0x10c
pop ebx
ret