joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004d70
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x10108c80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
mov ebx, eax
push 1
push ebx
call fcn.100ad495
call sym.bbruntime_dll.dll_runtimeGetRuntime
push ebx
mov ecx, eax
mov dword [0x1010a0b8], eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.10003e20
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100022b0
lea ecx, [ebp - 0x4c]
call fcn.100022f0
lea ecx, [ebp - 0x1c]
call fcn.10004c70
test eax, eax
je 0x10004e0d
push 0
lea ecx, [ebp - 0x1c]
call fcn.100029e0
cmp byte [eax], 0x20
jne 0x10004e0d
push 0xffffffffffffffff
push 1
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10004c90
push eax
lea ecx, [ebp - 0x1c]
call fcn.100029a0
lea ecx, [ebp - 0x34]
call fcn.10002900
lea ecx, [ebp - 0x1c]
call fcn.10004c70
test eax, eax
jne 0x10004dd1
push 0
push 0x22
lea ecx, [ebp - 0x1c]
call fcn.10003960
lea ecx, [ebp - 0x1c]
test eax, eax
jne 0x10004e5b
push 1
push 0x22
call fcn.10003960
mov esi, eax
cmp esi, 0xffffffff
je 0x10004eae
push 0xffffffffffffffff
lea ecx, [esi + 1]
push ecx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10004c90
push eax
lea ecx, [ebp - 0x4c]
call fcn.100029a0
lea ecx, [ebp - 0x34]
call fcn.10002900
lea eax, [esi - 1]
push eax
push 1
jmp 0x10004e91
push 0
push 0x20
call fcn.10003960
mov esi, eax
cmp esi, 0xffffffff
je 0x10004eae
push 0xffffffffffffffff
lea ecx, [esi + 1]
push ecx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10004c90
push eax
lea ecx, [ebp - 0x4c]
call fcn.100029a0
lea ecx, [ebp - 0x34]
call fcn.10002900
push esi
push 0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10004c90
push eax
lea ecx, [ebp - 0x1c]
call fcn.100029a0
lea ecx, [ebp - 0x34]
call fcn.10002900
mov esi, dword [0x1010a0b8]
lea ecx, [ebp - 0x4c]
push 0
mov edi, dword [esi]
call fcn.100033a0
push eax
push dword [0x1010a0b4]
mov ecx, esi
call dword [edi + 0x24]
mov ecx, dword [0x1010a0b8]
mov eax, dword [ecx]
call dword [eax + 0x10]
push 0
push 0
push ebx
call fcn.100ad495
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1000bb30
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
mov dword [esi], vtable.TCPStream.0
test ecx, ecx
je 0x1000bb53
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
add ecx, 8
call fcn.1000b210
cmp dword [esi + 0xc], 0
push edi
mov edi, dword [esi + 4]
jge 0x1000bb7a
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 0xffffff7f
push 0xffff
push edi
call sub.WS2_32.dll_setsockopt
push edi
call sub.WS2_32.dll_closesocket
mov ecx, esi
call fcn.1000a7f0
test byte [ebp + 8], 1
pop edi
je 0x1000bb99
push 0x18
push esi
call fcn.100ace28
add esp, 8
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1000bbb0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x54], 0
mov edi, dword [esi + 4]
mov dword [esi], vtable.UDPStream.0
jge 0x1000bbe4
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 0xffffff7f
push 0xffff
push edi
call sub.WS2_32.dll_setsockopt
push edi
call sub.WS2_32.dll_closesocket
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1000bc33
mov ecx, dword [esi + 0x1c]
sub ecx, eax
cmp ecx, 0x1000
jb 0x1000bc14
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000bc9a
mov eax, edx
push ecx
push eax
call fcn.100ace28
mov dword [esi + 0x14], 0
add esp, 8
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x1000bc78
mov ecx, dword [esi + 0x10]
sub ecx, eax
cmp ecx, 0x1000
jb 0x1000bc59
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000bc9a
mov eax, edx
push ecx
push eax
call fcn.100ace28
mov dword [esi + 8], 0
add esp, 8
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov ecx, esi
call fcn.1000a7f0
test byte [ebp + 8], 1
je 0x1000bc90
push 0x58
push esi
call fcn.100ace28
add esp, 8
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.100b251a
int3

