joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4369b0
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x458004]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [0x454294]
mov al, byte [0x4542ac]
push ebx
push esi
push edi
movups xmmword [ebp - 0x20], xmm0
mov edi, ecx
mov byte [ebp - 8], al
movq xmm0, qword [0x4542a4]
push 0x4542b0
movq qword [ebp - 0x10], xmm0
push edi
mov word [ebp - 0xc], 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x436a33
push str.Could_not_open_capture_file_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
push edi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443732
mov esp, ebp
pop ebp
ret
push ebx
push 0x18
lea eax, [ebp - 0x20]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, 0x18
je 0x436a87
push str.Could_not_write_capture_file_header_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
push edi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
add esp, 0xc
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443732
mov esp, ebp
pop ebp
ret
push 0x140
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x436aa3
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push 0x140
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esi + 0x18]
push edi
push 0x44af14
push 0x100
push eax
call fcn.00435b30
mov ecx, dword [ebp - 4]
add esp, 0x10
mov dword [esi], ebx
mov eax, esi
mov dword [esi + 0x118], 2
xor ecx, ebp
mov dword [esi + 0x11c], 1
pop edi
pop esi
pop ebx
call fcn.00443732
mov esp, ebp
pop ebp
ret
Function at 0x43a0c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], 0
lea eax, [ebp - 4]
mov dword [ebp - 8], edi
xorps xmm0, xmm0
mov dword [ebp - 4], 0
push 0
push eax
lea ecx, [ebp - 0x1c]
mov esi, edx
movups xmmword [ebp - 0x1c], xmm0
call fcn.00409360
add esp, 8
cmp dword [ebp - 4], 0
je 0x43a114
push esi
push str.SCRIPTING:_invalid_setTcpPorts_range:__s_n
push 0
call fcn.0041b440
add esp, 0xc
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x43a160
mov ebx, dword [ebp - 0x1c]
add ebx, 4
mov esi, dword [ebx - 4]
cmp esi, dword [ebx]
ja 0x43a155
lea edi, [edi + esi*4]
add edi, 0x1c
push esi
push str.SCRIPTING:_using_port__d_n
push 0
call fcn.0041b440
mov dword [edi], str.scripting
lea edi, [edi + 4]
inc esi
add esp, 0xc
cmp esi, dword [ebx]
jbe 0x43a131
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 8]
add ebx, 8
sub ecx, 1
mov dword [ebp - 4], ecx
jne 0x43a124
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43a350
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebx + 0x1400]
test edi, edi
je 0x43a4d9
cmp byte [edi], 0
je 0x43a4d9
call fcn.0043d700
push 0
call dword [0x4dc3b0]
add esp, 4
cvttsd2si esi, qword [eax]
push esi
push str.Lua_version___d_n
push 1
call fcn.0041b440
add esp, 0xc
cmp esi, 0x1f7
je 0x43a3b7
cmp esi, 0x1f6
je 0x43a3b7
push str.Unable_to_load_Lua_library_n
push 0
call fcn.0041b440
add esp, 8
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call dword [0x4dc3ac]
mov esi, eax
push esi
call dword [0x4dc3b8]
add esp, 4
mov dword [ebx + 0x1404], esi
push str.Segscan_Class
push esi
call dword [0x4dc3dc]
push 0xffffffffffffffff
push esi
call dword [0x4dc3e0]
push str.__index
push 0xfffffffffffffffe
push esi
call dword [0x4dc3c0]
add esp, 0x1c
push 0
push 0x44a0a8
push esi
call dword [0x4dc3c8]
add esp, 0xc
push 0xfffffffffffffffe
push esi
call dword [0x4dc3d8]
push 4
push esi
call dword [0x4dc3cc]
push str.Segscan_Class
push esi
mov dword [eax], ebx
call dword [0x4dc3c4]
push str.Segscan
push esi
call dword [0x4dc3d0]
push 0
push edi
push esi
call dword [0x4dc3a8]
add esp, 0x2c
test eax, eax
je 0x43a479
push 0
push 0xffffffffffffffff
push esi
call dword [0x4dc3f0]
add esp, 0xc
push eax
push edi
push str.SCRIPTING:
push str._s_error_loading:__s:__s_n
push 0
call fcn.0041b440
add esp, 0x14
push esi
call dword [0x4dc3b4]
add esp, 4
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push edi
push str.SCRIPTING:
push str._s_running_script:__s_n
push 1
call fcn.0041b440
push 0
push 0
push 0
push 0
push 0
push esi
call dword [0x4dc3a4]
add esp, 0x28
test eax, eax
je 0x43a4f5
push 0
push 0xffffffffffffffff
push esi
call dword [0x4dc3f0]
add esp, 0xc
push eax
push edi
push str.SCRIPTING:
push str._s_error_running:__s:__s_n
push 0
call fcn.0041b440
add esp, 0x14
push esi
call dword [0x4dc3b4]
add esp, 4
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push str.SCRIPTING
push str._s:_no_script_specified__use___script_option_n
push 0
call fcn.0041b440
add esp, 0xc
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
pop edi
pop esi
pop ebx
ret
Function at 0x43a5b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, ecx
mov dword [ebp - 4], edx
push ebx
push esi
mov dword [ebp - 0xc], eax
mov ebx, dword [eax]
mov esi, dword [eax + 4]
mov eax, dword [ebp + 8]
add eax, esi
shl eax, 2
push edi
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x43a605
push str.smack
push str._s:_out_of_memory_error_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
test esi, esi
je 0x43a61f
mov edi, ebx
mov ecx, eax
sub edi, eax
mov edx, esi
mov eax, dword [edi + ecx]
lea ecx, [ecx + 4]
mov dword [ecx - 4], eax
sub edx, 1
jne 0x43a611
xor ecx, ecx
mov edi, esi
cmp dword [ebp + 8], ecx
jbe 0x43a653
xor eax, eax
test esi, esi
je 0x43a63e
mov edx, dword [ebp - 4]
mov edx, dword [edx + ecx*4]
cmp dword [ebx + eax*4], edx
je 0x43a64d
inc eax
cmp eax, esi
jb 0x43a634
mov edx, dword [ebp - 4]
mov eax, ecx
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 8]
mov dword [edx + edi*4], eax
inc edi
inc ecx
cmp ecx, dword [ebp + 8]
jb 0x43a628
mov esi, dword [ebp - 0xc]
mov eax, dword [esi]
test eax, eax
je 0x43a666
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [ebp - 8]
mov dword [esi + 4], edi
pop edi
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43a740
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
push 0x10
mov dword [ebp - 0x14], esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x43a78b
push str.smack
push str._s:_out_of_memory_error_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ebx, dword [ebp + 0x10]
xor dl, dl
mov eax, dword [ebp + 8]
mov dword [edi + 8], eax
mov eax, ebx
mov ecx, dword [edi + 0xc]
and al, 2
cmp dl, al
mov byte [ebp - 1], 0
mov eax, ebx
sbb edx, edx
and al, 4
and edx, 2
cmp byte [ebp - 1], al
sbb eax, eax
and ecx, 0xfffffff0
and eax, 4
or edx, eax
mov eax, ebx
and eax, 1
and edx, 0xfffffff7
xor ecx, eax
and bl, 8
xor al, al
or edx, ecx
cmp al, bl
mov ebx, dword [ebp + 8]
sbb eax, eax
and eax, 8
or edx, eax
mov eax, dword [ebp + 0xc]
mov dword [edi], eax
mov dword [edi + 0xc], edx
mov eax, dword [esi + 4]
and eax, 1
mov dword [ebp - 0x10], eax
lea eax, [ebx + 1]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
je 0x43a765
cmp dword [ebp - 0x10], 0
je 0x43a833
test ebx, ebx
je 0x43a843
mov esi, dword [ebp - 8]
mov edi, eax
sub esi, eax
movzx eax, byte [esi + edi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
add esp, 4
mov byte [edi], al
lea edi, [edi + 1]
sub ebx, 1
jne 0x43a810
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp + 8]
jmp 0x43a840
push ebx
push dword [ebp - 8]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov byte [eax + ebx], 0
test byte [edi + 0xc], 1
mov dword [edi + 4], eax
je 0x43a854
or dword [esi + 4], 2
test byte [edi + 0xc], 2
je 0x43a85e
or dword [esi + 4], 4
mov edx, dword [ebp - 8]
mov ecx, esi
push ebx
call fcn.0043a680
add esp, 4
test byte [edi + 0xc], 4
je 0x43a883
push 1
mov edx, 0x455454
mov ecx, esi
call fcn.0043a680
add esp, 4
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
inc eax
cmp eax, ecx
jb 0x43a8dc
lea eax, [ecx*2 + 1]
mov dword [ebp - 0x18], eax
shl eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x43a765
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43a8d3
mov eax, dword [esi + 0xc]
shl eax, 2
push eax
push ecx
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push dword [esi + 8]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [esi + 8], ebx
mov dword [esi + 0x10], eax
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov dword [eax + ecx*4], edi
inc dword [esi + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43aad0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
push 8
mov dword [ebp - 4], edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x43ab15
push str.smack
push str._s:_out_of_memory_error_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
xorps xmm0, xmm0
xor esi, esi
movq qword [ebx], xmm0
nop
mov eax, dword [edi + 0x14]
mov eax, dword [esi + eax]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x43ab70
push 8
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x43aaef
cmp dword [ebx], 0
jne 0x43ab47
mov dword [ebx], ecx
jmp 0x43ab4d
mov eax, dword [ebx + 4]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], 0
mov dword [ebx + 4], ecx
imul ecx, eax, 0x40c
mov eax, dword [edi + 0x14]
mov dword [ecx + eax + 0x408], 0
add esi, 4
cmp esi, 0x408
jb 0x43ab20
mov ecx, dword [ebx]
mov edx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test ecx, ecx
je 0x43ac99
mov eax, dword [ecx]
mov dword [ebp - 8], eax
mov eax, dword [ecx + 4]
push ecx
mov dword [ebx], eax
call edx
mov ecx, dword [ebp - 8]
add esp, 4
xor edi, edi
imul eax, ecx, 0x40c
mov dword [ebp - 0x14], eax
mov esi, eax
mov dword [ebp - 0x10], eax
nop
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov esi, dword [esi + eax]
mov dword [ebp - 0xc], esi
cmp esi, 0xffffffff
je 0x43ac7e
cmp esi, ecx
je 0x43ac7e
push 8
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x43aaef
cmp dword [ebx], 0
jne 0x43abeb
mov dword [ebx], ecx
jmp 0x43abf1
mov eax, dword [ebx + 4]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 4]
mov dword [ecx], esi
mov dword [ecx + 4], 0
mov dword [ebx + 4], ecx
mov esi, dword [eax + 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [esi + eax + 0x408]
imul ecx, eax, 0x103
add ecx, edi
cmp dword [esi + ecx*4], 0xffffffff
jne 0x43ac3b
nop dword [eax + eax]
imul eax, eax, 0x40c
mov eax, dword [eax + esi + 0x408]
imul ecx, eax, 0x103
add ecx, edi
cmp dword [esi + ecx*4], 0xffffffff
je 0x43ac20
imul ecx, dword [ebp - 0xc], 0x40c
imul edx, eax, 0x103
add edx, edi
mov eax, dword [esi + edx*4]
mov dword [ecx + esi + 0x408], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + edx*4]
lea edx, [ecx + eax*8]
mov eax, dword [edx + 4]
test eax, eax
je 0x43ac7b
mov edx, dword [edx]
push eax
mov eax, dword [ebp - 0xc]
lea ecx, [ecx + eax*8]
call fcn.0043a5b0
add esp, 4
mov ecx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
inc edi
add esi, 4
mov dword [ebp - 0x10], esi
cmp edi, 0x102
jb 0x43abb0
jmp 0x43ab7b
push ebx
call edx
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43acb0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, ecx
push 8
mov dword [ebp - 8], ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x43acf5
push str.smack
push str._s:_out_of_memory_error_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
xorps xmm0, xmm0
xor edi, edi
movq qword [esi], xmm0
nop
mov eax, dword [ebx + 0x14]
mov ebx, dword [edi + eax]
test ebx, ebx
je 0x43ad36
push 8
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x43accf
cmp dword [esi], 0
jne 0x43ad24
mov dword [esi], ecx
jmp 0x43ad2a
mov eax, dword [esi + 4]
mov dword [eax + 4], ecx
mov dword [ecx], ebx
mov dword [ecx + 4], 0
mov dword [esi + 4], ecx
add edi, 4
cmp edi, 0x408
jae 0x43ad46
mov ebx, dword [ebp - 8]
jmp 0x43ad00
mov ecx, dword [esi]
mov edx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test ecx, ecx
je 0x43adf2
mov eax, dword [ecx]
mov dword [ebp - 4], eax
mov eax, dword [ecx + 4]
push ecx
mov dword [esi], eax
call edx
mov eax, dword [ebp - 4]
add esp, 4
xor edi, edi
imul ecx, eax, 0x40c
mov dword [ebp - 0x10], ecx
mov edx, ecx
mov dword [ebp - 0xc], ecx
nop dword [eax]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x14]
mov ebx, dword [edx + ecx]
cmp ebx, 0xffffffff
jne 0x43ada6
mov eax, dword [ebp - 0x10]
imul eax, dword [ecx + eax + 0x408], 0x103
add eax, edi
mov eax, dword [ecx + eax*4]
mov dword [edx + ecx], eax
jmp 0x43addb
cmp ebx, eax
je 0x43adde
push 8
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
test eax, eax
je 0x43accf
cmp dword [esi], 0
jne 0x43adc6
mov dword [esi], eax
jmp 0x43adcc
mov ecx, dword [esi + 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0xc]
mov dword [eax], ebx
mov dword [eax + 4], 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
inc edi
add edx, 4
mov dword [ebp - 0xc], edx
cmp edi, 0x102
jb 0x43ad80
jmp 0x43ad46
push esi
call edx
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4410b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [ebp - 0xc], edi
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4410df
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xorps xmm0, xmm0
add esp, 4
movups xmmword [esi + 0x20], xmm0
movups xmmword [esi + 0x30], xmm0
mov edx, dword [esi]
lea eax, [ebp - 0x88]
mov ecx, dword [esi + 0x10]
push eax
push edi
call fcn.004318f0
add esp, 8
test eax, eax
je 0x44125d
cmp dword [ebp - 0x18], 0
je 0x44125d
mov eax, dword [esi]
mov ecx, eax
mov edx, dword [esi + 8]
sub ecx, edx
mov dword [ebp - 8], ecx
add eax, 0x28
mov ecx, dword [esi + 4]
mov dword [ebp - 4], ecx
mov ecx, 1
cmove eax, ecx
mov dword [ebp - 0x10], edx
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x441155
push str.____out_of_memory__aborting_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
push dword [esi]
push dword [esi + 0x10]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp - 0x10]
add ecx, 0x28
add eax, edi
mov dword [esi + 0x30], edi
add ecx, edi
push dword [ebp - 8]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 4]
xorps xmm0, xmm0
mov ecx, dword [ebp - 8]
add esp, 0xc
movups xmmword [edi + eax], xmm0
movups xmmword [edi + eax + 0x10], xmm0
movq qword [edi + eax + 0x20], xmm0
add eax, 0x28
add eax, ecx
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0xc]
sub eax, 0
je 0x4411c2
sub eax, 1
jne 0x4411c8
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov ax, word [ebp + 0xc]
mov word [edi + 4], ax
mov word [edi + 0xc], 0xdd86
jmp 0x4411c8
mov dword [edi], 0x17
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov byte [edi + eax], 0x60
mov eax, ecx
shr eax, 8
mov byte [edi + edx + 4], al
mov eax, edx
mov byte [edi + eax + 5], cl
mov al, byte [ebp - 0x74]
mov byte [edi + edx + 6], al
cmp dword [ebp - 0x74], 1
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
jne 0x441209
mov byte [edi + eax + 6], 0x3a
test ecx, ecx
je 0x441209
cmp byte [edi + eax + 0x28], 8
jne 0x441209
mov byte [edi + eax + 0x28], 0x80
mov byte [edi + eax + 7], 0xff
mov ecx, edi
lea eax, [ebp - 0x88]
push eax
push edx
mov edx, dword [esi + 0x20]
call fcn.004318f0
add esp, 8
test eax, eax
je 0x441246
cmp dword [ebp - 0x18], 0
je 0x441246
mov eax, dword [ebp - 0x7c]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x20]
pop edi
mov dword [esi + 0x2c], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.____FAILED:_bad_packet_template_n
push 0
call fcn.0041b440
add esp, 8
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push str.ERROR:_bad_packet_template_n
push 0
call fcn.0041b440
add esp, 8
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x44400c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44404b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44404b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44404b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44404b
cmp dword [ecx + 0x74], 0xe
jbe 0x44404b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401090
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0x4c
mov dword [ebp - 0x2c], eax
test byte [section..data], 8
jne 0x401170
lea edi, [ebp - 0x1c]
lea esi, [ebp - 0x20]
mov dword [esp + 4], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x4011c0
mov ecx, dword [ebp - 0x1c]
add ecx, 4
mov edx, ecx
mov dword [ebp - 0x38], ecx
mov dword [esp + 8], edx
mov ecx, dword fs:[0x18]
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x34], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [ebp - 0x30], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._RegQueryValueExW_24
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
sub esp, 0x18
test eax, eax
jne 0x4011a0
mov eax, dword [ebp - 0x38]
xor ecx, ecx
xor ebx, ebx
and eax, 0xfffffffe
mov word [edx + eax - 2], cx
mov word [edx + eax - 4], bx
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], section..rdata
mov dword [esp + 8], global___FUNCTION__.0
mov dword [esp + 4], 0x403000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4010ab
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
nop
xor edx, edx
jmp 0x40115d
Function at 0x4022e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x40233b
cmp byte [esi + ebx - 1], 0xa
je 0x40230f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x405084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x402890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov edi, dword [0x405094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x402a50
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x405094]
movzx eax, al
bt eax, esi
jae 0x402ab0
mov ecx, dword [0x405084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x402956
test byte [0x403018], 8
jne 0x4029f0
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x403028], 8
jne 0x4029a0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x402925
cmp esi, 3
jbe 0x402960
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 8], str._s:_s:_s
lea edx, [edi + 1]
mov dword [esp], eax
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x4044e0]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x402925
mov ecx, dword [0x405094]
test ecx, ecx
je 0x402a90
mov dword [esp], 0x403028
call dword [0x405094]
test al, 8
je 0x4028fc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x4028fc
mov ebx, dword [0x405094]
test ebx, ebx
je 0x402a70
mov dword [esp], 0x403018
call dword [0x405094]
test al, 8
je 0x4028e9
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x4028ef
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x405094
call sym._load_func.part.0
jmp 0x4028b0
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x405094
call sym._load_func.part.0
jmp 0x4029fa
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x405094
call sym._load_func.part.0
jmp 0x4029ae
mov eax, 0xffffffff
jmp 0x402956
Function at 0x402c10
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit