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

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x10127212
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x10127360
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa4
mov eax, dword [0x101c3584]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xb8]
push ebx
mov ebx, dword [esp + 0xb0]
push ebp
mov ebp, dword [esp + 0xb8]
push esi
mov esi, dword [esp + 0xb4]
cmp dword [esi + 0x290], 0
push edi
je case.default.0x101273c0
test eax, eax
je case.default.0x101273c0
mov eax, dword [eax + 0x80]
test eax, eax
je case.default.0x101273c0
lea edx, [ebx - 1]
mov ecx, str.Data
cmp edx, 3
ja case.default.0x101273c0
jmp dword [edx*4 + 0x101274dc]
mov ecx, str.Header
mov edx, str.from
jmp 0x101273dd
mov ecx, str.Header
mov edx, 0x1019f8d4
push eax
push edx
push ecx
push str.__s__s__s_
lea eax, [esp + 0x20]
push 0xa0
push eax
call fcn.101289a0
lea eax, [esp + 0x28]
add esp, 0x18
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10127400
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x10127455
mov ecx, dword [esi + 0xfc]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x101274c0
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x10127483
mov ecx, dword [esi + 0xfc]
mov edx, dword [esp + 0xc4]
push ecx
push edx
push ebp
push ebx
push esi
call eax
add esp, 0x14
jmp 0x101274c0
mov eax, dword [esi + 0xf8]
push eax
push 1
push 2
push 0x1019f8b0
call fcn.1013faec
mov ecx, dword [esi + 0xf8]
push ecx
push 1
lea edx, [esp + 0x28]
push edi
push edx
call fcn.1013faec
add esp, 0x20
jmp case.default.0x101273c0
test ebx, ebx
jl 0x101274be
cmp ebx, 2
jg 0x101274be
mov eax, dword [esi + 0xf8]
push eax
push 1
lea ecx, [ebx + ebx*2 + 0x1019f8b0]
push 2
push ecx
call fcn.1013faec
mov edx, dword [esi + 0xf8]
mov eax, dword [esp + 0xd4]
push edx
push 1
push eax
push ebp
call fcn.1013faec
add esp, 0x20
xor eax, eax
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1013d581
add esp, 0xa4
ret

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

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi + eax*4 + 0xc8]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x101275ff
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x101275df
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push eax
push edi
call fcn.10134b00
push eax
mov eax, dword [edi]
push str.Send_failure:__s
push eax
call fcn.101274f0
add esp, 0x14
mov dword [ebx], 0x37
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x10127c50
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x208
mov eax, dword [0x101c3584]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
push ebp
mov ebp, dword [esp + 0x214]
cmp dword [ebp + 0x134], 0
mov ebx, dword [ebp]
jne 0x10127d61
push esi
mov esi, dword [esp + 0x21c]
push edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
mov edi, 0x100
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x10127cbf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.10134b00
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
jmp 0x10127d56
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x118]
push eax
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10127cf3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.10134b00
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x10127d56
lea edi, [ebx + 0x86c4]
lea ecx, [ebx + 0x8694]
lea esi, [esp + 0x14]
call fcn.10127c00
test eax, eax
jne 0x10127d24
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.10134b00
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x10127d56
lea edi, [ebx + 0x86f8]
lea ecx, [ebx + 0x86c8]
lea esi, [esp + 0x114]
call fcn.10127c00
test eax, eax
jne 0x10127d5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.10134b00
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.101274f0
add esp, 0x18
pop edi
pop esi
mov ecx, dword [esp + 0x20c]
pop ebp
pop ebx
xor ecx, esp
call fcn.1013d581
add esp, 0x208
ret

Function at 0x10127d80
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov eax, dword [esi]
mov ecx, dword [eax + 0x308]
mov eax, dword [esp + 8]
push 4
lea edx, [esp + 4]
push edx
push 1
push 6
push eax
mov dword [esp + 0x14], ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x10127db7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.10134b00
add esp, 8
pop ecx
ret