Function at 0x1000bd10
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
push 0x4004667f
push dword [esi + 4]
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x1000bd37
mov dword [esi + 0xc], eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000bf50
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp byte [0x1010ad54], 0
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
je 0x1000bf86
lea eax, [ebp - 4]
mov ecx, 0x1010a200
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10001d70
mov eax, dword [eax + 8]
cmp byte [eax + 0xd], 0
jne 0x1000c000
cmp esi, dword [eax + 0x10]
jb 0x1000c000
lea eax, [ebp + 8]
mov ecx, 0x1010a200
push eax
call fcn.1000b210
test esi, esi
je 0x1000bff9
cmp dword [esi + 0xc], 0
push ebx
push edi
lea edi, [esi + 8]
je 0x1000bfba
mov eax, dword [edi]
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x1000bfb4
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [esi + 0xc], 0
jne 0x1000bfa3
cmp dword [esi], 0
mov ebx, dword [esi + 4]
jge 0x1000bfdf
push 4
lea eax, [ebp + 8]
mov dword [ebp + 8], 1
push eax
push 0xffffff7f
push 0xffff
push ebx
call sub.WS2_32.dll_setsockopt
push ebx
call sub.WS2_32.dll_closesocket
mov ecx, edi
call fcn.1000a7b0
push 0x10
push esi
call fcn.100ace28
add esp, 8
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.TCP_Server_does_not_exist
lea ecx, [ebp + 8]
call fcn.10004f00
push 0x100ffa80
lea eax, [ebp + 8]
push eax
call fcn.100ae54f
int3
Function at 0x1000d0f0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x10108c80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x1000d19f
mov eax, dword [esi + 4]
push 0xfc
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x100]
push 0
push eax
mov dword [ebp - 0x108], 1
call fcn.100aefd0
add esp, 0xc
mov dword [ebp - 0x110], 0
lea eax, [ebp - 0x110]
mov dword [ebp - 0x10c], 0
push eax
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push 0
call sub.WS2_32.dll_select
sub eax, 0
je 0x1000d19c
sub eax, 1
je 0x1000d18a
mov dword [esi + 0xc], 0xffffffff
mov eax, dword [esi + 0xc]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ad4b8
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
test eax, eax
jne 0x1000d19c
mov dword [esi + 0xc], 1
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100ad4b8
mov esp, ebp
pop ebp
ret

Function at 0x1000d1d0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x10108c80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x114], ecx
cmp dword [ebx + 0xc], 0
je 0x1000d211
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ad4b8
mov esp, ebp
pop ebp
ret 8
push esi
push edi
mov esi, eax
lea edi, [ecx + eax]
mov eax, dword [0x1010a3b4]
test eax, eax
je 0x1000d237
mov ecx, dword [0x1010ad58]
call sub.WINMM.dll_timeGetTime
mov ecx, eax
mov eax, dword [0x1010a3b4]
add ecx, eax
jmp 0x1000d23d
mov ecx, dword [ebp - 0x114]
mov dword [ebp - 0x110], ecx
cmp esi, edi
jae 0x1000d328
nop dword [eax + eax]
xor edi, edi
test eax, eax
je 0x1000d271
mov ecx, dword [0x1010ad58]
call sub.WINMM.dll_timeGetTime
mov edi, dword [ebp - 0x110]
sub edi, eax
mov eax, 0
cmovs edi, eax
mov eax, dword [ebx + 4]
push 0xfc
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x100]
push 0
push eax
mov dword [ebp - 0x108], 1
call fcn.100aefd0
mov eax, 0x10624dd3
add esp, 0xc
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x11c], eax
imul eax, eax, 0x3e8
sub edi, eax
imul eax, edi, 0x3e8
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x11c]
push eax
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push 0
call sub.WS2_32.dll_select
cmp eax, 1
jne 0x1000d321
mov edi, dword [ebp - 0x114]
add edi, dword [ebp - 0x10c]
push 0
mov eax, edi
sub eax, esi
push eax
push esi
push dword [ebx + 4]
call sub.WS2_32.dll_recv
test eax, eax
je 0x1000d318
cmp eax, 0xffffffff
je 0x1000d321
add esi, eax
cmp esi, edi
jae 0x1000d328
mov eax, dword [0x1010a3b4]
jmp 0x1000d250
mov dword [ebx + 0xc], 1
jmp 0x1000d328
mov dword [ebx + 0xc], 0xffffffff
sub esi, dword [ebp - 0x10c]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100ad4b8
mov esp, ebp
pop ebp
ret 8
Function at 0x1000d3a0
Capabilities:
Get socket status
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x10108c80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x54], 0
jne 0x1000d57f
mov eax, dword [0x1010a3b0]
test eax, eax
je 0x1000d3e1
mov ecx, dword [0x1010ad58]
call sub.WINMM.dll_timeGetTime
mov edi, eax
mov eax, dword [0x1010a3b0]
add edi, eax
jmp 0x1000d3e7
mov edi, dword [ebp - 0x11c]
mov dword [ebp - 0x118], edi
nop dword [eax]
xor esi, esi
test eax, eax
je 0x1000d40d
mov ecx, dword [0x1010ad58]
call sub.WINMM.dll_timeGetTime
mov esi, edi
sub esi, eax
mov eax, 0
cmovs esi, eax
mov eax, dword [ebx + 4]
push 0xfc
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x100]
push 0
push eax
mov dword [ebp - 0x108], 1
call fcn.100aefd0
mov eax, 0x10624dd3
add esp, 0xc
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x124], eax
imul eax, eax, 0x3e8
sub esi, eax
imul eax, esi, 0x3e8
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x124]
push eax
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push 0
call sub.WS2_32.dll_select
test eax, eax
je 0x1000d57f
cmp eax, 1
jne 0x1000d578
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0xffffffff
push eax
push 0x4004667f
push dword [ebx + 4]
call sub.WS2_32.dll_ioctlsocket
test eax, eax
jne 0x1000d578
mov eax, dword [ebx + 0xc]
mov ecx, eax
mov edx, dword [ebx + 8]
sub ecx, edx
mov esi, dword [ebp - 0x10c]
mov dword [ebp - 0x114], eax
cmp esi, ecx
jae 0x1000d4d0
lea eax, [edx + esi]
jmp 0x1000d514
jbe 0x1000d517
mov eax, dword [ebx + 0x10]
sub eax, edx
cmp esi, eax
jbe 0x1000d4f3
lea eax, [ebp - 0x10d]
push eax
push esi
lea ecx, [ebx + 8]
call fcn.1000b790
mov esi, dword [ebp - 0x10c]
jmp 0x1000d517
sub esi, ecx
push esi
push 0
push dword [ebp - 0x114]
call fcn.100aefd0
mov eax, dword [ebp - 0x114]
add esp, 0xc
add eax, esi
mov esi, dword [ebp - 0x10c]
mov dword [ebx + 0xc], eax
lea eax, [ebp - 0x11c]
mov dword [ebx + 0x50], 0
push eax
lea eax, [ebx + 0x30]
mov dword [ebp - 0x11c], 0x10
push eax
push 0
push esi
push dword [ebx + 8]
push dword [ebx + 4]
call sub.WS2_32.dll_recvfrom
cmp eax, 0xffffffff
jne 0x1000d556
mov eax, dword [0x1010a3b0]
mov edi, dword [ebp - 0x118]
jmp 0x1000d3f0
push eax
lea ecx, [ebx + 8]
call fcn.1000d5a0
push dword [ebx + 0x34]
call sub.WS2_32.dll_ntohl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ad4b8
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x54], 0xffffffff
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100ad4b8
mov esp, ebp
pop ebp
ret

Function at 0x1000d880
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
jne 0x1000d8a4
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x1000d8a6
mov dword [esi + 0xc], eax
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x1002a500
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dc615
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x10108c80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [0x1010add8]
lea eax, [ebp - 0x60]
push 1
push 4
push eax
call fcn.100bb04f
movups xmm0, xmmword [0x100e4bd0]
mov edi, dword [ebp - 0x60]
push dword [0x1010add8]
mov esi, dword [0x1010adc4]
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x30], xmm0
call fcn.100bc2b6
mov ecx, dword [esi - 4]
add esp, 0x14
sub ecx, eax
je 0x1002a71c
lea ebx, [edi*4]
lea eax, [ebp - 0x58]
push eax
call fcn.1002b220
push dword [0x1010add8]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
push 1
push 0x10
push eax
call fcn.100bb04f
push dword [0x1010add8]
lea eax, [ebp - 0x64]
push 1
push 4
push eax
call fcn.100bb04f
push dword [0x1010add8]
movss xmm0, dword [ebp - 0x64]
lea eax, [ebp - 0x68]
push 1
push 4
push eax
movss dword [ebp - 0x70], xmm0
call fcn.100bb04f
push dword [0x1010add8]
mov edi, dword [ebp - 0x68]
lea eax, [ebp - 0x6c]
push 1
push 4
push eax
call fcn.100bb04f
mov esi, dword [ebp - 0x6c]
lea eax, [ebp - 0x40]
add esp, 0x40
push dword [0x1010add8]
push 1
push ebx
push eax
call fcn.100bb04f
add esp, 0x10
lea ecx, [ebp - 0x5c]
call fcn.1002d930
movss xmm0, dword [ebp - 0x20]
lea eax, [ebp - 0x7c]
movss dword [ebp - 0x7c], xmm0
lea ecx, [ebp - 0x5c]
movss xmm0, dword [ebp - 0x1c]
movss dword [ebp - 0x78], xmm0
movss xmm0, dword [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
movss dword [ebp - 0x74], xmm0
call fcn.1002e040
movss xmm0, dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x5c]
movss dword [esp], xmm0
call fcn.1002dfd0
movss xmm0, dword [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x5c]
movss dword [esp], xmm0
call fcn.1002e090
push edi
lea ecx, [ebp - 0x5c]
call fcn.1002e020
push esi
lea ecx, [ebp - 0x5c]
call fcn.1002e070
xor esi, esi
nop word [eax + eax]
mov ecx, dword [ebp + esi*4 - 0x40]
test ecx, ecx
js 0x1002a68c
mov eax, dword [0x1010ada8]
push 0
lea eax, [eax + ecx*4]
push eax
push esi
lea ecx, [ebp - 0x5c]
call fcn.1002e0b0
inc esi
cmp esi, 8
jl 0x1002a670
mov eax, dword [0x1010add0]
lea ecx, [ebp - 0x5c]
push ecx
cmp eax, dword [0x1010add4]
je 0x1002a6b3
mov ecx, eax
call fcn.1002d910
add dword [0x1010add0], 4
jmp 0x1002a6be
push eax
mov ecx, 0x1010adcc
call fcn.10024b90
lea ecx, [ebp - 0x5c]
call fcn.1002dae0
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0xf
jbe 0x1002a6fd
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002a6f3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002a738
push ecx
push edx
call fcn.100ace28
add esp, 8
push dword [0x1010add8]
mov esi, dword [0x1010adc4]
call fcn.100bc2b6
mov ecx, dword [esi - 4]
add esp, 4
sub ecx, eax
jne 0x1002a576
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ad4b8
mov esp, ebp
pop ebp
ret
call fcn.100b251a
int3
Function at 0x1002a740
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push dword [0x1010add8]
push 1
push 8
push eax
call fcn.100bb04f
add esp, 0x10
cmp eax, 1
jae 0x1002a767
xor eax, eax
mov esp, ebp
pop ebp
ret
push dword [0x1010add8]
call fcn.100bc2b6
add eax, dword [ebp - 8]
add esp, 4
mov ecx, dword [0x1010adc4]
mov dword [ebp - 4], eax
cmp ecx, dword [0x1010adc8]
je 0x1002a79b
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
add dword [0x1010adc4], 4
bswap eax
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, 0x1010adc0
call fcn.1000b4b0
mov eax, dword [ebp - 0xc]
bswap eax
mov esp, ebp
pop ebp
ret
Function at 0x1002a7c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dc67f
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10108c80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x20], ebx
push dword [0x1010add8]
mov esi, dword [0x1010adc4]
call fcn.100bc2b6
mov ecx, dword [esi - 4]
add esp, 4
sub ecx, eax
je 0x1002a9bd
push dword [0x1010add8]
lea eax, [ebp - 0x3c]
push 1
push 8
push eax
call fcn.100bb04f
add esp, 0x10
cmp eax, 1
jb 0x1002a980
push dword [0x1010add8]
call fcn.100bc2b6
add eax, dword [ebp - 0x38]
add esp, 4
mov ecx, dword [0x1010adc4]
mov dword [ebp - 0x28], eax
cmp ecx, dword [0x1010adc8]
je 0x1002a85d
mov dword [ecx], eax
add dword [0x1010adc4], 4
jmp 0x1002a86c
lea eax, [ebp - 0x28]
push eax
push ecx
mov ecx, 0x1010adc0
call fcn.1000b4b0
mov eax, dword [ebp - 0x3c]
bswap eax
cmp eax, 0x54524953
je 0x1002a88f
cmp eax, 0x56525453
jne 0x1002a980
call fcn.1002b600
mov edi, eax
jmp 0x1002a980
push dword [0x1010add8]
lea eax, [ebp - 0x2c]
push 1
push 4
push eax
call fcn.100bb04f
mov ecx, dword [ebp - 0x2c]
add esp, 0x10
test ecx, ecx
js 0x1002a8c9
mov eax, dword [0x1010adcc]
lea eax, [eax + ecx*4]
push eax
lea ecx, [ebp - 0x34]
call fcn.1002d910
mov dword [ebp - 4], 0
or ebx, 1
jmp 0x1002a8db
lea ecx, [ebp - 0x30]
call fcn.1002d930
mov dword [ebp - 4], 1
or ebx, 2
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x20], ebx
call fcn.1002d910
mov dword [ebp - 4], 2
test bl, 2
je 0x1002a901
and ebx, 0xfffffffd
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], ebx
call fcn.1002dae0
mov byte [ebp - 4], 4
test bl, 1
je 0x1002a918
and ebx, 0xfffffffe
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], ebx
call fcn.1002dae0
push dword [0x1010add8]
mov esi, dword [0x1010adc4]
call fcn.100bc2b6
mov ecx, dword [esi - 4]
add esp, 4
sub ecx, eax
je 0x1002a971
push dword [0x1010add8]
lea eax, [ebp - 0x1c]
push 1
push 0xc
push eax
call fcn.100bb04f
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10041c80
push dword [0x1010add8]
mov esi, dword [0x1010adc4]
call fcn.100bc2b6
mov ecx, dword [esi - 4]
add esp, 4
sub ecx, eax
jne 0x1002a933
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.1002dae0
mov eax, dword [0x1010adc4]
push 0
push dword [eax - 4]
push dword [0x1010add8]
call fcn.100bb459
mov esi, dword [0x1010adc4]
push dword [0x1010add8]
sub esi, 4
mov dword [0x1010adc4], esi
call fcn.100bc2b6
mov ecx, dword [esi - 4]
add esp, 0x10
sub ecx, eax
jne 0x1002a811
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ad4b8
mov esp, ebp
pop ebp
ret
Function at 0x1002b220
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0xb]
push dword [0x1010add8]
xorps xmm0, xmm0
push 1
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
push 1
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
push eax
mov byte [esi], 0
call fcn.100bb04f
mov cl, byte [ebp + 0xb]
add esp, 0x10
mov byte [ebp - 1], cl
test cl, cl
je 0x1002b38e
push ebx
push edi
mov edi, dword [esi + 0x14]
mov ebx, dword [esi + 0x10]
mov dword [ebp - 0x10], edi
cmp ebx, edi
jae 0x1002b29e
lea eax, [ebx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edi, 0xf
jbe 0x1002b291
mov eax, dword [esi]
mov byte [eax + ebx], cl
mov byte [eax + ebx + 1], 0
jmp 0x1002b368
mov eax, bind
sub eax, ebx
cmp eax, 1
jb 0x1002b397
lea ecx, [ebx + 1]
or ecx, 0xf
cmp ecx, 0x7fffffff
jbe 0x1002b2c3
mov ecx, bind
jmp 0x1002b2e1
mov edx, edi
mov eax, bind
shr edx, 1
sub eax, edx
cmp edi, eax
jbe 0x1002b2d9
mov ecx, bind
jmp 0x1002b2e1
lea eax, [edx + edi]
cmp ecx, eax
cmovb ecx, eax
lea eax, [ebp - 8]
mov dword [ebp - 8], ecx
push eax
push esi
call fcn.10001bb0
mov ecx, eax
lea eax, [ebx + 1]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x14], eax
mov dword [ebp - 0xc], ecx
lea eax, [ecx + ebx]
mov dword [ebp - 8], eax
push ebx
cmp edi, 0xf
jbe 0x1002b34d
mov edi, dword [esi]
push edi
push ecx
call fcn.100aea50
mov ecx, dword [ebp - 8]
add esp, 0xc
mov al, byte [ebp - 1]
mov byte [ecx], al
mov byte [ecx + 1], 0
mov ecx, dword [ebp - 0x10]
inc ecx
cmp ecx, 0x1000
jb 0x1002b341
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x1002b39c
mov edi, edx
push ecx
push edi
call fcn.100ace28
add esp, 8
jmp 0x1002b363
push esi
push ecx
call fcn.100aea50
mov ecx, dword [ebp - 8]
add esp, 0xc
mov al, byte [ebp - 1]
mov byte [ecx], al
mov byte [ecx + 1], 0
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
push dword [0x1010add8]
lea eax, [ebp + 0xb]
push 1
push 1
push eax
call fcn.100bb04f
mov cl, byte [ebp + 0xb]
add esp, 0x10
mov byte [ebp - 1], cl
test cl, cl
jne 0x1002b275
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.100031f0
call fcn.100b251a
int3
Function at 0x1002b3b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dc785
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x10108c80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [0x1010add8]
mov esi, dword [0x1010adc4]
call fcn.100bc2b6
mov ecx, dword [esi - 4]
add esp, 4
sub ecx, eax
je 0x1002b5d4
nop dword [eax]
lea eax, [ebp - 0x28]
push eax
call fcn.1002b220
push dword [0x1010add8]
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push 1
push 4
push eax
call fcn.100bb04f
push dword [0x1010add8]
mov edi, dword [ebp - 0x30]
lea eax, [ebp - 0x34]
push 1
push 4
push eax
call fcn.100bb04f
push dword [0x1010add8]
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x44]
push 1
push 8
push eax
call fcn.100bb04f
push dword [0x1010add8]
lea eax, [ebp - 0x4c]
push 1
push 8
push eax
call fcn.100bb04f
add esp, 0x40
lea eax, [ebp - 0x38]
push dword [0x1010add8]
push 1
push 4
push eax
call fcn.100bb04f
add esp, 0x10
movzx eax, di
lea ecx, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1002cd70
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.1002d6f0
test edi, 0x10000
je 0x1002b4aa
push 1
lea ecx, [ebp - 0x2c]
call fcn.1002d710
movss xmm1, dword [ebp - 0x44]
xorps xmm2, xmm2
movss xmm0, dword [ebp - 0x40]
ucomiss xmm1, xmm2
lahf
test ah, 0x44
jp 0x1002b4c9
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jnp 0x1002b4df
sub esp, 8
lea ecx, [ebp - 0x2c]
movss dword [esp + 4], xmm0
movss dword [esp], xmm1
call fcn.1002d730
movss xmm1, dword [ebp - 0x4c]
movss xmm2, dword [0x100e2954]
movss xmm0, dword [ebp - 0x48]
ucomiss xmm1, xmm2
lahf
test ah, 0x44
jp 0x1002b503
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jnp 0x1002b519
sub esp, 8
lea ecx, [ebp - 0x2c]
movss dword [esp + 4], xmm0
movss dword [esp], xmm1
call fcn.1002d790
movss xmm0, dword [ebp - 0x38]
xorps xmm1, xmm1
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x1002b538
push ecx
lea ecx, [ebp - 0x2c]
movss dword [esp], xmm0
call fcn.1002d760
mov eax, dword [0x1010adac]
lea ecx, [ebp - 0x2c]
push ecx
cmp eax, dword [0x1010adb0]
je 0x1002b559
mov ecx, eax
call fcn.1002cd50
add dword [0x1010adac], 4
jmp 0x1002b564
push eax
mov ecx, 0x1010ada8
call fcn.1002a080
lea ecx, [ebp - 0x2c]
call fcn.1002cfd0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0xf
jbe 0x1002b5a3
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002b599
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002b5ef
push ecx
push edx
call fcn.100ace28
add esp, 8
push dword [0x1010add8]
mov esi, dword [0x1010adc4]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.100bc2b6
mov ecx, dword [esi - 4]
add esp, 4
sub ecx, eax
jne 0x1002b400
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ad4b8
mov esp, ebp
pop ebp
ret
call fcn.100b251a
int3