joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406be0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
or eax, 0x8001
push eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push str.SetDllDirectoryW
push dword [0x446fcc]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x406c3d
push 0x41f178
mov ecx, ebx
call dword [section..rdata]
call ebx
test eax, eax
je 0x406c38
mov dword [0x4462a0], 2
jmp 0x406c3d
mov edi, 0xffffff1d
and esi, 4
cmp dword [0x446ea8], 0x6c
jg 0x406c4d
test esi, esi
je 0x406ca1
push str.SetDefaultDllDirectories
push dword [0x446fcc]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x406ca1
neg esi
mov ecx, ebx
sbb esi, esi
and esi, 0xfffffe00
add esi, 0xa00
push esi
call dword [section..rdata]
call ebx
test eax, eax
je 0x406c98
and esi, 0x200
neg esi
sbb esi, esi
add esi, 4
mov dword [0x4462a0], esi
jmp 0x406ca1
test edi, edi
js 0x406ca1
mov edi, 0xffffff1c
push str.GetCurrentThreadStackLimits
push dword [0x446fcc]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetUnhandledExceptionFilter
push dword [0x446fcc]
mov dword [0x44709c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UnhandledExceptionFilter
push dword [0x446fcc]
mov dword [0x447000], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [0x447000]
mov dword [0x447004], eax
test esi, esi
je 0x406d19
cmp dword [0x4470a0], 0
jne 0x406d19
push 0x407280
mov ecx, esi
call dword [section..rdata]
call esi
mov ecx, eax
sub ecx, 0x407280
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [0x4470a0], ecx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x407ed0
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x4470e0], 0
push esi
mov esi, 0x1c
jne 0x407f51
push 0
push 1
push 0
push 1
push 0x4470e0
call fcn.00411820
mov esi, eax
add esp, 0x14
test esi, esi
js 0x407f51
call fcn.0040f1c0
mov esi, eax
test esi, esi
js 0x407f39
push 0x41f814
push 8
push 0
push 4
call fcn.00407a50
mov esi, eax
add esp, 0x10
test esi, esi
js 0x407f39
push 4
call fcn.00406870
mov esi, eax
add esp, 4
test esi, esi
js 0x407f39
mov byte [0x4470d4], 1
xor eax, eax
pop esi
ret
push dword [0x4470e0]
call fcn.00411940
add esp, 4
mov dword [0x4470e0], 0
mov eax, esi
pop esi
ret

Function at 0x40a5b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.004170d0
mov esi, eax
add esp, 0xc
test esi, esi
js 0x40a5f7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40a5ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004087c0
add esp, 4
mov esi, eax
push dword [ebp - 4]
call fcn.004170c0
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40a670
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x1c
push edi
test eax, eax
je 0x40aa30
mov dword [eax], 0xffffffff
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x40a695
mov dword [eax], 0
mov edi, dword [ebp + 8]
test edi, edi
je 0x40aa30
lea eax, [ebp + 0xc]
push eax
call fcn.00416eb0
add esp, 4
test eax, eax
js 0x40a9a9
mov ecx, dword [ebp + 0xc]
mov eax, ecx
and eax, 0x700
push ebx
push esi
cmp eax, 0x300
ja 0x40a6f0
je 0x40a6e9
cmp eax, 0x100
je 0x40a6e2
cmp eax, 0x200
jne 0x40aa24
mov edx, 1
jmp 0x40a711
mov edx, 4
jmp 0x40a711
mov edx, 2
jmp 0x40a711
cmp eax, 0x700
jne 0x40aa24
mov eax, ecx
mov edx, 5
and eax, 0x1000
or eax, 0
jne 0x40a711
mov edx, 3
mov eax, ecx
mov dword [ebp - 8], edx
and eax, 3
jmp dword [eax*4 + 0x40aa3c]
pop edi
mov esp, ebp
pop ebp
ret
pop esi
pop ebx
mov eax, 0xfffffff3
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffe
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40ab00
Capabilities:
Get disk size
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4462b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x20], esi
cmp ebx, 0xffffffff
je 0x40ab24
mov eax, ebx
jmp 0x40ab27
or eax, 0xffffffff
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
je 0x40ab54
mov ecx, dword [ebp - 0x24]
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], ecx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004013b0
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004087c0
add esp, 4
mov esi, eax
cmp ebx, 0xffffffff
je 0x40ab6e
mov ecx, ebx
jmp 0x40ab71
or ecx, 0xffffffff
push 0
lea eax, [ebp - 0x34]
push eax
push 0x18
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0x70000
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40ac10
mov eax, dword [ebp - 0x14]
cmp eax, 0xc
je 0x40ab9e
cmp eax, 0xb
jne 0x40ac10
mov eax, dword [ebp - 8]
mul dword [ebp - 0xc]
push edi
push dword [ebp - 0x18]
mov ecx, eax
mov eax, edx
mul dword [ebp - 0x10]
push dword [ebp - 0x1c]
mov edi, eax
mov eax, ecx
mul dword [ebp - 0x10]
add edi, edx
push edi
push eax
call fcn.004018b0
mov esi, dword [ebp - 0x20]
pop edi
mov dword [esi], eax
mov dword [esi + 4], edx
cmp ebx, 0xffffffff
jne 0x40abd3
or ebx, 0xffffffff
push 0
lea eax, [ebp - 0x20]
push eax
push 8
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0x7405c
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40abfe
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [esi], eax
mov dword [esi + 4], ecx
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004013b0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004013b0
mov esp, ebp
pop ebp
ret
Function at 0x40ad30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
test esi, esi
je 0x40ad82
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp ebx, 0xffffffff
je 0x40ad53
mov eax, ebx
jmp 0x40ad56
or eax, 0xffffffff
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 4]
push 0
push ecx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40ae19
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
test ecx, ecx
je 0x40ad8b
cmp eax, esi
jbe 0x40ad80
mov eax, esi
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, esi
jae 0x40ad82
nop
mov ecx, esi
mov dword [ebp - 8], 0
sub ecx, eax
lea edx, [eax + edi]
cmp ebx, 0xffffffff
je 0x40ada7
mov eax, ebx
jmp 0x40adaa
or eax, 0xffffffff
push 0
lea esi, [ebp - 8]
push esi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [ebp + 0x10]
test eax, eax
je 0x40ade0
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x40aef0
mov eax, dword [ebp - 4]
add eax, ecx
mov dword [ebp - 4], eax
cmp eax, esi
jb 0x40ad90
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004087c0
add esp, 4
cmp eax, 0xffffff68
jne 0x40ad84
push ebx
call fcn.00416e60
xor ecx, ecx
sub esi, dword [ebp - 4]
sbb ecx, ecx
add eax, esi
adc edx, ecx
push edx
push eax
push ebx
call fcn.0040a4c0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
jne 0x40af0d
mov ebx, esi
xor eax, eax
shr ebx, 1
mov dword [ebp - 4], eax
cmp ebx, 0x8000
jbe 0x40ae40
mov ebx, 0x8000
jmp 0x40ae50
add ebx, 0xff
and ebx, 0xffffff00
lea esp, [esp]
mov edi, esi
sub edi, eax
cmp ebx, edi
ja 0x40ae5a
mov edi, ebx
mov ecx, dword [ebp + 0xc]
add ecx, eax
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x40ae70
or eax, eax
push 0
lea edx, [ebp - 8]
push edx
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40ae99
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
jne 0x40aebc
cmp ebx, eax
jbe 0x40aebc
mov eax, dword [ebp - 4]
shr ebx, 1
jmp 0x40aeaf
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
add eax, ecx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 4], eax
test edx, edx
jne 0x40aefc
test ecx, ecx
je 0x40aef0
cmp eax, esi
jb 0x40ae50
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call fcn.004087c0
add esp, 4
cmp eax, 0xffffff68
jne 0x40ad84
mov esi, dword [ebp + 8]
push esi
call fcn.00416e60
add eax, edi
adc edx, 0
push edx
push eax
push esi
call fcn.0040a4c0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xffffff90
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, esi
jbe 0x40af02
mov eax, esi
pop edi
pop esi
mov dword [edx], eax
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call fcn.004087c0
add esp, 4
cmp eax, 0xffffff68
jne 0x40ad84
push ebx
call fcn.00416e60
add eax, esi
adc edx, 0
push edx
push eax
push ebx
call fcn.0040a4c0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b200
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
sub esp, 0xc
push esi
push edi
mov edi, dword [eax + 0x30]
push dword [edi + 8]
call fcn.004197c0
add esp, 4
call fcn.00418d60
call fcn.004198e0
call fcn.00419a00
mov esi, eax
test esi, esi
jne 0x40b2e4
mov ecx, dword [edi + 0x10]
lea esi, [eax + 3]
lea eax, [ecx + 0x40]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x40b2cd
push str.D:_tinderbox_testsuite_srcVBoxRuntime_r3win_nocrt_startup_exe_win.cpp
push 0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
movzx eax, word [ecx]
shr eax, 1
push eax
push dword [ecx + 4]
call fcn.00410d00
add esp, 0x18
test eax, eax
js 0x40b2bb
push 0
push 4
push dword [ebp - 4]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004192f0
add esp, 0x14
test eax, eax
js 0x40b2a9
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
call fcn.00401af0
add esp, 0xc
mov esi, eax
jmp 0x40b2dc
push eax
push 0x1c
push str.Error_parsing_command_line:
call fcn.00418eb0
add esp, 0xc
jmp 0x40b2dc
push eax
push 0x29
push str.Failed_to_convert_command_line_to_UTF_8:
call fcn.00418eb0
add esp, 0xc
jmp 0x40b2dc
push 0x11
push str.No_command_line_r_n
call fcn.00418e70
add esp, 8
push 1
push esi
call fcn.0040b1d0
push 0x1f
push str.A_C_static_initializor_failed__
call fcn.00418f60
push esi
call fcn.004190e0
push 2
push 0x41fb34
call fcn.00418f60
add esp, 0x14
push 0
push esi
call fcn.0040b1d0
int3
Function at 0x40f140
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [0x44695c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x40f15d
mov eax, 0xffffffe8
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push dword [ebp + 8]
call fcn.0040f010
add esp, 8
xor eax, eax
pop ebp
ret

Function at 0x40f210
Capabilities:
Query environment variable

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

Function at 0x410de0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x410df7
xor eax, eax
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004087c0
add esp, 4
pop ebp
ret
Function at 0x4170d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push edi
mov edi, dword [ebp + 8]
push str.D:_tinderbox_testsuite_srcVBoxRuntime_r3winpathint_win.cpp
push eax
push 0
push edi
push 0xffffffffffffffff
push esi
mov dword [edi], 0
mov dword [ebp - 4], 0
call fcn.00412f20
mov ebx, eax
add esp, 0x18
test ebx, ebx
js 0x41723e
mov ecx, dword [ebp - 4]
cmp ecx, 0xf3
ja 0x4171b7
mov dl, byte [esi]
movsx ebx, dl
lea eax, [ebx - 0x61]
cmp eax, 0x1a
jb 0x417131
lea eax, [ebx - 0x41]
cmp eax, 0x1a
jae 0x417160
cmp byte [esi + 1], 0x3a
jne 0x417160
mov al, byte [esi + 2]
cmp al, 0x5c
je 0x417225
cmp al, 0x2f
je 0x417225
push edi
call fcn.00417040
add esp, 4
test al, al
je 0x4171b7
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dl, 0x5c
je 0x41717e
cmp dl, 0x2f
je 0x41717e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, dword [ebp - 4]
cmp eax, 0xf2
jmp 0x4171b5
mov al, byte [esi + 1]
cmp al, 0x5c
je 0x417189
cmp al, 0x2f
jne 0x4171af
mov al, byte [esi + 2]
cmp al, 0x5c
je 0x4171af
cmp al, 0x2f
je 0x4171af
test al, al
je 0x4171af
cmp al, 0x3f
jne 0x4171a7
mov al, byte [esi + 3]
cmp al, 0x5c
je 0x4171a7
cmp al, 0x2f
jne 0x417225
cmp ecx, 0xf0
jmp 0x4171b5
cmp ecx, 0xf1
jbe 0x417225
push dword [edi]
call fcn.004081d0
xor eax, eax
mov dword [edi], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00416e50
mov ebx, eax
add esp, 0x10
test ebx, ebx
js 0x41723e
cmp dword [ebp - 8], 0
jne 0x41722e
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x5c
jne 0x41722e
cmp word [eax + 2], 0x3f
jne 0x41722e
cmp word [eax + 4], 0x3f
jne 0x41722e
cmp word [eax + 6], 0x5c
jne 0x41722e
mov ecx, 0x5c
mov word [eax + 2], cx
movzx eax, word [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
shr eax, 1
cmp word [ecx + eax*2], 0
jne 0x41722e
mov dword [edi], ecx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00416e30
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417a00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4018
call fcn.004014f0
mov eax, dword [0x4462b4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4018], eax
jbe 0x417acf
lea eax, [ebp - 0x4014]
push eax
push 0x1004
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x417ab2
push 0
lea eax, [ebp - 0x200c]
push eax
push 0x1004
lea eax, [ebp - 0x4014]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x417ab2
cmp word [ebp - 0x200a], 0x3a
jne 0x417a82
movzx ecx, word [ebp - 0x200c]
lea eax, [ecx - 0x61]
cmp eax, 0x1a
jae 0x417a82
lea eax, [ecx - 0x20]
mov word [ebp - 0x200c], ax
push str.D:_tinderbox_testsuite_srcVBoxRuntime_r3winpath_win.cpp
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x4018]
push eax
lea eax, [ebp - 0x200c]
push 0xffffffffffffffff
push eax
call fcn.00410d00
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004013b0
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004087c0
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004013b0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffffd7
xor ecx, ebp
call fcn.004013b0
mov esp, ebp
pop ebp
ret

Function at 0x417bb0
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push 0
push dword [ebp + 8]
push eax
call fcn.004170d0
add esp, 0xc
test eax, eax
js 0x417c80
push esi
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call fcn.004170d0
mov esi, eax
add esp, 0xc
test esi, esi
js 0x417c72
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x417c3e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x417c16
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004087c0
add esp, 4
mov esi, eax
jmp 0x417c3a
and edi, 0xf000
and esi, 0x10
cmp edi, 0x4000
jne 0x417c33
neg esi
sbb esi, esi
and esi, 0x7e
add esi, 0xffffff82
jmp 0x417c3a
neg esi
sbb esi, esi
and esi, 0xffffff81
test esi, esi
js 0x417c66
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x417c55
xor esi, esi
jmp 0x417c66
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004087c0
add esp, 4
mov esi, eax
push dword [ebp - 8]
call fcn.004170c0
add esp, 4
pop edi
push dword [ebp - 4]
call fcn.004170c0
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x418ba0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [0x447008]
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x418bcd
push 0x17
mov ecx, esi
call dword [section..rdata]
call esi
test eax, eax
je 0x418bcd
mov ecx, edi
int 0x29
mov esi, dword [0x446fe4]
test esi, esi
je 0x418be6
mov ecx, esi
call dword [section..rdata]
call esi
test eax, eax
je 0x418be6
int3
mov esi, dword [0x447000]
test esi, esi
je 0x418c60
cmp dword [0x447004], 0
je 0x418c60
push 0
mov ecx, esi
call dword [section..rdata]
call esi
mov eax, dword [ebx + 0xb8]
push 0x38
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x38]
push 0
push eax
mov dword [ebp - 0x50], 0xc0000409
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], edi
call sym.rdtsc.exe_nocrt_memset
mov esi, dword [0x447004]
lea eax, [ebp - 0x50]
add esp, 0xc
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], ebx
mov ecx, esi
push eax
call dword [section..rdata]
call esi
lea ebx, [ebx]
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x418c60

Function at 0x418eb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x4462b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x88]
push 0
push ecx
push dword [ebp + 0xc]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x2010
push 0
push 0
push 0xa
push dword [ebp + 0x10]
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.0041b3a0
add esp, 0x1c
lea ecx, [ebp - 0x88]
push 0
push ecx
push eax
lea eax, [ebp - 0x84]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x88]
push eax
push 2
push 0x41fb34
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004013b0
mov esp, ebp
pop ebp
ret

Function at 0x418f90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x4462b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x2080
push 8
push 8
push 0x10
push eax
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.0041b3a0
add esp, 0x1c
lea ecx, [ebp - 0x88]
push 0
push ecx
push eax
lea eax, [ebp - 0x84]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004013b0
mov esp, ebp
pop ebp
ret
Function at 0x419000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x4462b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + 0x1000]
cmp eax, 0x2000
jb 0x419044
xor eax, eax
cmp byte [esi], al
je 0x419037
lea ebx, [ebx]
inc eax
cmp byte [esi + eax], 0
jne 0x419030
push 0
lea ecx, [ebp - 0x88]
push ecx
push eax
push esi
jmp 0x4190b3
push 0
lea eax, [ebp - 0x88]
push eax
push 0xb
push str._pszString
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x2080
push 8
push 8
push 0x10
push esi
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.0041b3a0
add esp, 0x1c
lea ecx, [ebp - 0x88]
push 0
push ecx
push eax
lea eax, [ebp - 0x84]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x88]
push eax
push 1
push 0x41f9f4
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004013b0
mov esp, ebp
pop ebp
ret

Function at 0x4190e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x4462b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x2000
push 0
push 0
push 0xa
push dword [ebp + 8]
lea eax, [ebp - 0xac]
push 0xa8
push eax
call fcn.0041b3a0
push 0x2008
push 0
push 0
mov word [ebp + eax - 0xac], 0x2820
lea esi, [eax + 2]
push 0x10
push dword [ebp + 8]
mov eax, 0xa8
sub eax, esi
push eax
lea eax, [ebp - 0xac]
add eax, esi
push eax
call fcn.0041b3a0
add esp, 0x38
lea ecx, [ebp - 0xb0]
add eax, esi
push 0
mov byte [ebp + eax - 0xac], 0x29
inc eax
push ecx
push eax
lea eax, [ebp - 0xac]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004013b0
mov esp, ebp
pop ebp
ret

Function at 0x419190
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x4462b4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x2008
push 0
push 0
push 0x10
push dword [ebp + 8]
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.0041b3a0
add esp, 0x1c
lea ecx, [ebp - 0x88]
push 0
push ecx
push eax
lea eax, [ebp - 0x84]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004013b0
mov esp, ebp
pop ebp
ret
Function at 0x4197c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 3
jne 0x4198d3
shr eax, 8
cmp al, 0x32
jae 0x4198d3
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x4197f3
mov eax, dword [ecx + 0x3c]
add eax, ecx
jmp 0x4197f5
mov eax, ecx
cmp dword [eax], 0x4550
jne 0x4198d7
push esi
movzx esi, word [eax + 0x14]
add esi, eax
movzx eax, word [eax + 6]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4198d2
push ebx
add esi, 0x20
push edi
lea esp, [esp]
mov ebx, dword [esi]
mov eax, dword [esi + 8]
cmp ebx, eax
jbe 0x4198c3
mov edi, dword [esi + 4]
sub ebx, eax
add edi, eax
add edi, ecx
mov ecx, dword [esi + 0x1c]
test ecx, ecx
jns 0x41984b
push ebx
push 0
push edi
call sym.rdtsc.exe_nocrt_memset
add esp, 0xc
jmp 0x4198c0
mov eax, edi
and ecx, 0x20000000
and eax, 0xfffff000
mov dword [ebp - 0xc], eax
mov eax, edi
and eax, 0xfff
add eax, 0xfff
add eax, ebx
and eax, 0xfffff000
neg ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
sbb ecx, ecx
push eax
and ecx, 0x3c
lea eax, [ebp - 8]
add ecx, 4
push ecx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], ecx
push eax
push 0xffffffffffffffff
mov dword [ebp - 4], ecx
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
test eax, eax
js 0x4198bf
push ebx
push 0
push edi
call sym.rdtsc.exe_nocrt_memset
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
jmp 0x4198c0
int3
mov ecx, dword [ebp + 8]
add esi, 0x28
sub dword [ebp - 0x10], 1
jne 0x419820
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
int3