joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437dc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x7b088c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x9c], ecx
mov ecx, dword [ebp + 8]
push edi
mov dword [ebp - 0x90], ecx
mov edi, dword [esi + 0x2c]
and edi, 0xfffdffff
mov dword [esi + 0x2c], edi
mov ebx, dword [ecx + 0x20]
test ebx, ebx
jns 0x437e83
mov ecx, ebx
call fcn.0044d860
mov edx, eax
cmp edx, 0x2738
je 0x437e7d
cmp edx, 0x2746
je 0x437e71
cmp edx, 0x2744
je 0x437e71
test edi, 0x100
je 0x437fc8
mov ecx, esi
call fcn.0042c980
test dword [esi + 0x2c], 0x80000
je 0x437e41
xor ecx, ecx
xor eax, eax
jmp 0x437e4d
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x84]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], ecx
push 0
lea eax, [ebp - 0x98]
mov ecx, edx
push 0
push eax
call fcn.0044c110
push eax
jmp 0x437fbc
test edi, 0x80000
je 0x437fc8
mov ecx, dword [ebp - 0x90]
test edi, 0x80000
jne 0x437ea8
sar ebx, 0x1f
lea eax, [esi + 0x88]
and ebx, 2
push ebx
push eax
lea eax, [esi + 0x80]
push eax
push dword [ecx + 0x24]
jmp 0x437fbc
test edi, 0x100
je 0x437fc8
lea eax, [ebp - 0x98]
push eax
mov eax, dword [esi + 0x110]
push 0x10000
push esi
call eax
add esp, 0xc
cmp dword [ebp - 0x98], 0
jne 0x437eea
push 0
push 0
lea eax, [ebp - 0x98]
push eax
push 0xfffff024
jmp 0x437fbc
push 0x80
lea eax, [ebp - 0x8c]
push 0
push eax
call fcn.00689b00
add esp, 0xc
mov dword [ebp - 0xa0], 0x80
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa4], 0
push 0
push 0
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x90]
push eax
push 1
lea eax, [ebp - 0x98]
push eax
push dword [esi + 0x38]
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
je 0x437f63
push 0
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x98]
push eax
push dword [ebp - 0x90]
jmp 0x437fbc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
cmp edx, 0x2738
jne 0x437f8b
push 2
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x98]
push eax
push dword [ebp - 0x90]
jmp 0x437fbc
cmp edx, 0x2733
je 0x437faf
cmp edx, 0x2746
je 0x437faf
cmp edx, 0x2744
je 0x437faf
mov ecx, esi
call fcn.0042c980
jmp 0x437e59
push 0
push 0
lea eax, [ebp - 0x98]
push eax
push 0
mov eax, dword [esi + 0x10c]
push esi
call eax
add esp, 0x14
mov eax, dword [esi + 0x2c]
mov ebx, dword [ebp - 0x9c]
and eax, 0x20100
cmp eax, 0x100
jne 0x437fe6
mov edx, esi
mov ecx, ebx
call fcn.00437a60
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x2c]
dec ecx
mov dword [esi + 0x3c], ecx
test al, 1
je 0x43800b
test ecx, ecx
jne 0x43800b
test al, 4
jne 0x43800b
or eax, 4
mov dword [esi + 0x2c], eax
mov eax, dword [ebx + 0x2c]
mov dword [esi + 0x28], eax
mov dword [ebx + 0x2c], esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00682c16
mov esp, ebp
pop ebp
ret
Function at 0x4380c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edi, dword [ebp + 8]
test dword [esi + 0x2c], 0x1000000
je 0x4380e5
pop edi
pop esi
mov eax, 0xfffff019
pop ebx
mov esp, ebp
pop ebp
ret
push 4
push 0x10
mov edx, 0xac3460
call fcn.00437930
add esp, 8
test eax, eax
jne 0x438162
xorps xmm0, xmm0
movq qword [ebp - 8], xmm0
test edi, edi
je 0x43811b
lea edx, [ebp - 4]
mov ecx, edi
call fcn.0044bb70
test eax, eax
je 0x438126
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x438140
sub eax, 1
jne 0x4380d9
mov eax, 0xc
jmp 0x438145
mov eax, 0xd
push 8
lea ecx, [ebp - 8]
push ecx
push eax
push 0
push dword [esi + 0x38]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x438170
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.0044c110
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x438180
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x7b088c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x2c]
and eax, 0x1000200
cmp eax, 0x200
jne 0x4381bf
pop edi
pop esi
mov eax, 0xfffff019
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00682c16
mov esp, ebp
pop ebp
ret
push 4
push 0x1c
mov edx, 0xac3480
call fcn.00437930
add esp, 8
test eax, eax
jne 0x438243
mov dword [ebp - 8], eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x18], xmm0
test edi, edi
je 0x4381fe
lea eax, [ebp - 0x34]
xor edx, edx
push eax
mov ecx, edi
call fcn.0042c6f0
add esp, 4
test eax, eax
jne 0x4381a9
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
jmp 0x438205
mov dword [ebp - 8], 0
movups xmm0, xmmword [ebx + 8]
mov eax, dword [ebp + 0xc]
movups xmmword [ebp - 0x18], xmm0
sub eax, 0
je 0x438221
sub eax, 1
jne 0x4381a9
mov eax, 0xc
jmp 0x438226
mov eax, 0xd
push 0x14
lea ecx, [ebp - 0x18]
push ecx
push eax
push 0x29
push dword [esi + 0x38]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x43825b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.0044c110
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00682c16
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00682c16
mov esp, ebp
pop ebp
ret
Function at 0x4388d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ecx
mov ebx, edx
lea edx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4388e3
sub edi, edx
sar edi, 1
mov esi, edi
test esi, esi
jle 0x43890a
movzx eax, word [ecx + esi*2 - 2]
dec esi
cmp eax, 0x5c
je 0x438908
cmp eax, 0x2f
jne 0x4388f4
test esi, esi
jne 0x438975
test ebx, ebx
je 0x43895e
push 0x20a
call fcn.006a66fd
add esp, 4
mov dword [ebx], eax
test eax, eax
jne 0x438930
mov edx, str.malloc
lea ecx, [eax + 0xe]
call fcn.0044c080
push dword [ebx]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x43895b
push dword [ebx]
call fcn.006a389b
add esp, 4
mov dword [ebx], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push ecx
call fcn.006bc3dc
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x4389b2
lea eax, [esi*2 + 2]
push eax
call fcn.006a66fd
add esp, 4
mov dword [ebx], eax
test eax, eax
jne 0x43899c
mov edx, str.malloc
lea ecx, [eax + 0xe]
call fcn.0044c080
push esi
push dword [ebp - 4]
push dword [ebx]
call fcn.006af30a
mov eax, dword [ebx]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi*2], cx
sub edi, esi
lea eax, [edi + edi]
push eax
call fcn.006a66fd
mov ebx, dword [ebp + 8]
add esp, 4
mov dword [ebx], eax
test eax, eax
jne 0x4389d6
mov edx, str.malloc
lea ecx, [eax + 0xe]
call fcn.0044c080
lea eax, [edi - 1]
push eax
mov eax, dword [ebp - 4]
lea eax, [eax + esi*2]
add eax, 2
push eax
push dword [ebx]
call fcn.006af30a
mov eax, dword [ebx]
add esp, 0xc
xor ecx, ecx
mov word [eax + edi*2 - 2], cx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4395c0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, edx
mov dword [ebp - 8], ecx
push edi
mov dword [ebp - 4], esi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push esi
mov esi, dword [ebp + 0xc]
push str._pipeuv_p__u
push 0x40
push esi
call fcn.00439270
mov eax, dword [ebp + 8]
add esp, 0x14
or eax, 0x40080000
mov dword [ebp + 8], eax
push 0
push 0
push 0x10000
push 0x10000
push 1
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x439674
nop word [eax + eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xe7
je 0x439635
cmp esi, 5
jne 0x439693
inc ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, dword [ebp + 0xc]
push eax
push ebx
push str._pipeuv_p__u
push 0x40
push esi
call fcn.00439270
add esp, 0x14
push 0
push 0
push 0x10000
push 0x10000
push 1
push 0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov edi, eax
cmp edi, 0xffffffff
je 0x439620
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 4]
push 0
push esi
push dword [eax + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
jne 0x4396a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp edi, 0xffffffff
je 0x43969f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.004394a0
mov dword [esi + 0x94], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43a2a0
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, edx
jne 0x43a323
push 0
push 0
push 0x10000
push 0x10000
push 0xff
push 0
push 0x40000003
push dword [edi + 0x98]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
jne 0x43a2fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
jg 0x43a2f7
call eax
jmp 0x43a398
call eax
jmp 0x43a390
push 0
push eax
mov edx, edi
mov ecx, ebx
call fcn.004396c0
add esp, 8
test eax, eax
je 0x43a323
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x3c], 0xffffffff
jmp 0x43a2e1
lea eax, [esi + 0x20]
xorps xmm0, xmm0
movups xmmword [eax], xmm0
push eax
mov dword [eax + 0x10], 0
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x43a3c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x43a3c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x43a368
mov dword [esi + 0x20], 0
jmp 0x43a39b
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x3c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x43a38a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x43a398
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
mov dword [esi + 0x20], eax
mov dword [esi + 0x38], 0
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x43a3c0
mov eax, dword [eax + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [ebx + 0x28]
mov dword [eax + 0x38], esi
mov dword [ebx + 0x28], esi
inc dword [edi + 0x3c]
pop edi
pop esi
pop ebx
pop ebp
ret
mov dword [esi + 0x38], esi
mov dword [ebx + 0x28], esi
inc dword [edi + 0x3c]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x43a800
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], ecx
push edi
test dword [esi + 0x2c], 0x1000000
lea edi, [esi + 0x44]
je 0x43a845
push 0x10
push edi
push 0x43a580
call dword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
jne 0x43a950
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test eax, eax
jg 0x43a8fb
call ebx
jmp 0x43a905
lea ecx, [edi + 0x20]
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
test dword [esi + 0x2c], 0x100000
je 0x43a867
mov eax, dword [edi + 0x3c]
or eax, 1
mov dword [edi + 0x30], eax
push ecx
push 0
push 0
push 0xac0df3
push dword [esi + 0x94]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x43a89a
call ebx
cmp eax, 0x3e5
je 0x43a89a
call ebx
test eax, eax
jg 0x43a8fb
call ebx
jmp 0x43a905
test dword [esi + 0x2c], 0x100000
je 0x43a950
cmp dword [edi + 0x3c], 0
jne 0x43a8d0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0x3c], eax
test eax, eax
jne 0x43a8d0
call ebx
mov edx, str.CreateEvent
mov ecx, eax
call fcn.0044c080
cmp dword [edi + 0x40], 0xffffffff
lea eax, [edi + 0x40]
jne 0x43a950
push 4
push 0xffffffffffffffff
push edi
push 0x43a780
push dword [edi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x43a950
call ebx
test eax, eax
jg 0x43a8fb
call ebx
jmp 0x43a905
call ebx
movzx eax, ax
or eax, 0x80070000
mov dword [edi + 0x20], eax
mov ecx, dword [ebp - 4]
mov dword [edi + 0x38], 0
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x43a939
mov eax, dword [eax + 0x38]
mov dword [edi + 0x38], eax
mov eax, dword [ecx + 0x28]
mov dword [eax + 0x38], edi
mov dword [ecx + 0x28], edi
or dword [esi + 0x2c], 0x20000
inc dword [esi + 0x3c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x38], edi
mov dword [ecx + 0x28], edi
or dword [esi + 0x2c], 0x20000
inc dword [esi + 0x3c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0xa0]
test ecx, ecx
je 0x43a96f
push 0
push 0
push 0
push 0x32
mov edx, 0x43ba10
call fcn.00426530
add esp, 0x10
or dword [esi + 0x2c], 0x20000
inc dword [esi + 0x3c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43bfc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
cmp edi, 2
jbe 0x43bfe1
cmp word [esi], 0x5c
jne 0x43bfe1
cmp word [esi + 2], 0x5c
jne 0x43bfe1
xor ebx, ebx
jmp 0x43c052
cmp edi, 1
jb 0x43bffa
movzx eax, word [esi]
cmp eax, 0x2f
je 0x43bff3
cmp eax, 0x5c
jne 0x43bffa
mov ebx, 2
jmp 0x43c052
cmp edi, 2
jb 0x43c04f
cmp word [esi + 2], 0x3a
jne 0x43c03b
cmp edi, 3
jb 0x43c019
movzx eax, word [esi + 4]
cmp eax, 0x2f
je 0x43c03b
cmp eax, 0x5c
je 0x43c03b
mov ebx, dword [ebp + 0x1c]
cmp ebx, 2
jb 0x43bfdd
push 2
push esi
push dword [ebp + 0x18]
call fcn.006bc7f2
add esp, 0xc
test eax, eax
jne 0x43bfdd
add esi, 4
sub edi, 2
jmp 0x43c052
cmp edi, 2
jbe 0x43c04f
mov ebx, dword [ebp + 0x1c]
xor eax, eax
cmp word [esi + 2], 0x3a
cmove ebx, eax
jmp 0x43c052
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0xc]
add eax, edi
add eax, dword [ebp + 0x14]
add eax, ebx
lea eax, [eax*2 + 8]
push eax
call fcn.006a66fd
push ebx
push dword [ebp + 0x18]
mov dword [ebp - 4], eax
push eax
call fcn.006af30a
mov eax, dword [ebp - 4]
add esp, 0x10
test ebx, ebx
lea eax, [eax + ebx*2]
mov dword [ebp + 0x1c], eax
mov ebx, eax
je 0x43c0a9
movzx eax, word [ebx - 2]
push eax
push 0x76e568
call fcn.0068a697
add esp, 8
test eax, eax
jne 0x43c0a9
mov eax, 0x5c
mov word [ebx], ax
add ebx, 2
push edi
push esi
push ebx
call fcn.006af30a
add esp, 0xc
lea esi, [ebx + edi*2]
test edi, edi
je 0x43c0dc
movzx eax, word [esi - 2]
push eax
push 0x76e568
call fcn.0068a697
add esp, 8
test eax, eax
jne 0x43c0dc
mov eax, 0x5c
mov word [esi], ax
add esi, 2
mov edi, dword [ebp + 0xc]
push edi
push dword [ebp + 8]
push esi
call fcn.006af30a
mov ebx, dword [ebp + 0x14]
lea esi, [esi + edi*2]
add esp, 0xc
test ebx, ebx
je 0x43c11c
test edi, edi
je 0x43c10c
cmp word [esi - 2], 0x2e
je 0x43c10c
mov eax, 0x2e
mov word [esi], ax
add esi, 2
push ebx
push dword [ebp + 0x10]
push esi
call fcn.006af30a
add esp, 0xc
lea esi, [esi + ebx*2]
mov ebx, dword [ebp - 4]
xor eax, eax
push ebx
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43c13d
test al, 0x10
jne 0x43c13d
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.006a389b
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43d3a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp edx, 0xf
ja case.0x43d3b7.1
movzx eax, byte [edx + 0x43d460]
jmp dword [eax*4 + 0x43d454]
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x43d3d2
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 5
jne 0x43d403
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x43d403
cmp dword [ebp - 4], 0x103
je 0x43d403
pop edi
mov eax, 0xfffff038
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.0044c110
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x43d431
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0044c110
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, 0xfffff038
cmp dword [ebp - 4], 0x103
pop esi
cmovne eax, ecx
mov esp, ebp
pop ebp
ret
mov eax, 0xfffff02a
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43eaf0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x7b088c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
and dword [esi + 0x2c], 0xfffffeff
add dword [esi + 0x40], 0xffffffff
mov eax, dword [esi + 0x2c]
jne 0x43eb2b
test al, 1
jne 0x43eb2b
test al, 0x40
je 0x43eb2b
and eax, 0xffffffbf
mov dword [esi + 0x2c], eax
test al, 0x20
je 0x43eb2b
mov eax, dword [esi + 4]
dec dword [eax + 4]
mov eax, dword [esi + 0x2c]
and eax, 0x2020000
cmp eax, 0x2020000
jne 0x43eb77
lea eax, [ebp - 0x1c]
mov dword [ebp - 8], 0
push eax
push 1
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
push dword [esi + 0x90]
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x43eb77
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00682c16
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x94]
test eax, eax
je 0x43eb92
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x94], 0
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00682c16
mov esp, ebp
pop ebp
ret
Function at 0x43ed00
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x7b088c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov eax, ecx
push edi
mov edi, edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], edi
cmp dword [esi], 0
mov dword [ebp - 0x30], esi
jne 0x43ee69
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x1c]
push ecx
push dword [eax + 0x90]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x43ed4a
call ebx
mov dword [esi], eax
mov eax, dword [0x7b1258]
mov esi, edi
movsx edx, word [ebp - 0xc]
movsx ebx, word [ebp - 0x1c]
mov di, word [ebp - 0x16]
mov dword [ebp - 0x20], eax
mov eax, dword [0x7b1260]
mov dword [ebp - 0x38], eax
movsx eax, word [ebp - 0x10]
sub edx, eax
mov dword [0x7b1258], ebx
mov eax, dword [0x7b1264]
inc edx
mov dword [0x7b1260], edx
cmp eax, 0xffffffff
jne 0x43ed8a
movsx eax, di
jmp 0x43ed95
movsx ecx, di
sub ecx, edx
inc ecx
cmp eax, ecx
cmovl eax, ecx
movsx ecx, word [ebp - 0x1a]
mov dword [ebp - 0x34], ecx
lea ecx, [edx + eax]
cmp ecx, dword [ebp - 0x34]
jle 0x43edaa
movsx eax, word [ebp - 0x1a]
sub eax, edx
xor ecx, ecx
test eax, eax
cmovs eax, ecx
cmp dword [ebp - 0x20], 0xffffffff
mov dword [0x7b1264], eax
je 0x43edec
mov ecx, dword [ebp - 0x38]
cmp ecx, 0xffffffff
je 0x43edec
cmp ebx, dword [ebp - 0x20]
jne 0x43edcd
cmp edx, ecx
je 0x43edec
mov ecx, 0x1c
call fcn.00441b10
mov di, word [ebp - 0x16]
mov eax, dword [0x7b1264]
mov edx, dword [0x7b1260]
mov ebx, dword [0x7b1258]
cmp byte [ebp + 0x10], 0
je 0x43edfa
movsx ecx, di
add ecx, dword [ebp + 0xc]
jmp 0x43edff
mov ecx, dword [ebp + 0xc]
add ecx, eax
cmp ecx, eax
jge 0x43ee07
mov ecx, eax
jmp 0x43ee10
add eax, edx
cmp ecx, eax
jl 0x43ee10
lea ecx, [eax - 1]
cmp byte [ebp + 8], 0
mov edi, dword [ebp - 0x24]
je 0x43ee1f
movsx esi, word [ebp - 0x18]
add esi, edi
test esi, esi
jns 0x43ee27
xor esi, esi
jmp 0x43ee2e
cmp esi, ebx
jl 0x43ee2e
lea esi, [ebx - 1]
mov eax, dword [ebp - 0x2c]
mov word [ebp - 0x26], cx
mov word [ebp - 0x28], si
push dword [ebp - 0x28]
push dword [eax + 0x90]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x43ee7d
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov esi, dword [ebp - 0x30]
cmp eax, 0x57
mov eax, dword [ebp - 0x2c]
je 0x43ed32
call ebx
mov ecx, esi
mov dword [ecx], eax
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00682c16
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00682c16
mov esp, ebp
pop ebp
ret
Function at 0x43ee90
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x7b088c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
xor eax, eax
push esi
push edi
mov dword [ebp - 0x28], ebx
mov edi, ecx
mov dword [ebp - 0x20], eax
cmp dword [ebx], eax
jne 0x43ef5f
push 7
push dword [edi + 0x90]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
test eax, eax
jne 0x43eee5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00682c16
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x20]
push esi
push dword [edi + 0x90]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
je 0x43eec9
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
nop
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 0x90]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x43ef58
movsx eax, word [ebp - 0x1c]
movsx ecx, word [ebp - 0x1a]
imul ecx, eax
lea eax, [ebp - 0x24]
push eax
push esi
push ecx
push 0x20
push dword [edi + 0x90]
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
test eax, eax
je 0x43ef51
lea eax, [ebp - 0x24]
push eax
push esi
push dword [ebp - 0x24]
push 7
push dword [edi + 0x90]
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
jne 0x43ef73
call ebx
cmp eax, 0x57
je 0x43ef00
call ebx
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00682c16
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x1c]
mov dword [0x7b1264], 0
call fcn.0043ebb0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00682c16
mov esp, ebp
pop ebp
ret
Function at 0x442700
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0x110]
mov edx, dword [esi + 0x114]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
cmp ecx, 0xffffffff
jne 0x442740
mov dword [esi + 0x48], 0xfffff00d
mov dword [esi + 0xf0], 6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
call fcn.006be508
add esp, 4
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x44276f
mov ecx, 6
mov dword [esi + 0xf0], 6
call fcn.0044c110
mov dword [esi + 0x48], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xc]
mov eax, edx
mov ecx, dword [ebp - 4]
and eax, ecx
cmp eax, 0xffffffff
je 0x442794
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x28]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 8], eax
jmp 0x44279b
mov dword [ebp - 8], 0
xor ebx, ebx
xor edi, edi
nop
mov eax, edx
and eax, ecx
cmp eax, 0xffffffff
je 0x4427b8
mov eax, edi
xor ecx, ecx
add eax, edx
mov dword [ebp - 0x20], eax
adc ecx, dword [ebp - 4]
mov dword [ebp - 0x1c], ecx
push dword [ebp - 8]
mov eax, dword [esi + 0x10c]
lea ecx, [ebp - 0x14]
push ecx
push dword [eax + ebx*8]
push dword [eax + ebx*8 + 4]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
add edi, dword [ebp - 0x14]
inc ebx
test eax, eax
je 0x44280f
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
cmp ebx, dword [esi + 0x108]
jb 0x4427a0
mov dword [esi + 0x48], edi
cmp edi, 0xffffffff
jne 0x442808
call fcn.006a3906
mov ecx, dword [eax]
mov dword [esi + 0xf0], ecx
call fcn.0044c110
mov dword [esi + 0x48], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x4427eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x4427eb
mov ecx, eax
mov dword [esi + 0xf0], eax
call fcn.0044c110
pop edi
mov dword [esi + 0x48], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret