joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46aedc
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x4082b0]
call fcn.00405e30
xor eax, eax
push ebp
push 0x46b07d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4b183c], 0
jne 0x46af37
mov ecx, dword [0x537270]
mov dl, 1
mov eax, dword [0x4088a4]
call fcn.0040d6c4
call fcn.00404bd4
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00403968
mov eax, ebx
call fcn.00405be8
mov dword [ebp - 0x24], eax
mov esi, 0x46b08c
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00406dc8
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.00405bf8
test eax, eax
jle 0x46b020
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x46b00c
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.004054d0
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x46afb2
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.004054e8
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x46afc8
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.004054e8
mov eax, dword [ebp - 0x54]
call fcn.004056f0
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.004054d0
mov eax, dword [ebp - 0x58]
call fcn.004056f0
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x46b00e
xor eax, eax
test al, al
je 0x46b019
mov ebx, 0x15
jmp 0x46b025
mov ebx, 0x10
jmp 0x46b025
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x4b183c]
call fcn.0046ad5c
mov eax, dword [ebp - 4]
call fcn.0046ad5c
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00406de0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b084
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00405284
lea eax, [ebp - 0xc]
mov edx, dword [0x4082b0]
call fcn.00405f00
ret
Function at 0x47bdb4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x47be6e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00405a68
mov eax, dword [0x5372f0]
cmp byte [eax], 0
je 0x47be23
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00405dcc
mov eax, dword [ebx]
call fcn.00405bf8
push eax
mov eax, dword [ebx]
call fcn.00405be8
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00405bf8
mov edx, eax
dec edx
mov eax, ebx
call fcn.00405dcc
jmp 0x47be55
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.0040a6b4
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00405bd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47be75
lea eax, [ebp - 0x3f0]
call fcn.00405260
ret

Function at 0x47be7c
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xfffffc14
mov ebx, edx
mov edx, esp
push edx
push 0x3e8
push 0xd
push eax
call sub.user32.dll_SendMessageA
mov edx, ebx
mov eax, esp
call fcn.0040a6b4
add esp, 0x3ec
pop ebx
ret

Function at 0x47c03c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff00
mov esi, edx
mov ebp, eax
mov edx, esi
mov eax, dword [ebp + 0x3c]
call dword [ebp + 0x38]
cmp dword [esi + 0xc], 0
jne 0x47c104
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.0045e078
mov ebx, eax
movzx edx, word [esi + 4]
mov eax, ebp
call fcn.0047bcf8
mov edi, eax
test edi, edi
je 0x47c09d
movzx eax, byte [0x47c110]
cmp al, bl
jne 0x47c09d
mov edx, edi
mov eax, ebp
call fcn.0047bc30
mov dword [esi + 0xc], 1
mov byte [ebp + 0x31], 1
jmp 0x47c104
cmp byte [ebp + 0x161], 2
jne 0x47c0c8
mov eax, dword [esi + 8]
push eax
movzx ecx, word [esi + 4]
mov eax, dword [0x5376b8]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
mov edx, 0xb006
call fcn.0044bec8
test eax, eax
jne 0x47c104
jmp 0x47c0ff
mov edx, dword [0x537594]
mov edx, dword [edx]
mov edx, dword [edx + 0x44]
mov eax, dword [ebp + 0x128]
cmp edx, eax
je 0x47c0ff
test byte [eax + 0x358], 8
jne 0x47c0ff
mov eax, dword [esi + 8]
push eax
movzx ecx, word [esi + 4]
mov eax, dword [0x537594]
mov eax, edx
mov edx, 0xb006
call fcn.0044bec8
xor eax, eax
mov dword [esi + 0xc], eax
add esp, 0x100
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x482424
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, eax
mov eax, dword [0x5376b8]
mov eax, dword [eax]
cmp dword [eax + 0x58], 0
jne 0x4824ca
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebx + 0x80]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x84]
cdq
cmp edx, dword [esp + 4]
jne 0x482469
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4824a5
jmp 0x48246d
pop edx
pop eax
jge 0x4824a5
mov eax, dword [0x5376b8]
mov eax, dword [eax]
mov dword [eax + 0x38], 2
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0047ce40
mov eax, dword [ebx + 0xf4]
test eax, eax
je 0x4824ca
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x4824ca
cmp dword [ebx + 0x11c], 0
je 0x4824ca
xor edx, edx
mov eax, dword [ebx + 0x58]
call fcn.00439e4c
push 0
push 0
push 0x10
mov eax, dword [ebx + 0x12c]
push eax
call sub.user32.dll_PostMessageA
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x489384
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x48943e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00405a68
mov eax, dword [0x5372f0]
cmp byte [eax], 0
je 0x4893f3
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00405dcc
mov eax, dword [ebx]
call fcn.00405bf8
push eax
mov eax, dword [ebx]
call fcn.00405be8
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00405bf8
mov edx, eax
dec edx
mov eax, ebx
call fcn.00405dcc
jmp 0x489425
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.0040a6b4
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00405bd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489445
lea eax, [ebp - 0x3f0]
call fcn.00405260
ret

