joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001e700
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x10021620
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
test esi, esi
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
je 0x1001e75c
js 0x1001e7d1
movzx eax, byte [0x100eb049]
push 1
push esi
call fcn.1000c740
add esp, 8
test eax, eax
jne 0x1001e761
mov eax, 1
push esi
push eax
call fcn.1004dec0
mov eax, 1
mov edi, dword [ebp + 8]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
push eax
call fcn.1003efd0
add esp, 0xc
mov ebx, dword [edi + 0x30]
cmp ebx, dword [edi + 0x28]
jne 0x1001e798
lea eax, [edi + 0x28]
mov dword [ebp - 0x10], 0
push eax
mov dword [ebp - 0x24], ebx
call fcn.100268b0
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp + 8]
add esp, 4
mov eax, dword [edi + 0x2c]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp - 0x20]
lea ecx, [ebx + ebx*4]
inc ebx
mov dword [eax + ecx*4], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], edx
mov byte [eax + ecx*4 + 0x10], 0
mov dword [edi + 0x30], ebx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
push esi
push eax
call fcn.1004dec0
nop word [eax + eax]
push ebp
sub esp, 0xc
add ebp, 0xc
cmp dword [ebp + 0x10], 0
je 0x1001e7fd
push 1
push dword [ebp + 0x10]
push dword [ebp - 0x20]
call fcn.1000c750
add esp, 0xc
add esp, 0xc
pop ebp
ret

Function at 0x1001e810
Capabilities:
Check if file exists
Create process on windows
Encode data using base64
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x16c
call fcn.1001e821

Function at 0x10020d70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push edi
push esi
sub esp, 0x40
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
lea ecx, [esp + 0x18]
mov dword [esp], eax
call fcn.10027710
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
cmp edx, 0x80000000
jne 0x10020db3
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], bind
jmp 0x10020ddf
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], ecx
lea edx, [esp + 0x24]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], eax
mov dword [esp + 4], edx
mov dword [esp], ecx
call fcn.10019950
mov edi, dword [esp + 0xc]
cmp edi, 0x80000000
jne 0x10020df6
lea ecx, [esp + 0xc]
call fcn.10015800
mov dword [esi], bind
mov eax, esi
add esp, 0x40
pop esi
pop edi
ret
movsd xmm0, qword [esp + 0x10]
movups xmmword [esp + 0x30], xmm0
movss dword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x10020e21
movups xmm0, xmmword [esp + 0x30]
mov dword [esi], edi
movlps qword [esi + 4], xmm0
jmp 0x10020dee
movups xmm0, xmmword [esp + 0x30]
test edi, edi
mov dword [esi], bind
je 0x10020dee
add edi, edi
movss dword [esp], xmm0
mov dword [esp + 8], 2
mov dword [esp + 4], edi
call fcn.1000c750
jmp 0x10020dee
Function at 0x10026520
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x10026564
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x1002656a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x1002659f
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0xc0000011
jne 0x100265af
mov dword [esi + 4], 0
jmp 0x100265c1
cmp eax, 0x103
je 0x100265db
test eax, eax
js 0x100265cc
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov byte [esi], 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x100265c4
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x100c9dec
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.10014c70
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.1000c2f0
mov ecx, 7
int 0x29
ud2
Function at 0x10026640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x10026684
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x1002668a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x100266c6
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x100266e8
test eax, eax
js 0x100266d2
mov eax, dword [esp + 0xc]
mov bl, 4
jmp 0x100266db
xor ebx, ebx
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
mov byte [esi], bl
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x100c9dec
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.10014c70
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.1000c2f0
mov ecx, 7
int 0x29
ud2

Function at 0x10027190
Capabilities:
Create udp socket

Disassembly:
push ebx
push edi
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov ebx, 0x17
cmp word [eax], 0
mov eax, 2
cmove ebx, eax
push 0x81
push 0
push 0
push 0
push edi
push ebx
call dword [sym.imp.WS2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x100271d4
mov dword [esi + 4], eax
mov byte [esi], 4
mov eax, esi
pop esi
pop edi
pop ebx
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x100271e8
cmp eax, 0x2739
jne 0x10027213
push 1
push 0
push 0
push 0
push edi
push ebx
call dword [sym.imp.WS2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x1002721b
mov edi, eax
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1002722c
mov dword [esi + 4], edi
jmp 0x100271cb
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x100271ce
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x100271ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x100271ce
Function at 0x10027250
Capabilities:
Resolve dns

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1b8
mov ebx, dword [esp + 0x1d4]
mov esi, dword [esp + 0x1cc]
mov edi, dword [esp + 0x1d0]
mov edx, ebx
jmp 0x10027284
cmp edx, ebx
ja 0x100272aa
push edx
push edi
push 0x3a
call fcn.1003aae0
add esp, 0xc
cmp eax, 1
jne 0x100272a6
cmp edx, ebx
jae 0x10027280
cmp byte [edi + edx], 0x3a
jne 0x10027280
mov ebp, edx
lea eax, [edx + 1]
jmp 0x100272ba
test eax, eax
jne 0x100272ba
mov byte [esi + 4], 2
mov dword [esi + 8], 0x100ca03c
jmp 0x1002733f
sub ebx, eax
add eax, edi
push ebx
push eax
call fcn.1003a750
add esp, 8
test al, 1
jne 0x10027334
shr eax, 0x10
mov word [esp + 2], ax
mov eax, dword [0x100eb124]
cmp eax, 3
jne 0x100273bc
lea eax, [esp + 2]
cmp ebp, 0x17f
mov dword [esp + 8], eax
ja 0x100273dd
lea ebx, [esp + 0x38]
push ebp
push edi
push ebx
call fcn.1003efd0
add esp, 0xc
mov byte [esp + ebp + 0x38], 0
inc ebp
lea eax, [esp + 0xc]
push ebp
push ebx
push eax
call fcn.1003b380
add esp, 0xc
cmp dword [esp + 0xc], 0
je 0x10027352
mov eax, dword [0x100c8248]
mov ecx, dword [0x100c824c]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
jmp 0x1002733f
mov byte [esi + 4], 2
mov dword [esi + 8], 0x100ca05c
mov dword [esi], 1
mov eax, esi
add esp, 0x1b8
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x10]
xorps xmm0, xmm0
lea ecx, [esp + 4]
mov dword [esp + 4], 0
lea edx, [esp + 0x18]
movups xmmword [esp + 0x18], xmm0
movups xmmword [esp + 0x28], xmm0
mov dword [esp + 0x20], 1
push ecx
push edx
push 0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x100273a3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 1
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], ecx
jmp 0x10027345
mov eax, dword [esp + 4]
movzx ecx, word [esp + 2]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
xor eax, eax
mov word [esi + 0xc], cx
mov dword [esi], eax
jmp 0x10027345
push 0x100eb124
call fcn.1004cf50
add esp, 4
lea eax, [esp + 2]
cmp ebp, 0x17f
mov dword [esp + 8], eax
jbe 0x100272f6
lea eax, [esp + 8]
push 0x100ca068
push eax
push ebp
push edi
push esi
call fcn.1004d0f0
add esp, 0x14
jmp 0x10027345
Function at 0x100278e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x43c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x10029370
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov esi, 0x200
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 2
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 0
mov eax, dword [eax + 4]
mov dword [ebp - 0x38], eax
cmp esi, 0x201
jae 0x10027970
jmp 0x1002795e
jbe 0x100279f9
cmp esi, 0x201
jae 0x10027970
mov dword [ebp - 0x30], 0x200
lea ebx, [ebp - 0x448]
mov edi, esi
jmp 0x100279a1
mov edi, dword [ebp - 0x34]
sub esi, edi
je 0x10027995
mov dword [ebp - 0x10], 0
push esi
push edi
lea eax, [ebp - 0x28]
push eax
call fcn.1004db00
add esp, 0xc
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push ebx
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x100279c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10027a5c
cmp esi, edi
jne 0x10027950
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10027a7b
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x1002795e
jmp 0x10027970
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], 0
cmp esi, eax
ja 0x10027a98
lea eax, [ebp - 0x48]
push esi
push ebx
push eax
call fcn.10017f60
add esp, 0xc
movsd xmm0, qword [ebp - 0x48]
mov esi, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x40]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x10027a46
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.1000c750
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x43c
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov byte [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi], bind
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x10027a36
jmp 0x10027a46
mov dword [ebp - 0x10], 0
push 0x100ca210
push 0x28
push 0x100ca1e8
call fcn.1004e0d0
add esp, 0xc
jmp 0x10027aa7
push 0x100ca1d8
push eax
push esi
call fcn.1004e3a0
add esp, 0xc
ud2
Function at 0x10028c40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x428
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x100293d0
mov edi, 0x200
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x30], 2
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x24], 0
cmp edi, 0x201
jae 0x10028cd0
jmp 0x10028cbe
jbe 0x10028d4f
cmp edi, 0x201
jae 0x10028cd0
mov dword [ebp - 0x34], 0x200
lea ebx, [ebp - 0x434]
mov esi, edi
jmp 0x10028d01
mov esi, dword [ebp - 0x20]
sub edi, esi
je 0x10028cf5
mov dword [ebp - 0x10], 0
push edi
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.1004db00
add esp, 0xc
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x20], esi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, eax
test eax, eax
jne 0x10028d21
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10028d91
cmp edi, esi
jne 0x10028cb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10028dfa
lea edi, [esi + esi]
test esi, esi
mov eax, 0xffffffff
cmovs edi, eax
cmp edi, 0x201
jb 0x10028cbe
jmp 0x10028cd0
mov eax, dword [ebp - 0x34]
cmp edi, eax
ja 0x10028e17
test edi, edi
je 0x10028db0
lea ecx, [edi + edi]
cmp edi, 0x3fffffff
mov dword [ebp - 0x20], ecx
ja 0x10028e2f
movzx eax, byte [0x100eb049]
push 2
push ecx
call fcn.1000c740
add esp, 8
test eax, eax
je 0x10028e33
mov esi, eax
mov eax, dword [ebp - 0x20]
jmp 0x10028db7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp + 8]
mov byte [ebx + 4], 0
mov dword [ebx + 8], eax
mov dword [ebx], bind
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x10028dd4
jmp 0x10028de4
mov esi, 2
xor eax, eax
push eax
push ebx
push esi
call fcn.1003efd0
add esp, 0xc
mov ebx, dword [ebp + 8]
mov dword [ebx], edi
mov dword [ebx + 4], esi
mov dword [ebx + 8], edi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10028de4
add eax, eax
push 2
push eax
push dword [ebp - 0x28]
call fcn.1000c750
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x428
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 0x100ca210
push 0x28
push 0x100ca1e8
call fcn.1004e0d0
add esp, 0xc
jmp 0x10028e4b
mov dword [ebp - 0x10], 0
push 0x100ca1d8
push eax
push edi
call fcn.1004e3a0
add esp, 0xc
jmp 0x10028e4b
xor eax, eax
jmp 0x10028e38
mov eax, 2
mov dword [ebp - 0x10], 0
push dword [ebp - 0x20]
push eax
call fcn.1004dec0
add esp, 8
ud2
Function at 0x10029110
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x438
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x100293f0
mov esi, 0x200
lea eax, [ebp - 0x18]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 2
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 0
cmp esi, 0x201
jae 0x100291a0
jmp 0x1002918e
jbe 0x10029226
cmp esi, 0x201
jae 0x100291a0
mov dword [ebp - 0x30], 0x200
lea ebx, [ebp - 0x444]
mov edi, esi
jmp 0x100291d1
mov edi, dword [ebp - 0x34]
sub esi, edi
je 0x100291c5
mov dword [ebp - 0x10], 0
push esi
push edi
lea eax, [ebp - 0x28]
push eax
call fcn.1004db00
add esp, 0xc
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
jne 0x100291f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10029289
cmp esi, edi
jne 0x10029180
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100292a8
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x1002918e
jmp 0x100291a0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], 0
cmp esi, eax
ja 0x100292c5
lea eax, [ebp - 0x44]
push esi
push ebx
push eax
call fcn.10017f60
add esp, 0xc
movsd xmm0, qword [ebp - 0x44]
mov esi, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x3c]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x10029273
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.1000c750
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x438
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov byte [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi], bind
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x10029263
jmp 0x10029273
mov dword [ebp - 0x10], 0
push 0x100ca210
push 0x28
push 0x100ca1e8
call fcn.1004e0d0
add esp, 0xc
jmp 0x100292d4
push 0x100ca1d8
push eax
push esi
call fcn.1004e3a0
add esp, 0xc
ud2
Function at 0x1002cc00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x1002f290
mov esi, ecx
lea eax, [ebp - 0x18]
mov edi, edx
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x100eb049]
push 4
push 0x1ec
call fcn.1000c740
add esp, 8
test eax, eax
je 0x1002cda6
mov ebx, dword [edi]
mov dword [ebp - 0x3c], esi
mov esi, dword [edi + 8]
mov dword [eax + 0xb0], 0
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x28], eax
movzx ecx, word [ebx + 0x1ea]
mov edi, esi
not edi
add edi, ecx
mov dword [ebp - 0x20], ecx
lea ecx, [esi + esi*8]
lea ecx, [ecx + ecx*2]
mov word [eax + 0x1ea], di
add ecx, esi
mov edx, dword [ebx + ecx + 0xcc]
mov dword [ebp - 0x40], edx
movsd xmm0, qword [ebx + ecx + 0xc4]
movsd qword [ebp - 0x48], xmm0
movsd xmm0, qword [ebx + ecx + 0xb4]
movsd xmm1, qword [ebx + ecx + 0xbc]
mov ecx, esi
shl ecx, 4
cmp edi, 0xb
movsd qword [ebp - 0x50], xmm1
movsd qword [ebp - 0x58], xmm0
mov eax, dword [ebx + ecx]
mov edx, dword [ebx + ecx + 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], edx
ja 0x1002cdb2
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], esi
inc esi
sub eax, esi
cmp eax, edi
jne 0x1002cdcb
mov edx, dword [ebx + ecx + 0xc]
mov ecx, dword [ebx + ecx + 8]
lea eax, [ebx + 0xb4]
add eax, esi
mov dword [ebp - 0x30], edx
lea edx, [esi + esi*8]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x28]
lea edx, [edx + edx*2]
add eax, edx
lea edx, [edi + edi*8]
lea edx, [edx + edx*2]
add edx, edi
add ecx, 0xb4
push edx
push eax
push ecx
call fcn.1003efd0
add esp, 0xc
shl esi, 4
shl edi, 4
add esi, ebx
push edi
push esi
mov esi, dword [ebp - 0x28]
push esi
call fcn.1003efd0
add esp, 0xc
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
mov word [ebx + 0x1ea], ax
mov eax, dword [ebp - 0x40]
movsd xmm0, qword [ebp - 0x58]
movsd xmm1, qword [ebp - 0x50]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 0x38]
movsd qword [ecx], xmm0
movsd xmm0, qword [ebp - 0x48]
movsd qword [ecx + 8], xmm1
mov eax, dword [eax + 4]
movsd qword [ecx + 0x10], xmm0
mov dword [ecx + 0x2c], ebx
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x1c], edi
mov dword [ecx + 0x20], edx
mov edi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 0x28], edi
mov dword [ecx + 0x24], edx
mov dword [ecx + 0x34], esi
mov dword [ecx + 0x38], 0
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1ec
push 4
call fcn.1004dee0
mov dword [ebp - 0x10], 0
push 0x100caafc
push 0xb
push edi
call fcn.1004e3a0
add esp, 0xc
jmp 0x1002cde6
mov dword [ebp - 0x10], 0
push 0x100caaec
push 0x28
push str.assertion_failed:_src.len____dst.len__t
call fcn.1004e0d0
add esp, 0xc
ud2
Function at 0x1002f050
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x7c
mov edi, dword [esp + 0x94]
mov esi, dword [esp + 0x90]
mov eax, dword [esp + 0x98]
mov edx, dword [edi + 4]
mov ecx, dword [edi]
mov edi, dword [edi + 8]
test edx, edx
je 0x1002f13f
nop dword [eax]
mov ecx, dword [ecx + edi*4 + 0x1ec]
dec edx
je 0x1002f09b
movzx edi, word [ecx + 0x1ea]
mov ecx, dword [ecx + edi*4 + 0x1ec]
dec edx
jne 0x1002f08a
movzx edx, word [ecx + 0x1ea]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], 0
mov ecx, esp
dec edx
mov dword [esp + 0x4c], edx
lea edx, [esp + 0x44]
push eax
call fcn.1002e860
add esp, 4
movsd xmm2, qword [esp + 0x18]
movsd xmm1, qword [esp + 0x10]
mov eax, dword [esp + 0x28]
movsd xmm0, qword [esp + 0x20]
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
movsd qword [esp + 0x68], xmm2
movsd qword [esp + 0x60], xmm1
movsd xmm2, qword [esp]
movsd xmm1, qword [esp + 8]
mov dword [esp + 0x78], eax
movsd qword [esp + 0x70], xmm0
movsd qword [esp + 0x58], xmm1
movsd qword [esp + 0x50], xmm2
movzx eax, word [edi + 0x1ea]
cmp ecx, eax
jae 0x1002f120
mov eax, edi
jmp 0x1002f169
mov eax, dword [edi + 0xb0]
test eax, eax
je 0x1002f163
movzx ecx, word [edi + 0x1e8]
inc edx
mov edi, eax
cmp cx, word [eax + 0x1ea]
jae 0x1002f120
jmp 0x1002f169
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], edi
lea edx, [esp + 0x38]
mov ecx, esi
push eax
call fcn.1002e860
add esp, 4
jmp 0x1002f285
mov ecx, edx
xor eax, eax
mov edx, edi
lea edi, [ecx + ecx*8]
lea ebx, [edi + edi*2]
mov edi, ecx
add ebx, ecx
shl edi, 4
test edx, edx
mov ebp, dword [eax + ebx + 0xcc]
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x68]
movsd xmm0, qword [eax + ebx + 0xc4]
movsd qword [esp + 0x10], xmm0
movsd xmm0, qword [eax + ebx + 0xb4]
movsd xmm1, qword [eax + ebx + 0xbc]
movsd qword [esp + 8], xmm1
movsd qword [esp], xmm0
mov dword [eax + ebx + 0xcc], ebp
movsd xmm0, qword [esp + 0x60]
movsd qword [eax + ebx + 0xc4], xmm0
movsd xmm0, qword [esp + 0x50]
movsd xmm1, qword [esp + 0x58]
movsd qword [eax + ebx + 0xbc], xmm1
movsd qword [eax + ebx + 0xb4], xmm0
movsd xmm0, qword [eax + edi]
movsd xmm1, qword [eax + edi + 8]
movsd xmm2, qword [esp + 0x74]
movsd qword [esp + 0x1c], xmm0
movsd xmm0, qword [esp + 0x6c]
movsd qword [esp + 0x24], xmm1
movsd qword [eax + edi + 8], xmm2
movsd qword [eax + edi], xmm0
je 0x1002f23b
mov eax, dword [eax + ecx*4 + 0x1f0]
xor ecx, ecx
dec edx
je 0x1002f23c
nop word cs:[eax + eax]
nop dword [eax]
mov eax, dword [eax + 0x1ec]
dec edx
jne 0x1002f230
jmp 0x1002f23c
inc ecx
movsd xmm2, qword [esp + 0x18]
movsd xmm1, qword [esp + 0x10]
mov edx, dword [esp + 0x28]
movsd xmm0, qword [esp + 0x20]
movsd qword [esi + 0x18], xmm2
movsd qword [esi + 0x10], xmm1
movsd xmm2, qword [esp]
movsd xmm1, qword [esp + 8]
mov dword [esi + 0x28], edx
movsd qword [esi + 0x20], xmm0
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm2
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], ecx
mov eax, esi
add esp, 0x7c
pop esi
pop edi
pop ebx
pop ebp
ret