joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001f260
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov eax, 0x1019f2f4
xor esi, esi
call fcn.10019af0
add esp, 4
test al, al
je 0x1001f284
mov esi, 3
jmp 0x1001f326
push edi
mov eax, 0x1019f2f8
call fcn.10019af0
add esp, 4
test al, al
je 0x1001f2a0
mov esi, 2
jmp 0x1001f326
push edi
mov eax, 0x1019f2fc
call fcn.10019af0
add esp, 4
test al, al
je 0x1001f2b9
mov esi, 3
jmp 0x1001f326
push edi
mov eax, 0x1019f300
call fcn.10019af0
add esp, 4
test al, al
jne 0x1001f321
push edi
mov eax, 0x1019f304
call fcn.10019af0
add esp, 4
test al, al
je 0x1001f2e4
mov esi, 2
jmp 0x1001f326
push edi
mov eax, 0x1019f2e8
call fcn.10019af0
add esp, 4
test al, al
jne 0x1001f321
push edi
mov eax, 0x1019f2e0
call fcn.10019af0
add esp, 4
test al, al
je 0x1001f30f
mov esi, 3
jmp 0x1001f326
push edi
mov eax, 0x1019f2e4
call fcn.10019af0
add esp, 4
test al, al
je 0x1001f326
mov esi, 4
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
push 0
push 0x80
push esi
push 0
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp], eax
test eax, eax
je 0x1001f364
cmp eax, 0xffffffff
je 0x1001f364
push ebx
push 0
push eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp + 4], eax
mov al, bl
pop ebx
pop esi
pop ebp
ret 8
pop esi
xor al, al
pop ebp
ret 8

Function at 0x1001f800
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1015c538
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x101b0cd0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
movzx eax, byte [esp + 0x3c]
mov ecx, dword [ecx + 4]
neg eax
sbb eax, eax
and eax, 0x100
lea edx, [esp + 8]
push edx
add eax, 0x20119
push eax
push 0
push ecx
push closesocket
mov dword [esp + 0x1c], 0
mov dword [esp + 0x50], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1001f8b2
push str.CRegHelper::GetValueType
lea eax, [esp + 0x10]
call fcn.10018050
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegOpenKeyEx_GetLastError:_d_
lea eax, [esp + 0x14]
push 0xb4
push eax
call fcn.1001d2e0
add esp, 0x10
lea ecx, [esp + 0xc]
call fcn.10018140
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
add esp, 0x30
ret
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 4]
push 0
push 0
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x14]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
add esp, 0x30
ret
Function at 0x10020600
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10159b18
mov eax, dword fs:[0]
push eax
push ebp
push esi
push edi
mov eax, dword [0x101b0cd0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x3c]
xor edi, edi
mov dword [esp + 0x18], edi
cmp dword [ebx + 0x1a0], edi
jle 0x10020696
test edi, edi
jl 0x1002072a
cmp edi, dword [ebx + 0x1a0]
jge 0x1002072a
mov eax, dword [ebx + 0x19c]
mov esi, dword [eax + edi*4]
lea ecx, [esp + 0x20]
mov edx, esi
call fcn.10023460
test al, al
je 0x1002068d
test ebp, ebp
je 0x10020681
mov ecx, dword [esi + 0x78]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebp
je 0x10020681
cmp ecx, ebp
jne 0x1002068d
push esi
mov ecx, ebx
call fcn.100207f0
test al, al
jne 0x1002070a
inc edi
cmp edi, dword [ebx + 0x1a0]
jl 0x10020635
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], vtable.XStringA.0
test eax, eax
je 0x100206ce
mov ecx, dword [esp + 0x28]
inc ecx
imul ecx, dword [esp + 0x30]
push ecx
push 0
push eax
call fcn.10057070
mov edx, dword [esp + 0x30]
push edx
call fcn.10054ff5
add esp, 0x10
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x34]
test eax, eax
je 0x100206f3
mov ecx, dword [esp + 0x38]
lea edx, [ecx + ecx]
push edx
push 0
push eax
call fcn.10057070
mov eax, dword [esp + 0x40]
push eax
call fcn.1004698d
add esp, 0x10
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 0x20
lea ecx, [esp + 0x20]
call fcn.10018140
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 0x20
call fcn.100490c5
int3

Function at 0x10021f50
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x10158ad3
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x101b0cd0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
xor edi, edi
mov word [esi + 0xe], ax
mov dword [esp + 0x14], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], 0x400
mov byte [esp + 0x14], 1
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
cmp dword [esi + 0x10], edi
jne 0x10021fe3
push 0x14
call fcn.10046953
add esp, 4
cmp eax, edi
je 0x10021fdb
mov dword [eax], edi
mov dword [eax + 4], 0x10000
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
jmp 0x10021fdd
xor eax, eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x10026780
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1015c538
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x101b0cd0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push 1
mov dword [esp + 0x10], vtable.XStringA.0
mov dword [esp + 0x20], 1
call fcn.10054f2b
xor ecx, ecx
add esp, 4
mov dword [esp + 0x10], eax
mov byte [eax], cl
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], ecx
lea eax, [esp + 0xc]
cmp byte [esp + 0x3c], cl
je 0x100267ec
push str.SF1_r_n
jmp 0x100267f1
push str.SF0_r_n
call fcn.10018690
add esp, 4
sub esp, 0x1c
lea ebx, [esp + 0x28]
mov eax, esp
mov dword [esp + 0x58], esp
call fcn.10017fc0
mov esi, dword [esp + 0x54]
add esi, 4
call fcn.1001eda0
mov eax, dword [esp + 0x14]
cdq
idiv dword [esp + 0x1c]
mov ecx, ebx
mov esi, eax
call fcn.10018140
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x28
ret 8
Function at 0x1002b6c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1015b6f1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x101b0cd0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [esp + 0x40]
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0xc], 0
call fcn.1002c2e0
push 0x101a0338
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 1
push ecx
mov byte [esp + 0x18], 1
call fcn.1002c6c0
push 0x101a0348
lea edx, [esp + 0x10]
push edx
call fcn.1002c6c0
mov eax, dword [esp + 0x44]
push eax
push esi
lea ecx, [esp + 0x14]
call fcn.1002d2c0
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
mov byte [esp + 0x38], 0
call fcn.1002c480
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret

Function at 0x1002b760
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1015b6f1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x101b0cd0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [esp + 0x40]
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0xc], 0
call fcn.1002c2e0
push 0x101a0338
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 1
push ecx
mov byte [esp + 0x18], 1
call fcn.1002c6c0
push 0x101a0348
lea edx, [esp + 0x10]
push edx
call fcn.1002c6c0
mov eax, dword [esp + 0x44]
push eax
push esi
lea ecx, [esp + 0x14]
call fcn.1002d3f0
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
mov byte [esp + 0x38], 0
call fcn.1002c480
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret

Function at 0x1002bd10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1015b6b1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x101b0cd0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [esp + 0x40]
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0xc], 0
call fcn.1002c2e0
push 0x101a0358
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 1
push ecx
mov byte [esp + 0x18], 1
call fcn.1002c6c0
push esi
lea edx, [esp + 0x10]
push edx
call fcn.1002cc10
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
mov byte [esp + 0x38], 0
call fcn.1002c480
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret
Function at 0x1002c4e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
xor edi, edi
cmp dword [ebp + 0x14], edi
jle 0x1002c6b4
push ebx
push esi
add ebp, 8
mov ebx, vtable.XStringA.0
jmp 0x1002c500
mov ecx, ebp
call fcn.1004a223
mov esi, eax
cmp esi, edi
je 0x1002c6a5
mov dword [esi + 0x74], ebx
mov eax, dword [esi + 0x78]
cmp eax, edi
je 0x1002c53d
mov ecx, dword [esi + 0x7c]
inc ecx
imul ecx, dword [esi + 0x84]
push ecx
push edi
push eax
call fcn.10057070
mov edx, dword [esi + 0x78]
push edx
call fcn.10054ff5
add esp, 0x10
mov dword [esi + 0x78], edi
mov eax, dword [esi + 0x88]
cmp eax, edi
je 0x1002c56c
mov ecx, dword [esi + 0x8c]
add ecx, ecx
push ecx
push edi
push eax
call fcn.10057070
mov edx, dword [esi + 0x88]
push edx
call fcn.1004698d
add esp, 0x10
mov dword [esi + 0x88], edi
mov dword [esi + 0x58], ebx
mov eax, dword [esi + 0x5c]
cmp eax, edi
je 0x1002c595
mov ecx, dword [esi + 0x60]
inc ecx
imul ecx, dword [esi + 0x68]
push ecx
push edi
push eax
call fcn.10057070
mov edx, dword [esi + 0x5c]
push edx
call fcn.10054ff5
add esp, 0x10
mov dword [esi + 0x5c], edi
mov eax, dword [esi + 0x6c]
cmp eax, edi
je 0x1002c5b8
mov ecx, dword [esi + 0x70]
add ecx, ecx
push ecx
push edi
push eax
call fcn.10057070
mov edx, dword [esi + 0x6c]
push edx
call fcn.1004698d
add esp, 0x10
mov dword [esi + 0x6c], edi
mov dword [esi + 0x3c], ebx
mov eax, dword [esi + 0x40]
cmp eax, edi
je 0x1002c5e1
mov ecx, dword [esi + 0x44]
inc ecx
imul ecx, dword [esi + 0x4c]
push ecx
push edi
push eax
call fcn.10057070
mov edx, dword [esi + 0x40]
push edx
call fcn.10054ff5
add esp, 0x10
mov dword [esi + 0x40], edi
mov eax, dword [esi + 0x50]
cmp eax, edi
je 0x1002c604
mov ecx, dword [esi + 0x54]
add ecx, ecx
push ecx
push edi
push eax
call fcn.10057070
mov edx, dword [esi + 0x50]
push edx
call fcn.1004698d
add esp, 0x10
mov dword [esi + 0x50], edi
mov dword [esi + 0x20], ebx
mov eax, dword [esi + 0x24]
cmp eax, edi
je 0x1002c62d
mov ecx, dword [esi + 0x28]
inc ecx
imul ecx, dword [esi + 0x30]
push ecx
push edi
push eax
call fcn.10057070
mov edx, dword [esi + 0x24]
push edx
call fcn.10054ff5
add esp, 0x10
mov dword [esi + 0x24], edi
mov eax, dword [esi + 0x34]
cmp eax, edi
je 0x1002c650
mov ecx, dword [esi + 0x38]
add ecx, ecx
push ecx
push edi
push eax
call fcn.10057070
mov edx, dword [esi + 0x34]
push edx
call fcn.1004698d
add esp, 0x10
mov dword [esi + 0x34], edi
mov dword [esi + 4], ebx
mov eax, dword [esi + 8]
cmp eax, edi
je 0x1002c679
mov ecx, dword [esi + 0xc]
inc ecx
imul ecx, dword [esi + 0x14]
push ecx
push edi
push eax
call fcn.10057070
mov edx, dword [esi + 8]
push edx
call fcn.10054ff5
add esp, 0x10
mov dword [esi + 8], edi
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x1002c69c
mov ecx, dword [esi + 0x1c]
add ecx, ecx
push ecx
push edi
push eax
call fcn.10057070
mov edx, dword [esi + 0x18]
push edx
call fcn.1004698d
add esp, 0x10
mov dword [esi + 0x18], edi
push esi
call fcn.1004698d
add esp, 4
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x14], edi
jg 0x1002c500
pop esi
pop ebx
pop edi
pop ebp
ret 4
Function at 0x1002d3f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1015a128
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101b0cd0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push 0x1019bc42
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], ebx
call fcn.10018050
mov dword [esp + 0x3c], ebx
cmp dword [esi + 0x14], ebx
je 0x1002d4f2
mov ebp, dword [esi + 0xc]
cmp ebp, ebx
je 0x1002d4f2
mov edi, dword [esp + 0x28]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x78]
push eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 4]
push ecx
call fcn.100557b0
add esp, 8
test eax, eax
jne 0x1002d4e7
mov eax, dword [esp + 0x1c]
mov ecx, 0x1019bc42
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1002d491
cmp dl, bl
je 0x1002d48d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1002d491
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x1002d471
xor eax, eax
jmp 0x1002d496
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x1002d4b0
cmp edi, ebx
jle 0x1002d4b0
push str.rwa
lea eax, [esp + 0x1c]
call fcn.10018600
mov edi, dword [esp + 0x28]
mov eax, dword [esi + 0xc]
cdq
idiv dword [esi + 0x14]
test eax, eax
je 0x1002d4e7
mov edx, dword [esi + 8]
cmp edx, ebx
je 0x1002d4e7
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1002d4c7
sub eax, esi
imul eax, edi
cmp eax, ebx
jle 0x1002d4e7
mov edi, eax
push edx
lea eax, [esp + 0x1c]
call fcn.10018600
mov edi, dword [esp + 0x28]
mov ebp, dword [ebp]
cmp ebp, ebx
jne 0x1002d449
mov esi, dword [esp + 0x44]
lea ebx, [esp + 0x18]
mov eax, esi
call fcn.10017fc0
mov ecx, ebx
call fcn.10018140
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8

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

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp byte [ebp + 8], 0
push esi
push edi
jne 0x1002d877
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
call edi
mov ebx, eax
call edi
sub eax, ebx
cmp eax, 0xa
jge 0x1002d8c8
lea esp, [esp]
cmp byte [ebp + 8], 0
je 0x1002d8c8
mov eax, dword [esp + 0x1c]
push eax
call fcn.1002ec60
mov ecx, dword [ebp + 4]
push eax
call fcn.10030140
mov esi, eax
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x1002d8b7
cmp esi, eax
jge 0x1002d8c8
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
sub eax, ebx
cmp eax, 0xa
jl 0x1002d890
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x1002ece0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10158a06
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x101b0cd0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
push 0xa
lea ecx, [esi + 0x10]
mov dword [esi], vtable.CPortListMng.0
call fcn.1004a2c2
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esi + 0x2c], vtable.CMap_int__int__class_CPortInterface__class_CPortInterface_.0
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], 0x11
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], 0xa
mov byte [esp + 0x14], 1
mov dword [esi + 4], 0x64
mov dword [esi + 8], ebx
mov byte [esi + 0xc], bl
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x1002ed62
push eax
call fcn.1004698d
add esp, 4
mov dword [esi + 0x30], ebx
xor ecx, ecx
mov eax, 0x80
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10046982
add esp, 4
mov dword [esi + 0x30], eax
cmp eax, ebx
jne 0x1002ed8c
call fcn.100490c5
push 0x200
push ebx
push eax
call fcn.10057070
add esp, 0xc
mov dword [esi + 0x34], 0x80
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x1002f650
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1015a160
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x101b0cd0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, ecx
push str.CPortListMng::SetConnectMode
lea eax, [esp + 0x10]
call fcn.10018050
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0
call fcn.1002ee70
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x30], 0xffffffff
call fcn.10018140
test esi, esi
je 0x1002f6f7
push str.CPortListMng::SetConnectMode
lea eax, [esp + 0x10]
mov dword [esi + 0xac], 0
call fcn.10018050
push 0
push ebx
push str.__portId_:__d__connectMode_:__d_
lea ecx, [esp + 0x18]
push 0x140
push ecx
mov ecx, ebx
mov dword [esp + 0x44], 1
call fcn.1001cc00
add esp, 0x14
lea ecx, [esp + 0xc]
call fcn.10018140
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x28
ret 4
Function at 0x1002f710
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1015a160
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x101b0cd0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, ecx
push str.CPortListMng::SetUseReadThread
lea eax, [esp + 0x10]
call fcn.10018050
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0
call fcn.1002ee70
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x30], 0xffffffff
call fcn.10018140
test esi, esi
je 0x1002f7b4
push str.CPortListMng::SetUseReadThread
lea eax, [esp + 0x10]
mov byte [esi + 0xa0], 0
call fcn.10018050
push 0
push ebx
push str.__portId_:__d__useThread_:__d_
lea ecx, [esp + 0x18]
push 0x161
push ecx
mov ecx, ebx
mov dword [esp + 0x44], 1
call fcn.1001cc00
add esp, 0x14
lea ecx, [esp + 0xc]
call fcn.10018140
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x28
ret 4

