joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001541a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100154b7
push ebx
push esi
call fcn.100153e3
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10015377
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10015464
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100154b6
push edi
push eax
call fcn.100163d5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10015484
call fcn.10013f41
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100154b5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10015377
add esp, 0x20
test eax, eax
jne 0x100154a3
push edi
call fcn.10013f41
jmp 0x100154ab
push ebx
call fcn.10013f41
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10015724
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001d348
push 0x1001d340
push str.FlsAlloc
push 0x1f
call fcn.10015640
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015758
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001b150]
call esi
jmp 0x1001575e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100157a2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001d358
push 0x1001d350
push str.FlsGetValue
push 0x21
call fcn.10015640
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100157d9
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001b150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100157e1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001d360
push 0x1001d358
push str.FlsSetValue
push 0x22
call fcn.10015640
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001581b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001b150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001ad40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001ad6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001ad6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4282a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0
Function at 0x60002430
Capabilities:
Accept command line arguments

Disassembly:
push 0x54
mov eax, 0x6001dfdd
call fcn.6001adcc
mov eax, dword fs:[0x2c]
mov ecx, dword [0x60030380]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x60], edi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x6002e1d8]
cmp eax, dword [ecx + 4]
jg 0x6000258f
xor ebx, ebx
inc ebx
cmp byte [0x6002e1dc], 0
jne 0x600024d3
and dword [ebp - 0x5c], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.kernel32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x600024cd
xor edi, edi
cmp dword [ebp - 0x5c], edi
jle 0x600024c3
xor eax, eax
push dword [esi + eax*4]
lea ecx, [ebp - 0x28]
call fcn.600103f0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
mov ecx, 0x6002e1d0
call fcn.600103f0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.60002111
inc edi
movzx eax, di
cmp eax, dword [ebp - 0x5c]
jl 0x60002492
push esi
call dword [sym.imp.kernel32.dll_LocalFree]
mov edi, dword [ebp - 0x60]
mov byte [0x6002e1dc], bl
push edi
lea eax, [ebp - 0x58]
push 0x600210d4
push eax
call fcn.600103f0
push edi
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 2
push 0x600210d8
push eax
call fcn.600103f0
add esp, 0x18
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 3
mov edi, 0x6002e1d0
push eax
mov ecx, edi
call fcn.600103f0
jmp 0x6000255d
lea ecx, [ebp - 0x5c]
call fcn.60002207
lea ecx, [ebp - 0x58]
mov esi, eax
call fcn.60002dec
push eax
mov ecx, esi
call fcn.60002dec
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x60002577
lea ecx, [ebp - 0x40]
call fcn.60002dec
push eax
mov ecx, esi
call fcn.60002dec
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x60002577
lea ecx, [ebp - 0x5c]
call fcn.60002228
lea eax, [ebp - 0x60]
mov ecx, edi
push eax
call fcn.600103f0
push eax
lea ecx, [ebp - 0x5c]
call fcn.600103f0
test al, al
jne 0x60002511
xor bl, bl
lea ecx, [ebp - 0x40]
call fcn.60002111
lea ecx, [ebp - 0x58]
call fcn.60002111
mov al, bl
call fcn.6001ad76
ret
mov esi, 0x6002e1d8
push esi
call fcn.600103f0
cmp dword [0x6002e1d8], 0xffffffff
pop ecx
jne 0x60002462
and dword [ebp - 4], 0
mov ecx, 0x6002e1d0
call fcn.600103f0
push 0x6001fa60
call fcn.600103f0
or dword [ebp - 4], 0xffffffff
push esi
call fcn.600103f0
pop ecx
pop ecx
jmp 0x60002462

Function at 0x600039f8
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x6002c028]
call dword [sym.imp.kernel32.dll_TlsGetValue]
add eax, 4
ret
Function at 0x60003e19
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
push dword [0x6002c024]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
jne 0x60003e6f
mov edi, 0x23ac
push edi
call fcn.600103f0
mov esi, eax
pop ecx
test esi, esi
jne 0x60003e44
mov eax, 0x40000002
jmp 0x60003e95
push edi
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push esi
push dword [0x6002c024]
call dword [sym.imp.kernel32.dll_TlsSetValue]
test eax, eax
jne 0x60003e68
mov eax, 0x40000001
jmp 0x60003e95
push esi
call fcn.60003a51
pop ecx
call fcn.600103f0
cmp word [0x6002e284], 0
mov esi, eax
jne 0x60003e93
call fcn.6000c2b8
mov dword [0x6002e288], eax
xor eax, eax
inc eax
mov word [0x6002e284], ax
mov eax, esi
pop edi
pop esi
ret

Function at 0x6000418c
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push str.GlobalARM_Update_Mutex
push 0
push 0x100000
call dword [sym.imp.kernel32.dll_OpenMutexW]
test eax, eax
je 0x600041ad
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
inc eax
ret
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x600041a9
xor eax, eax
ret

Function at 0x600041bb
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push str.GlobalAcro_Update_Mutex
push 0
push 0x100000
call dword [sym.imp.kernel32.dll_OpenMutexW]
test eax, eax
je 0x600041dc
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
inc eax
ret
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x600041d8
xor eax, eax
ret
Function at 0x600066e3
Capabilities:
Print debug messages

Disassembly:
push 0x50
mov eax, 0x6001e3f2
call fcn.6001adcc
cmp byte [0x6002e2a1], 0
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
jne 0x60006814
push eax
lea ecx, [ebp - 0x28]
mov byte [0x6002e2a1], 1
call fcn.600103f0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0
push str.___ipc_rdr_channel
call fcn.600103f0
mov esi, eax
cmp esi, 0xffffffff
je 0x6000680c
add esi, 0x13
lea ecx, [ebp - 0x28]
push esi
push str.___ipc_co_channel
call fcn.600103f0
mov edi, eax
cmp edi, 0xffffffff
je 0x6000680c
push 0x60021328
lea ecx, [ebp - 0x40]
call fcn.600103f0
sub edi, esi
mov byte [ebp - 4], 1
push edi
push esi
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.600103f0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.600103f0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.60002111
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.600103f0
mov esi, eax
pop ecx
pop ecx
cmp esi, 0xffffffff
jne 0x600067a6
push str.___Sandbox_IPC_ComputeOnly_Client_connection_Failed
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
jmp 0x600067f6
test esi, esi
je 0x600067f6
push 0x60023618
push 0x18
call fcn.600103f0
pop ecx
mov edx, eax
pop ecx
mov dword [ebp - 0x5c], edx
xor eax, eax
mov byte [ebp - 4], 3
test edx, edx
je 0x600067d5
push 6
pop ecx
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, edx
call fcn.600103f0
mov byte [ebp - 4], 1
mov dword [0x600302f8], eax
test eax, eax
je 0x600067ec
push esi
mov ecx, eax
call fcn.600103f0
jmp 0x600067f6
push 0
push esi
call fcn.600103f0
pop ecx
pop ecx
cmp dword [0x600302f8], 0
lea ecx, [ebp - 0x40]
setne byte [0x6002e2a0]
call fcn.60002111
lea ecx, [ebp - 0x28]
call fcn.60002111
mov al, byte [0x6002e2a0]
call fcn.6001ad76
ret 8
Function at 0x60006719
Capabilities:
Print debug messages

Disassembly:
push 0x50
mov eax, 0x6001e3f2
call fcn.6001adcc
cmp byte [0x6002e2a1], 0
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
jne 0x60006814
push eax
lea ecx, [ebp - 0x28]
mov byte [0x6002e2a1], 1
call fcn.600103f0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0
push str.___ipc_rdr_channel
call fcn.600103f0
mov esi, eax
cmp esi, 0xffffffff
je 0x6000680c
add esi, 0x13
lea ecx, [ebp - 0x28]
push esi
push str.___ipc_co_channel
call fcn.600103f0
mov edi, eax
cmp edi, 0xffffffff
je 0x6000680c
push 0x60021328
lea ecx, [ebp - 0x40]
call fcn.600103f0
sub edi, esi
mov byte [ebp - 4], 1
push edi
push esi
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.600103f0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.600103f0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.60002111
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.600103f0
mov esi, eax
pop ecx
pop ecx
cmp esi, 0xffffffff
jne 0x600067a6
push str.___Sandbox_IPC_ComputeOnly_Client_connection_Failed
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
jmp 0x600067f6
test esi, esi
je 0x600067f6
push 0x60023618
push 0x18
call fcn.600103f0
pop ecx
mov edx, eax
pop ecx
mov dword [ebp - 0x5c], edx
xor eax, eax
mov byte [ebp - 4], 3
test edx, edx
je 0x600067d5
push 6
pop ecx
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, edx
call fcn.600103f0
mov byte [ebp - 4], 1
mov dword [0x600302f8], eax
test eax, eax
je 0x600067ec
push esi
mov ecx, eax
call fcn.600103f0
jmp 0x600067f6
push 0
push esi
call fcn.600103f0
pop ecx
pop ecx
cmp dword [0x600302f8], 0
lea ecx, [ebp - 0x40]
setne byte [0x6002e2a0]
call fcn.60002111
lea ecx, [ebp - 0x28]
call fcn.60002111
mov al, byte [0x6002e2a0]
call fcn.6001ad76
ret 8

Function at 0x60008742
Capabilities:
Get common file path