Function at 0x48c5ac
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x48c606
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [esi + 0x310], ecx
mov dword [esi + 0x314], edx
mov eax, dword [edx + 0x4c]
mov dword [esi + 0x304], eax
mov eax, dword [eax + 0x44]
mov dword [esi + 0xc], eax
mov edx, dword [esi + 0x310]
mov eax, esi
call fcn.0048c610
mov eax, dword [esi + 0x310]
mov edx, dword [eax + 0x30]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x6c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c60d
ret
Function at 0x492e64
Capabilities:
Capture webcam image

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov edi, edx
mov ebx, eax
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_IsWindow
test eax, eax
jne 0x492e9a
jmp 0x492f40
push 0xfffffffffffffff0
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_GetWindowLongA
mov esi, eax
mov eax, esp
push eax
push 0
push 0x419
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
test esi, 2
jbe 0x492ede
mov edx, dword [ebx + 0x4c]
cmp dword [edx + 0x184], 0
je 0x492ede
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + 0x184]
mov eax, dword [eax + 0x14]
jmp 0x492eee
mov edx, dword [ebx + 0x4c]
mov edx, dword [edx + 0x180]
test edx, edx
je 0x492eee
mov eax, dword [edx + 0x14]
test eax, eax
je 0x492f07
push eax
push 2
push 5
mov edx, dword [edi + 0x10]
lea ecx, [esp + 0xc]
mov eax, ebx
call fcn.0048f7f0
jmp 0x492f40
mov dl, 1
mov eax, dword [0x424088]
call fcn.004262a4
mov esi, eax
mov edx, dword [edi + 0x10]
mov eax, esi
call fcn.00426c78
mov eax, dword [ebx + 0x4c]
mov edx, dword [eax + 0xc4]
mov eax, dword [esi + 0x10]
call fcn.00425dc8
mov edx, esp
mov eax, esi
call fcn.004269b4
mov eax, esi
call fcn.00404360
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x495770
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, ebx
call fcn.00452ba8
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x2c1], 0
xor edx, edx
mov eax, ebx
call fcn.0044aac0
pop ebx
ret
Function at 0x49fde8
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
cmp byte [ebx + 0x98], 0
je 0x49fe0e
push 0
mov eax, dword [ebx + 0x94]
call fcn.00452ba8
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x98], 0
pop ebx
ret

Function at 0x49fec8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4a003a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov byte [eax + 0xa4], 1
mov eax, dword [ebp - 0xc]
test byte [eax + 0x1c], 0x10
jne 0x4a001f
lea eax, [ebp - 0x10d]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 4]
lea eax, [ebp - 0x10d]
call fcn.0040a6b4
mov dl, 1
mov eax, dword [0x476268]
call fcn.004762c0
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x9c], eax
mov dl, 1
mov eax, dword [0x417cf4]
call fcn.00404330
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0xa0]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x9c]
call fcn.0047633c
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x4a001b
mov dl, 1
mov eax, dword [0x4777d4]
call fcn.0047783c
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x34], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x9c]
mov edx, 0x4a0050
call fcn.00476ab0
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00405578
xor eax, eax
push ebp
push 0x4a0014
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x34]
call fcn.00477b44
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.004a0058
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a001b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x9c]
call fcn.00404360
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
call fcn.00404360
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x34]
call fcn.00404360
ret
movzx ebx, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0041
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405284
ret

