joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4adda4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff67c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x980], ebx
mov dword [ebp - 0x984], ebx
mov dword [ebp - 0x97c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ae041
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x24], 3
mov eax, 0x4ae05c
call fcn.0049d570
test al, al
je 0x4addfd
mov dword [ebp - 0x24], 2
lea eax, [ebp - 0x82c]
xor ecx, ecx
mov edx, 0x800
call fcn.00403450
mov dword [ebp - 0x20], 0x16c
lea eax, [ebp - 0x28]
push eax
mov eax, dword [0x7d6554]
mov eax, dword [eax]
mov cl, 1
mov edx, 0x4ae06c
call fcn.0049ee2c
cmp dword [ebp - 0x28], 0
je 0x4ade5d
or edx, 0xffffffff
mov eax, dword [ebp - 0x28]
call fcn.0040a9e4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jle 0x4ade4d
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x5dc
jle 0x4ade5d
mov dword [ebp - 0x20], 0x5dc
mov eax, dword [ebp - 4]
call fcn.00405548
sub dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
call fcn.00405548
sub dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jg 0x4ade80
mov dword [ebp - 0x20], 0x64
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.004057a8
xor eax, eax
mov dword [ebp - 0x18], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push 0x4ae080
push dword [ebp - 8]
push 0x4ae08c
lea eax, [ebp - 0x97c]
mov edx, 3
call fcn.00405608
mov eax, dword [ebp - 0x97c]
call fcn.00405748
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x1c]
lea eax, [ebp - 0x82c]
mov edx, 0x7ff
call fcn.004a1208
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x1c]
lea eax, [ebp - 0x82c]
mov edx, 0x7ff
call fcn.004a1208
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
lea eax, [ebp - 0x82c]
mov edx, 0x7ff
call fcn.004a1208
xor eax, eax
push ebp
push 0x4adf85
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x14], 0xffffffff
setne byte [ebp - 0xd]
cmp byte [ebp - 0xd], 0
je 0x4adf6e
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x82c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4adf8c
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x4afc00
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0
lea eax, [ebp - 8]
push eax
call sub.wininet.dll_InternetGetConnectedState
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x4afc32
mov edx, 0xbb8
mov eax, 0x4afc48
call fcn.004ada90
mov byte [ebp - 9], al
mov al, byte [ebp - 9]
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x4afc5c
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 8], ecx
mov byte [ebp - 2], dl
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x4afe8b
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [ebp - 1]
call fcn.00402cc4
mov byte [ebp - 1], al
mov eax, dword [ebp - 8]
call fcn.00405278
mov dword [ebp - 0x20], 1
cmp byte [ebp - 2], 0
je 0x4afcb1
mov dword [ebp - 0x20], 3
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
call sub.mpr.dll_WNetOpenEnumA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4afe70
mov eax, dword [0x7cc528]
push eax
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
push 0x7cc528
mov eax, dword [ebp - 0x18]
push eax
push 0x7cc52c
mov eax, dword [ebp - 0x14]
push eax
call sub.mpr.dll_WNetEnumResourceA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4afdf0
cmp dword [0x7cc52c], 0
jbe 0x4afdf0
cmp dword [0x7cc52c], 0xffffffff
jae 0x4afdf0
mov eax, dword [0x7cc52c]
dec eax
test eax, eax
jb 0x4afe2f
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x10], 0
je 0x4afdde
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x10]
call fcn.00405480
mov eax, dword [ebp - 0x30]
mov ecx, 1
mov edx, 1
call fcn.004057a8
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.0040a0f8
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
mov dl, byte [ebp - 1]
call fcn.00405460
mov edx, dword [ebp - 0x34]
pop eax
call fcn.00405694
jne 0x4afdde
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x14]
call fcn.00405480
xor eax, eax
push ebp
push 0x4afdcf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GlobalFree
mov eax, dword [ebp - 0x14]
push eax
call sub.mpr.dll_WNetCloseEnum
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4afe70
add dword [ebp - 0x18], 0x20
inc dword [ebp - 0xc]
dec dword [ebp - 0x24]
jne 0x4afd3e
jmp 0x4afe2f
cmp dword [ebp - 0x10], 0x103
je 0x4afe2f
xor eax, eax
push ebp
push 0x4afe23
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GlobalFree
mov eax, dword [ebp - 0x14]
push eax
call sub.mpr.dll_WNetCloseEnum
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4afe70
xor eax, eax
push ebp
push 0x4afe50
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GlobalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4afe5a
cmp dword [ebp - 0x10], 0x103
jne 0x4afcd1
mov eax, dword [ebp - 0x14]
push eax
call sub.mpr.dll_WNetCloseEnum
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4afe92
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.0040529c
ret
Function at 0x4aff40
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
xor edx, edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x4b0000
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 2], 0
mov dword [ebp - 0x28], 1
lea eax, [ebp - 0x30]
mov dl, byte [ebp - 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x34]
call fcn.004032b0
mov edx, 0x4b0010
lea eax, [ebp - 0x34]
mov cl, 2
call fcn.00403280
lea edx, [ebp - 0x34]
lea eax, [ebp - 8]
call fcn.004054ec
mov eax, dword [ebp - 8]
call fcn.00405748
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x38]
mov dl, 1
mov al, byte [ebp - 1]
call fcn.004afc5c
mov eax, dword [ebp - 0x38]
call fcn.00405748
mov dword [ebp - 0x18], eax
mov eax, 0x4b0014
mov dword [ebp - 0x10], eax
push 1
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
call sub.mpr.dll_WNetAddConnection2A
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4affe2
mov byte [ebp - 2], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b0007
lea eax, [ebp - 0x38]
call fcn.00405278
lea eax, [ebp - 8]
call fcn.00405278
ret

Function at 0x4bc928
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe1c
xor edx, edx
mov dword [ebp - 0x1e4], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4bca22
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1e0]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, dword [ebp - 4]
call fcn.00405278
push 0x40
lea eax, [ebp - 0x50]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x50]
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4bca09
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x4bc9d1
mov eax, dword [ebp - 4]
push dword [eax]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1e4]
call fcn.00405480
push dword [ebp - 0x1e4]
push 0x4bca38
mov eax, dword [ebp - 4]
mov edx, 3
call fcn.00405608
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
cmp dword [eax + edx*4], 0
jne 0x4bc994
call sub.wsock32.dll_WSACleanup
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00405548
test eax, eax
jle 0x4bca09
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00405548
mov edx, eax
mov eax, dword [ebp - 4]
mov ecx, 1
call fcn.004057e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bca29
lea eax, [ebp - 0x1e4]
call fcn.00405278
ret

Function at 0x4c17e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo
cmp dword [ebp - 0x10], 0x1e6
je 0x4c1805
cmp dword [ebp - 0x10], 0x24a
je 0x4c1805
xor eax, eax
jmp 0x4c1807
mov al, 1
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x4c53dc
Capabilities:
Get session user name
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf0
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c54a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x400
mov eax, dword [ebp - 8]
call fcn.0040b638
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x4c542b
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0040b624
jmp 0x4c547a
call fcn.004c2e64
test al, al
je 0x4c5468
push 0x400
lea eax, [ebp - 0x410]
push eax
push 0x4c54b0
call sub.kernel32.dll_GetEnvironmentVariableA
test eax, eax
je 0x4c545e
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x410]
call fcn.0040b624
jmp 0x4c547a
lea eax, [ebp - 0xc]
call fcn.00405278
jmp 0x4c547a
lea ecx, [ebp - 0xc]
mov edx, 0x4c54c4
mov eax, 0x4c54d8
call fcn.004c1c60
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.004052cc
mov eax, dword [ebp - 0x10]
call fcn.0040b684
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c54aa
lea eax, [ebp - 0xc]
call fcn.00405278
ret

