joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404dd8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x404de7
pop dword [ebp - 0x28]
mov eax, 0x10a413c5
sub eax, 0x1063c5de
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x8fb18a25
add dword [ebp - 0x38], 0xbea0bb26
mov dword [ebp - 0x34], 0x7a033a24
add dword [ebp - 0x34], 0xb8301221
mov dword [ebp - 0x30], 0xe548986c
sub dword [ebp - 0x30], 0x98fc543e
mov dword [ebp - 0x2c], 0xf9acc4b1
sub dword [ebp - 0x2c], 0xf9acc4b1
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xa4663ee2
sub dword [ebp - 0x38], 0x2ff3d58c
mov dword [ebp - 0x34], 0x766ff20e
add dword [ebp - 0x34], 0xcafc6f67
mov dword [ebp - 0x30], 0x859c8fe0
add dword [ebp - 0x30], 0xddd2dc8c
mov dword [ebp - 0x2c], 0xaf5ab8b3
sub dword [ebp - 0x2c], 0xaf5ab8b3
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x95d72bde
sub eax, 0x9594faba
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3db89
push 0
call eax
mov ecx, 0x47eb
xor edi, edi
add edi, eax
mov ebx, 0x434400
add ebx, dword [ebp - 0x28]
mov esi, 0xe23746ee
mov dword [ebp - 0xc], 0x1cf37352
mov edx, dword [ebx]
add dword [ebp - 8], ecx
xor edx, esi
add dword [ebp - 0x1c], 0xffad637d
mov dword [edi], edx
add edi, 0x772ac4a9
sub edi, 0x772ac4a5
add ebx, 4
loop 0x404ef4
add eax, 0xf8c38781
sub eax, 0xf8c27502
xor ebx, ebx
add ebx, eax
add eax, 0x17109156
sub eax, 0x17109151
mov ecx, 0x34a1ceda
add ecx, 0xcb9e3126
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
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 [0x60030374]
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.6001c5c0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
mov ecx, 0x6002e1d0
call fcn.6001c5c0
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.6001c5c0
push edi
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 2
push 0x600210d8
push eax
call fcn.6001c5c0
add esp, 0x18
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 3
mov edi, 0x6002e1d0
push eax
mov ecx, edi
call fcn.6001c5c0
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.6001c5c0
push eax
lea ecx, [ebp - 0x5c]
call fcn.6001c5c0
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.6001c5c0
cmp dword [0x6002e1d8], 0xffffffff
pop ecx
jne 0x60002462
and dword [ebp - 4], 0
mov ecx, 0x6002e1d0
call fcn.6001c5c0
push 0x6001fa60
call fcn.6001c5c0
or dword [ebp - 4], 0xffffffff
push esi
call fcn.6001c5c0
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.6001c5c0
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.6001c5c0
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.6001c5c0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0
push str.___ipc_rdr_channel
call fcn.6001c5c0
mov esi, eax
cmp esi, 0xffffffff
je 0x6000680c
add esi, 0x13
lea ecx, [ebp - 0x28]
push esi
push str.___ipc_co_channel
call fcn.6001c5c0
mov edi, eax
cmp edi, 0xffffffff
je 0x6000680c
push 0x60021328
lea ecx, [ebp - 0x40]
call fcn.6001c5c0
sub edi, esi
mov byte [ebp - 4], 1
push edi
push esi
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.6001c5c0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.6001c5c0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.60002111
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.6001c5c0
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.6001c5c0
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.6001c5c0
mov byte [ebp - 4], 1
mov dword [0x600302f4], eax
test eax, eax
je 0x600067ec
push esi
mov ecx, eax
call fcn.6001c5c0
jmp 0x600067f6
push 0
push esi
call fcn.6001c5c0
pop ecx
pop ecx
cmp dword [0x600302f4], 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.6001c5c0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0
push str.___ipc_rdr_channel
call fcn.6001c5c0
mov esi, eax
cmp esi, 0xffffffff
je 0x6000680c
add esi, 0x13
lea ecx, [ebp - 0x28]
push esi
push str.___ipc_co_channel
call fcn.6001c5c0
mov edi, eax
cmp edi, 0xffffffff
je 0x6000680c
push 0x60021328
lea ecx, [ebp - 0x40]
call fcn.6001c5c0
sub edi, esi
mov byte [ebp - 4], 1
push edi
push esi
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.6001c5c0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.6001c5c0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.60002111
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.6001c5c0
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.6001c5c0
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.6001c5c0
mov byte [ebp - 4], 1
mov dword [0x600302f4], eax
test eax, eax
je 0x600067ec
push esi
mov ecx, eax
call fcn.6001c5c0
jmp 0x600067f6
push 0
push esi
call fcn.6001c5c0
pop ecx
pop ecx
cmp dword [0x600302f4], 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.6001c5c0
push eax
lea ecx, [ebp - 0x184]
call fcn.60005ec9
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14c]
push 0
call fcn.6001c5c0
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.6001c5c0
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.6001c5c0
int3

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 [0x6002e1bc]
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 [0x6002e1bc]
push esi
mov dword [ebp - 0x30], esi
call sub.MSVCP140.dll__Mtx_lock
push eax
call fcn.6001c5c0
mov eax, dword [0x6002e1bc]
mov dword [ebp - 4], ebx
push dword [eax + 0x38]
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.600023b0
mov ecx, dword [0x6002e1bc]
add esp, 0x14
mov dword [ecx + 0x44], eax
mov eax, dword [0x6002e1bc]
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 [0x60030374]
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.6001c5c0
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.6001c5c0
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.6001c5c0
push 0x20
push eax
call fcn.6001c5c0
add esp, 8
jmp 0x6001ddc0
push 0
call fcn.6001c5c0
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
Function at 0x401fc0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0b28
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4e98d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
lea eax, [ebp - 0x71]
push eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.00402ca0
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0
call fcn.00401ca0
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x402013
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov eax, dword [ebp - 0x48]
lea edi, [ebp - 0x48]
mov eax, dword [eax + 4]
add edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push dword [ebp - 0x54]
call fcn.0045367d
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push dword [ebp - 0x4c]
call edi
cmp dword [ebp - 0x58], 8
jb 0x402062
push dword [ebp - 0x6c]
call edi
xor eax, eax
mov word [ebp - 0x6c], ax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x5c], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x70]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [0x4f0b21], 0
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jne 0x40210d
push 0
push 0
push 0
push esi
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x7c], 0
call eax
push 0
lea eax, [ebp - 0x7c]
push eax
push 2
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4020db
cmp dword [ebp - 0x7c], 2
jne 0x4020db
mov eax, 0xfeff
cmp word [ebp - 0x78], ax
sete al
mov byte [0x4f0b21], al
jmp 0x4020e0
mov al, byte [0x4f0b21]
test al, al
jne 0x402101
push 0
lea eax, [ebp - 0x84]
push eax
push 2
lea eax, [ebp - 0x80]
push eax
push esi
mov dword [ebp - 0x80], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov byte [0x4f0b21], 1
push 2
push 0
push 0
push esi
call eax
cmp dword [ebp - 0x28], 8
push 0
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x3c]
cmovae ecx, dword [ebp - 0x3c]
add eax, eax
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x402148
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x402148
push esi
call eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x18]
mov eax, dword [eax + 4]
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
push dword [ebp - 0x24]
call fcn.0045367d
add esp, 4
push dword [ebp - 0x1c]
call edi
cmp dword [ebp - 0x28], 8
jb 0x402176
push dword [ebp - 0x3c]
call edi
xor eax, eax
mov word [ebp - 0x3c], ax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x40]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004526a3
mov esp, ebp
pop ebp
ret
Function at 0x408180
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b102b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x805c
call fcn.004549e0
mov eax, dword [0x4e98d0]
xor eax, esp
mov dword [esp + 0x8058], eax
push ebx
push esi
push edi
mov eax, dword [0x4e98d0]
xor eax, esp
push eax
lea eax, [esp + 0x8070]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
or esi, 0xffffffff
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x8078], 0
test eax, eax
jne 0x4081fc
lea edi, [eax + 0x57]
jmp 0x40836f
mov edx, dword [ecx]
sub esp, 0x18
lea ecx, [esp + 0x44]
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
call fcn.0040a7d0
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x40836f
mov eax, dword [esp + 0x14]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x40823e
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x408367
mov esi, eax
mov dword [esp + 0x24], esi
mov dword [ebx], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
lea ecx, [esp + 0x34]
push ecx
push 0x4000
lea ecx, [esp + 0x70]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408338
call ebx
cmp eax, 0x26
jne 0x40834d
call ebx
cmp eax, 0x103
je 0x40834d
xor ebx, ebx
lea eax, [esp + 0x64]
mov dword [esp + 0x2c], eax
jmp 0x4082c0
lea eax, [esp + 0x4064]
mov edx, ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3c], 0x4000
mov dword [esp + 0x38], eax
call fcn.0040ad50
cmp eax, 0xfffffffe
je 0x4083a8
mov eax, dword [esp + 0x20]
mov edi, 0x4000
push dword [eax + 4]
sub edi, dword [esp + 0x40]
lea eax, [esp + 0x18]
push eax
push edi
lea eax, [esp + 0x4070]
push eax
mov dword [esp + 0x24], 0
call dword [esp + 0x38]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add dword [edx], ecx
test eax, eax
je 0x40835e
cmp ecx, edi
jne 0x40835e
cmp dword [esp + 0x3c], 0
je 0x4082c0
cmp ebx, 4
je 0x408351
mov eax, dword [esp + 0x1c]
jmp 0x408270
cmp dword [esp + 0x30], 0
jne 0x4082ae
mov ebx, 4
jmp 0x4082b0
call ebx
jmp 0x40836d
lea ecx, [esp + 0x2c]
call fcn.0040b560
xor edi, edi
jmp 0x40836f
lea ecx, [esp + 0x2c]
call fcn.0040b560
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp esi, 0xffffffff
je 0x408380
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x408380
push esi
call eax
mov eax, edi
mov ecx, dword [esp + 0x8070]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8058]
xor ecx, esp
call fcn.004526a3
mov esp, ebp
pop ebp
ret 0xc
mov edi, 0xfffffffe
jmp 0x40836f