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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49013a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x4900f6
mov eax, dword [ebp - 4]
call fcn.004918fc
cmp ebx, eax
jge 0x4900f6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
mov edx, ebx
call fcn.00486548
mov edx, dword [0x4880b4]
call fcn.0040470c
mov esi, eax
mov eax, esi
call fcn.00488f78
test al, al
je 0x4900ec
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edi, dword [esi + 0x44]
test edi, edi
jne 0x4900e0
xor eax, eax
push ebp
push 0x4900d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0049050c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
call fcn.0041dfd8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push dword [esi + 0x34]
push dword [esi + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x46]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, 0x2e
mov esi, dword [eax]
call dword [esi + 0xc]
movzx eax, word [ebp - 0x2a]
movzx edx, word [ebp - 0x28]
add eax, edx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x18]
movzx esi, word [ebp - 0x26]
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.00405b5c
mov eax, dword [ebp - 8]
call fcn.0040592c
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
movzx eax, byte [eax + 0x28]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004902d0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
movzx edx, byte [ebp - 9]
mov byte [eax + 0x28], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490124
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x4900d8
mov eax, dword [ebp - 4]
call fcn.00490590
ret
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0040b294
jmp 0x490124
mov eax, dword [ebp - 8]
call fcn.0040543c
jmp 0x490124
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x50]
push eax
push 0
lea edx, [ebp - 0x54]
mov eax, 0xb3
call fcn.0040a668
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x418c60]
call fcn.0040e9dc
call fcn.00404dd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490141
lea eax, [ebp - 0x54]
call fcn.0040543c
ret
Function at 0x4b2570
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 0x4b25ca
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004b2560
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004b01b8
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004afcd0
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 0x4b25d1
lea eax, [ebp - 4]
call fcn.0040543c
ret
Function at 0x4baf80
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.00403b50
ret

Function at 0x4bb36c
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 0x4bb5e3
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x3f4]
mov eax, 0x4bb5f8
call fcn.004bb1d4
lea eax, [ebp - 0x3f0]
call fcn.0040543c
lea eax, [ebp - 0x3fc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0x3f4]
call fcn.004058cc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4bb5a4
xor eax, eax
push ebp
push 0x4bb59d
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, 0x4bb638
call fcn.004bb1d4
mov eax, dword [ebp - 0x408]
call fcn.004058cc
push eax
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4bb46f
push ebp
mov eax, 0x4bb664
call fcn.004bb2c4
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, 0x4bb670
call fcn.004bb1d4
mov eax, dword [ebp - 0x40c]
call fcn.004058cc
push eax
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4bb4f9
push dword [ebp - 0x3f0]
push 0x4bb698
lea eax, [ebp - 0x410]
lea edx, [ebp - 0x3e9]
mov ecx, 0x3e9
call fcn.004056ac
push dword [ebp - 0x410]
lea eax, [ebp - 0x3f0]
mov edx, 3
call fcn.004057d0
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, 0x4bb6a4
call fcn.004bb1d4
mov eax, dword [ebp - 0x414]
call fcn.004058cc
push eax
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4bb583
push dword [ebp - 0x3f0]
push 0x4bb698
lea eax, [ebp - 0x418]
lea edx, [ebp - 0x3e9]
mov ecx, 0x3e9
call fcn.004056ac
push dword [ebp - 0x418]
lea eax, [ebp - 0x3f0]
mov edx, 3
call fcn.004057d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bb5a4
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.00405490
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bb5ea
lea eax, [ebp - 0x418]
mov edx, 5
call fcn.00405460
lea eax, [ebp - 0x3f4]
mov edx, 2
call fcn.00405460
ret
Function at 0x4bfccc
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.004058bc
xor eax, eax
push ebp
push 0x4bfe0d
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4bfddd
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.004058cc
mov ebx, eax
push ebx
call sub.kernel32.dll_DeleteFileA
push ebx
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp - 4]
call fcn.0040a88c
test al, al
jne 0x4bfd4d
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.004038ac
lea eax, [ebp - 0x1d0]
call fcn.00403648
call fcn.004030e4
push dword [0x5ced94]
push 0x4bfe24
push dword [0x5ced98]
push 0x4bfe24
push dword [0x5ced9c]
lea eax, [ebp - 0x1d8]
mov edx, 5
call fcn.004057d0
mov eax, dword [ebp - 0x1d8]
lea edx, [ebp - 0x1d4]
call fcn.004c43a8
mov edx, dword [ebp - 0x1d4]
lea eax, [ebp - 0x1d0]
call fcn.00405bec
call fcn.00403fa4
call fcn.004030e4
lea eax, [ebp - 0x1d0]
call fcn.00403974
call fcn.004030e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4bfde7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bfe14
lea eax, [ebp - 0x1d8]
mov edx, 2
call fcn.00405460
lea eax, [ebp - 4]
call fcn.0040543c
ret
Function at 0x4c12d4
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.004058bc
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x4c143c
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.004c0b44
mov esi, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, esi
call fcn.004c0b64
mov ebx, eax
jmp 0x4c140e
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004056ac
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.0040ae20
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.0040999c
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.0040999c
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00405864
je 0x4c13ee
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004056ac
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.0040999c
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.0040999c
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00405864
jne 0x4c1403
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.004c0b84
mov ebx, eax
test ebx, ebx
jne 0x4c134f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c1443
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00405460
lea eax, [ebp - 4]
call fcn.0040543c
ret
Function at 0x4c17eb
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 0x4c1845
mov eax, ebx
add eax, dword [eax + 0x3c]
mov edi, dword [eax + 0x78]
add edi, ebx
xor esi, esi
jmp 0x4c1840
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 0x4c183f
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 0x4c180c
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4c2618
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, eax
push esp
push 0xff
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
mov eax, esp
call fcn.0040b294
add esp, 0x100
pop ebx
ret

Function at 0x4c2960
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.004058bc
xor eax, eax
push ebp
push 0x4c2a3a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov ecx, 0x4c2a50
mov edx, dword [ebp - 4]
call fcn.00405754
mov eax, dword [ebp - 8]
call fcn.004058cc
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 6
ja case.0x4c29aa.0
jmp dword [eax*4 + 0x4c29b1]
mov eax, ebx
mov edx, 0x4c2a5c
call fcn.00405490
jmp 0x4c2a1f
mov eax, ebx
mov edx, 0x4c2a70
call fcn.00405490
jmp 0x4c2a1f
mov eax, ebx
mov edx, 0x4c2a80
call fcn.00405490
jmp 0x4c2a1f
mov eax, ebx
mov edx, 0x4c2a94
call fcn.00405490
jmp 0x4c2a1f
mov eax, ebx
mov edx, 0x4c2aa4
call fcn.00405490
jmp 0x4c2a1f
mov eax, ebx
mov edx, 0x4c2ab8
call fcn.00405490
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c2a41
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405460
ret
Function at 0x4c2cf8
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x5d
push 0
push 0
dec ecx
jne 0x4c2d00
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004058bc
lea eax, [ebp - 0x168]
mov edx, dword [0x408b48]
call fcn.00405ef4
xor eax, eax
push ebp
push 0x4c2f25
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x2ac]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0043d934
mov eax, dword [ebp - 0x2ac]
mov edx, 0x4c2f3c
call fcn.00405864
je 0x4c2d64
lea eax, [ebp - 4]
mov edx, 0x4c2f3c
call fcn.00405708
lea eax, [ebp - 0x2a8]
push eax
lea eax, [ebp - 0x2b0]
mov ecx, 0x4c2f48
mov edx, dword [ebp - 4]
call fcn.00405754
mov eax, dword [ebp - 0x2b0]
call fcn.004058cc
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
lea eax, [ebp - 0x2c0]
mov edx, ebx
mov cl, 4
call fcn.00416670
lea eax, [ebp - 0x2c0]
push eax
lea eax, [ebp - 0x2d0]
call fcn.00417c6c
lea edx, [ebp - 0x2d0]
pop eax
call fcn.00417c74
je 0x4c2eaf
jmp 0x4c2e94
mov eax, dword [ebp - 0x2a8]
sub eax, 0x10
jne 0x4c2e59
lea edx, [ebp - 0x2d4]
lea eax, [ebp - 0x27c]
call fcn.0040b294
mov eax, dword [ebp - 0x2d4]
mov edx, 0x4c2f54
call fcn.00405864
je 0x4c2e94
lea edx, [ebp - 0x2d8]
lea eax, [ebp - 0x27c]
call fcn.0040b294
mov eax, dword [ebp - 0x2d8]
mov edx, 0x4c2f60
call fcn.00405864
je 0x4c2e94
lea eax, [ebp - 0x2e0]
lea edx, [ebp - 0x27c]
mov ecx, 0x104
call fcn.004056ac
mov ecx, dword [ebp - 0x2e0]
lea eax, [ebp - 0x2dc]
mov edx, dword [ebp - 4]
call fcn.00405754
mov eax, dword [ebp - 0x2dc]
call fcn.004c2cf8
jmp 0x4c2e94
lea eax, [ebp - 0x2e8]
lea edx, [ebp - 0x27c]
mov ecx, 0x104
call fcn.004056ac
mov ecx, dword [ebp - 0x2e8]
lea eax, [ebp - 0x2e4]
mov edx, dword [ebp - 4]
call fcn.00405754
mov eax, dword [ebp - 0x2e4]
call fcn.004058cc
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x2a8]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4c2dc9
mov dword [ebp - 0x14c], ebx
lea eax, [ebp - 0x168]
call fcn.0040aba8
mov eax, dword [ebp - 4]
call fcn.0040b03c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c2f2c
lea eax, [ebp - 0x2e8]
mov edx, 6
call fcn.00405460
lea eax, [ebp - 0x2d0]
mov edx, dword [0x401100]
mov ecx, 2
call fcn.00406010
lea eax, [ebp - 0x2b0]
mov edx, 2
call fcn.00405460
lea eax, [ebp - 0x168]
mov edx, dword [0x408b48]
call fcn.00405fc4
lea eax, [ebp - 4]
call fcn.0040543c
ret
Function at 0x4c5584
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004058bc
mov eax, dword [ebp - 8]
call fcn.004058bc
xor eax, eax
push ebp
push 0x4c574e
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4c5716
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x40
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4196f4]
call fcn.0041e48c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4c561c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.0040a88c
test al, al
je 0x4c5612
mov eax, dword [ebp - 8]
call fcn.004058cc
mov edx, eax
lea eax, [ebp - 0x1c]
call fcn.00405634
mov eax, dword [ebp - 0x1c]
call fcn.004058cc
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c5626
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 8]
call fcn.004058cc
push eax
call sub.kernel32.dll_CreateFileA_1
push eax
call sub.kernel32.dll_CloseHandle_1
push 1
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4196f4]
call fcn.0041e48c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4c5705
push dword fs:[eax]
mov dword fs:[eax], esp
mov cx, 2
mov edx, 0xfffffffc
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea edx, [ebp - 0x14]
mov ecx, 4
mov eax, dword [ebp - 0xc]
call fcn.0041e204
mov edx, dword [ebp - 0x14]
add edx, 8
neg edx
mov cx, 2
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea edx, [ebp - 0x18]
mov ecx, 4
mov eax, dword [ebp - 0xc]
call fcn.0041e204
mov edx, dword [ebp - 0x14]
add edx, 8
add edx, dword [ebp - 0x18]
neg edx
mov cx, 2
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x14]
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 0x18]
cdq
push edx
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0041e274
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c570c
mov eax, dword [ebp - 0x10]
call fcn.0040455c
mov eax, dword [ebp - 0xc]
call fcn.0040455c
ret
Function at 0x401e50
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x416b2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push esi
mov esi, dword [esp + 0x238]
lea ecx, [esp + 4]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x20]
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x230], 0
call dword [edx + 0x54]
lea eax, [esp + 8]
push eax
call sub.MFC42u.DLL_CTime::GetTickCount
mov eax, dword [eax]
mov esi, dword [esp + 0x23c]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 4]
mov ecx, dword [esi + 0x38]
lea edx, [esp + 0xc]
mov byte [esp + 0x1c], 0
push edx
push eax
mov dword [esp + 0x18], ecx
call sub.MFC42u.DLL_CFile::SetStatus
mov ecx, dword [esi + 0x34]
mov edx, dword [esp + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 4]
mov dword [esp + 0x230], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x228]
pop esi
mov dword fs:[0], ecx
add esp, 0x230
ret 8
Function at 0x403530
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x416f07
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov eax, dword [esi + 0x44]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x18], 4
je 0x40357d
mov eax, dword [eax + 0x2c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x44]
cmp ecx, ebx
je 0x40357a
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0x44], ebx
mov eax, dword [esi + 0x2c]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp eax, ebx
je 0x403590
push eax
call edi
mov dword [esi + 0x2c], ebx
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x40359d
push eax
call edi
mov dword [esi + 0x28], ebx
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x4035aa
push eax
call edi
mov dword [esi + 0x24], ebx
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 3
call fcn.00416002
lea ecx, [esi + 0x18]
mov byte [esp + 0x18], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x14]
mov byte [esp + 0x18], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x10]
mov byte [esp + 0x18], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0xc]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x404e10
Capabilities:
Create service
Start service