Function at 0x10127dc0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0x1001
push 0xffff
push esi
mov dword [esp + 0x1c], 0x4020
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x10127e09
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x10127e21
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 0xc
ret
Function at 0x10129910
Capabilities:
Resolve dns

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
lea eax, [esp + 8]
push eax
push esi
push 2
xor edi, edi
call fcn.10135390
add esp, 0xc
test eax, eax
jle 0x10129946
mov ecx, dword [esp + 0x14]
push ecx
push esi
lea edx, [esp + 0x10]
push edx
push 2
call fcn.10129820
add esp, 0x10
pop edi
pop esi
pop ecx
ret
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10129961
mov ecx, dword [esp + 0x14]
push ecx
push eax
call fcn.101296f0
add esp, 8
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x1012ad50
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x101c3584]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
mov ebp, dword [esi]
push edi
mov edi, dword [esi + 0xcc]
push 1
push 0
push esi
or ebx, 0xffffffff
mov dword [esp + 0x18], 0x10
call fcn.101277b0
add esp, 0xc
test eax, eax
jle 0x1012adb9
mov ecx, 0x3e8
cmp eax, ecx
jge 0x1012ad90
mov ecx, eax
push ecx
push 0xffffffffffffffff
push edi
call fcn.10131f00
add esp, 0xc
cmp eax, 0xffffffff
je 0x1012ae46
test eax, eax
jne 0x1012adde
push 1
push eax
push esi
call fcn.101277b0
add esp, 0xc
test eax, eax
jg 0x1012ad85
push str.Timeout_while_waiting_for_server_connect
push ebp
call fcn.101274f0
add esp, 8
pop edi
pop ebp
mov eax, 0x1c
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.1013d581
add esp, 0x18
ret
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1012ae0e
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp ebx, 0xffffffff
jne 0x1012ae21
push str.Error_accept__ing_server_connect
jmp 0x1012ae4b
push 1
push ebx
mov dword [esi + 0xcc], ebx
call fcn.100a7400
add esp, 8
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.1013d581
add esp, 0x18
ret
push str.Error_while_waiting_for_server_connect
push ebp
call fcn.101274f0
mov ecx, dword [esp + 0x28]
add esp, 8
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x1e
call fcn.1013d581
add esp, 0x18
ret
Function at 0x10131f00
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
sub esp, 0x320
push ebp
mov ebp, dword [esp + 0x328]
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x334]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
cmp ebp, 0xffffffff
jne 0x10131f62
cmp edi, ebp
jne 0x10131f62
mov eax, dword [esp + 0x338]
cmp eax, esi
je 0x10131f56
jge 0x10131f4f
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x320
ret
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x320
ret
push ebx
mov ebx, dword [esp + 0x33c]
cmp ebx, esi
jle 0x10131f7d
mov esi, ebx
call fcn.10132df0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
xor ecx, ecx
xor eax, eax
or edx, 0xffffffff
mov dword [esp + 0x24], ecx
mov dword [esp + 0x128], eax
cmp ebp, 0xffffffff
je 0x10131fb1
mov ecx, 1
mov dword [esp + 0x12c], ebp
mov dword [esp + 0x128], ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ecx
mov edx, ebp
mov dword [esp + 0x22c], eax
cmp edi, 0xffffffff
je 0x10131ff7
mov dword [esp + 0x230], edi
mov dword [esp + 0x22c], 1
test ecx, ecx
jbe 0x10131fde
cmp dword [esp + eax*4 + 0x28], edi
je 0x10131fde
inc eax
cmp eax, ecx
jb 0x10131fd3
cmp eax, ecx
jne 0x10131fef
cmp ecx, 0x40
jae 0x10131fef
mov dword [esp + eax*4 + 0x28], edi
inc dword [esp + 0x24]
xor eax, eax
cmp edi, edx
jbe 0x10131ff7
mov edx, edi
xor ecx, ecx
cmp ebx, eax
setl cl
lea edi, [esp + 0x18]
dec ecx
and ecx, edi
inc edx
mov ebp, ecx
mov dword [esp + 0x20], edx
jmp 0x10132012
xor eax, eax
cmp ebx, eax
jle 0x10132041
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
imul eax, eax, 0x3e8
mov edx, esi
sub edx, eax
imul edx, edx, 0x3e8
mov dword [esp + 0x1c], edx
jmp 0x1013204b
jne 0x1013204b
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push ebp
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x234]
push ecx
lea edx, [esp + 0x134]
push edx
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
cmp edi, 0xffffffff
jne 0x101320ad
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x10132084
cmp eax, 0x2714
jne 0x101320ad
test ebx, ebx
jle 0x10132010
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.10132df0
push edx
push eax
call fcn.10132e20
mov esi, ebx
sub esi, eax
add esp, 0x10
test esi, esi
jg 0x10132010
pop ebx
test edi, edi
jl 0x10131f42
je 0x10131f56
mov edi, dword [esp + 0x330]
xor esi, esi
cmp edi, 0xffffffff
je 0x101320f3
lea eax, [esp + 0x124]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x101320e1
mov esi, 1
lea ecx, [esp + 0x20]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x101320f3
or esi, 4
mov edi, dword [esp + 0x334]
cmp edi, 0xffffffff
je 0x10132126
lea edx, [esp + 0x228]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10132114
or esi, 2
lea eax, [esp + 0x20]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10132126
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x320
ret
Function at 0x10132270
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov dword [eax], 0
call fcn.10132df0
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0xc4]
push ecx
mov ecx, dword [esi + 0xc0]
push ecx
push edx
push eax
call fcn.10132e20
mov ebx, dword [esp + 0x40]
add esp, 0x10
cmp eax, ebx
jg 0x1013232a
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
lea ebx, [ebx]
mov edx, ebx
sub edx, eax
mov eax, dword [esp + 0x20]
push edx
push 0xffffffffffffffff
push eax
call fcn.10131f00
add esp, 0xc
test eax, eax
jle 0x1013234d
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edi
push ebp
push edx
call fcn.101271e0
add esp, 0x10
cmp eax, 0x51
je 0x10132309
test eax, eax
jne 0x10132350
mov eax, dword [esp + 0x14]
cmp edi, eax
je 0x10132337
test eax, eax
je 0x1013234d
sub edi, eax
add ebp, eax
add dword [esp + 0x10], eax
call fcn.10132df0
mov ecx, dword [esi + 0xc4]
push ecx
mov ecx, dword [esi + 0xc0]
push ecx
push edx
push eax
call fcn.10132e20
add esp, 0x10
cmp eax, ebx
jle 0x101322c0
pop edi
pop esi
pop ebp
mov eax, 0x1c
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
add eax, edx
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
add esp, 8
ret
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x10133910
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x1013391f
jmp dword [ecx*4 + 0x10133974]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret

Function at 0x101353c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1a4]
test esi, esi
jne 0x101353d9
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.10132df0
push edx
push eax
call fcn.10132e20
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x19c], 0
je 0x10135426
mov eax, dword [ebx + 0xbc]
mov ecx, dword [ebx + 0xb8]
push eax
push ecx
call fcn.10132df0
push edx
push eax
call fcn.10132e20
mov ecx, dword [edi + 0x19c]
sub ecx, eax
add esp, 0x10
cmp esi, ecx
mov eax, ecx
jge 0x10135428
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x10135d60
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x101c2ca8]
mov edi, eax
add esp, 4
test edi, edi
jne 0x10135d85
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x10135dcc
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x10135dd0
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
mov dword [esp + 0x10], 0
test ebp, ebp
jbe 0x10135e2e
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
inc ebx
call edx
add esp, 0x18
sub ebp, 1
jne 0x10135df3
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x10135e71
lea esp, [esp]
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push 0x101a1b65
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x101a1b66
push eax
call ecx
mov eax, dword [esp + 0x20]
inc eax
add esp, 0x18
mov dword [esp + 8], eax
cmp eax, dword [esi + 0x10]
jb 0x10135e40
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x10135ef0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x10136780
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x5c
mov eax, dword [0x101c3584]
xor eax, esp
mov dword [esp + 0x58], eax
mov edx, dword [esp + 0x64]
push esi
mov esi, dword [esp + 0x64]
mov eax, edx
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 8], 0x67452301
mov dword [esp + 0xc], 0xefcdab89
mov dword [esp + 0x10], 0x98badcfe
mov dword [esp + 0x14], 0x10325476
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x101367d0
sub eax, edi
push eax
push edx
lea eax, [esp + 0x10]
push eax
call fcn.10136600
lea ecx, [esp + 0x14]
push ecx
push esi
call fcn.101366a0
mov ecx, dword [esp + 0x74]
add esp, 0x14
pop edi
pop esi
xor ecx, esp
call fcn.1013d581
add esp, 0x5c
ret
Function at 0x101378a0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
xor ecx, ecx
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
sete cl
mov ebp, ecx
test ebp, ebp
je 0x101378c4
mov edx, dword [eax + 8]
mov eax, dword [esi + 0xc]
push edx
push ebx
push 1
push edi
call eax
jmp 0x101378f5
cmp dword [esi + 8], 0
jne 0x101378e8
mov ecx, dword [eax + 8]
push 0x10176e64
push ecx
call fcn.101426e1
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x101378e8
pop edi
or eax, 0xffffffff
pop ebp
ret
mov edx, dword [esi + 8]
push edx
push ebx
push 1
push edi
call fcn.101404af
mov edi, eax
add esp, 0x10
test edi, edi
je 0x10137902
cmp edi, ebx
jbe 0x1013791b
test ebp, ebp
jne 0x10137915
mov eax, dword [esi + 8]
push eax
call fcn.1013e60c
add esp, 4
mov dword [esi + 8], ebp
mov ecx, dword [esi]
mov edx, dword [ecx]
mov dword [esi], edx
mov eax, edi
pop edi
pop ebp
ret
Function at 0x1013b090
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10162bc1
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push esi
push edi
mov eax, dword [0x101c3584]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x18], vtable.boost::exception.0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0xffffffff
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x70], edi
mov dword [esp + 0x10], str.bad_exception
call fcn.1013d683
mov dword [esp + 0x18], vtable.boost::exception_detail::bad_exception_.1.0
mov dword [esp + 0x2c], vtable.boost::exception_detail::bad_exception_.0
mov esi, 1
push esi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x74], esi
call fcn.1013ab60
test byte [0x101f55c8], 1
mov dword [esp + 0x40], str.class_boost::exception_ptr___cdecl_boost::exception_detail::get_static_exception_object_struct_boost::exception_detail::bad_exception___void_
mov dword [esp + 0x44], str.._boost_exception_detail_exception_ptr.hpp
mov dword [esp + 0x48], 0x80
jne 0x1013b1da
or dword [0x101f55c8], esi
push 0x2c
mov byte [esp + 0x70], 3
call fcn.1013d60d
add esp, 4
mov dword [esp + 0xc], eax
mov byte [esp + 0x6c], 4
cmp eax, edi
je 0x1013b16f
push esi
lea edx, [esp + 0x3c]
push edx
mov ecx, eax
call fcn.1013a970
jmp 0x1013b171
xor eax, eax
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 3
call fcn.1013ae20
mov ecx, dword [eax]
mov dword [0x101f55c0], ecx
mov eax, dword [eax + 4]
mov dword [0x101f55c4], eax
cmp eax, edi
je 0x1013b19b
add eax, 4
lock xadd dword [eax], esi
mov esi, dword [esp + 0x14]
cmp esi, edi
je 0x1013b1cd
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x1013b1cd
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1013b1cd
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
push 0x10167880
call fcn.1013db43
add esp, 4
mov eax, dword [0x101f55c0]
mov esi, dword [esp + 0x74]
mov dword [esi], eax
mov ecx, dword [0x101f55c4]
mov eax, ecx
mov dword [esi + 4], ecx
cmp eax, edi
je 0x1013b200
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
lea ecx, [esp + 0x38]
call fcn.1013a500
lea ecx, [esp + 0x2c]
mov dword [esp + 0x60], vtable.boost::exception_detail::clone_base.0
mov dword [esp + 0x6c], 0xffffffff
mov dword [esp + 0x18], vtable.boost::exception_detail::bad_exception_.1.0
mov dword [esp + 0x2c], vtable.std::bad_exception.0
call fcn.1013d750
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], vtable.boost::exception.0
cmp ecx, edi
je 0x1013b249
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov eax, esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x64
ret
Function at 0x1013b680
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x30]
push ecx
push 4
push eax
push 0x1013b5f0
push 0
push 0
call fcn.10141985
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x1013b6a9
pop edi
xor al, al
pop ebx
ret
mov edx, dword [edi]
push esi
add edx, 4
mov eax, 1
lock xadd dword [edx], eax
mov esi, dword [edi]
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x1013b6d0
cmp eax, 0xffffffff
je 0x1013b6d0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop edi
mov al, 1
pop ebx
ret