Disassembly:
push 0x180
mov eax, 0x6001e8e9
call fcn.6001adcc
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x114]
mov ebx, 0x104
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push ebx
call dword [sym.imp.kernel32.dll_GetTempPathA]
lea eax, [ebp - 0x114]
push eax
push ebx
lea ecx, [ebp - 0x18c]
call fcn.600103f0
push eax
lea ecx, [ebp - 0x184]
call fcn.60005ec9
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14c]
push 0
call fcn.600103f0
lea eax, [ebp - 0x184]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x14c]
push eax
push esi
push 0x25a
lea ecx, [edi + 4]
call fcn.600103f0
lea ecx, [ebp - 0x14c]
mov esi, eax
call fcn.600061f7
lea ecx, [ebp - 0x184]
call fcn.600061f7
mov eax, esi
call fcn.6001ad76
ret 8
Function at 0x6000d470
Capabilities:
Allocate thread local storage

Disassembly:
push esi
mov esi, ecx
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x18], 4
mov dword [esi + 4], 0
mov dword [esi + 8], 1
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call dword [sym.imp.kernel32.dll_TlsAlloc]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x6000d4bf
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret
call fcn.600103f0
int3

Function at 0x600103f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x600103ff
pop dword [ebp - 0x48]
mov eax, 0xc9c248f1
sub eax, 0x69c144f2
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x16ab6cc0
sub dword [ebp - 0x58], 0xc8592775
mov dword [ebp - 0x54], 0x131b836b
add dword [ebp - 0x54], 0x1f17c8da
mov dword [ebp - 0x50], 0xab1e67eb
add dword [ebp - 0x50], 0xa12ddc43
mov dword [ebp - 0x4c], 0x4395acf0
sub dword [ebp - 0x4c], 0x4395acf0
push eax
lodsb al, byte [esi]
xchg ebp, eax
inc ebx
lea eax, [ebp - 0x58]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x6e691e6d
add dword [ebp - 0x58], 0x6094ae9
mov dword [ebp - 0x54], 0xa28f8bb3
add dword [ebp - 0x54], 0x9edcd5c2
mov dword [ebp - 0x50], 0xf8cdd877
add dword [ebp - 0x50], 0x6aa193f5
mov dword [ebp - 0x4c], 0xc0594667
sub dword [ebp - 0x4c], 0xc0594667
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x867ee954
sub eax, 0x267ce764
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x40c2f
push 0
call eax
mov ecx, 0x15d065ec
add ecx, 0xea2fea62
xor esi, esi
add esi, eax
mov edx, 0x60033e00
add edx, dword [ebp - 0x48]
mov ebx, 0xf1c2da20
sub ebx, 0xeafea77e
sub dword [ebp - 8], ecx
mov edi, dword [edx]
mov dword [ebp - 0x28], 0xab4fc418
xor edi, ebx
sub dword [ebp - 0x3c], 0x9f4629c7
mov dword [esi], edi
mov dword [ebp - 8], 0x3835d8ae
add esi, 4
add edx, 4
loop 0x60010518
add eax, 0xb3319e23
add eax, 0x4ccf95e8
xor ebx, ebx
add ebx, eax
add eax, 0x374da5b6
sub eax, 0x374da5b1
mov ecx, 0x60000000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x6001a2d3
Capabilities:
Read file on windows

Disassembly:
push 0x2c
mov eax, 0x6001f68e
call fcn.6001adcc
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x2c]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x30], eax
xor eax, eax
stosd dword es:[edi], eax
push ebx
push ebx
push 1
stosd dword es:[edi], eax
push ebx
mov dword [ebp - 0x38], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [sym.imp.kernel32.dll_CreateEventA]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x6001a313
xor al, al
jmp 0x6001a40d
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [esi]
push dword [ebp - 0x30]
push dword [edi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x6001a400
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x6001a402
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [0x6002e1b0]
push ebx
push 0xffffffffffffffff
push ebx
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x14], eax
xor eax, eax
cmp dword [edi + 4], 2
push ecx
setne al
inc eax
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.kernel32.dll_WaitForMultipleObjectsEx]
test eax, eax
je 0x6001a3ee
mov edi, dword [ebp - 0x30]
cmp eax, 1
jne 0x6001a402
mov esi, dword [0x6002e1b0]
push esi
mov dword [ebp - 0x30], esi
call sub.MSVCP140.dll__Mtx_lock
push eax
call fcn.600103f0
mov eax, dword [0x6002e1b0]
mov dword [ebp - 4], ebx
push dword [eax + 0x38]
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.600023b0
mov ecx, dword [0x6002e1b0]
add esp, 0x14
mov dword [ecx + 0x44], eax
mov eax, dword [0x6002e1b0]
push dword [eax + 0x40]
call dword [sym.imp.kernel32.dll_SetEvent]
push esi
mov dword [ebp - 4], 1
call sub.MSVCP140.dll__Mtx_unlock
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
pop ecx
push ebx
push 0xffffffffffffffff
push ebx
push eax
push edi
call dword [sym.imp.kernel32.dll_WaitForMultipleObjectsEx]
test eax, eax
jne 0x6001a375
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x34]
push ebx
push esi
lea eax, [ebp - 0x2c]
push eax
push dword [edi]
call dword [sym.imp.kernel32.dll_GetOverlappedResult]
test eax, eax
je 0x6001a402
mov bl, 1
push dword [ebp - 0x1c]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov al, bl
call fcn.6001ad76
ret 8
Function at 0x6001a415
Capabilities:
Read file on windows

