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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, eax
mov ebx, dword [edi + 0x16c]
push 0x5c
push dword [ebx]
call fcn.00456000
mov esi, dword [edi]
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
pop ecx
pop ecx
mov dword [ebp - 8], eax
call fcn.0043cf91
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x80]
mov dword [edi + 0x200], eax
mov eax, dword [esi + 0x28]
mov dword [edi + 0x204], eax
lea eax, [esi + 0x2f4]
mov dword [edi + 0x1fc], eax
mov eax, dword [ebp - 8]
test eax, eax
mov dword [ebp - 0x14], edx
jne 0x444b29
push 0x25
pop eax
jmp 0x444c07
cmp byte [eax + 1], 0
je 0x444b21
push 0x49b294
push dword [ebx]
call fcn.00457ba8
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 8], eax
jne 0x444b56
push dword [ebx]
push str.Cant_open__s_for_writing
call fcn.00433f1e
pop ecx
pop ecx
push 0x17
jmp 0x444b23
mov eax, dword [esi + 0xa8]
cmp eax, 0xffffffff
mov ecx, dword [esi + 0xac]
jne 0x444b6b
cmp ecx, eax
je 0x444b76
push ecx
push eax
mov eax, esi
call fcn.0043c960
pop ecx
pop ecx
push 0x4000
lea ecx, [ebp - 4]
call fcn.00437a67
mov ebx, eax
test ebx, ebx
pop ecx
jne 0x444bfc
cmp dword [ebp - 4], eax
jbe 0x444bea
push dword [ebp - 8]
lea eax, [esi + 0x2f4]
push dword [ebp - 4]
push 1
push eax
call fcn.0045752d
mov ecx, dword [ebp - 4]
add esp, 0x10
cmp eax, ecx
jne 0x444be7
add dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x200], eax
adc dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
mov ecx, edi
mov dword [esi + 0x204], eax
call fcn.0043c98e
test eax, eax
jne 0x444bf9
push dword [ebp - 0x14]
mov eax, esi
push dword [ebp - 0x18]
call fcn.00446640
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x444b76
jmp 0x444bfc
push 0x37
pop ebx
test ebx, ebx
jne 0x444bfc
mov ecx, edi
call fcn.0043c98e
test eax, eax
je 0x444bfc
push 0x2a
pop ebx
push dword [ebp - 8]
call fcn.00453d9c
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x444e8f
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
cdq
mov ecx, 0x3e8
idiv ecx
push ebx
push esi
xor esi, esi
or ecx, 0xffffffff
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x21c], esi
imul edx, edx, 0x3e8
mov dword [ebp - 8], edx
xor edx, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
inc edx
cmp eax, 0xffffffff
je 0x444ee4
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x114], edx
mov ecx, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x324], esi
je 0x444f3b
xor eax, eax
cmp dword [ebp - 0x114], esi
mov dword [ebp - 0x320], edi
mov dword [ebp - 0x324], edx
jbe 0x444f17
cmp dword [ebp + eax*4 - 0x110], edi
je 0x444f17
inc eax
cmp eax, dword [ebp - 0x114]
jb 0x444f05
cmp eax, dword [ebp - 0x114]
jne 0x444f35
cmp dword [ebp - 0x114], 0x40
jae 0x444f35
mov dword [ebp + eax*4 - 0x110], edi
inc dword [ebp - 0x114]
cmp edi, ecx
jbe 0x444f3b
mov ecx, edi
lea ebx, [ecx + 1]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
cmp esi, 0xffffffff
jne 0x444f70
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 4
je 0x444f3e
test esi, esi
jge 0x444f79
or eax, 0xffffffff
jmp 0x444fe0
jne 0x444f7f
xor eax, eax
jmp 0x444fe0
xor esi, esi
cmp dword [ebp + 8], 0xffffffff
je 0x444fb1
lea eax, [ebp - 0x21c]
push eax
push dword [ebp + 8]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x444f9b
inc esi
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 8]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x444fb1
or esi, 4
cmp edi, 0xffffffff
je 0x444fde
lea eax, [ebp - 0x324]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x444fca
or esi, 2
lea eax, [ebp - 0x114]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x444fde
or esi, 4
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4453d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0xc]
mov esi, dword [eax]
cmp byte [esi + 0x18c], 0
mov ebx, dword [eax + 0x50]
mov dword [ebp - 4], str.octet
je 0x4453f9
mov dword [ebp - 4], str.netascii
mov eax, dword [ebp + 8]
sub eax, 0
push 3
pop ecx
je 0x44546e
sub eax, ecx
je 0x44544b
dec eax
je 0x445420
dec eax
je 0x445480
dec eax
je 0x44546e
push str.tftp_send_first:_internal_error_n
call fcn.00433f1e
jmp 0x44555c
push str.Connected_for_transmit
push 0x4991e0
call fcn.00433eb5
mov dword [edi], 2
call fcn.004452ac
push 4
mov ebx, edi
call fcn.004456e2
add esp, 0xc
jmp 0x44555d
push str.Connected_for_receive
push 0x4991e0
call fcn.00433eb5
mov dword [edi], 1
call fcn.004452ac
push 3
call fcn.00445562
jmp 0x445443
inc dword [edi + 0x14]
mov eax, dword [edi + 0x14]
cmp eax, dword [edi + 0x1c]
jle 0x445487
mov dword [edi + 8], 9
mov dword [edi], ecx
jmp 0x44555d
cmp byte [esi + 0x199], 0
je 0x4454e0
push 2
call dword [sym.imp.WS2_32.dll_htons]
push ebx
mov word [edi + 0x268], ax
call fcn.00450e60
pop ecx
mov ecx, ebx
call fcn.00445c79
mov ecx, dword [edi + 0xc]
mov ebx, eax
lea eax, [edi + 0x26c]
mov dword [ecx + 0x1fc], eax
mov eax, dword [esi + 0xa8]
mov ecx, dword [esi + 0xac]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x4454ef
push ecx
push eax
mov eax, esi
call fcn.0043c960
pop ecx
pop ecx
jmp 0x4454ef
push 1
call dword [sym.imp.WS2_32.dll_htons]
mov word [edi + 0x268], ax
push 0
push dword [ebp - 4]
lea eax, [edi + 0x26a]
push 0
push ebx
push str._s_c_s_c
push eax
call fcn.0043bb84
push ebx
call fcn.00450e60
add esp, 0x1c
push dword [ebp - 4]
mov ebx, eax
call fcn.00450e60
pop ecx
lea ecx, [ebx + eax + 4]
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x10]
push dword [eax + 0x10]
push dword [eax + 0x14]
lea eax, [edi + 0x268]
push 0
push ecx
push eax
push dword [edi + 0x10]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x44555d
call fcn.00456f2b
push dword [eax]
call fcn.0046d3ce
pop ecx
push eax
push 0x4991e0
call fcn.00433f1e
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x445562
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi + 0xc]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [ebp + 8]
push 3
pop ebx
sub eax, ebx
mov dword [ebp - 4], esi
je 0x445605
dec eax
dec eax
je 0x4455bc
dec eax
je 0x44559b
push str.tftp_rx:_internal_error
push 0x4991e0
call fcn.00433f1e
pop ecx
pop ecx
jmp 0x4456bf
inc dword [edi + 0x14]
push dword [edi + 0x14]
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
call fcn.00433eb5
mov eax, dword [edi + 0x14]
cmp eax, dword [edi + 0x1c]
pop ecx
pop ecx
jle 0x4455c3
mov dword [edi + 8], 8
mov dword [edi], ebx
jmp 0x4456bf
push dword [edi + 0x58]
lea eax, [edi + 0x48]
push eax
push 0
push 4
lea eax, [edi + 0x268]
push eax
push dword [edi + 0x10]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x4456bf
call fcn.00456f2b
push dword [eax]
call fcn.0046d3ce
push eax
push 0x4991e0
call fcn.00433f1e
add esp, 0xc
jmp 0x4456bf
movzx eax, word [edi + 0x66]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ebx, ax
movzx eax, word [edi + 0x30]
inc eax
cmp eax, ebx
je 0x44564b
push ebx
push str.Received_unexpected_DATA_packet_block__d_n
call fcn.00433eb5
inc dword [edi + 0x14]
mov eax, dword [edi + 0x14]
cmp eax, dword [edi + 0x1c]
pop ecx
pop ecx
jle 0x44564b
movzx eax, word [edi + 0x30]
inc eax
push eax
push str.tftp_rx:_giving_up_waiting_for_block__d_n
call fcn.00433f1e
pop ecx
pop ecx
jmp 0x4456de
mov esi, dword [sym.imp.WS2_32.dll_htons]
and dword [edi + 0x14], 0
mov word [edi + 0x30], bx
push 4
lea ebx, [edi + 0x268]
call esi
mov word [ebx], ax
movzx eax, word [edi + 0x30]
push eax
call esi
push dword [edi + 0x58]
mov word [edi + 0x26a], ax
lea eax, [edi + 0x48]
push eax
push 0
push 4
push ebx
push dword [edi + 0x10]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x4456aa
call fcn.00456f2b
push dword [eax]
call fcn.0046d3ce
mov esi, dword [ebp - 4]
push eax
push 0x4991e0
call fcn.00433f1e
add esp, 0xc
mov esi, dword [ebp - 4]
xor eax, eax
cmp dword [edi + 0x5c], 0x204
setl al
lea eax, [eax + eax + 1]
mov dword [edi], eax
movzx eax, word [edi + 0x30]
push 0
cdq
push 0x200
push edx
push eax
call fcn.0045ae80
mov dword [esi + 0x1f8], eax
mov dword [esi + 0x1fc], edx
pop esi
pop ebx
leave
ret
Function at 0x4456e2
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [ebx + 0xc]
push ebp
push esi
mov esi, dword [eax]
mov eax, dword [esp + 0xc]
sub eax, 4
push edi
je 0x44574a
dec eax
je 0x445730
dec eax
je 0x44570f
push str.tftp_tx:_internal_error
push 0x4991e0
call fcn.00433f1e
pop ecx
pop ecx
jmp 0x44582c
inc dword [ebx + 0x14]
push dword [ebx + 0x14]
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
call fcn.00433eb5
mov eax, dword [ebx + 0x14]
cmp eax, dword [ebx + 0x1c]
pop ecx
pop ecx
jle 0x44573b
mov dword [ebx + 8], 8
mov dword [ebx], 3
jmp 0x44582c
push dword [ebx + 0x58]
lea eax, [ebx + 0x48]
push eax
mov eax, dword [ebx + 0x60]
jmp 0x4457f8
movzx eax, word [ebx + 0x66]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
movzx eax, word [ebx + 0x30]
movzx edx, ax
cmp ecx, edx
je 0x44579d
push edx
push ecx
push str.Received_ACK_for_block__d__expecting__d_n
call fcn.00433eb5
add esp, 0xc
inc dword [ebx + 0x14]
mov eax, dword [ebx + 0x14]
cmp eax, dword [ebx + 0x1c]
jle 0x44584b
movzx eax, word [ebx + 0x30]
push eax
push str.tftp_tx:_giving_up_waiting_for_block__d_ack
push 0x4991e0
call fcn.00433f1e
add esp, 0xc
jmp 0x44584b
mov edi, dword [sym.imp.WS2_32.dll_htons]
and dword [ebx + 0x14], 0
push 3
pop ebp
inc eax
push ebp
mov word [ebx + 0x30], ax
call edi
mov word [ebx + 0x268], ax
movzx eax, word [ebx + 0x30]
push eax
call edi
cmp word [ebx + 0x30], 1
mov word [ebx + 0x26a], ax
jbe 0x4457db
cmp dword [ebx + 0x60], 0x200
jge 0x4457db
mov dword [ebx], ebp
jmp 0x44584b
mov edi, dword [ebx + 0xc]
lea ebp, [ebx + 0x60]
push 0x200
mov ecx, ebp
call fcn.00437a67
pop ecx
push dword [ebx + 0x58]
lea eax, [ebx + 0x48]
push eax
mov eax, dword [ebp]
push 0
add eax, 4
push eax
lea eax, [ebx + 0x268]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x44582c
call fcn.00456f2b
push dword [eax]
call fcn.0046d3ce
push eax
push 0x4991e0
call fcn.00433f1e
add esp, 0xc
movzx eax, word [ebx + 0x30]
push 0
cdq
push 0x200
push edx
push eax
call fcn.0045ae80
mov dword [esi + 0x200], eax
mov dword [esi + 0x204], edx
pop edi
pop esi
pop ebp
ret
Function at 0x44742a
Capabilities:
Read file on windows

