joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e49d
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e4c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40e4c3
xor al, al
jmp 0x40e4e3
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.004131f0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x4128af
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x4128c8
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi + ecx - 4]
mov dword [ebp - 4], ecx
lea esi, [eax + edi]
jmp 0x4128eb
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x4128f0
inc esi
cmp esi, dword [ebp - 4]
jb 0x4128e2
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 4]
mov dword [ebp - 8], eax
jae 0x4129e5
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x412944
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp + 0xc], eax
je 0x41291b
cmp cl, 0xff
jne 0x41296f
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x18], 0
je 0x41297d
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x412984
dec ecx
shl edx, cl
and edx, 7
je 0x41290c
movzx ecx, byte [edx + 0x415d8c]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x415d84], 0
mov cl, byte [ebx + 4]
je 0x41296c
test cl, cl
je 0x41296c
cmp cl, 0xff
jne 0x41290c
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x4128dd
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x4129b8
movzx edi, byte [edx + 0x415d8c]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
mov eax, ebx
shr eax, cl
test al, al
je 0x4129a3
cmp al, 0xff
jne 0x4129b5
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x412936
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x4128dd
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret
Function at 0x403268
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [ebp + 8], 0
je 0x4032b3
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_wcslen
lea edx, [eax + eax]
mov dword [esp + 0x10], 0
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
nop
leave
ret

