joyce8/EMBER2024-capa huggingface dataset:
Function at 0x486a2c
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.004055f8
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x486b94
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.004692ac
mov esi, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, esi
call fcn.004692cc
mov ebx, eax
jmp 0x486b66
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004053e8
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00409fe0
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00409130
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00409130
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.004055a0
je 0x486b46
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004053e8
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00409130
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00409130
mov edx, dword [ebp - 0x148]
pop eax
call fcn.004055a0
jne 0x486b5b
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.004692ec
mov ebx, eax
test ebx, ebx
jne 0x486aa7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486b9b
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.0040519c
lea eax, [ebp - 4]
call fcn.00405178
ret

Function at 0x486f4c
Capabilities:
Log keystrokes via application hook

Disassembly:
xor eax, eax
mov dword [0x497e18], eax
push 0x486f8c
call sub.user32.dll_RegisterWindowMessageA
mov dword [0x497e18], eax
mov eax, dword [0x491bcc]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [0x497e1c], eax
push 0
mov eax, dword [0x4947f4]
push eax
push 0x486f04
push 0xd
call sub.user32.dll_SetWindowsHookExA
mov dword [0x497e20], eax
ret
Function at 0x48712c
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.004055f8
xor eax, eax
push ebp
push 0x487206
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov ecx, 0x48721c
mov edx, dword [ebp - 4]
call fcn.00405490
mov eax, dword [ebp - 8]
call fcn.00405608
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 6
ja case.0x487176.0
jmp dword [eax*4 + 0x48717d]
mov eax, ebx
mov edx, 0x487228
call fcn.004051cc
jmp 0x4871eb
mov eax, ebx
mov edx, 0x48723c
call fcn.004051cc
jmp 0x4871eb
mov eax, ebx
mov edx, 0x48724c
call fcn.004051cc
jmp 0x4871eb
mov eax, ebx
mov edx, 0x487260
call fcn.004051cc
jmp 0x4871eb
mov eax, ebx
mov edx, 0x487270
call fcn.004051cc
jmp 0x4871eb
mov eax, ebx
mov edx, 0x487284
call fcn.004051cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48720d
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040519c
ret

Function at 0x4873d4
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.004055f8
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x487546
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.004692ac
mov esi, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, esi
call fcn.004692cc
mov ebx, eax
jmp 0x487518
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004053e8
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00409fe0
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00409130
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00409130
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.004055a0
je 0x4874ee
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004053e8
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00409130
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00409130
mov edx, dword [ebp - 0x148]
pop eax
call fcn.004055a0
jne 0x48750d
call sub.kernel32.dll_GetCurrentProcessId
cmp eax, dword [edi + 8]
je 0x48750d
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.004692ec
mov ebx, eax
test ebx, ebx
jne 0x48744f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48754d
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.0040519c
lea eax, [ebp - 4]
call fcn.00405178
ret
Function at 0x487c8c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x487c94
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x487eea
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x497ce4]
mov edx, 0x487f00
call fcn.004055a0
jne 0x487ecf
lea edx, [ebp - 0xc]
mov eax, dword [0x491bcc]
mov eax, dword [eax]
call fcn.00466b18
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.00409fac
lea ecx, [ebp - 0x10]
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.004304e0
mov eax, dword [ebp - 0x10]
mov edx, 0x487f0c
call fcn.004055a0
je 0x487d26
lea ecx, [ebp - 0x14]
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.004304e0
mov eax, dword [ebp - 0x14]
mov edx, 0x487f18
call fcn.004055a0
je 0x487d26
lea eax, [ebp - 8]
mov edx, 0x487f0c
call fcn.00405444
lea edx, [ebp - 0x1c]
mov eax, dword [0x491bcc]
mov eax, dword [eax]
call fcn.00466b18
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.0048bcb4
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
mov ecx, 0x487f24
call fcn.00405490
lea edx, [ebp - 0x20]
mov eax, dword [0x491bcc]
mov eax, dword [eax]
call fcn.00466b18
mov eax, dword [ebp - 0x20]
mov edx, dword [0x497df8]
call fcn.00487914
mov eax, dword [0x491bcc]
mov eax, dword [eax]
call fcn.004661e0
mov eax, dword [0x497df8]
call fcn.00409ccc
test al, al
je 0x487df6
mov eax, dword [0x497d94]
mov edx, 0x487f34
call fcn.004055a0
je 0x487da4
push 0
push 0x487f38
call sub.kernel32.dll_WinExec
push 1
mov eax, dword [ebp - 8]
call fcn.00405608
push eax
call fcn.0040bcf0
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.00468cc0
movzx eax, ax
lea edx, [ebp - 0x28]
call fcn.004097ec
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.0048776c
mov eax, dword [ebp - 0x24]
call fcn.00405608
push eax
mov eax, dword [0x497df8]
call fcn.00405608
push eax
push 0x487f54
push 0
call sub.shell32.dll_ShellExecuteA
mov eax, dword [0x497ca4]
mov eax, dword [eax + 0x378]
mov dl, 1
call fcn.004341fc
mov eax, dword [0x497ca4]
mov eax, dword [eax + 0x384]
mov dl, 1
call fcn.004341fc
mov eax, dword [0x497d50]
mov edx, 0x487f34
call fcn.004055a0
jne 0x487e30
call fcn.00486f4c
mov eax, dword [0x497d54]
mov edx, 0x487f34
call fcn.004055a0
jne 0x487e5e
mov eax, dword [0x497e34]
push eax
mov eax, dword [0x497ca4]
mov eax, dword [eax + 0x37c]
push eax
mov eax, dword [0x497ca4]
push eax
call fcn.00486fdc
cmp dword [0x497d64], 0
je 0x487e92
mov eax, dword [0x497d64]
mov edx, 0x487f64
call fcn.004055a0
je 0x487e92
push 1
push 0
push 0
mov eax, dword [0x497d64]
call fcn.00405608
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
mov eax, dword [0x497da4]
mov edx, 0x487f34
call fcn.004055a0
jne 0x487ecf
xor eax, eax
push ebp
push 0x487ec5
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0043af0c
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x487ecf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487ef1
lea eax, [ebp - 0x28]
mov edx, 0xa
call fcn.0040519c
ret
Function at 0x488480
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffff54
lea eax, [esp + 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x488533
mov dword [esp + 8], 0x94
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x488533
mov eax, dword [esp + 0x18]
dec eax
je 0x488527
dec eax
jne 0x488533
lea eax, [esp + 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
lea eax, [esp + 0xa0]
push eax
push 0x48853c
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
je 0x488519
mov dword [esp + 0xa8], 2
mov dword [esp + 0x9c], 1
push esp
push 0
push 0
lea eax, [esp + 0xa8]
push eax
push 0
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push 0xffff
push 2
call sub.user32.dll_ExitWindowsEx
jmp 0x488533
push 0xffff
push 2
call sub.user32.dll_ExitWindowsEx
add esp, 0xac
ret

Function at 0x48ccb8
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.004055f8
xor eax, eax
push ebp
push 0x48cdf3
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x48cdc3
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.00405608
mov ebx, eax
push ebx
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp - 4]
call fcn.00409ccc
test al, al
jne 0x48cd33
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.00403624
lea eax, [ebp - 0x1d0]
call fcn.004033c0
call fcn.00402ffc
push dword [0x497ca8]
push 0x48ce0c
push dword [0x497cac]
push 0x48ce0c
push dword [0x497cb0]
lea eax, [ebp - 0x1d8]
mov edx, 5
call fcn.0040550c
mov eax, dword [ebp - 0x1d8]
lea edx, [ebp - 0x1d4]
call fcn.0048776c
mov edx, dword [ebp - 0x1d4]
lea eax, [ebp - 0x1d0]
call fcn.00405928
call fcn.00403ce0
call fcn.00402ffc
lea eax, [ebp - 0x1d0]
call fcn.004036ec
call fcn.00402ffc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48cdcd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48cdfa
lea eax, [ebp - 0x1d8]
mov edx, 2
call fcn.0040519c
lea eax, [ebp - 4]
call fcn.00405178
ret
Function at 0x406460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4d2f14]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x4065a6
cmp byte [edi + 0x4a], bl
je 0x4065a6
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffff
call edx
mov ecx, 0xffff
cmp cx, ax
jne 0x4064b0
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046fb84
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x20], bl
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 8
cmp ecx, 0x10
jae 0x4064d2
lea eax, [ebp - 0x20]
mov byte [eax + 8], bl
push esi
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0xc]
lea esp, [esp]
mov edx, eax
cmp ebx, 0x10
jae 0x4064ec
lea edx, [ebp - 0x20]
mov eax, edx
add edx, dword [ebp - 0x10]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x24]
push ebx
push edx
mov edx, dword [esi + 0x18]
push eax
lea eax, [edi + 0x4c]
push eax
call edx
sub eax, 0
je 0x40652b
dec eax
je 0x40652f
sub eax, 2
lea ecx, [ebp - 0x20]
je 0x40658e
call fcn.00401a60
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046fb84
mov esp, ebp
pop ebp
ret
mov byte [edi + 0x4a], 0
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
mov ecx, eax
cmp ebx, 0x10
jae 0x40653f
lea ecx, [ebp - 0x20]
mov esi, dword [ebp - 0x24]
sub esi, ecx
je 0x406568
cmp ebx, 0x10
jae 0x40654e
lea eax, [ebp - 0x20]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0047100a
add esp, 0x10
cmp esi, eax
jne 0x406586
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
cmp byte [edi + 0x4a], 0
je 0x40658b
test esi, esi
jne 0x4064e0
push esi
push 8
lea ecx, [ebp - 0x20]
call fcn.00401ce0
jmp 0x4064d6
lea ecx, [ebp - 0x20]
jmp 0x406513
lea ecx, [ebp - 0x20]
call fcn.00401a60
pop esi
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046fb84
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0046fb84
mov esp, ebp
pop ebp
ret
Function at 0x40a200
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4d2f14]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x40a241
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046fb84
mov esp, ebp
pop ebp
ret
xor ecx, ecx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a267
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
lea ecx, [ebp - 0x228]
call fcn.004022c0
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x244]
call fcn.00411480
push eax
mov ecx, esi
call fcn.00411580
lea ecx, [ebp - 0x244]
call fcn.00401b40
cmp dword [ebp - 0x214], 8
jb 0x40a2c6
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.0046f1de
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.0046fb84
mov esp, ebp
pop ebp
ret

Function at 0x40a490
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4d2f14]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x27
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x40a4d1
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046fb84
mov esp, ebp
pop ebp
ret
xor ecx, ecx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a4f7
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
lea ecx, [ebp - 0x228]
call fcn.004022c0
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x244]
call fcn.00411480
push eax
mov ecx, esi
call fcn.00411580
lea ecx, [ebp - 0x244]
call fcn.00401b40
cmp dword [ebp - 0x214], 8
jb 0x40a556
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.0046f1de
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.0046fb84
mov esp, ebp
pop ebp
ret
Function at 0x40a570
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4d2f14]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
lea ecx, [ebp - 0x20c]
push ecx
push eax
push eax
push 0x10
push eax
mov word [ebp - 0x20c], ax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x40a5b7
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046fb84
mov esp, ebp
pop ebp
ret
xor edx, edx
lea eax, [ebp - 0x20c]
mov word [ebp - 0x228], dx
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], 0
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a5e0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x228]
call fcn.004022c0
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x244]
call fcn.00411480
push eax
mov ecx, esi
call fcn.00411580
lea ecx, [ebp - 0x244]
call fcn.00401b40
cmp dword [ebp - 0x214], 8
jb 0x40a63f
mov edx, dword [ebp - 0x228]
push edx
call fcn.0046f1de
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.0046fb84
mov esp, ebp
pop ebp
ret

Function at 0x40d100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40d11b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40d152
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40d14e
jmp 0x40d140
cmp esi, eax
jae 0x40d152
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40d140
cmp esi, eax
jb 0x40d159
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40f590
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x4d2f14]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
je 0x40f724
cmp byte [0x4d44fb], 0
je 0x40f724
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x20c]
push 0x5c
push ecx
call fcn.0047163b
add esp, 8
test eax, eax
je 0x40f5ed
xor edx, edx
mov word [eax + 2], dx
push str.debug_message.exe
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00472113
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x40f616
mov ecx, dword [esi]
mov dword [ebp - 0x230], ecx
jmp 0x40f61c
mov dword [ebp - 0x230], esi
mov edx, dword [esi + 0x10]
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x228]
push ecx
mov dword [ebp - 0x22c], edx
call fcn.0041ab40
add esp, 8
cmp dword [ebp - 0x218], 0
jne 0x40f65d
cmp dword [ebp - 0x214], 8
jb 0x40f724
mov edx, dword [ebp - 0x228]
push edx
jmp 0x40f71c
push 0x44
lea eax, [ebp - 0x284]
push 0
push eax
call fcn.0046f980
mov eax, dword [ebp - 0x228]
add esp, 0xc
cmp dword [ebp - 0x214], 8
mov dword [ebp - 0x284], 0x44
jae 0x40f68f
lea eax, [ebp - 0x228]
lea ecx, [ebp - 0x240]
push ecx
lea edx, [ebp - 0x284]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40f6e4
mov ecx, dword [ebp - 0x240]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x23c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x240]
push eax
call esi
jmp 0x40f70c
cmp dword [ebp - 0x214], 8
mov eax, dword [ebp - 0x228]
jae 0x40f6f9
lea eax, [ebp - 0x228]
push 0x40010
push 0x4947e4
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [ebp - 0x214], 8
jb 0x40f724
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.0046f1de
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0046fb84
mov esp, ebp
pop ebp
ret
Function at 0x410c80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x410c8e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x410ca0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x410cae
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x410cc2
shr eax, 4
and eax, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x410de0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4d2f14]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
push edi
mov dword [ebp - 0x24], 0
jb 0x410e06
mov edi, dword [esi]
jmp 0x410e08
mov edi, esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x410e29
shr al, 4
pop edi
and al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046fb84
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.004115a0
cmp dword [esi + 0x14], 8
mov ecx, dword [esi + 0x10]
jb 0x410e41
mov eax, dword [esi]
jmp 0x410e43
mov eax, esi
push ecx
mov ecx, dword [ebp - 0x10]
push eax
push ecx
push 0
lea ecx, [ebp - 0x20]
call fcn.00404850
test eax, eax
jne 0x410e71
lea ecx, [ebp - 0x20]
call fcn.00401b40
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046fb84
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x20]
push edx
call fcn.00410de0
add esp, 4
test al, al
je 0x410e57
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x410ea8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x410e57
push esi
call fcn.00410ca0
add esp, 4
test al, al
je 0x410e57
lea ecx, [ebp - 0x20]
call fcn.00401b40
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.0046fb84
mov esp, ebp
pop ebp
ret
Function at 0x410ed0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d2f14]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x410fb9
xor ecx, ecx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x218], 7
mov dword [ebp - 0x21c], 0
mov word [ebp - 0x22c], cx
lea edx, [eax + 2]
jmp 0x410f30
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410f30
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp - 0x22c]
call fcn.004022c0
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x264]
call fcn.00411480
mov ecx, eax
call fcn.00411890
push eax
mov ecx, esi
call fcn.00411580
lea ecx, [ebp - 0x248]
call fcn.00401b40
lea ecx, [ebp - 0x264]
call fcn.00401b40
cmp dword [ebp - 0x218], 8
jb 0x410fa8
mov edx, dword [ebp - 0x22c]
push edx
call fcn.0046f1de
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046fb84
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.0046fb84
mov esp, ebp
pop ebp
ret

Function at 0x410fe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x4d2f14]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push ecx
xor eax, eax
push 0x104
mov word [ebp - 0x20c], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4110d9
cmp eax, 0x104
ja 0x4110d9
xor edx, edx
lea eax, [ebp - 0x20c]
mov word [ebp - 0x228], dx
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], 0
lea edx, [eax + 2]
jmp 0x411050
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411050
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x228]
call fcn.004022c0
lea ecx, [ebp - 0x244]
push ecx
lea edx, [ebp - 0x228]
push edx
lea ecx, [ebp - 0x260]
call fcn.00411480
mov ecx, eax
call fcn.00411890
push eax
mov ecx, esi
call fcn.00411580
lea ecx, [ebp - 0x244]
call fcn.00401b40
lea ecx, [ebp - 0x260]
call fcn.00401b40
cmp dword [ebp - 0x214], 8
jb 0x4110c8
mov eax, dword [ebp - 0x228]
push eax
call fcn.0046f1de
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046fb84
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.0046fb84
mov esp, ebp
pop ebp
ret