Disassembly:
cmp dword [esi + 8], 0
jne 0x44744c
mov eax, dword [esi]
push 0x49bac8
push dword [eax + 8]
call fcn.00457ba8
test eax, eax
pop ecx
pop ecx
mov dword [esi + 8], eax
jne 0x44744c
or eax, 0xffffffff
ret
push edi
push dword [esi + 8]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0046cf7c
mov edi, eax
add esp, 0x10
cmp edi, dword [esp + 0xc]
je 0x44747d
push dword [esi + 8]
call fcn.00453d9c
mov eax, dword [esi]
and dword [esi + 8], 0
mov eax, dword [eax]
pop ecx
mov dword [esi], eax
mov eax, edi
pop edi
ret
Function at 0x44e484
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4a7740]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0044e3c3
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00453b10
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x44e4d3
cmp dword [ebp - 0x1c], 5
jb 0x44e4eb
jmp 0x44e4e7
cmp dword [ebp - 0x10], 1
jne 0x44e4eb
cmp dword [ebp - 0x1c], 4
ja 0x44e4e7
jne 0x44e4eb
cmp dword [ebp - 0x18], 0
jbe 0x44e4eb
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x48d058
call fcn.00423bc0
test eax, eax
jge 0x44e50c
mov byte [0x4ab4e4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00450ba2
add ebp, 0x78
leave
ret
Function at 0x44fc50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x486af8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a7740]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x4aa524]
test eax, eax
jne 0x44fc82
xor esi, esi
jmp 0x44fc8b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x20], 0
je 0x44fccd
cmp dword [esi + 0x14], 0
jne 0x44fd0f
cmp dword [esi + 0x10], 0
jne 0x44fd15
push 0x44f8b0
push 0x4aa520
call fcn.0044faf0
mov eax, dword [0x4aa524]
add esp, 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
mov dword [esp + 0x20], 0xffffffff
je 0x44fcfb
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x44fcfb
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x10], 0
je 0x44fd55
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x44fd43
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x44fd15
cmp dword [esi + 0x14], 0
je 0x44fca7
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x44fd7a
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x44fdab
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x44fdab
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x44fdab
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x44fd5f
jmp 0x44fca1
Function at 0x44fe60
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 0x10
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 8]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x44fdd0
push 0
push 0
call fcn.00457a01
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x44fea0
lea ecx, [esp + 8]
call fcn.0044f830
push 0x49fb8c
lea edx, [esp + 0xc]
push edx
call fcn.00458e4b
mov eax, dword [edi + 8]
push esi
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi + 8]
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x44fec9
cmp eax, 0xffffffff
je 0x44fec9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
mov edx, dword [edi + 8]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop edi
pop ebx
add esp, 0x10
ret
Function at 0x450ba2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a7740]
jne 0x450bac
repz ret
jmp fcn.0045b0c5

Function at 0x45bf7d
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4a7790]
je 0x45bf98
inc edi
cmp edi, 0x17
jb 0x45bf89
cmp edi, 0x17
jae 0x45c118
push ebp
push 3
call fcn.0046665c
cmp eax, 1
pop ecx
je 0x45c0e4
push 3
call fcn.0046665c
test eax, eax
pop ecx
jne 0x45bfcc
cmp dword [0x4a7730], 1
je 0x45c0e4
cmp ebx, 0xfc
je 0x45c117
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4aa8f8
push ebp
call fcn.00456949
add esp, 0xc
test eax, eax
je 0x45c002
push esi
push esi
push esi
push esi
push esi
call fcn.00451533
add esp, 0x14
push 0x104
mov esi, 0x4aa911
push esi
push 0
mov byte [0x4aaa15], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x45c046
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00456949
add esp, 0xc
test eax, eax
je 0x45c046
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00451533
add esp, 0x14
push esi
call fcn.00450e60
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x45c08b
push esi
call fcn.00450e60
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4aac0c
push 0x48e3bc
sub ecx, eax
push ecx
push eax
call fcn.00456bce
add esp, 0x14
test eax, eax
je 0x45c08b
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00451533
add esp, 0x14
jmp 0x45c08d
xor esi, esi
push 0x48e3b8
push ebx
push ebp
call fcn.00456fb4
add esp, 0xc
test eax, eax
je 0x45c0ad
push esi
push esi
push esi
push esi
push esi
call fcn.00451533
add esp, 0x14
push dword [edi*8 + 0x4a7794]
push ebx
push ebp
call fcn.00456fb4
add esp, 0xc
test eax, eax
je 0x45c0cf
push esi
push esi
push esi
push esi
push esi
call fcn.00451533
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0046649f
add esp, 0xc
jmp 0x45c117
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x45c117
cmp ebp, 0xffffffff
je 0x45c117
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4a7794]
push dword [esi]
call fcn.00450e60
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x46649f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0045b63f
xor ebx, ebx
cmp dword [0x4ab0c4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x466575
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x466655
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x466655
push eax
call fcn.0045b5d1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4ab0c4], eax
call esi
push eax
call fcn.0045b5d1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4ab0c8], eax
call esi
push eax
call fcn.0045b5d1
mov dword [0x4ab0cc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0045bd0a
test eax, eax
pop ecx
pop ecx
je 0x466543
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00451533
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x466575
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0045b5d1
cmp eax, ebx
pop ecx
mov dword [0x4ab0d4], eax
je 0x466575
push 0x48ee68
push edi
call esi
push eax
call fcn.0045b5d1
pop ecx
mov dword [0x4ab0d0], eax
mov eax, dword [0x4ab0d0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4665fa
cmp dword [0x4ab0d4], ecx
je 0x4665fa
push eax
call fcn.0045b648
push dword [0x4ab0d4]
mov esi, eax
call fcn.0045b648
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4665fa
cmp edi, ebx
je 0x4665fa
call esi
cmp eax, ebx
je 0x4665c7
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4665c7
test byte [ebp - 0x18], 1
jne 0x4665fa
lea eax, [ebp - 0x10]
push eax
call fcn.0045bd41
test eax, eax
pop ecx
je 0x4665e2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00451533
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4665f1
or dword [ebp + 0x10], 0x200000
jmp 0x466635
or dword [ebp + 0x10], 0x40000
jmp 0x466635
mov eax, dword [0x4ab0c8]
cmp eax, dword [ebp - 8]
je 0x466635
push eax
call fcn.0045b648
cmp eax, ebx
pop ecx
je 0x466635
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x466635
mov eax, dword [0x4ab0cc]
cmp eax, dword [ebp - 8]
je 0x466635
push eax
call fcn.0045b648
cmp eax, ebx
pop ecx
je 0x466635
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4ab0c4]
call fcn.0045b648
cmp eax, ebx
pop ecx
je 0x466655
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x466657
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46cce0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x46cd1d
cmp dword [ebp + 0x14], edi
je 0x46cd1d
cmp ecx, edi
jne 0x46cd24
call fcn.00456f2b
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0045162f
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x46cd38
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x46cd59
cmp ebx, 0xffffffff
je 0x46cd48
push ebx
push edi
push ecx
call fcn.00453b10
add esp, 0xc
cmp esi, edi
je 0x46cd05
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x46cd05
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x46cd75
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x46cd7c
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x46ce6d
test word [esi + 0xc], 0x10c
je 0x46cdd0
mov eax, dword [esi + 4]
test eax, eax
je 0x46cdd0
jl 0x46cece
cmp ebx, eax
mov edi, ebx
jb 0x46cda1
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x46ce75
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00450dd6
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x46ce65
cmp ebx, dword [ebp - 0xc]
jb 0x46ce3d
cmp dword [ebp - 0xc], 0
je 0x46cdfa
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x46cdef
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x46cdf6
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x46ce05
mov eax, SysReAllocString
cmp ebx, eax
ja 0x46ce05
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x46cea1
push eax
push dword [ebp - 8]
push esi
call fcn.00457d3d
pop ecx
push eax
call fcn.0046b206
add esp, 0xc
test eax, eax
je 0x46cee0
cmp eax, 0xffffffff
je 0x46cece
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x46ce65
push esi
call fcn.004693a2
cmp eax, 0xffffffff
pop ecx
je 0x46ced2
cmp dword [ebp - 4], 0
je 0x46cea1
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x46cd84
mov eax, dword [ebp + 0x14]
jmp 0x46cd1f
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x46ce8c
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00453b10
add esp, 0xc
call fcn.00456f2b
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x46cd15
cmp dword [ebp + 0xc], 0xffffffff
je 0x46ceb7
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00453b10
add esp, 0xc
call fcn.00456f2b
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x46cd15
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x46cd1f
or dword [esi + 0xc], 0x10
jmp 0x46ced2