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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x100a94c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x418]
push 0x400
push 0
push eax
mov esi, ecx
call fcn.10056280
add esp, 0xc
mov dword [ebp - 8], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movups xmmword [ebp - 0x18], xmm0
call fcn.10040e60
push dword [esi + 0x80]
push 0x95
push str.AdbSocketConnect::ReadFromClient
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x418]
push str._s_t__d__d___INFO____s:_d__readFromClient_with_client_id___d_n
push eax
call fcn.10008e20
lea eax, [ebp - 0x418]
add esp, 0x20
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100314a5
sub eax, edx
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.10040fb0
add esp, 8
push 0
push dword [ebp + 0xc]
push edi
push dword [esi + 0x80]
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10052bc3
mov esp, ebp
pop ebp
ret 8

Function at 0x10031cf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100a94c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x1c], ebx
push edi
mov dword [ebp - 0x14], 0
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x10031dda
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10031dda
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x10031d4d
cmp dword [ebp - 0x18], 0
jbe 0x10031d4d
push 2
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
shr eax, 1
test al, 1
lea eax, [ebp - 0x14]
je 0x10031db2
lea ebx, [esi + 0x174]
push ebx
push eax
push edi
push dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10031d96
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x10031d96
mov edi, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push 1
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [esi + 8]
call edi
test eax, eax
je 0x10031d86
mov eax, dword [ebp - 0x14]
add dword [esi + 0x134], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052bc3
mov esp, ebp
pop ebp
ret 0xc
push 0
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x14]
add dword [esi + 0x134], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052bc3
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10052bc3
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10031df0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x100a94c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x10031f92
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10031f92
push 0
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x420], 0
push ecx
push eax
mov dword [ebp - 0x41c], 0
call dword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x10031e5e
cmp dword [ebp - 0x420], 0
jbe 0x10031e5e
push 1
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
shr eax, 1
test al, 1
je 0x10031eae
lea eax, [edi + 0x188]
push eax
lea eax, [ebp - 0x41c]
push eax
push esi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10031ea0
call ebx
cmp eax, 0x3e5
je 0x10031ea0
mov dword [ebp - 0x41c], 0
jmp 0x10031eda
add dword [edi + 0x138], esi
mov eax, dword [ebp - 0x41c]
jmp 0x10031ed2
push 0
lea eax, [ebp - 0x41c]
push eax
push esi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x41c]
add dword [edi + 0x138], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10031f94
call ebx
mov esi, eax
lea eax, [ebp - 0x420]
push 0
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push 0x400
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.10056280
add esp, 0xc
mov dword [ebp - 8], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movups xmmword [ebp - 0x18], xmm0
call fcn.10040e60
push dword [ebp - 0x420]
push esi
push 0x20c
push str.CnComm::WritePort
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x418]
push str._s_t__d__d___ERROR____s:_d__GetLastError__d_dwError___d_n
push eax
call fcn.10008e20
lea ecx, [ebp - 0x418]
add esp, 0x24
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10031f60
sub ecx, edx
lea eax, [ebp - 0x418]
push ecx
push eax
call fcn.10040fb0
mov eax, dword [ebp - 0x41c]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052bc3
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10052bc3
mov esp, ebp
pop ebp
ret 8
Function at 0x10032100
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 0x144], 0
jne 0x1003223a
cmp dword [esi + 0x150], 0
jne 0x1003223a
cmp dword [esi + 0x15c], 0
jne 0x1003223a
mov eax, dword [esi + 4]
push edi
mov edi, eax
mov byte [esi + 0x13c], 1
shr edi, 4
and edi, 4
test al, 1
je 0x10032164
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x10033b80
push 0
push 0
call fcn.1006d308
add esp, 0x18
mov dword [esi + 0x144], eax
test byte [esi + 4], 0x10
je 0x10032187
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0x10033bc0
push 0
push 0
call fcn.1006d308
add esp, 0x18
mov dword [esi + 0x150], eax
test byte [esi + 4], 0x20
je 0x100321aa
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push 0x10033be0
push 0
push 0
call fcn.1006d308
add esp, 0x18
mov dword [esi + 0x15c], eax
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test cl, 1
je 0x100321d4
mov eax, dword [ebp - 4]
mov dword [esi + 0x148], eax
mov eax, dword [esi + 0x144]
test eax, eax
je 0x1003220c
test cl, cl
jns 0x100321d4
push 1
push eax
call edi
mov ecx, dword [esi + 4]
test cl, 0x10
je 0x100321f7
mov eax, dword [ebp - 8]
mov dword [esi + 0x154], eax
test eax, eax
je 0x1003220c
test cl, cl
jns 0x100321f7
push 1
push dword [esi + 0x150]
call edi
mov ecx, dword [esi + 4]
test cl, 0x20
je 0x10032230
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x160], eax
test eax, eax
jne 0x10032222
push 0x1f4
mov ecx, esi
call fcn.10032250
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
test cl, cl
jns 0x10032230
push 1
push dword [esi + 0x15c]
call edi
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10032250
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x144], 0
jne 0x10032278
cmp dword [esi + 0x150], 0
jne 0x10032278
cmp dword [esi + 0x15c], 0
jne 0x10032278
xor al, al
pop esi
pop ebp
ret 4
mov eax, dword [esi + 4]
and eax, 0x208
push edi
cmp eax, 0x208
jne 0x100322a4
cmp dword [esi + 0x114], 0
je 0x100322a4
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
call edi
cmp dword [esi + 0x114], 0
jne 0x10032297
mov eax, dword [esi + 4]
shr eax, 1
mov byte [esi + 0x13c], 0
test al, 1
je 0x100322bf
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetCommMask]
cmp dword [esi + 0x144], 0
mov eax, dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateThread]
je 0x1003231e
push dword [esi + 0x14c]
call eax
push dword [ebp + 8]
push dword [esi + 0x144]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10032307
push 0
push dword [esi + 0x144]
call ebx
test eax, eax
je 0x10032398
push dword [esi + 0x144]
call edi
mov eax, dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [esi + 0x144], 0
cmp dword [esi + 0x150], 0
je 0x10032362
push dword [esi + 0x158]
call eax
push dword [ebp + 8]
push dword [esi + 0x150]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10032350
push 0
push dword [esi + 0x150]
call ebx
test eax, eax
je 0x10032398
push dword [esi + 0x150]
call edi
mov dword [esi + 0x150], 0
cmp dword [esi + 0x15c], 0
je 0x100323b3
push dword [esi + 0x164]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [ebp + 8]
push dword [esi + 0x15c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100323a1
push 0
push dword [esi + 0x15c]
call ebx
test eax, eax
jne 0x100323a1
pop ebx
pop edi
xor al, al
pop esi
pop ebp
ret 4
push dword [esi + 0x15c]
call edi
mov dword [esi + 0x15c], 0
pop ebx
pop edi
mov al, 1
pop esi
pop ebp
ret 4
Function at 0x10037780
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x538
mov eax, dword [0x100a94c0]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str.C:UsbDeamon]
mov ax, word [0x1009d33c]
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x34]
movups xmmword [ebp - 0x34], xmm0
push eax
movq xmm0, qword [0x1009d334]
movq qword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x104
lea eax, [ebp - 0x138]
push 0
push eax
call fcn.10056280
lea ecx, [ebp - 0x138]
call fcn.10043600
push 0x400
lea eax, [ebp - 0x538]
push 0
push eax
call fcn.10056280
add esp, 0x18
mov dword [ebp - 8], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movups xmmword [ebp - 0x18], xmm0
call fcn.10040e60
lea eax, [ebp - 0x138]
push eax
push 0xc4
push str.StartUsbEventMonitor
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x538]
push str._s_t__d__d___INFO____s:_d__StartUsbEventMonitor_with_path____s__n
push eax
call fcn.10008e20
lea eax, [ebp - 0x538]
add esp, 0x20
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10037850
sub eax, edx
push eax
lea eax, [ebp - 0x538]
push eax
call fcn.10040fb0
add esp, 8
call fcn.100374e0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052bc3
mov esp, ebp
pop ebp
ret 4
Function at 0x10040f20
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
push 0x1009e070
push str.C:logsesuiteDll.log
mov edi, edx
call fcn.1006650f
mov esi, eax
add esp, 8
test esi, esi
je 0x10040f69
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10040f47
push esi
sub ecx, edx
push 1
push ecx
push edi
call fcn.1006ca56
push esi
call fcn.1006679b
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, str.file__
mov ecx, 0x100ad4b0
call fcn.10027110
mov edx, str.C:logsesuiteDll.log
mov ecx, eax
call fcn.10027110
mov edx, str.__not_exist__create_first_
mov ecx, eax
call fcn.10027110
push eax
call fcn.100273b0
add esp, 4
push str.C:logs
call fcn.1006e1af
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100423e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x100a94c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
test edi, edi
je 0x1004255c
test ebx, ebx
je 0x1004255c
cmp edi, 0xffffffff
je 0x100425da
push dword [ebp + 8]
call fcn.10042a10
add esp, 4
cmp eax, 0xffffffff
je 0x100425da
xor esi, esi
nop word [eax + eax]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x200
lea eax, [ebp - 0x218]
mov dword [ebp - 0x41c], 0x200
push 0
push eax
call fcn.10056280
add esp, 0xc
lea eax, [ebp - 0x41c]
push 0
push eax
push 0x200
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10042480
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100424ad
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x1004249b
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
call fcn.10055d00
add esp, 0xc
push 0xf
push edi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
cmp dword [ebp - 0x41c], 0
jg 0x100424ca
inc esi
cmp esi, 2
jl 0x10042430
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052bc3
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.10056280
add esp, 0xc
mov dword [ebp - 8], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movups xmmword [ebp - 0x18], xmm0
call fcn.10040e60
push ebx
push 0x18d
push str.CommunicationStream100
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x418]
push str._s_t__d__d___INFO____s:_d__call__CommunicationStream100_Ok_return_recvStream___s_n
push eax
call fcn.10008e20
lea ecx, [ebp - 0x418]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10042530
sub ecx, edx
lea eax, [ebp - 0x418]
push ecx
push eax
call fcn.10040fb0
add esp, 8
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052bc3
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.10056280
add esp, 0xc
mov dword [ebp - 8], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movups xmmword [ebp - 0x18], xmm0
call fcn.10040e60
push 0x182
push str.CommunicationStream100
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x418]
push str._s_t__d__d___ERROR____s:_d__handle_or_recvStream_is_NULL_n
push eax
call fcn.10008e20
lea ecx, [ebp - 0x418]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100425c1
sub ecx, edx
lea eax, [ebp - 0x418]
push ecx
push eax
call fcn.10040fb0
add esp, 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10052bc3
mov esp, ebp
pop ebp
ret
Function at 0x100428f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
mov eax, dword [0x100a94c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edi, dword [ebp + 0xc]
cmp esi, 0xffffffff
je 0x1004294d
test esi, esi
je 0x1004294d
test ebx, ebx
je 0x1004294d
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 0x614]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push 0
lea eax, [ebp - 0x618]
push eax
push dword [ebp + 8]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10042960
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052bc3
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
je 0x100429f0
push 0x600
lea eax, [ebp - 0x604]
mov dword [ebp - 0x614], 0x600
push 0
push eax
call fcn.10056280
add esp, 0xc
lea eax, [ebp - 0x614]
push 0
push eax
push 0x600
lea eax, [ebp - 0x604]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100429cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052bc3
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x614]
test eax, eax
je 0x100429e7
push eax
lea eax, [ebp - 0x604]
push eax
push edi
call fcn.10055d00
add esp, 0xc
push 0xf
push esi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10052bc3
mov esp, ebp
pop ebp
ret

Function at 0x10043600
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100a94c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x20c]
mov ebx, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea edx, [ebp - 0x20c]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10043633
sub edx, ecx
sar edx, 1
lea edi, [edx + 1]
cmp edi, 0x3fffffff
jg 0x10043680
add edi, edi
mov eax, edi
call fcn.10083430
mov esi, esp
test esi, esi
je 0x10043680
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
mov byte [esi], 0
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb edx, edx
and edx, esi
jmp 0x10043682
xor edx, edx
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10043687
sub ecx, esi
push ecx
push edx
push 0x104
push ebx
call fcn.10065302
add esp, 0x10
lea esp, [ebp - 0x218]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052bc3
mov esp, ebp
pop ebp
ret
Function at 0x10044e60
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008597f
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100a94c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], 0
lea ecx, [ebx + 0x70]
mov dword [ebx], 0x1009f098
call fcn.1003fb40
mov dword [ebp - 4], 0
lea esi, [ebx + 0x10]
mov eax, dword [ebx]
push 0
push esi
mov dword [ebp - 0x18], 1
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], esi
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov ecx, dword [eax + 4]
add ecx, ebx
call fcn.1003fc80
mov dword [ebp - 4], 2
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], esi
lea eax, [ecx - 0x70]
mov dword [ecx + ebx - 4], eax
mov ecx, esi
call fcn.1003fbb0
lea eax, [ebx + 0x10]
lea ebx, [eax + 4]
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [eax + 0xc], ebx
lea ecx, [eax + 0x18]
mov byte [eax + 0x48], 0
lea esi, [eax + 8]
mov byte [eax + 0x3d], 0
lea edi, [eax + 0x14]
mov dword [eax + 0x10], esi
lea edx, [eax + 0x24]
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x1c]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov ebx, dword [ebp - 0x14]
mov dword [edi], 0
mov dword [edx], 0
mov dword [ebx + 0x4c], 0
mov eax, dword [0x100ae178]
mov ecx, dword [0x100ae17c]
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x38], 0
mov byte [ebp - 4], 3
cmp dword [ebx + 0x4c], 0
jne 0x10045017
push 0x40
push 0x21
push str.dllconfig.json
call fcn.10054b08
add esp, 0xc
test eax, eax
je 0x10045017
push 1
push eax
mov ecx, ebx
call fcn.100453c0
mov eax, dword [ebx + 0x34]
mov esi, dword [eax + 4]
mov ecx, esi
mov dword [ebp - 0x1c], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 4
push eax
call fcn.100455b0
add esp, 4
mov ecx, ebx
push eax
call fcn.10045260
test esi, esi
je 0x10045000
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x10045000
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [ebp - 0x10]
push 0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, esi
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10028860
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1004cb8f
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov edx, ecx
xor eax, eax
mov ecx, dword [ebp + 8]
inc eax
push edi
xor edi, edi
mov dword [ebp - 8], edx
inc edi
mov dword [ebp - 4], eax
lea ebx, [ecx + 0xc]
cmp dword [ecx + 8], edi
jle 0x1004cc0b
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1004cbd0
mov eax, dword [edx + 0x10]
cmp dword [eax + edi*8 + 4], esi
je 0x1004cbd0
mov eax, dword [ebx]
cmp dword [eax + edi*4], 0
je 0x1004cbfe
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x1004cc01
mov eax, dword [ebx]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1004cbf8
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x100874e0]
mov ecx, dword [ebp - 0xc]
call esi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx]
and dword [eax + edi*4], 0
mov eax, dword [ebp - 4]
inc edi
cmp edi, dword [ecx + 8]
jl 0x1004cbb4
test eax, eax
je 0x1004cc52
lea esi, [edx + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edi, dword [ebp + 8]
add ecx, 0x14
push edi
call fcn.1004ce83
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x100874e0]
mov ecx, edi
call esi
mov eax, dword [ebp - 8]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8