joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 4], esi
call fcn.00401242
or dword [esi + 0x18], 0xffffffff
xor ebx, ebx
xor edx, edx
inc ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], edx
cmp dword [esi + 0x10], edx
jne 0x4011d0
push edi
push 2
pop edi
push 0x40
pop eax
mov dword [esi + 0x14], edi
cmp dword [esi + 0xc], eax
jb 0x4011cf
mov ecx, dword [esi + 8]
mov eax, 0x5a4d
cmp ax, word [ecx]
jne 0x4011cf
push 0x40
pop eax
mov dword [esi + 0x14], edx
cmp word [ecx + 0x18], ax
jae 0x401133
mov dword [esi + 0x1c], ebx
jmp 0x4011cf
mov eax, dword [ecx + 0x3c]
cmp eax, dword [esi + 0xc]
jg 0x4011cf
test eax, eax
js 0x4011cf
mov dword [esi + 0x18], eax
movzx edx, word [eax + ecx]
sub edx, 0x454c
je 0x40116d
sub edx, edi
je 0x401168
sub edx, 0xa
jne 0x401174
mov dword [esi + 0x1c], 4
jmp 0x401174
mov dword [esi + 0x1c], edi
jmp 0x401174
mov dword [esi + 0x1c], 3
cmp dword [eax + ecx], 0x4550
jne 0x4011cf
movzx edx, word [eax + ecx + 4]
mov edi, 0x8664
mov ebx, 0x20b
cmp dx, di
jne 0x4011a1
cmp word [eax + ecx + 0x18], bx
jne 0x4011a1
mov dword [esi + 0x1c], 6
jmp 0x4011cf
mov edi, 0x200
cmp dx, di
jne 0x4011bb
cmp word [eax + ecx + 0x18], bx
jne 0x4011bb
mov dword [esi + 0x1c], 7
jmp 0x4011cf
push 5
pop eax
mov edi, 0x1c4
push 8
cmp dx, di
pop ecx
cmove eax, ecx
mov dword [esi + 0x1c], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x401242
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
push ebx
push 0x80
push 3
or dword [edi], 0xffffffff
xor esi, esi
push ebx
inc esi
mov dword [edi + 4], ebx
push esi
push SysReAllocStringLen
push dword [ebp + 8]
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x401282
mov dword [edi + 0x10], esi
jmp 0x4012e5
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push ebx
push 2
pop esi
push esi
push ebx
push dword [edi]
mov dword [edi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 4], eax
test eax, eax
jne 0x4012b1
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [edi], 0xffffffff
jmp 0x40127d
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 8], eax
test eax, eax
jne 0x4012e2
push dword [edi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [edi]
mov dword [edi + 4], ebx
call esi
or dword [edi], 0xffffffff
mov dword [edi + 0x10], 3
jmp 0x4012e5
mov dword [edi + 0x10], ebx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x401d41
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx + 0x20]
push esi
push edi
xor esi, esi
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
movzx edi, word [ecx + 6]
add edx, eax
test edi, edi
je 0x401d7d
mov eax, dword [edx + 0x10]
cmp dword [edx + 8], eax
mov ecx, dword [edx + 0xc]
cmovb eax, dword [edx + 8]
cmp dword [ebp + 8], ecx
jb 0x401d75
add eax, ecx
cmp dword [ebp + 8], eax
jb 0x401d86
inc esi
add edx, 0x28
cmp esi, edi
jb 0x401d5c
or eax, 0xffffffff
pop edi
pop esi
pop ebp
ret 4
mov eax, dword [edx + 0x14]
sub eax, ecx
add eax, dword [ebp + 8]
jmp 0x401d80

Function at 0x403406
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x464004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push pe_nt_image_headers32
xor edi, edi
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x114]
mov esi, ecx
push edi
push eax
call fcn.00416870
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x40347f
push str.VirtualAllocEx
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40
push 0x1000
push 0x111
push edi
push dword [esi + 0x1c]
call eax
jmp 0x4034b9
cmp dword [ebp - 0x108], 1
jne 0x4034b7
push edi
mov esi, 0x111
push esi
push edi
push 0x8000004
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
je 0x4034b0
push esi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
jmp 0x4034b9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004142a7
mov esp, ebp
pop ebp
ret

Function at 0x4036cf
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor eax, eax
mov ebx, ecx
push 0x4534e4
push eax
push eax
push eax
mov byte [ebx + 0x435], al
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 4], esi
push eax
push 0x40334f
push ecx
push ecx
mov dword [ebp - 0xc], esi
call fcn.0041f8f9
add esp, 0x18
mov edi, eax
push esi
call fcn.0040328a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebx + 0x434], 0
lea ecx, [ebp - 4]
sete bl
call fcn.00403849
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403786
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40379e
xor al, al
jmp 0x4037d6
push dword [edi + 0x40]
call fcn.004142a2
push dword [ebp + 8]
call fcn.0041f110
inc eax
push eax
call fcn.00414299
add esp, 0xc
mov dword [edi + 0x40], eax
push dword [ebp + 8]
push dword [ebp + 8]
call fcn.0041f110
pop ecx
inc eax
push eax
push dword [edi + 0x40]
call fcn.0041f538
add esp, 0xc
mov al, 1
pop edi
pop ebp
ret 4
Function at 0x403f49
Capabilities:
Print debug messages
Start service

Disassembly:
push 0x38
mov eax, 0x451014
call fcn.00414323
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x403f68
mov eax, dword [eax]
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x403f86
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x404031
xor esi, esi
mov dword [ebp - 0x40], 0x453408
push esi
lea eax, [ebp - 0x41]
mov dword [ebp - 0x18], 0x453410
push eax
lea ecx, [ebp - 0x40]
call fcn.00401519
push esi
push esi
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x403ff0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x420
je 0x403ff0
push esi
lea eax, [ebp - 0x40]
push str.LoadDriver:_failed_to_start_driver__error__d_n
push eax
call fcn.00404604
add esp, 0xc
lea eax, [ebp - 0x3c]
cmp dword [ebp - 0x28], 8
cmovae eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x404027
push 4
push edi
mov ecx, ebx
call fcn.00404371
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
lea eax, [ebp - 0x40]
push str.LoadDriver:_returning__d_n
push eax
call fcn.00404604
add esp, 0xc
lea ecx, [ebp - 0x3c]
cmp dword [ebp - 0x28], 8
cmovae ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x40]
call fcn.00401a1b
mov eax, esi
call fcn.004142cd
ret 8
Function at 0x40420a
Capabilities:
Print debug messages
Stop service

Disassembly:
push 0x54
mov eax, 0x45109b
call fcn.00414323
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x404229
mov eax, dword [eax]
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x404247
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4042f6
push 0
lea eax, [ebp - 0x5d]
mov dword [ebp - 0x40], 0x453408
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x453410
call fcn.00401519
and dword [ebp - 4], 0
lea eax, [ebp - 0x5c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4042b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x426
je 0x4042b5
push esi
lea eax, [ebp - 0x40]
push str.UnloadDriver:_failed_to_ControlService__error__d_n
push eax
call fcn.00404604
add esp, 0xc
lea eax, [ebp - 0x3c]
cmp dword [ebp - 0x28], 8
cmovae eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4042ec
push 1
push edi
mov ecx, ebx
call fcn.00404371
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
lea eax, [ebp - 0x40]
push str.UnloadDriver:_returning_status__d_n
push eax
call fcn.00404604
add esp, 0xc
lea ecx, [ebp - 0x3c]
cmp dword [ebp - 0x28], 8
cmovae ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x40]
call fcn.00401a1b
mov eax, esi
call fcn.004142cd
ret 8

Function at 0x404371
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x464004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4043c7
mov ebx, dword [ebp + 0xc]
cmp dword [ebp - 0x24], ebx
je 0x4043de
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x2c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x4043a0
mov eax, 0x41d
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004142a7
mov esp, ebp
pop ebp
ret 8
xor eax, eax
jmp 0x4043cc
Function at 0x406dda
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x451491
call fcn.00414391
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x406e57
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x406e57
call fcn.00405faa
mov esi, eax
jmp 0x406f2e
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x406e7a
call fcn.00405faa
jmp 0x406f21
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x406e70
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x406eaa
mov esi, 0x8007000e
jmp 0x406f23
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00405d7f
jmp 0x406ed0
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x406ea3
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x41c]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x406e70
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00406c9f
mov esi, eax
test edi, edi
je 0x406f2e
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x406f47
lea ecx, [ebp - 0x418]
call fcn.0040624c
mov eax, esi
call fcn.004142de
ret 0x10
Function at 0x40bbdc
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040b8f1

Function at 0x40cb9c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x464d54], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
jne 0x40cc9e
mov ebx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebx + 8]
call fcn.0040a06b
mov esi, eax
cmp esi, dword [ebx + 8]
je 0x40cbd0
cmp edi, dword [esi + 0x10]
jae 0x40cbd3
mov esi, dword [ebx + 8]
cmp esi, dword [ebx + 8]
je 0x40cc9e
lea edi, [esi + 0x20]
cmp dword [edi], 0
jne 0x40cc1e
lea eax, [esi + 0x54]
push eax
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebx + 8]
call fcn.0040d4da
lea ecx, [esi + 0x24]
call fcn.0040d504
xor ecx, ecx
push ecx
push edi
push ecx
push 0xf003f
push ecx
push ecx
push ecx
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40ccb1
push dword [ebp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [edi]
call ebx
mov edi, eax
xor ecx, ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 4], ecx
je 0x40cc9a
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40cc5a
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call ebx
mov edi, eax
jmp 0x40cc9a
lea eax, [esi + 0x28]
mov dword [ebp - 0xc], ecx
cmp dword [eax + 0x14], 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
jb 0x40cc6e
mov eax, dword [eax]
push 0x2001f
push eax
push dword [esi + 0x54]
lea ecx, [ebp - 0xc]
call fcn.00406813
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call ebx
lea ecx, [ebp - 0xc]
mov edi, eax
call fcn.00406090
mov eax, edi
jmp 0x40ccb1
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x40ccba
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x464d54], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
jne 0x40cdc5
mov ebx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebx + 8]
call fcn.0040a06b
mov esi, eax
cmp esi, dword [ebx + 8]
je 0x40ccee
cmp edi, dword [esi + 0x10]
jae 0x40ccf1
mov esi, dword [ebx + 8]
cmp esi, dword [ebx + 8]
je 0x40cdc5
lea edi, [esi + 0x20]
cmp dword [edi], 0
jne 0x40cd3c
lea eax, [esi + 0x54]
push eax
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebx + 8]
call fcn.0040d4da
lea ecx, [esi + 0x24]
call fcn.0040d504
xor ecx, ecx
push ecx
push edi
push ecx
push 0xf003f
push ecx
push ecx
push ecx
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40cddb
push dword [ebp + 0x20]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [edi]
call ebx
mov edi, eax
xor ecx, ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 4], ecx
je 0x40cdc1
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40cd7e
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call ebx
mov edi, eax
jmp 0x40cdc1
lea eax, [esi + 0x28]
mov dword [ebp - 0xc], ecx
cmp dword [eax + 0x14], 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
jb 0x40cd92
mov eax, dword [eax]
push 0x2001f
push eax
push dword [esi + 0x54]
lea ecx, [ebp - 0xc]
call fcn.00406813
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call ebx
lea ecx, [ebp - 0xc]
mov edi, eax
call fcn.00406090
mov eax, edi
jmp 0x40cddb
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x40cde4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x464d54], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
jne 0x40cef2
mov ebx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebx + 8]
call fcn.0040a06b
mov esi, eax
cmp esi, dword [ebx + 8]
je 0x40ce18
cmp edi, dword [esi + 0x10]
jae 0x40ce1b
mov esi, dword [ebx + 8]
cmp esi, dword [ebx + 8]
je 0x40cef2
lea edi, [esi + 0x20]
cmp dword [edi], 0
jne 0x40ce69
lea eax, [esi + 0x54]
push eax
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebx + 8]
call fcn.0040d4da
lea eax, [esi + 0x28]
cmp dword [eax + 0x14], 8
jb 0x40ce47
mov eax, dword [eax]
xor ecx, ecx
push ecx
push edi
push ecx
push 0xf003f
push ecx
push ecx
push ecx
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40cf08
push dword [ebp + 0x20]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [edi]
call ebx
mov edi, eax
xor ecx, ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 4], ecx
je 0x40ceee
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40ceab
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call ebx
mov edi, eax
jmp 0x40ceee
lea eax, [esi + 0x28]
mov dword [ebp - 0xc], ecx
cmp dword [eax + 0x14], 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
jb 0x40cebf
mov eax, dword [eax]
push 0x2001f
push eax
push dword [esi + 0x54]
lea ecx, [ebp - 0xc]
call fcn.00406813
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call ebx
lea ecx, [ebp - 0xc]
mov edi, eax
call fcn.00406090
mov eax, edi
jmp 0x40cf08
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x40cf11
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x464d54], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
jne 0x40d016
mov ebx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebx + 8]
call fcn.0040a06b
mov esi, eax
cmp esi, dword [ebx + 8]
je 0x40cf45
cmp edi, dword [esi + 0x10]
jae 0x40cf48
mov esi, dword [ebx + 8]
cmp esi, dword [ebx + 8]
je 0x40d016
lea edi, [esi + 0x20]
cmp dword [edi], 0
jne 0x40cf96
lea eax, [esi + 0x54]
push eax
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebx + 8]
call fcn.0040d4da
lea eax, [esi + 0x28]
cmp dword [eax + 0x14], 8
jb 0x40cf74
mov eax, dword [eax]
xor ecx, ecx
push ecx
push edi
push ecx
push 0xf003f
push ecx
push ecx
push ecx
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40d029
push dword [ebp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [edi]
call ebx
mov edi, eax
xor ecx, ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 4], ecx
je 0x40d012
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40cfd2
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call ebx
mov edi, eax
jmp 0x40d012
lea eax, [esi + 0x28]
mov dword [ebp - 0xc], ecx
cmp dword [eax + 0x14], 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
jb 0x40cfe6
mov eax, dword [eax]
push 0x2001f
push eax
push dword [esi + 0x54]
lea ecx, [ebp - 0xc]
call fcn.00406813
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call ebx
lea ecx, [ebp - 0xc]
mov edi, eax
call fcn.00406090
mov eax, edi
jmp 0x40d029
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x40ea52
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x464004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x40ea73
mov eax, dword [eax]
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x154], esi
cmp esi, 0xffffffff
je 0x40eafe
push edi
lea eax, [ebp - 0x150]
push eax
push 0x40
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40eafe
mov eax, 0x5a4d
cmp word [ebp - 0x44], ax
jne 0x40eafe
push edi
push edi
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 8], eax
jne 0x40eafe
push edi
lea eax, [ebp - 0x150]
push eax
push 0x108
lea eax, [ebp - 0x14c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40eafe
cmp dword [ebp - 0x14c], 0x4550
jne 0x40eafe
movzx edi, word [ebp - 0x148]
lea ecx, [ebp - 0x154]
call fcn.00410978
mov ecx, dword [ebp - 4]
mov ax, di
pop edi
xor ecx, ebp
pop esi
call fcn.004142a7
mov esp, ebp
pop ebp
ret 4

Function at 0x40efc5
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x40efd9
xor al, al
jmp 0x40f029
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x40efd5
cmp dword [ecx + eax], 0x4550
jne 0x40efd5
movzx edx, word [ecx + eax + 0x18]
push esi
mov esi, 0x10b
cmp dx, si
jne 0x40f003
add esi, 0x41
cmp word [ecx + eax + 4], si
jne 0x40f019
mov esi, 0x20b
cmp dx, si
jne 0x40f01d
mov edx, 0x8664
cmp word [ecx + eax + 4], dx
je 0x40f01d
xor al, al
jmp 0x40f028
cmp dword [ecx + eax + 0xe8], 0
setne al
pop esi
pop ebp
ret 4