Disassembly:
push 0x3c
mov eax, 0x6001f6c6
call fcn.6001adcc
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edx, dword [0x60030380]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword fs:[0x2c]
mov edx, dword [eax + edx*4]
mov eax, dword [0x600302dc]
cmp eax, dword [edx + 4]
jg 0x6001a524
xor eax, eax
lea edi, [ebp - 0x44]
stosd dword es:[edi], eax
push ebx
push ebx
push 1
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [sym.imp.kernel32.dll_CreateEventA]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x6001a472
xor al, al
jmp 0x6001a51c
mov edi, dword [ebp - 0x48]
lea eax, [ebp - 0x44]
push eax
push esi
push dword [esi]
push dword [ebp - 0x30]
push dword [edi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x6001a50f
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x6001a511
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
jmp 0x6001a4e7
cmp eax, 1
jne 0x6001a511
push eax
push 0x113
push 0x113
jmp 0x6001a4d3
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
mov eax, 0x113
push eax
push eax
push dword [0x600302d8]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x6001a4b6
push 4
push 0x10
push 0xffffffffffffffff
lea eax, [ebp - 0x30]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
test eax, eax
jne 0x6001a4a4
push ebx
push esi
lea eax, [ebp - 0x44]
push eax
push dword [edi]
call dword [sym.imp.kernel32.dll_GetOverlappedResult]
test eax, eax
je 0x6001a511
mov bl, 1
push dword [ebp - 0x34]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov al, bl
call fcn.6001ad76
ret 8
mov edi, 0x600302dc
push edi
call fcn.600103f0
cmp dword [0x600302dc], 0xffffffff
pop ecx
jne 0x6001a44f
mov dword [ebp - 4], ebx
call fcn.600023b0
or dword [ebp - 4], 0xffffffff
push edi
mov dword [0x600302d8], eax
call fcn.600103f0
pop ecx
jmp 0x6001a44f
Function at 0x6001dcb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6001fa3d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6002c484]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x6002c4a8]
cmp eax, 0xffffffff
jne 0x6001dce9
xor ebx, ebx
mov dword [ebp - 0x10], ebx
jmp 0x6001dcf5
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x6001de58
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x6001dd20
cmp dword [ebx + 0xc], 0
je 0x6001de09
nop dword [eax + eax]
mov esi, dword [ebx + 0xc]
test esi, esi
je 0x6001ddc0
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x6001dd8c
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x600204bc]
mov ecx, dword [ebp - 0x14]
call edi
mov ebx, dword [esi]
push 0
mov eax, dword [ebx]
mov edi, dword [eax]
mov ecx, edi
call dword [0x600204bc]
mov ecx, ebx
call edi
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
test eax, eax
jne 0x6001dd89
push 0x23
push str.D:TImportsOpen_boost_boost_threadwin32_thread_heap_alloc.hpp
push str.winapi::HeapFree_winapi::GetProcessHeap___0_heap_memory__0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov ebx, dword [ebp - 0x10]
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
test eax, eax
jne 0x6001dd20
push 0x23
push str.D:TImportsOpen_boost_boost_threadwin32_thread_heap_alloc.hpp
push str.winapi::HeapFree_winapi::GetProcessHeap___0_heap_memory__0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
jmp 0x6001dd20
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x6001dd0e
mov esi, dword [ebx + 0x14]
lea ecx, [ebx + 0x14]
mov esi, dword [esi]
mov edx, dword [esi + 0x18]
test edx, edx
je 0x6001ddf6
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x6001ddf6
mov edi, dword [esi + 0x14]
mov ecx, edi
push eax
push edx
call dword [0x600204bc]
call edi
add esp, 8
lea ecx, [ebx + 0x14]
push esi
call fcn.600103f0
push 0x20
push eax
call fcn.600103f0
add esp, 8
jmp 0x6001ddc0
push 0
call fcn.600103f0
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x6001de58
mov eax, dword [ebx]
push 0
mov esi, dword [eax]
mov ecx, esi
call dword [0x600204bc]
mov ecx, ebx
call esi
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
test eax, eax
jne 0x6001de58
push 0x23
push str.D:TImportsOpen_boost_boost_threadwin32_thread_heap_alloc.hpp
push str.winapi::HeapFree_winapi::GetProcessHeap___0_heap_memory__0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret