joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4169a0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
test ebx, ebx
push edi
jne 0x4169b9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push ebx
call fcn.00418bf0
add esp, 4
test eax, eax
jne 0x4169ce
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4169e8
mov eax, dword [esp + 0x2c]
test eax, eax
jg 0x4169e8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [ebx]
xor esi, esi
cmp eax, 1
jne 0x416ad0
mov ebp, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
push esi
push esi
push ebp
call edi
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
jne 0x416a20
push 2
push esi
push esi
push ebp
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x416a37
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
sub esi, ebx
jmp 0x416a3b
mov esi, dword [esp + 0x2c]
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x416a74
push 2
push eax
push eax
push ebp
call edi
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
xor edi, edi
test edx, edx
mov ecx, ebx
jbe 0x416a90
mov al, byte [ecx]
test al, al
je 0x416a90
cmp al, 0x1a
je 0x416a90
inc edi
inc ecx
cmp edi, edx
jb 0x416a80
lea ecx, [edi + 1]
push ecx
call fcn.00415af0
mov edx, dword [esp + 0x18]
add esp, 4
mov esi, eax
push 0
lea eax, [edi + edx]
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push ebx
push esi
call sub.MSVCRT.dll_strncpy
push ebx
mov byte [edi + esi], 0
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp eax, 2
jne 0x416b4b
mov ebx, dword [ebx + 4]
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 0x14]
test edi, edi
mov ebp, eax
jne 0x416aea
or eax, 0xffffffff
jmp 0x416aee
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
mov ecx, ebx
call dword [edx + 0x30]
mov edx, dword [esp + 0x10]
xor edi, edi
test eax, eax
jbe 0x416b1d
mov cl, byte [edx]
test cl, cl
je 0x416b1d
cmp cl, 0x1a
je 0x416b1d
inc edi
inc edx
cmp edi, eax
jb 0x416b0c
lea edx, [edi + 1]
push edx
call fcn.00415af0
add esp, 4
lea ecx, [edi + ebp]
mov esi, eax
mov eax, dword [ebx]
push 0
push ecx
mov ecx, ebx
call dword [eax + 0x18]
mov edx, dword [esp + 0x10]
push edi
push edx
push esi
call sub.MSVCRT.dll_strncpy
add esp, 0xc
mov byte [edi + esi], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x417aa0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x417b32
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x417b24
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x417b1c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x417ae5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x401c15
Capabilities:
Get common file path

Disassembly:
sub esp, 0x140
push ebx
push esi
push edi
mov esi, ecx
call fcn.00402687
and dword [esi + 0x130], 0
and dword [esi + 8], 0
and dword [esi + 0xc], 0
lea eax, [esi + 0x134]
mov ebx, 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call fcn.00401d44
mov ecx, esi
call fcn.0040249b
lea edi, [esi + 0x24]
push ebx
push edi
call fcn.00401d2a
mov ebx, 0x42c460
push ebx
push edi
call fcn.0041bca0
add esp, 0x10
jmp 0x401c87
push ebx
push edi
call fcn.0041bca0
inc eax
push eax
push edi
call fcn.0041c440
push ebx
push edi
call fcn.0041bca0
add esp, 0x18
test eax, eax
jne 0x401c6e
mov ebx, 0x42c45c
push ebx
push edi
call fcn.0041bca0
pop ecx
pop ecx
jmp 0x401cb4
push ebx
push edi
call fcn.0041bca0
inc eax
push eax
push edi
call fcn.0041c440
push ebx
push edi
call fcn.0041bca0
add esp, 0x18
test eax, eax
jne 0x401c9b
push edi
call fcn.0041c3c0
lea eax, [eax + esi + 0x21]
mov dword [esp], 0x42c458
push eax
call fcn.0041c440
pop ecx
lea eax, [esp + 0x10]
pop ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401cf1
push 0x42c44c
push edi
call fcn.0041c440
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push edi
mov ecx, esi
call fcn.004026a2
lea eax, [esi + 0x128]
mov ecx, esi
push eax
call fcn.0040269e
push eax
push esi
push 0x42c430
mov ecx, esi
call fcn.00401091
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x140
ret
Function at 0x40204b
Capabilities:
Create process on windows
Create process suspended
Resume thread
Use process replacement

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
push ebx
push esi
push edi
push 0x44
pop esi
xor ebx, ebx
push esi
lea eax, [ebp - 0x4c]
push ebx
push eax
mov edi, ecx
call fcn.0041c580
push dword [edi + 0x130]
lea eax, [ebp - 0xc4c]
mov dword [ebp - 0x4c], esi
push dword [ebp + 8]
push 0x42c53c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [edi + 0x10]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [edi + 0x134]
push eax
push ebx
push 4
push ebx
push ebx
lea eax, [ebp - 0xc4c]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, edi
call fcn.004025a9
test al, al
jne 0x402192
mov esi, dword [ebp + 0xc]
cmp dword [esi], ebx
je 0x402192
push dword [edi + 0x18]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x402192
push dword [edi + 0x128]
lea ecx, [ebp - 0x44c]
call fcn.00411795
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push dword [esi]
push dword [esi + 8]
push dword [esi + 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x402136
cmp dword [esi], ebx
mov dword [ebp + 0xc], ebx
jbe 0x402143
lea ecx, [ebp - 0x44c]
call fcn.0040114f
mov ecx, dword [esi + 8]
mov edx, dword [ebp + 0xc]
add ecx, edx
sub byte [ecx], al
inc edx
cmp edx, dword [esi]
mov dword [ebp + 0xc], edx
jb 0x402117
jmp 0x402143
push 0x42c51c
push ebx
call fcn.00411727
pop ecx
pop ecx
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push dword [esi]
push dword [esi + 8]
push dword [esi + 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp dword [0x4352cc], ebx
je 0x402189
mov ecx, edi
call fcn.0040222f
push 0x42c4c8
push dword [edi + 0x18]
call fcn.004021a2
pop ecx
push eax
call fcn.00411727
push dword [edi + 0x18]
call fcn.00401f30
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x402211
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x40221f
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
ret

Function at 0x402220
Capabilities:
Resume thread

Disassembly:
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x40222e
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
ret
Function at 0x40222f
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
mov ebx, ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea edi, [ebx + 8]
mov eax, dword [edi]
test eax, eax
je 0x402252
push eax
call esi
and dword [edi], 0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x402260
push eax
call esi
and dword [ebx + 0xc], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00405594
mov ecx, eax
call fcn.0040561c
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
call esi
push dword [ebp - 4]
call esi
push 2
push 0
push 2
push edi
mov ecx, ebx
call fcn.00414adf
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [ebp - 8]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call edi
test eax, eax
jne 0x4022d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x808]
push 0x42c580
push eax
call fcn.0041c5d8
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 2
push 0
lea eax, [ebx + 0xc]
push 2
push eax
mov ecx, ebx
call fcn.00414adf
push eax
push dword [ebp - 4]
call esi
push eax
call edi
pop edi
pop esi
test eax, eax
pop ebx
jne 0x40231c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x808]
push 0x42c544
push eax
call fcn.0041c5d8
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
leave
ret

Function at 0x4023c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
push 0x100
mov dword [ebp + 8], edi
push dword [ebx + 0x2c]
call fcn.00401000
push eax
push edi
call fcn.00401ed3
add esp, 0x10
test eax, eax
jne 0x4023f5
xor al, al
jmp 0x402496
movzx ecx, word [esi + 0x14]
mov edi, eax
sub edi, dword [ebp + 8]
and dword [ebp + 8], 0
lea edx, [ecx + esi + 0x18]
movzx ecx, word [esi + 6]
test ecx, ecx
mov dword [ebp - 4], ecx
jle 0x40242f
mov ecx, dword [edx + 0x14]
cmp edi, ecx
jb 0x402421
mov esi, dword [edx + 0x10]
add esi, ecx
cmp edi, esi
jb 0x40242f
add edx, 0x28
inc dword [ebp + 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 4]
jl 0x402411
mov ecx, dword [edx + 0xc]
sub ecx, dword [edx + 0x14]
mov edx, dword [ebx + 0xc]
add ecx, dword [edx + 0x34]
add ecx, edi
mov dword [0x4352c8], ecx
cmp dword [eax + 0x100], 0x100
jne 0x402470
cmp byte [eax + 0x105], 0
jne 0x402470
add ecx, 0x100
mov dword [0x4352d0], 0xc
mov dword [0x4352cc], ecx
jmp 0x402494
add ecx, 0x104
push 0x18
mov dword [0x4352cc], ecx
mov eax, dword [eax + 0x100]
pop ecx
mov dword [0x4352d0], eax
cmp eax, ecx
jb 0x402494
mov dword [0x4352d0], ecx
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4024c8
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
and byte [ebp - 1], 0
push ebx
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
or edi, 0xffffffff
cmp ebx, edi
je 0x4025a0
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x130]
mov esi, 0x128
push eax
push ebx
mov dword [ebp - 0x130], esi
call sub.KERNEL32.dll_Process32First
jmp 0x40252f
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x128], eax
je 0x402535
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], esi
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402511
jmp 0x40253b
mov edi, dword [ebp - 0x118]
mov eax, dword [ebp + 8]
test eax, eax
je 0x402544
mov dword [eax], edi
cmp edi, 0xffffffff
je 0x402598
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], esi
push eax
push ebx
call sub.KERNEL32.dll_Process32First
jmp 0x402579
cmp dword [ebp - 0x128], edi
je 0x40257f
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], esi
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40255e
jmp 0x402598
push dword [ebp + 0x10]
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 0xc]
call fcn.0041c630
add esp, 0xc
mov byte [ebp - 1], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 0xc

Function at 0x4026a2
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
xor ebx, ebx
cmp dword [ecx + 4], ebx
mov dword [ebp - 0xc], ecx
jne 0x40278d
push esi
push edi
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0x80
push 3
push ebx
mov edi, 0x80000000
push 1
push edi
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
setne al
push 0x42c1e0
push eax
call fcn.00411727
pop ecx
pop ecx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp + 8]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x42c5e0], ebx
mov dword [ebp - 4], ebx
mov dword [ebp + 8], 0x42c5e0
je 0x40277d
mov eax, dword [ebp + 8]
push ebx
push 0x80
push 3
push ebx
push 1
push edi
push dword [eax]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x402747
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0x10]
add dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402772
cmp byte [ebp + 0xc], bl
jne 0x402772
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x110]
push 0x42c6a4
push eax
call fcn.0041c5d8
lea eax, [ebp - 0x110]
push eax
push ebx
call fcn.00411727
add esp, 0x14
add dword [ebp + 8], 4
mov eax, dword [ebp + 8]
cmp dword [eax], ebx
jne 0x402716
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add ecx, eax
mov eax, dword [ebp - 0xc]
pop edi
pop esi
mov dword [eax + 4], ecx
mov al, 1
pop ebx
leave
ret 8
Function at 0x402794
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [ebp + 0x10]
push ebx
push eax
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp + 0xc]
cmp eax, 0xffffffff
push 0x42c6f8
mov dword [esi], eax
setne al
push eax
call fcn.00411727
push dword [esi]
call fcn.0041c055
add esp, 0xc
lea ecx, [ebp + 8]
mov dword [ebp + 0x10], eax
mov dword [ebp + 8], ebx
push ebx
push ecx
push dword [esi]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402805
mov eax, dword [esi]
cmp eax, dword [ebp + 8]
jne 0x402805
mov bl, 1
push 0x42c6b8
push ebx
call fcn.00411727
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x402a66
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [eax + 0xc]
and dword [esi + 4], 0
or dword [esi], 0xffffffff
or dword [esi + 0x10], 0xffffffff
or dword [esi + 8], 0xffffffff
and dword [esi + 0x14], 0
mov dword [ebp - 4], ecx
call fcn.0040297a
test al, al
jne 0x402c1a
mov ecx, dword [ebp - 4]
call fcn.00402910
test al, al
je 0x402b79
lea eax, [edi + 0x78]
test eax, eax
je 0x402b36
mov ecx, dword [eax + 0x70]
test ecx, ecx
je 0x402b36
cmp dword [eax + 0x74], 0
je 0x402b36
mov eax, dword [ebp + 8]
push 0
push ecx
push dword [eax + 8]
push edi
call dword [sym.imp.IMAGEHLP.dll_ImageRvaToVa]
mov ebx, eax
test ebx, ebx
je 0x402b36
cmp dword [ebx], 0x48
push 0x42c82c
sete al
push eax
call fcn.00411727
mov eax, dword [ebx]
and dword [ebp + 8], 0
add eax, dword [edi + 0xe8]
pop ecx
pop ecx
mov dword [esi + 0xc], eax
movzx ecx, word [edi + 0x14]
movzx edx, word [edi + 6]
test edx, edx
lea ecx, [ecx + edi + 0x18]
mov dword [ebp + 0xc], edx
jbe 0x402b36
mov edx, dword [ecx + 0x10]
mov edi, dword [ecx + 8]
cmp edi, edx
jae 0x402b18
mov edx, edi
mov edi, dword [ecx + 0xc]
mov dword [ebp - 4], edx
cmp eax, edi
jb 0x402b28
add edx, edi
cmp eax, edx
jb 0x402b40
inc dword [ebp + 8]
add ecx, 0x28
mov edx, dword [ebp + 8]
cmp edx, dword [ebp + 0xc]
jb 0x402b0c
push 0x42c7e8
jmp 0x402bc3
mov edx, dword [ebp + 8]
mov dword [esi + 4], ecx
mov dword [esi], edx
mov edx, eax
sub edx, edi
push 0x42c82c
mov dword [esi + 8], edx
mov ecx, dword [ecx + 0x14]
add ecx, edx
mov dword [esi + 0x10], ecx
mov ecx, dword [ebx + 8]
sub ecx, eax
mov dword [esi + 0x14], ecx
add ecx, edx
cmp ecx, dword [ebp - 4]
setb al
push eax
call fcn.00411727
pop ecx
pop ecx
jmp 0x402c1a
mov edx, dword [edi + 0x28]
and dword [ebp + 8], 0
mov dword [esi + 0xc], edx
movzx eax, word [edi + 0x14]
movzx ecx, word [edi + 6]
test ecx, ecx
lea eax, [eax + edi + 0x18]
mov dword [ebp + 0xc], ecx
jbe 0x402bbe
mov ecx, dword [eax + 0x10]
mov edi, dword [eax + 8]
cmp edi, ecx
jae 0x402ba2
mov ecx, edi
mov edi, dword [eax + 0xc]
cmp edx, edi
jb 0x402bb0
lea ebx, [edi + ecx]
cmp edx, ebx
jb 0x402bd5
inc dword [ebp + 8]
add eax, 0x28
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp + 0xc]
jb 0x402b96
push 0x42c7a8
push 0
call fcn.00411727
pop ecx
xor al, al
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8
mov ebx, dword [ebp + 8]
sub edx, edi
mov dword [esi], ebx
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov eax, dword [eax + 0x14]
sub ecx, edx
add eax, edx
mov ebx, ecx
mov ecx, dword [ebp - 4]
mov dword [esi + 0x10], eax
call fcn.004028a6
test al, al
je 0x402c17
mov edi, 0x80
push 0x42c778
cmp ebx, edi
sbb al, al
inc al
push eax
call fcn.00411727
pop ecx
mov dword [esi + 0x14], edi
pop ecx
jmp 0x402c1a
mov dword [esi + 0x14], ebx
mov al, 1
jmp 0x402bce
Function at 0x402cac
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push 0x42c874
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402d06
push ebx
lea eax, [ebp - 4]
push esi
push eax
mov esi, 0x4352f4
push 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push edi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
pop ebx
je 0x402d06
cmp dword [ebp - 4], 8
jne 0x402d06
mov eax, esi
jmp 0x402d08
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x402d0c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push 0x42c874
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402d69
lea eax, [ebp - 4]
push 0
push eax
push 8
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
setne byte [ebp + 0xb]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp + 0xb], 0
je 0x402d65
cmp dword [ebp - 4], 8
jne 0x402d65
xor eax, eax
inc eax
jmp 0x402d6b
xor eax, eax
jmp 0x402d6b
xor al, al
pop esi
leave
ret 4

Function at 0x403879
Capabilities:
Create thread
Print debug messages

Disassembly:
push esi
mov esi, ecx
fld dword [esi + 0x18]
fcomp dword [0x4282e0]
fnstsw ax
test ah, 0x41
je 0x4038ab
call fcn.0040743b
test al, al
jne 0x4038ab
push 0
push 0x42cc4c
push 0x42cc00
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
ret
mov ecx, esi
call fcn.00404003
call fcn.00401006
mov ecx, eax
call fcn.0040117b
test al, al
jne 0x4038a9
call fcn.00401006
mov ecx, eax
call fcn.0040103b
mov ecx, esi
call fcn.004038e1
test al, al
je 0x4038a9
mov ecx, esi
pop esi
jmp fcn.00403a6d
Function at 0x4038e1
Capabilities:
Create process on windows
Print debug messages
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x950
push ebx
push esi
push edi
push 0x44
pop esi
xor ebx, ebx
push esi
lea eax, [ebp - 0x50]
push ebx
push eax
mov dword [ebp - 0xc], ecx
call fcn.0041c580
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 0x50], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 1
push 0x100000
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call edi
test eax, eax
jne 0x40395f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x950]
push 0x42cce8
push eax
call fcn.0041c5d8
add esp, 0xc
lea eax, [ebp - 0x950]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x403a62
push 2
push 1
lea eax, [ebp - 8]
push 0x100001
push eax
call esi
push eax
call fcn.00401006
mov ecx, eax
call fcn.00414adf
push eax
call esi
push eax
call edi
test eax, eax
jne 0x4039bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x950]
push 0x42ccb4
push eax
call fcn.0041c5d8
add esp, 0xc
lea eax, [ebp - 0x950]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403a62
push dword [ebp - 8]
mov edi, 0x42ccac
lea eax, [ebp - 0x150]
push edi
push eax
call fcn.0041c5d8
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
add esp, 0xc
lea eax, [ebp - 0x150]
push eax
push 0x42cca0
call esi
push dword [ebp - 4]
lea eax, [ebp - 0x150]
push edi
push eax
call fcn.0041c5d8
add esp, 0xc
lea eax, [ebp - 0x150]
push eax
push 0x42cc90
call esi
mov eax, dword [ebp - 0xc]
add eax, 0x48
push eax
lea eax, [ebp - 0x50]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push ebx
push 0x42c5fc
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x403a66
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x950]
push 0x42cc5c
push eax
call fcn.0041c5d8
add esp, 0xc
lea eax, [ebp - 0x950]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 8]
call esi
xor al, al
jmp 0x403a68
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404eed
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push dword [0x4354a0]
mov esi, ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [esi + 0x30]
mov ebx, eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0xc], eax
xor eax, eax
cmp byte [esi], al
je 0x404f7f
mov dword [ebp - 4], eax
call fcn.004075f3
test eax, eax
jle 0x404f98
push edi
push dword [ebp - 4]
lea eax, [ebp - 0x2c]
push eax
call fcn.0040760a
mov esi, eax
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
movsd dword es:[edi], dword [esi]
pop ecx
push 0xcc0020
movsd dword es:[edi], dword [esi]
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push dword [ebp - 0x1c]
push ebx
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_BitBlt]
inc dword [ebp - 4]
call fcn.004075f3
cmp dword [ebp - 4], eax
jl 0x404f2f
pop edi
jmp 0x404f98
push 0xcc0020
push eax
push eax
push ebx
push dword [esi + 0x28]
push dword [esi + 0x2c]
push eax
push eax
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 8]
push dword [0x4354a0]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop esi
pop ebx
leave
ret

Function at 0x40535e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push 0x42ce68
lea eax, [ebp - 0x210]
push 0x42cf80
push eax
call fcn.0041c5d8
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0xf003f
lea eax, [ebp - 0x210]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4053d3
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x42cf70
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4053d3
cmp dword [ebp - 4], eax
setne al
mov byte [0x435494], al
leave
ret