Function at 0x4c54e8
Capabilities:
Get hostname
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf0
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c55af
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x400
mov eax, dword [ebp - 8]
call fcn.0040b638
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4c5537
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0040b624
jmp 0x4c5586
call fcn.004c2e64
test al, al
je 0x4c5574
push 0x400
lea eax, [ebp - 0x410]
push eax
push 0x4c55bc
call sub.kernel32.dll_GetEnvironmentVariableA
test eax, eax
je 0x4c556a
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x410]
call fcn.0040b624
jmp 0x4c5586
lea eax, [ebp - 0xc]
call fcn.00405278
jmp 0x4c5586
lea ecx, [ebp - 0xc]
mov edx, 0x4c55d4
mov eax, 0x4c55e8
call fcn.004c1c60
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.004052cc
mov eax, dword [ebp - 0x10]
call fcn.0040b684
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c55b6
lea eax, [ebp - 0xc]
call fcn.00405278
ret

Function at 0x4c5618
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x105
mov eax, dword [ebp - 8]
call fcn.0040b638
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0040b624
mov eax, dword [ebp - 0xc]
call fcn.0040b684
mov esp, ebp
pop ebp
ret
Function at 0x4c5658
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x105
mov eax, dword [ebp - 8]
call fcn.0040b638
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetTempPathA
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0040b624
mov eax, dword [ebp - 0xc]
call fcn.0040b684
mov esp, ebp
pop ebp
ret

Function at 0x4c6234
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405278
call fcn.004c2e64
test al, al
je 0x4c6279
push 0x400
lea eax, [ebp - 0x404]
push eax
push 0x4c6280
call sub.kernel32.dll_GetEnvironmentVariableA
test eax, eax
je 0x4c6279
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x404]
call fcn.0040b624
mov esp, ebp
pop ebp
ret
Function at 0x4c7b00
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405738
xor eax, eax
push ebp
push 0x4c7c06
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4c7bf0
mov dword [ebp - 8], 0xfffffffe
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00405748
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
setne byte [ebp - 0x15]
cmp byte [ebp - 0x15], 0
je 0x4c7be7
mov dword [ebp - 8], 0xfffffffd
lea eax, [ebp - 0x14]
push eax
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_QueryServiceConfigA
mov eax, dword [ebp - 0x14]
call fcn.0040a074
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4c7bd7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_QueryServiceConfigA
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c7bde
xor edx, edx
mov eax, dword [ebp - 0x1c]
call fcn.00402828
ret
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c7c0d
lea eax, [ebp - 4]
call fcn.00405278
ret

Function at 0x4c9774
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x105
mov eax, dword [ebp - 8]
call fcn.0040b638
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetTempPathA
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0040b624
mov eax, dword [ebp - 0xc]
call fcn.0040b684
mov esp, ebp
pop ebp
ret
Function at 0x4cf094
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 4]
call fcn.00405548
dec eax
test eax, eax
jl 0x4cf0e7
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov al, byte [eax + edx]
xor al, byte [ebp - 8]
and eax, 0xff
mov eax, dword [eax*4 + 0x7cd17c]
mov edx, dword [ebp - 8]
shr edx, 8
xor eax, edx
mov dword [ebp - 8], eax
inc dword [ebp - 0xc]
dec dword [ebp - 0x10]
jne 0x4cf0bc
xor dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4f775c
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0xc
add esp, 0xfffff004
push eax
dec eax
jne 0x4f7765
mov eax, dword [ebp - 4]
add esp, 0xfffffc5c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405738
xor eax, eax
push ebp
push 0x4f783c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 4]
call fcn.00405748
push eax
push 0
call sub.advapi32.dll_OpenEventLogA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4f7826
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_GetNumberOfEventLogRecords
test eax, eax
je 0x4f7826
cmp dword [ebp - 0x18], 0
je 0x4f7826
lea eax, [ebp - 0xc3a8]
xor ecx, ecx
mov edx, 0xc388
call fcn.00403450
jmp 0x4f77f8
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc3a8]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
jmp 0x4f781d
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0xc388
lea eax, [ebp - 0xc3a8]
push eax
push 0
push 9
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_ReadEventLogA
test eax, eax
jne 0x4f77dc
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_CloseEventLog
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f7843
lea eax, [ebp - 4]
call fcn.00405278
ret

Function at 0x4f7920
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405738
xor eax, eax
push ebp
push 0x4f79d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
xor eax, eax
push ebp
push 0x4f79b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 8
call fcn.00403450
mov eax, dword [ebp - 4]
call fcn.00405748
push eax
push 0
call sub.advapi32.dll_OpenEventLogA
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4f798d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f79bf
push 0
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventA
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
mov byte [0x7cd5c0], 0
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f79bf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f79dc
lea eax, [ebp - 4]
call fcn.00405278
ret
Function at 0x4f7b84
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x424], edx
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x42c], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4f7d75
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov dword [ebp - 0x14], 0x400
xor eax, eax
push ebp
push 0x4f7d37
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4f7a98]
call fcn.00406a10
add esp, 4
mov eax, dword [ebp - 4]
call fcn.00406854
mov edx, eax
mov eax, dword [ebp - 4]
xor ecx, ecx
call fcn.00403450
mov eax, dword [ebp - 4]
call fcn.00406854
push eax
mov eax, dword [ebp - 4]
push eax
push 0
call sub.kernel32.dll_QueryDosDeviceA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4f7c35
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x7a
jne 0x4f7c35
mov eax, dword [ebp - 0x14]
add eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x18], 0
ja 0x4f7c44
cmp dword [ebp - 0x14], 0x1869f
jl 0x4f7bd4
cmp dword [ebp - 0x18], 0
jbe 0x4f7d2d
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x44]
push ebp
mov eax, dword [ebp - 8]
call fcn.004f7ac4
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4f7d29
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0x420]
xor ecx, ecx
mov edx, 0x400
call fcn.00403450
push 0x400
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00405748
push eax
call sub.kernel32.dll_QueryDosDeviceA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jbe 0x4f7d1d
lea ecx, [ebp - 0x428]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x428]
push 0x4f7d90
lea edx, [ebp - 0x42c]
lea eax, [ebp - 0x420]
call fcn.0040b624
push dword [ebp - 0x42c]
lea eax, [ebp - 0x424]
mov edx, 3
call fcn.00405608
mov ecx, dword [ebp - 0x424]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x20]
inc dword [ebp - 0x10]
dec dword [ebp - 0x20]
jne 0x4f7c80
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f7d41
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f7d7c
lea eax, [ebp - 0x42c]
mov edx, 3
call fcn.0040529c
lea eax, [ebp - 0x1c]
call fcn.00405278
lea eax, [ebp - 4]
mov edx, dword [0x4f7a98]
call fcn.00406b10
ret
Function at 0x5065a4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 4], dx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x5066e8
push dword fs:[eax]
mov dword fs:[eax], esp
and byte [ebp - 1], 0x7f
mov byte [ebp - 0xd], 0
cmp byte [ebp + 0xc], 0
je 0x5065e6
xor eax, eax
mov al, byte [ebp - 1]
call fcn.005a8144
mov byte [ebp - 1], al
push 0
push 0x80000000
push 3
push 0
push 3
push 0xc0000000
lea edx, [ebp - 0x30]
xor eax, eax
mov al, byte [ebp - 1]
call fcn.0040a83c
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 0x506704
call fcn.00405594
mov eax, dword [ebp - 0x2c]
call fcn.00405748
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x5066b8
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
shld edx, eax, 9
shl eax, 9
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
shrd eax, edx, 0x17
shr edx, 0x17
mov dword [ebp - 0x28], eax
push 0
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_SetFilePointer_1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x5066af
movzx eax, word [ebp - 4]
shl eax, 9
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_ReadFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x5066af
push 0xc8
call sub.kernel32.dll_Sleep_1
dec dword [ebp + 8]
cmp dword [ebp + 8], 0
jg 0x506676
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp byte [ebp - 0xd], 0
jne 0x5066c8
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0xc], eax
jmp 0x5066cd
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5066ef
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.0040529c
ret