joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4081e4
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x40827c
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x408279
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x408279
lea eax, [esi - 1]
push eax
push dword [0x417fb0]
call fcn.0040f406
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x40827b
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x408270
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x408363
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x408256
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x408322
push eax
call esi
test al, al
jns 0x408322
push 0x11
call esi
test al, al
js 0x408322
push 0x10
call esi
test al, al
js 0x408322
push 0x12
call esi
test al, al
js 0x408322
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x408322
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x4082f6
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x40830d
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x40836d
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x40836d
test ebp, ebp
je 0x408346
push 0x11
call esi
test al, al
js 0x40833e
push 0x10
call esi
test al, al
js 0x40833e
push 0x12
call esi
test al, al
jns 0x408346
push 1
push ebp
call fcn.00408379
test ebx, ebx
je 0x40835a
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x40836d
test edi, edi
je 0x40836d
mov eax, dword [edi + 8]
jmp 0x40836f
and dword [esp + 0x14], 0
jmp 0x40827b
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x40b520
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x40b552
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b54d
cmp dword [esp + 0xc], esi
je 0x40b569
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret
Function at 0x40e08a
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x40e1d2
xor ecx, ecx
cmp word [eax], cx
je 0x40e1d2
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x40e0e3
cmp eax, 3
jne 0x40e11d
cmp word [esp + 0xa], 0x3a
jne 0x40e11d
cmp eax, 2
jne 0x40e101
lea eax, [esp + 8]
push 0x4113c8
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x40e1d2
push 0xfffffffffffffffe
pop edi
jmp 0x40e1d2
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x40e132
cmp ax, bx
jne 0x40e13c
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x40e125
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x40e17b
test byte [esp + 0x21c], 0x10
je 0x40e162
push 0xfffffffffffffffe
pop edi
jmp 0x40e172
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40e1d0
cmp word [esp + 0x10], bp
jne 0x40e189
cmp word [esp + 0x12], bp
je 0x40e1a8
cmp word [esp + 0x10], bx
jne 0x40e197
cmp word [esp + 0x12], bx
je 0x40e1a8
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x40e1d0
cmp word [esp + 0x12], ax
jne 0x40e1d0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x40e1bd
test al, 0x10
je 0x40e1d0
jmp 0x40e1cd
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x40e1d0
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4
Function at 0x40e23f
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x417e88]
push esi
test eax, eax
jne 0x40e264
push fcn.0040e36c
push 0x10
push 0x258
call fcn.0040f4d9
mov dword [0x417e88], eax
push dword [esp + 0xc]
push eax
call fcn.0040f445
mov esi, eax
test esi, esi
je 0x40e365
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x40e286
mov edi, 0x411078
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x40e296
xor eax, eax
cmp word [ebx], ax
jne 0x40e29b
mov ebx, 0x4113cc
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x417b08]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x40e34c
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x40e2fc
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x40e300
push 0x4113c8
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x40e300
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x40e324
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x40e33a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40e338
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x417b08]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x40e363
cmp dword [esp + 0x14], 0xffffffff
je 0x40e357
mov esi, dword [esp + 0x14]
push esi
push dword [0x417e88]
call fcn.0040f3b7
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x40e3e2
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x40e40b
test byte [esp + 8], 2
je 0x40e3ff
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40e40d
xor eax, eax
ret 8

Function at 0x40f267
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x417e98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x40f2c8
push esi
push dword [0x417e94]
push 8
push dword [0x417b08]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x417e98]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x417e90]
jmp 0x40f2b8
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x40f2b6
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x40f2a6
push edi
push 0x40f205
call fcn.0041099e
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4
Function at 0x40f2d2
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ecx, esi
push edi
and ecx, 3
je 0x40f2e8
push 4
pop eax
sub eax, ecx
add esi, eax
mov eax, dword [0x417e94]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x40f31f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
push 8
push dword [0x417b08]
mov dword [0x417e98], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x417e98]
call ebx
mov eax, dword [0x417e94]
mov edi, eax
add eax, esi
push eax
push dword [0x417e98]
mov dword [0x417e94], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x417b08]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x417e98]
call ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test esi, esi
jne 0x40f35f
test ebx, ebx
je 0x40f380
push 0x14
push 0x417e90
call fcn.0040fbd4
pop ecx
pop ecx
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
test esi, esi
je 0x40f380
lea ecx, [edi + ebp]
push ecx
call esi
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x40fda0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4166f8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
add edx, 2
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov esp, ebp
pop ebp
ret

Function at 0x40fdd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4166f8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x40fe16
mov ecx, dword [ebp - 4]
add ecx, 0xa
push ecx
push 0
mov edx, dword [0x418104]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x40fe37
mov edx, dword [ebp - 4]
add edx, 0xa
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x418104]
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
shr edx, 1
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00410180
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8
Function at 0x40ffc0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4166f8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x40ffe4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
lea eax, [ecx + edx*2]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
sub edx, 4
cmp dword [ebp - 8], edx
jl 0x410034
mov eax, dword [ebp - 8]
add eax, 0x4000
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x418104]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x41007c
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0x100000
jle 0x41007c
cmp dword [ebp - 8], 0x100000
jge 0x410050
mov dword [ebp - 8], 0x100000
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x418104]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x4100a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4166f8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
shl ecx, 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
sub eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret 4

Function at 0x410100
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4166f8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x41013e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x41013e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x410140
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x4102b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4166f8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x41099e
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x417f00], 0
push ebx
push esi
mov esi, 0x417f08
jne 0x4109ca
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x417f20], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x417f00], 1
push dword [0x417f20]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x410a67
push 0x14
push 8
push dword [0x417b08]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x410a91
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x417f04]
test eax, eax
je 0x410a0c
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x417f04], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x410a96
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x417f20]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x417b08]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x410a91
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8
Function at 0x402bd0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4130c4
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x41d008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov ecx, 0x41ec44
call fcn.00412f13
push 0xc
mov byte [ebp - 0x15], 0
call fcn.00411d04
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov byte [ebp - 4], 1
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0xffffffff
push str.GlobalMutex_6A2AC04F_55C7_4CCD_81C9_0FCFB9A16982
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebx, eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 8], eax
test ebx, ebx
je 0x402d70
cmp dword [esi], 0
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
je 0x402ca7
mov eax, dword [esi + 4]
test eax, eax
je 0x402c98
push eax
call edi
mov dword [esi + 4], 0
mov eax, dword [esi]
test eax, eax
je 0x402ca7
push eax
call ebx
mov dword [esi], 0
mov eax, dword [ebp - 0x14]
sub esp, 0xc
mov ecx, esi
mov dword [esi], eax
push 4
call fcn.00409f50
cmp al, 1
jne 0x402d25
mov eax, dword [esi + 4]
test eax, eax
je 0x402d25
cmp dword [eax], 0x39767353
jne 0x402d25
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x402d67
cmp byte [eax + 4], 1
jne 0x402d67
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x402d1f
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x103
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x402d1c
cmp dword [ebp - 0x14], 0x103
jne 0x402d1c
push 1
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 4]
test eax, eax
je 0x402d46
push eax
call edi
xor eax, eax
mov dword [esi + 4], 0
test eax, eax
je 0x402d46
push eax
call edi
mov dword [esi + 4], 0
mov eax, dword [esi]
test eax, eax
je 0x402d55
push eax
call ebx
mov dword [esi], 0
cmp byte [ebp - 0x15], 1
jne 0x402d6d
push ecx
mov ecx, esi
call fcn.00402de0
xor al, al
jmp 0x402dc1
mov byte [ebp - 0x15], 1
jmp 0x402d25
mov edi, dword [ebp - 0x1c]
sub esp, 0x14
mov ecx, esi
call fcn.00409e70
mov bl, al
cmp bl, 1
jne 0x402da9
sub esp, 0xc
mov ecx, esi
push 6
call fcn.00409f50
mov bl, al
cmp bl, 1
jne 0x402da9
mov eax, dword [esi + 4]
test eax, eax
je 0x402da1
mov dword [eax], 0x39767353
test edi, edi
je 0x402dbf
mov dword [edi], esi
jmp 0x402dbf
mov ecx, esi
call fcn.00409fa0
mov ecx, esi
call fcn.00409fd0
push ecx
mov ecx, esi
call fcn.00402de0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411cf3
mov esp, ebp
pop ebp
ret
Function at 0x4081a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x41d008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov ecx, 0x41ec44
mov dword [ebp - 0x10], esi
call fcn.00412f13
xor edx, edx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], edx
test edi, edi
jne 0x4081ed
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411cf3
mov esp, ebp
pop ebp
ret 0x10
test byte [ebp + 0x14], 2
je 0x408281
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x408209
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edx, edx
mov ecx, dword [ebx + 0x38]
mov esi, dword [ecx]
cmp esi, ecx
je 0x408229
mov eax, dword [esi + 8]
cmp dword [eax], edi
je 0x408221
mov esi, dword [esi]
cmp esi, ecx
jne 0x408212
jmp 0x408229
mov edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x40823a
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp - 0xc]
cmp edx, 1
jne 0x408273
mov eax, dword [esi + 8]
add eax, 4
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
cmp ebx, 1
jne 0x408294
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 8]
add eax, 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
jmp 0x408292
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x10]
jmp 0x40828b
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
test byte [ebp + 0x14], 1
je 0x4082a1
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [ebp - 4]
cmp ebx, 1
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.00411cf3
mov esp, ebp
pop ebp
ret 0x10
Function at 0x408ca0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x41d008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, 0x41ec44
push edi
mov edi, dword [ebp + 8]
call fcn.00412f13
mov eax, dword [esi + 0x1c]
mov dword [ebp - 8], 0
test eax, eax
jne 0x408ce3
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411cf3
mov esp, ebp
pop ebp
ret 0xc
push ebx
mov ebx, dword [ebp + 0x10]
test bl, 2
je 0x408d3b
cmp dword [esi + 0x24], 0
je 0x408d3b
push 0x14
call fcn.00411d04
add esp, 4
mov dword [eax], 0
push 0x408bf0
push eax
push dword [ebp + 0xc]
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
push edi
mov dword [eax + 0x10], esi
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFileEx]
push 1
push 1
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SleepEx]
jmp 0x408d4e
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test bl, 1
pop ebx
je 0x408d5d
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [ebp - 4]
cmp edi, 1
pop edi
sete al
xor ecx, ebp
pop esi
call fcn.00411cf3
mov esp, ebp
pop ebp
ret 0xc