Function at 0x403397
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
call fcn.00406bae
mov ecx, eax
call fcn.00406d48
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4034a1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x27100c]
test eax, eax
je 0x4034a1
movzx eax, word [0x5fa060]
test ax, ax
jne 0x40342a
mov dword [ebp - 0x14], 0x800
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
lea eax, [ebp - 0x814]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_GetUserNameW]
call eax
sub esp, 8
lea eax, [ebp - 0x814]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_CharLowerW]
call eax
sub esp, 4
lea eax, [ebp - 0x814]
mov dword [esp + 8], eax
mov dword [esp + 4], str..mailslotMAZINGER__s
mov dword [esp], 0x5fa060
mov eax, dword [sym.imp.USER32.dll_wsprintfW]
call eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x40000000
mov dword [esp], 0x5fa060
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileW]
call eax
sub esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4034a1
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.004032b6
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00403268
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
nop
leave
ret
Function at 0x4034a4
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1408
call fcn.004914a0
sub esp, eax
call fcn.00406bae
mov ecx, eax
call fcn.00406d48
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4035ac
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x271010]
test eax, eax
je 0x4035ac
mov dword [ebp - 0x14], 0x800
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
lea eax, [ebp - 0x13e4]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_GetUserNameW]
call eax
sub esp, 8
lea eax, [ebp - 0x13e4]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_CharLowerW]
call eax
sub esp, 4
lea eax, [ebp - 0x13e4]
mov dword [esp + 8], eax
mov dword [esp + 4], str..mailslotMAZINGER_SPY__s
lea eax, [ebp - 0xbe4]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_wsprintfW]
call eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x40000000
lea eax, [ebp - 0xbe4]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileW]
call eax
sub esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4035ac
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.004032b6
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00403268
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
nop
leave
ret
Function at 0x406d87
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0xc], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1100
mov eax, dword [sym.imp.KERNEL32.dll_FormatMessageW]
call eax
sub esp, 0x1c
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x406df2
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.Unknown_error:__d_n
call fcn.004069c4
jmp 0x406e05
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], str.Error:__s_n
call fcn.004069c4
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
call eax
sub esp, 4
mov dword [esp], 1
mov eax, dword [sym.imp.KERNEL32.dll_ExitProcess]
call eax
Function at 0x406f9e
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x1d4
mov dword [ebp - 0x1ac], ecx
mov eax, dword [ebp - 0x1ac]
add eax, 0x1c
mov ecx, eax
call fcn.004bfb20
mov ebx, eax
mov eax, dword [ebp - 0x1ac]
add eax, 4
mov ecx, eax
call fcn.004bfb20
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str.MAZINGER_CONFIG__hs__hs
lea eax, [ebp - 0x198]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_wsprintfW]
call eax
lea eax, [ebp - 0x198]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_CharLowerW]
call eax
sub esp, 4
mov dword [ebp - 0x1a4], 0xc
mov dword [ebp - 0x19c], 0
call fcn.00406e23
mov dword [ebp - 0x1a0], eax
lea eax, [ebp - 0x198]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x271214
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
lea eax, [ebp - 0x1a4]
mov dword [esp + 4], eax
mov dword [esp], 0xffffffff
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
call eax
sub esp, 0x18
mov edx, dword [ebp - 0x1ac]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 0x1ac]
mov eax, dword [eax + 0x3c]
test eax, eax
jne 0x40709a
lea eax, [ebp - 0x198]
mov dword [esp + 4], eax
mov dword [esp], str.Unable_to_create_shared_memory__s_n
call fcn.004069c4
call fcn.00406d87
mov eax, 0
jmp 0x407185
mov eax, dword [ebp - 0x1ac]
mov eax, dword [eax + 0x3c]
mov dword [esp], eax
call fcn.00406ebf
mov eax, dword [ebp - 0x1ac]
mov dword [eax + 0x40], 1
mov eax, dword [ebp - 0x1ac]
mov eax, dword [eax + 0x3c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 6
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
call eax
sub esp, 0x14
mov edx, dword [ebp - 0x1ac]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 0x1ac]
mov eax, dword [eax + 0x44]
test eax, eax
jne 0x407126
lea eax, [ebp - 0x198]
mov dword [esp + 4], eax
mov dword [esp], str.Unable_to_map_shared_memory__RW___s_n
call fcn.004069c4
call fcn.00406d87
mov eax, 0
jmp 0x407185
mov eax, dword [ebp - 0x1ac]
mov eax, dword [eax + 0x44]
mov word [eax + 0xc], 0
mov eax, dword [ebp - 0x1ac]
mov eax, dword [eax + 0x44]
mov dword [eax + 0x27100c], 0
mov eax, dword [ebp - 0x1ac]
mov eax, dword [eax + 0x44]
mov dword [eax + 0x271010], 0
mov eax, dword [ebp - 0x1ac]
mov eax, dword [eax + 0x44]
mov dword [eax], 0
mov eax, dword [ebp - 0x1ac]
mov eax, dword [eax + 0x44]
mov word [eax + 0x271014], 0
mov eax, dword [ebp - 0x1ac]
mov eax, dword [eax + 0x44]
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x407d86
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
lea eax, [ebp - 0x24]
mov ecx, eax
call fcn.005393a0
mov dword [ebp - 0x28], 0x1000
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
mov dword [esp], str.soffid.hostname.format
call fcn.00409be0
test al, al
je 0x407dd3
mov dword [esp + 4], 0x574678
lea eax, [ebp - 0x24]
mov dword [esp], eax
call fcn.00558b90
test al, al
je 0x407dd3
mov eax, 1
jmp 0x407dd8
mov eax, 0
test al, al
je 0x407df6
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov dword [esp], 0x870220
mov eax, dword [sym.imp.KERNEL32.dll_GetComputerNameA]
call eax
sub esp, 8
jmp 0x407e6d
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov dword [esp], 0x870220
mov eax, dword [sym.imp.KERNEL32.dll_GetComputerNameA]
call eax
sub esp, 8
mov dword [ebp - 0x28], 0x1000
lea eax, [ebp - 0x28]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x870220
mov dword [esp], 3
mov eax, dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
call eax
sub esp, 0xc
test eax, eax
jne 0x407e45
mov eax, 0x870220
movzx eax, byte [eax]
test al, al
jne 0x407e4c
mov eax, 1
jmp 0x407e51
mov eax, 0
test al, al
je 0x407e6d
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov dword [esp], 0x870220
mov eax, dword [sym.imp.KERNEL32.dll_GetComputerNameA]
call eax
sub esp, 8
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
add eax, 0x870220
movzx eax, byte [eax]
test al, al
je 0x407ead
mov eax, dword [ebp - 0xc]
add eax, 0x870220
movzx eax, byte [eax]
movsx eax, al
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll_tolower]
call eax
mov edx, eax
mov eax, dword [ebp - 0xc]
add eax, 0x870220
mov byte [eax], dl
add dword [ebp - 0xc], 1
jmp 0x407e74
mov ebx, 0x870220
lea eax, [ebp - 0x24]
mov ecx, eax
call fcn.00539b30
mov eax, ebx
jmp 0x407ed6
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x409be0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 0xc]
mov ecx, eax
call fcn.005372c0
lea eax, [ebp - 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20119
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWARESoffidesso
mov dword [esp], 0x80000002
mov eax, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call eax
sub esp, 0x14
test eax, eax
je 0x409c58
lea eax, [ebp - 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWARESoffidesso
mov dword [esp], 0x80000002
mov eax, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call eax
sub esp, 0x14
test eax, eax
jne 0x409c5f
mov eax, 1
jmp 0x409c64
mov eax, 0
test al, al
je 0x409d55
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x1c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x18]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call eax
sub esp, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xea
je 0x409cc1
cmp dword [ebp - 0xc], 0
jne 0x409d14
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x1c]
mov dword [esp + 0x14], edx
mov edx, dword [ebp - 0x10]
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x18]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call eax
sub esp, 0x18
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
add eax, edx
mov byte [eax], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call eax
sub esp, 4
cmp dword [ebp - 0xc], 0
jne 0x409d55
cmp dword [ebp - 0x10], 0
je 0x409d55
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov dword [esp], edx
mov ecx, eax
call fcn.00537960
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.004ab508
mov eax, 1
jmp 0x409d5a
mov eax, 0
leave
ret
Function at 0x409d5c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
test al, al
je 0x409e1f
mov dword [esp + 0x20], 0
lea eax, [ebp - 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2011f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x574888
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWARESoffidesso
mov dword [esp], 0x80000002
mov eax, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
call eax
sub esp, 0x24
test eax, eax
je 0x409e18
mov dword [esp + 0x20], 0
lea eax, [ebp - 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2001f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x574888
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWARESoffidesso
mov dword [esp], 0x80000002
mov eax, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
call eax
sub esp, 0x24
test eax, eax
jne 0x409e1f
mov eax, 1
jmp 0x409e24
mov eax, 0
test al, al
je 0x409e84
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
add eax, 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call eax
sub esp, 0x18
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call eax
sub esp, 4
nop
leave
ret

Function at 0x409e88
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20119
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWARESoffidesso
mov dword [esp], 0x80000002
mov eax, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call eax
sub esp, 0x14
test eax, eax
je 0x409ef6
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWARESoffidesso
mov dword [esp], 0x80000002
mov eax, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call eax
sub esp, 0x14
test eax, eax
jne 0x409efd
mov eax, 1
jmp 0x409f02
mov eax, 0
test al, al
je 0x409f66
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x1c]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x18]
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x14]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call eax
sub esp, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call eax
sub esp, 4
cmp dword [ebp - 0xc], 0
jne 0x409f66
mov eax, dword [ebp - 0x18]
jmp 0x409f6b
mov eax, 0xffffffff
leave
ret
Function at 0x40a296
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov eax, 0x106c
call fcn.004914a0
sub esp, eax
mov eax, dword [0x871220]
test eax, eax
jle 0x40a43e
lea eax, [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0xfff
lea eax, [ebp - 0x102c]
mov dword [esp], eax
call fcn.004095ba
lea eax, [ebp - 0x102c]
mov dword [ebp - 0x24], eax
call fcn.0040a262
mov dword [esp + 0x20], 0
lea edx, [ebp - 0x24]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xfff0064
mov dword [esp + 8], 1
mov dword [esp + 4], 8
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_ReportEventA]
call eax
sub esp, 0x24
lea eax, [ebp - 0x28]
mov dword [esp], eax
call fcn.004094bc
lea eax, [ebp - 0x28]
mov dword [esp], eax
call fcn.004094d1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x103c], eax
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax + 4]
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax + 8]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x14]
lea ebx, [eax + 0x76c]
mov dword [ebp - 0x1040], ebx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x10]
lea edx, [eax + 1]
mov dword [ebp - 0x1044], edx
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 0xc]
mov dword [esp], 2
mov eax, dword [fcn.004abbe0]
call eax
mov ecx, dword [ebp - 0x103c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov ecx, dword [ebp - 0x1040]
mov dword [esp + 0x10], ecx
mov edx, dword [ebp - 0x1044]
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], str._d__02d__04d__02d:_02d:_02d_INFO
mov dword [esp], eax
call fcn.00409513
lea eax, [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0040958e
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
lea edx, [eax - 1]
mov eax, dword [ebp + 8]
add eax, edx
movzx eax, byte [eax]
cmp al, 0xa
je 0x40a428
mov dword [esp], 2
mov eax, dword [fcn.004abbe0]
call eax
mov dword [esp + 4], 0x574976
mov dword [esp], eax
call fcn.00409513
mov dword [esp], 2
mov eax, dword [fcn.004abbe0]
call eax
mov dword [esp], eax
call sub.msvcrt.dll_fflush
nop
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40a448
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov eax, 0x106c
call fcn.004914a0
sub esp, eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x1020], eax
mov eax, dword [ebp - 0x1020]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0xfff
lea eax, [ebp - 0x101c]
mov dword [esp], eax
call fcn.004095ba
lea eax, [ebp - 0x101c]
mov dword [ebp - 0x1024], eax
call fcn.0040a262
mov dword [esp + 0x20], 0
lea edx, [ebp - 0x1024]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x8fff0065
mov dword [esp + 8], 1
mov dword [esp + 4], 2
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_ReportEventA]
call eax
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0x1028], eax
lea eax, [ebp - 0x102c]
mov dword [esp], eax
call fcn.004094bc
lea eax, [ebp - 0x102c]
mov dword [esp], eax
call fcn.004094d1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x103c], eax
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax + 4]
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax + 8]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x14]
lea ebx, [eax + 0x76c]
mov dword [ebp - 0x1040], ebx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x10]
lea edx, [eax + 1]
mov dword [ebp - 0x1044], edx
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 0xc]
mov dword [esp], 2
mov eax, dword [fcn.004abbe0]
call eax
mov ecx, dword [ebp - 0x103c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov ecx, dword [ebp - 0x1040]
mov dword [esp + 0x10], ecx
mov edx, dword [ebp - 0x1044]
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], str._d__02d__04d__02d:_02d:_02d_WARN
mov dword [esp], eax
call fcn.00409513
mov ebx, dword [ebp - 0x1028]
mov dword [esp], 2
mov eax, dword [fcn.004abbe0]
call eax
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040956d
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
lea edx, [eax - 1]
mov eax, dword [ebp + 8]
add eax, edx
movzx eax, byte [eax]
cmp al, 0xa
je 0x40a5f7
mov dword [esp], 2
mov eax, dword [fcn.004abbe0]
call eax
mov dword [esp + 4], 0x574976
mov dword [esp], eax
call fcn.00409513
mov dword [esp], 2
mov eax, dword [fcn.004abbe0]
call eax
mov dword [esp], eax
call sub.msvcrt.dll_fflush
nop
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40a616
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1048
call fcn.004914a0
sub esp, eax
mov eax, dword [0x871220]
cmp eax, 1
jle 0x40a6b7
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0xfff
lea eax, [ebp - 0x1010]
mov dword [esp], eax
call fcn.004095ba
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x10], eax
call fcn.0040a262
mov dword [esp + 0x20], 0
lea edx, [ebp - 0x10]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x4fff0066
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_ReportEventA]
call eax
sub esp, 0x24
nop
leave
ret
Function at 0x40bddf
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [sym.imp.KERNEL32.dll_GetVersion]
call eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, al
mov word [ebp - 0xe], ax
mov eax, dword [ebp - 0xc]
shr ax, 8
movzx eax, al
mov word [ebp - 0x10], ax
cmp word [ebp - 0xe], 4
jbe 0x40be1c
cmp word [ebp - 0xe], 5
jne 0x40be23
cmp word [ebp - 0x10], 0
jne 0x40be23
mov eax, 1
jmp 0x40be28
mov eax, 0
leave
ret