Function at 0x4a2608
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.00403968
ret
Function at 0x4a29f4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe8
push ebx
xor edx, edx
mov dword [ebp - 0x418], edx
mov dword [ebp - 0x414], edx
mov dword [ebp - 0x410], edx
mov dword [ebp - 0x40c], edx
mov dword [ebp - 0x408], edx
mov dword [ebp - 0x3f0], edx
mov dword [ebp - 0x3f4], edx
mov dword [ebp - 0x3f8], eax
xor eax, eax
push ebp
push 0x4a2c6b
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x3f4]
mov eax, 0x4a2c80
call fcn.004a285c
lea eax, [ebp - 0x3f0]
call fcn.00405260
lea eax, [ebp - 0x3fc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0x3f4]
call fcn.004056f0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4a2c2c
xor eax, eax
push ebp
push 0x4a2c25
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x3e9
mov dword [ebp - 0x404], ebx
mov dword [ebp - 0x400], 7
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x3e9]
push eax
lea eax, [ebp - 0x400]
push eax
push 0
lea edx, [ebp - 0x408]
mov eax, 0x4a2cc0
call fcn.004a285c
mov eax, dword [ebp - 0x408]
call fcn.004056f0
push eax
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4a2af7
push ebp
mov eax, 0x4a2cec
call fcn.004a294c
pop ecx
mov dword [ebp - 0x404], ebx
mov dword [ebp - 0x400], 1
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x3e9]
push eax
lea eax, [ebp - 0x400]
push eax
push 0
lea edx, [ebp - 0x40c]
mov eax, 0x4a2cf8
call fcn.004a285c
mov eax, dword [ebp - 0x40c]
call fcn.004056f0
push eax
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4a2b81
push dword [ebp - 0x3f0]
push 0x4a2d20
lea eax, [ebp - 0x410]
lea edx, [ebp - 0x3e9]
mov ecx, 0x3e9
call fcn.004054d0
push dword [ebp - 0x410]
lea eax, [ebp - 0x3f0]
mov edx, 3
call fcn.004055f4
mov dword [ebp - 0x404], ebx
mov dword [ebp - 0x400], 1
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x3e9]
push eax
lea eax, [ebp - 0x400]
push eax
push 0
lea edx, [ebp - 0x414]
mov eax, 0x4a2d2c
call fcn.004a285c
mov eax, dword [ebp - 0x414]
call fcn.004056f0
push eax
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4a2c0b
push dword [ebp - 0x3f0]
push 0x4a2d20
lea eax, [ebp - 0x418]
lea edx, [ebp - 0x3e9]
mov ecx, 0x3e9
call fcn.004054d0
push dword [ebp - 0x418]
lea eax, [ebp - 0x3f0]
mov edx, 3
call fcn.004055f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2c2c
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x3f8]
mov edx, dword [ebp - 0x3f0]
call fcn.004052b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2c72
lea eax, [ebp - 0x418]
mov edx, 5
call fcn.00405284
lea eax, [ebp - 0x3f4]
mov edx, 2
call fcn.00405284
ret
Function at 0x4a78c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe28
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1d4], edx
mov dword [ebp - 0x1d8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004056e0
xor eax, eax
push ebp
push 0x4a79fb
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4a79cb
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.004056f0
mov ebx, eax
push ebx
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp - 4]
call fcn.0040a0a0
test al, al
jne 0x4a793b
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ebx
call sub.kernel32.dll_CreateFileA_1
push eax
call sub.kernel32.dll_CloseHandle_1
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.00403700
lea eax, [ebp - 0x1d0]
call fcn.0040349c
call fcn.00403094
push dword [0x53ceb0]
push 0x4a7a14
push dword [0x53ceb4]
push 0x4a7a14
push dword [0x53ceb8]
lea eax, [ebp - 0x1d8]
mov edx, 5
call fcn.004055f4
mov eax, dword [ebp - 0x1d8]
lea edx, [ebp - 0x1d4]
call fcn.004acacc
mov edx, dword [ebp - 0x1d4]
lea eax, [ebp - 0x1d0]
call fcn.00405a10
call fcn.00403dbc
call fcn.00403094
lea eax, [ebp - 0x1d0]
call fcn.004037c8
call fcn.00403094
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a79d5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a7a02
lea eax, [ebp - 0x1d8]
mov edx, 2
call fcn.00405284
lea eax, [ebp - 4]
call fcn.00405260
ret
Function at 0x4a8080
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004056e0
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x4a81e8
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.004a1ce8
mov esi, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, esi
call fcn.004a1d08
mov ebx, eax
jmp 0x4a81ba
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004054d0
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.0040a2c4
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00409550
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00409550
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00405688
je 0x4a819a
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004054d0
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00409550
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00409550
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00405688
jne 0x4a81af
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov edx, edi
mov eax, esi
call fcn.004a1d28
mov ebx, eax
test ebx, ebx
jne 0x4a80fb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a81ef
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00405284
lea eax, [ebp - 4]
call fcn.00405260
ret
Function at 0x4a8563
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
test ebx, ebx
je 0x4a85bd
mov eax, ebx
add eax, dword [eax + 0x3c]
mov edi, dword [eax + 0x78]
add edi, ebx
xor esi, esi
jmp 0x4a85b8
mov eax, dword [edi + 0x20]
lea edx, [ebx + eax]
mov eax, dword [edx + esi*4]
add eax, ebx
push dword [ebp + 0xc]
push eax
call sub.kernel32.dll_lstrcmpA
test eax, eax
jne 0x4a85b7
mov edx, dword [edi + 0x24]
lea ecx, [ebx + edx]
mov ax, word [ecx + esi*2]
movzx edx, ax
mov ecx, dword [edi + 0x1c]
lea eax, [ebx + ecx]
mov eax, dword [eax + edx*4]
add eax, ebx
mov dword [ebp - 4], eax
inc esi
cmp esi, dword [edi + 0x18]
jb 0x4a8584
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4ab104
Capabilities:
Log keystrokes via application hook