Function at 0x1002f7d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1015cd68
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x101b0cd0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
push str.CPortListMng::GetUseReadThread
lea eax, [esp + 0xc]
call fcn.10018050
mov eax, dword [esp + 0x34]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call fcn.1002ee70
lea ecx, [esp + 8]
mov esi, eax
call fcn.10018140
test esi, esi
jne 0x1002f83c
xor al, al
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x28
ret 4
mov al, byte [esi + 0xa0]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x28
ret 4

Function at 0x1002f860
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1015a160
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x101b0cd0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push str.CPortListMng::SetUseOverlappedIO
lea eax, [esp + 0x10]
call fcn.10018050
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x10]
mov ebx, edi
mov dword [esp + 0x34], 0
call fcn.1002ee70
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x30], 0xffffffff
call fcn.10018140
test esi, esi
je 0x1002f909
mov bl, byte [esp + 0x3c]
push str.CPortListMng::SetUseOverlappedIO
lea eax, [esp + 0x10]
mov byte [esi + 0xa1], bl
call fcn.10018050
movzx ecx, bl
push ecx
push edi
push str.__portId_:__d__useOverlapped_:__d_
lea edx, [esp + 0x18]
push 0x178
push edx
mov ecx, edi
mov dword [esp + 0x44], 1
call fcn.1001cc00
add esp, 0x14
lea ecx, [esp + 0xc]
call fcn.10018140
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x28
ret 8
Function at 0x1002f920
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1015a160
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x101b0cd0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, ecx
push str.CPortListMng::SetUseWriteNullByte
lea eax, [esp + 0x10]
call fcn.10018050
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0
call fcn.1002ee70
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x30], 0xffffffff
call fcn.10018140
test esi, esi
je 0x1002f9c4
push str.CPortListMng::SetUseWriteNullByte
lea eax, [esp + 0x10]
mov byte [esi + 0xa2], 0
call fcn.10018050
push 0
push ebx
push str.__portId_:__d__useWriteNullByte_:__d_
lea ecx, [esp + 0x18]
push 0x184
push ecx
mov ecx, ebx
mov dword [esp + 0x44], 1
call fcn.1001cc00
add esp, 0x14
lea ecx, [esp + 0xc]
call fcn.10018140
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x28
ret 4

Function at 0x10030050
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1015a160
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x101b0cd0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, ecx
push str.CPortListMng::Read
lea eax, [esp + 0x10]
call fcn.10018050
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0
call fcn.1002ee70
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x30], 0xffffffff
call fcn.10018140
test esi, esi
jne 0x100300c8
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x28
ret 8
mov ecx, dword [esp + 0x3c]
push 0x5dc
push ecx
push esi
mov esi, 1
call fcn.10031650
mov esi, eax
push str.CPortListMng::Read
lea eax, [esp + 0x10]
call fcn.10018050
push esi
push 1
push 0
push ebx
push str.__portId_:__d__deviceId_:__d__request_:__d__ret_:__d_
lea edx, [esp + 0x20]
push 0x2d0
push edx
mov ecx, ebx
mov dword [esp + 0x4c], 1
call fcn.1001cc00
add esp, 0x1c
lea ecx, [esp + 0xc]
call fcn.10018140
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x28
ret 8