Disassembly:
sub esp, 0x808
push ebx
push edi
xor ebx, ebx
push 0xf003f
push ebx
mov dword [esp + 0x10], ecx
push ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, ebx
jne 0x404e40
pop edi
xor eax, eax
pop ebx
add esp, 0x808
ret
call fcn.00403bf0
mov dword [0x420584], eax
lea eax, [esp + 0x10]
push 0x800
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
cmp eax, ebx
je 0x404e73
mov word [eax + 2], bx
mov eax, dword [0x420584]
push esi
cmp eax, ebx
je 0x404e89
lea edx, [esp + 0x14]
push str.SYS64_
push edx
jmp 0x404e93
lea eax, [esp + 0x14]
push str.SYS_
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
call esi
push ebp
lea ecx, [esp + 0x18]
push str.lvupdtio
push ecx
call esi
lea edx, [esp + 0x18]
push str..sys
push edx
call esi
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push ebx
push eax
push 1
push 3
push 1
push 0xf01ff
push str.lvupdtio
push str.lvupdtio
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jne 0x404f02
call ebp
cmp eax, 0x431
je 0x404f05
push str.Unable_to_install_kernel_mode_driver
call fcn.0040d4b0
add esp, 4
jmp 0x404f48
push eax
call ebx
push 0xf01ff
push str.lvupdtio
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x404fbb
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x404f80
call ebp
cmp eax, 0x420
je 0x404f88
push str.Unable_to_start_kernel_mode_driver
call fcn.0040d4b0
add esp, 4
push esi
call ebx
push edi
call ebx
mov edi, dword [esp + 0x14]
pop ebp
test edi, edi
jne 0x404f74
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc4]
cmp eax, 0xffffffff
je 0x404f74
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc4], 0xffffffff
mov eax, edi
pop esi
pop edi
pop ebx
add esp, 0x808
ret
mov dword [esp + 0x14], 1
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push str..lvupdtio
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [esp + 0x10]
cmp eax, 0xffffffff
mov dword [ecx + 0xc4], eax
jne 0x404f45
push str.Unable_to_open_Kernel_Mode_Driver
jmp 0x404f3d
push str.Unable_to_open_kernel_mode_driver
call fcn.0040d4b0
add esp, 4
jmp 0x404f48
Function at 0x404fd0
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 0xc4]
cmp eax, 0xffffffff
je 0x404ff6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc4], 0xffffffff
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x405012
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
push ebp
push 0xf01ff
push str.lvupdtio
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x405055
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x405052
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x405052
mov ebx, 1
push esi
call ebp
push edi
call ebp
pop ebp
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x409530
Capabilities:
Resume thread

Disassembly:
sub esp, 0x1c
push ebp
push 0
push 0
push 4
push 0
push ecx
push 0x4095f0
call sub.MFC42u.DLL_AfxBeginThread
mov ebp, eax
test ebp, ebp
je 0x4095df
mov eax, dword [ebp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp + 0x2c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4095df
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push 1
push 0
push 0
lea edx, [esp + 0x1c]
push 0
push edx
call esi
test eax, eax
je 0x4095b7
lea eax, [esp + 0x10]
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
call ebx
push 1
push 0
push 0
lea edx, [esp + 0x1c]
push 0
push edx
call esi
test eax, eax
jne 0x409596
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0x2c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x409583
pop edi
pop esi
pop ebx
mov eax, 1
pop ebp
add esp, 0x1c
ret
mov eax, 1
pop ebp
add esp, 0x1c
ret