Disassembly:
xor eax, eax
mov dword [0x53cfcc], eax
push 0x4ab144
call sub.user32.dll_RegisterWindowMessageA
mov dword [0x53cfcc], eax
mov eax, dword [0x537594]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [0x53cfd0], eax
push 0
mov eax, dword [0x53a7f8]
push eax
push 0x4ab0b4
push 0xd
call sub.user32.dll_SetWindowsHookExA
mov dword [0x53cfd4], eax
ret

Function at 0x4ab254
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004056e0
xor eax, eax
push ebp
push 0x4ab32e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov ecx, 0x4ab344
mov edx, dword [ebp - 4]
call fcn.00405578
mov eax, dword [ebp - 8]
call fcn.004056f0
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 6
ja case.0x4ab29e.0
jmp dword [eax*4 + 0x4ab2a5]
mov eax, ebx
mov edx, 0x4ab350
call fcn.004052b4
jmp 0x4ab313
mov eax, ebx
mov edx, 0x4ab364
call fcn.004052b4
jmp 0x4ab313
mov eax, ebx
mov edx, 0x4ab374
call fcn.004052b4
jmp 0x4ab313
mov eax, ebx
mov edx, 0x4ab388
call fcn.004052b4
jmp 0x4ab313
mov eax, ebx
mov edx, 0x4ab398
call fcn.004052b4
jmp 0x4ab313
mov eax, ebx
mov edx, 0x4ab3ac
call fcn.004052b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ab335
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405284
ret
Function at 0x4012d1
Capabilities:
Accept command line arguments
Create directory
Get common file path
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [ebp + 0xc]
push str.MCAFEE_FRAMEWORK_LOG_MUTEX
push 0
push 0
mov dword [0x406018], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, 0xffffffff
mov dword [0x406010], eax
je 0x4013fa
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, dword [sym.imp.MSVCRT.dll__mbsstr]
mov esi, str._LOGDIR
push esi
push eax
call ebx
pop ecx
mov dword [ebp + 0xc], eax
test eax, eax
pop ecx
je 0x401350
mov edi, 0x104
push edi
push esi
call sub.MSVCRT.dll_strlen
add eax, dword [ebp + 0xc]
pop ecx
mov esi, 0x40700c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x4060cc
push esi
call ebx
pop ecx
test eax, eax
pop ecx
je 0x401399
and byte [eax], 0
jmp 0x401399
lea eax, [ebp - 0x118]
mov edi, 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x21c]
push edi
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp - 0x21c]
push str.NAILogs
push eax
push 0x4060bc
mov esi, 0x40700c
push edi
push esi
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x14]
push eax
push esi
push str._sFrmInst__s.log
lea eax, [ebp - 0x320]
push edi
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea eax, [ebp - 0x320]
push 0
push 0x80
push 4
push dword [ebp + 0x10]
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
pop edi
pop esi
mov dword [0x406014], eax
pop ebx
leave
ret

Function at 0x4013fc
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push 0x407008
push dword [ebp + 8]
call fcn.004011f6
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp - 0x400]
push 0x400
push eax
call fcn.0040199a
lea eax, [ebp - 0x400]
push eax
push str.START___s_
push dword [ebp + 8]
call fcn.004011f6
add esp, 0x18
leave
ret

Function at 0x401676
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push edi
push esi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4016a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x4016a2
cmp esi, 0xb7
je 0x4016d0
cmp esi, 5
je 0x4016d0
push dword [esp + 0xc]
mov edi, str.Common
push str.CreateDirectory___s_
push edi
call fcn.004011f6
add esp, 0xc
test esi, esi
je 0x4016d0
push 0x407008
push esi
push edi
call fcn.0040120e
add esp, 0xc
xor eax, eax
jmp 0x4016d3
push 1
pop eax
pop edi
pop esi
ret