joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48656c
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
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00485c28
xor eax, eax
push ebp
push 0x4866dd
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 0x4866c7
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x4865b7
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4865c1
call fcn.00403cec
jmp 0x4866e4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041c8cc
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 0x4866bc
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 ecx, eax
cmp ecx, 0xffffffff
jne 0x48666f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x48665c
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403670
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.00486524
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x4866f0]
cmp dl, byte [eax + 0x28]
je 0x4866c3
call fcn.0040cae4
jmp 0x4866c3
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041c8ec
jmp 0x4866c3
cmp ecx, ebx
jge 0x48668b
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041c8ec
jmp 0x4865c1
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.0041c8cc
cmp edx, dword [esp + 4]
jne 0x4866ab
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4865c1
push ebp
call fcn.00486524
pop ecx
jmp 0x4866c3
push ebp
call fcn.00486524
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4866e4
mov eax, dword [ebp - 4]
call fcn.00485c34
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48670c
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 0x48682e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00485c28
xor eax, eax
push ebp
push 0x486811
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 0x48675c
call fcn.00403cec
jmp 0x486818
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 0x4867fb
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4867fb
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403670
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 0x4867fb
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c2d8
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, 0x486848
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4dc238]
mov dl, 1
mov eax, dword [0x484758]
call fcn.0040cc74
call fcn.00403c40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486818
mov eax, dword [ebp - 4]
call fcn.00485c34
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486835
lea eax, [ebp - 0x28]
call fcn.00404288
ret
Function at 0x486894
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 0x4869de
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00485c28
xor eax, eax
push ebp
push 0x4869c1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x4868f9
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4868f9
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 0x4869ab
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x48690c
call fcn.00403cec
jmp 0x4869c8
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 0x4869ab
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4869ab
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403670
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 0x4869ab
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c2d8
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, 0x4869f8
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4dc238]
mov dl, 1
mov eax, dword [0x484758]
call fcn.0040cc74
call fcn.00403c40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4869c8
mov eax, dword [ebp - 4]
call fcn.00485c34
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4869e5
lea eax, [ebp - 0x28]
call fcn.00404288
ret
Function at 0x48c1e4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x48c212
mov eax, ebx
call fcn.0048cc98
cmp dword [ebx + 0x40], 0
je 0x48c20b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x48c283
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x48c275
cmp dword [ebx + 8], 0
je 0x48c234
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 0x48c246
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x48c275
cmp dword [ebx + 8], 0
je 0x48c227
cmp eax, 3
je 0x48c259
dec eax
jne 0x48c227
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 0x48c227
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x48c227
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x48c2a1
cmp dword [ebx + 0x14], 0xcc
je 0x48c2a1
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.0048c2ac
pop ebx
ret
Function at 0x49f3c4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x108], edx
mov edi, eax
xor eax, eax
push ebp
push 0x49f59a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
cmp dword [edi + 0x38], 0
jne 0x49f581
mov eax, dword [edi + 0x30]
call fcn.00404548
test eax, eax
jne 0x49f41a
mov eax, dword [edi + 0x34]
call fcn.00404548
test eax, eax
jne 0x49f41a
mov eax, edi
call fcn.0049f638
jmp 0x49f581
cmp dword [edi + 0xa0], 0
jne 0x49f451
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0x30]
call fcn.004099e0
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4ddddc]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov dword [edi + 0xa0], eax
cmp dword [edi + 0xa4], 0
jne 0x49f488
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0x34]
call fcn.004099e0
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4ddddc]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov dword [edi + 0xa4], eax
mov ecx, dword [edi + 0xa4]
mov edx, dword [edi + 0xa0]
mov eax, edi
call fcn.0049f678
mov ebx, eax
test bl, bl
jne 0x49f536
mov eax, dword [edi + 0x30]
call fcn.00404548
test eax, eax
jne 0x49f4c0
mov eax, dword [edi + 0xc0]
call fcn.00404548
test eax, eax
je 0x49f536
mov eax, dword [edi + 0xc0]
call fcn.00404548
test eax, eax
je 0x49f4e2
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0xc0]
call fcn.004099e0
jmp 0x49f50e
push dword [edi + 0x30]
push 0x49f5b4
push dword [edi + 0x34]
lea eax, [ebp - 0x108]
mov edx, 3
call fcn.00404608
mov edx, dword [ebp - 0x108]
lea eax, [ebp - 0x101]
call fcn.004099e0
push 7
lea eax, [ebp - 0x101]
push eax
call sub.kernel32.dll_WinExec
cmp eax, 0x20
jb 0x49f536
mov ecx, dword [edi + 0xa4]
mov edx, dword [edi + 0xa0]
mov eax, edi
call fcn.0049f678
mov ebx, eax
test bl, bl
jne 0x49f543
mov eax, edi
call fcn.0049f638
jmp 0x49f581
mov eax, dword [edi + 0x58]
test eax, eax
je 0x49f552
mov dword [edi + 0xa8], eax
jmp 0x49f55c
mov dword [edi + 0xa8], 1
mov eax, edi
call fcn.0049f6f0
test al, al
je 0x49f581
mov eax, edi
mov si, 0xffee
call fcn.00403670
xor ecx, ecx
xor edx, edx
mov eax, edi
call fcn.0049f8c0
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f5a1
lea eax, [ebp - 0x108]
call fcn.00404288
ret
Function at 0x4a5c3c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404738
mov eax, dword [ebp - 8]
call fcn.00404738
xor eax, eax
push ebp
push 0x4a5dbd
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
jne 0x4a5c8c
lea eax, [ebp - 4]
mov edx, 0x4a5dd4
call fcn.00404320
cmp dword [ebp - 8], 0
jne 0x4a5c9f
lea eax, [ebp - 8]
mov edx, 0x4a5de0
call fcn.00404320
xor eax, eax
push ebp
push 0x4a5d8e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x1e8]
call fcn.00404548
test eax, eax
jne 0x4a5ce0
mov eax, dword [ebp - 0xc]
push eax
push 0
call sub.kernel32.dll_GetTempPathA
mov ebx, eax
lea eax, [ebx + 0xc]
call fcn.00402748
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push ebx
call sub.kernel32.dll_GetTempPathA
jmp 0x4a5d30
lea ecx, [ebp - 0x10]
mov edx, dword [ebx + 0x1e8]
mov eax, ebx
call fcn.004a7068
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x1e8]
call fcn.004042dc
mov eax, dword [ebx + 0x1e8]
call fcn.00404548
add eax, 0xd
call fcn.00402748
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x1e8]
call fcn.00404548
mov ecx, eax
inc ecx
mov edx, dword [ebx + 0x1e8]
mov eax, dword [ebp - 0xc]
call fcn.00409a04
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00404748
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
je 0x4a5d78
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00404480
mov eax, dword [ebp - 0x14]
call fcn.00409540
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0xc]
call fcn.00404480
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
call fcn.004095d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5d95
mov eax, dword [ebp - 0xc]
call fcn.00402768
ret
Function at 0x4a6d3c
Capabilities:
Get disk size

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov edi, edx
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
push 0x4a6e98
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
test ebx, ebx
je 0x4a6dcc
push 0x4a6ea4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov ebp, eax
test ebp, ebp
je 0x4a6dc6
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x1a4]
call fcn.00404748
push eax
call ebp
test eax, eax
je 0x4a6dc6
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
push ebx
call sub.kernel32.dll_FreeLibrary_1
cmp dword [esp + 0x14], 0xffffffff
jne 0x4a6e57
cmp dword [esp + 0x10], 0xffffffff
jne 0x4a6e57
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x1a4]
call fcn.00404748
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x4a6e57
mov eax, dword [esp + 8]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 8]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x14]
xor edx, edx
call fcn.0040510c
call fcn.0040510c
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0xc]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 8]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x14]
xor edx, edx
call fcn.0040510c
call fcn.0040510c
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
test edi, 1
je 0x4a6e73
mov eax, dword [esp + 0x10]
mov dword [esi + 0x198], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x19c], eax
test edi, 2
je 0x4a6e8f
mov eax, dword [esp + 0x18]
mov dword [esi + 0x188], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x18c], eax
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4a6eb8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x114], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4a7054
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xff
mov dword [ebp - 0x10], 0xff
mov dword [esi + 0x188], 0
mov dword [esi + 0x18c], 0
mov dword [esi + 0x190], 0
mov dword [esi + 0x194], 0
lea eax, [esi + 0x180]
call fcn.00404288
mov byte [ebp - 1], 0
lea edx, [ebp - 0x114]
mov eax, dword [esi + 0x1a4]
call fcn.004084d4
mov eax, dword [ebp - 0x114]
mov bl, byte [eax]
cmp bl, 0x5c
je 0x4a6f9b
cmp bl, 0x41
jb 0x4a6f49
cmp bl, 0x5a
jbe 0x4a6f66
mov eax, dword [esi + 0x1a4]
push eax
mov ecx, 0x2afb
mov dl, 1
mov eax, dword [0x4a1370]
call fcn.004a7368
call fcn.00403c40
call sub.kernel32.dll_GetLogicalDrives
mov edi, eax
xor eax, eax
mov al, bl
sub eax, 0x41
cmp eax, 0x1f
ja 0x4a6f7c
bt edi, eax
jb 0x4a6f9b
mov eax, dword [esi + 0x1a4]
push eax
mov ecx, 0x2afc
mov dl, 1
mov eax, dword [0x4a1370]
call fcn.004a7368
call fcn.00403c40
push 1
call sub.kernel32.dll_SetErrorMode
mov edi, eax
push 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x1a0]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
mov eax, dword [esi + 0x1a4]
call fcn.00404748
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
jne 0x4a6ff3
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x1f
jne 0x4a6feb
test byte [esi + 0x35], 0x80
je 0x4a6feb
mov byte [ebp - 1], 1
push edi
call sub.kernel32.dll_SetErrorMode
jmp 0x4a703b
lea eax, [esi + 0x180]
lea edx, [ebp - 0x110]
mov ecx, pe_nt_image_headers32
call fcn.004044f8
mov edx, 3
mov eax, esi
call fcn.004a6d3c
push edi
call sub.kernel32.dll_SetErrorMode
cmp bl, 0x5c
je 0x4a7037
cmp bl, 0x5c
je 0x4a703b
cmp dword [esi + 0x18c], 0xffffffff
jne 0x4a7035
cmp dword [esi + 0x188], 0xffffffff
je 0x4a703b
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a705b
lea eax, [ebp - 0x114]
call fcn.00404288
ret
Function at 0x4a895c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404738
xor eax, eax
push ebp
push 0x4a8a77
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xfffffffd
mov eax, dword [ebp - 4]
call fcn.00404548
dec eax
jle 0x4a8a61
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x3a
jne 0x4a8a61
mov eax, dword [ebp - 4]
mov al, byte [eax]
call fcn.00402bd4
add al, 0xbf
sub al, 0x1a
jae 0x4a8a61
mov eax, dword [ebp - 4]
call fcn.00404748
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x4a8a61
mov eax, dword [ebp - 4]
mov al, byte [eax]
call fcn.00402bd4
mov esi, eax
and esi, 0xff
sub esi, 0x41
push 3
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0x10], eax
push 0x4a8a88
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4a8a61
push 0x4a8a90
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edi, eax
mov dword [0x4dbc78], edi
test edi, edi
je 0x4a8a58
xor eax, eax
push ebp
push 0x4a8a51
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0xffff
push esi
push ebx
call dword [0x4dbc78]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8a58
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetErrorMode
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8a7e
lea eax, [ebp - 4]
call fcn.00404288
ret
Function at 0x4a9e74
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0xfffffff6
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x4aa045
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4aa007
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, ebx
call fcn.00402748
mov dword [ebp - 0x10], eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.004091ac
mov edx, dword [ebp - 0x10]
mov ecx, ebx
mov eax, dword [ebp - 8]
call fcn.00409154
mov eax, dword [ebp - 0x10]
cmp word [eax], 0x5a4d
je 0x4a9ef8
pop dword fs:[0]
add esp, 8
call fcn.00403cec
jmp 0x4aa04c
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
je 0x4a9f17
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00403cec
jmp 0x4aa04c
lea ebx, [edi + 0xf8]
movzx esi, word [edi + 6]
dec esi
test esi, esi
jl 0x4a9f7b
inc esi
mov edx, 0x4aa058
mov eax, ebx
call fcn.00409a24
test eax, eax
jne 0x4a9f75
lea eax, [edi + 0x78]
push eax
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x14]
add eax, dword [ebp - 0x10]
call fcn.004a9e28
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4a9f67
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00403cec
jmp 0x4aa04c
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebx + 0xc]
add eax, dword [ebx + 0x14]
mov dword [ebp - 0x1c], eax
jmp 0x4a9f7b
add ebx, 0x28
dec esi
jne 0x4a9f27
mov dl, 1
mov eax, dword [0x417c88]
call fcn.00403444
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f4]
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x4a9ff6
cmp eax, 0x2fe
jne 0x4a9ff6
xor ecx, ecx
mov edx, 0x16
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov ebx, dword [ebp - 0x10]
mov edx, ebx
mov ecx, 0x2e8
mov eax, dword [ebp - 0x14]
call fcn.0041caf8
mov eax, dword [ebp - 0x1c]
xor edx, edx
push edx
push eax
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.004091b8
mov edx, ebx
mov ecx, 0x2e8
mov eax, dword [ebp - 8]
call fcn.00409180
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x4a9ffd
mov dword [ebp - 0xc], 0xfffffff4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4aa018
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa04c
mov eax, dword [ebp - 0x10]
call fcn.00402768
mov eax, dword [ebp - 0x14]
call fcn.00403474
mov ecx, 2
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.004091ac
ret
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4aacf4
Capabilities:
Query service status

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe4
mov edi, edx
xor esi, esi
push 1
push 0
push eax
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x4aad38
push 4
push edi
push ebx
call sub.advapi32.dll_OpenServiceA
mov edi, eax
test edi, edi
jbe 0x4aad32
push esp
push edi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4aad2c
mov esi, dword [esp + 4]
push edi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
mov eax, esi
add esp, 0x1c
pop edi
pop esi
pop ebx
ret

Function at 0x4b091c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4b098d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4dbcdc]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x4b0977
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.004b090c
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4af0f0]
call fcn.004b17dc
mov dword [0x4dbd44], eax
mov eax, dword [ebp - 4]
call fcn.004b0798
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b0994
lea eax, [ebp - 8]
call fcn.00405c08
ret

Function at 0x4b0a2c
Capabilities:
Get file system object information

Disassembly:
push esi
add esp, 0xfffffea0
mov esi, 0x4008
test cl, cl
je 0x4b0a3f
or esi, 2
test dl, dl
je 0x4b0a48
or esi, 0
jmp 0x4b0a4b
or esi, 1
push esi
push 0x160
lea edx, [esp + 8]
push edx
push 0
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [esp + 4]
add esp, 0x160
pop esi
ret