joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423d50
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x43800c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x30], ecx
test esi, esi
je 0x40d481
cmp byte [esi + 0x54], 0
je 0x40d481
add esi, 0x1c
xor bl, bl
mov dword [ebp - 0x40], esi
mov byte [ebp - 0x3c], bl
test esi, esi
je 0x40d380
mov eax, dword [esi]
test eax, eax
je 0x40d37d
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40d374
cmp eax, 0x80
je 0x40d374
xor bl, bl
jmp 0x40d37a
mov byte [esi + 4], 1
mov bl, 1
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 0x3c], bl
push ecx
mov edx, ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00409db0
add esp, 4
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00403b80
cmp dword [ebp - 0x18], 0x10
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov eax, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x40d3bf
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40d40d
push 2
push 0
push 0
push edi
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x40d441
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d437
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d49f
push edx
push ecx
call fcn.0040f96a
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 6
test esi, esi
je 0x40d473
test bl, bl
je 0x40d473
mov eax, dword [esi]
test eax, eax
je 0x40d46f
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 4], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040f929
mov esp, ebp
pop ebp
ret 4
call fcn.00413a39
int3
Function at 0x40d750
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423d88
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x43800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
test eax, eax
je 0x40d796
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.0040b360
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x40d7bf
lea ebx, [esi + 8]
jmp 0x40d7c1
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.00403a10
test al, al
jne 0x40d7d7
mov ecx, dword [ebp - 0x18]
call fcn.00404450
jmp 0x40d7d9
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x40d7fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40d7fa
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x40d823
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40d838
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.0040f96a
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f929
mov esp, ebp
pop ebp
ret 4

Function at 0x40dd10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423ef5
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x43800c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x1050
call fcn.0040f93a
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
push 0x1050
push 0
push esi
call fcn.00412170
lea ecx, [esi + 0x44]
mov dword [esi], 0
mov eax, ecx
mov dword [esi + 4], 0
neg eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
lea edx, [esi + 0x1044]
mov dword [esi + 0x10], 0
and eax, 3
mov dword [esi + 0x14], 0
add esp, 0x10
mov dword [esi + 0x18], 0
add eax, ecx
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [ebp - 0x14], esi
mov dword [edx], 0
mov dword [esi + 0x1048], 0
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edx
mov byte [ebp - 4], 2
mov dword [esi + 0x104c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov dword [edi], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41b60d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b2bb
Function at 0x401d90
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 8], 0
mov eax, dword [0x41b0fc]
mov eax, dword [eax + 0x144]
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
je 0x401dc8
push 0
push dword [eax + 0xc]
call esi
mov eax, dword [0x41b0fc]
mov eax, dword [eax + 0x14c]
push 0
push dword [eax + 0xc]
call esi
push 5
jmp 0x401de3
push 5
push dword [eax + 0xc]
call esi
mov eax, dword [0x41b0fc]
mov eax, dword [eax + 0x14c]
push 5
push dword [eax + 0xc]
call esi
push 0
mov eax, dword [0x41b0fc]
mov eax, dword [eax + 0x148]
push dword [eax + 0xc]
call esi
pop esi
pop ebp
ret

Function at 0x401df6
Capabilities:
Create thread
Resume thread

Disassembly:
push dword [0x4162b0]
push 0x41b108
push 0x41633c
push 0x41b310
call fcn.00402444
mov eax, dword [0x41b0fc]
mov eax, dword [eax + 0xc]
add esp, 0x10
test eax, eax
je 0x401e3a
push 0
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
test eax, eax
je 0x401e3a
push 3
push 0xf060
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, dword [0x41b0fc]
mov ecx, dword [eax + 0xc]
mov eax, dword [0x41b100]
push esi
lea esi, [eax + 0x28]
mov edx, dword [esi]
test edx, edx
jne 0x401e75
push edx
push 4
push eax
push 0x401090
push edx
mov byte [eax + 0x34], 1
push edx
mov dword [eax + 0x30], ecx
call fcn.00405a90
add esp, 0x18
mov dword [esi], eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
ret
Function at 0x403120
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x419080]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
xor esi, esi
cmp byte [ebp + 8], 0
je 0x4031cc
mov eax, dword [edi + 0x138]
mov ebx, dword [eax]
mov dword [esp + 8], ebx
mov edi, edi
cmp ebx, dword [edi + 0x138]
je 0x403250
mov esi, dword [ebx + 0x10]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
cmp eax, 1
jne 0x40317e
mov eax, dword [esi + 0xc]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
cmp eax, 1
je 0x4031b6
lea eax, [esp + 8]
call fcn.00404c90
mov ebx, dword [esp + 8]
jmp 0x403150
mov eax, dword [ebx + 0x10]
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00405881
mov esp, ebp
pop ebp
ret 4
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
cmp eax, 1
jne 0x4031eb
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov eax, dword [edi + 0xc]
push edx
push ecx
push eax
call dword [sym.imp.USER32.dll_ChildWindowFromPoint]
mov dword [esp + 8], eax
test eax, eax
je 0x40323b
cmp eax, dword [edi + 0xc]
je 0x40323b
push eax
push edi
call fcn.00402550
test al, al
je 0x40323b
lea eax, [edi + 0x134]
lea edx, [esp + 8]
call fcn.004012e4
mov eax, dword [eax]
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00405881
mov esp, ebp
pop ebp
ret 4
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00405881
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x24]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00405881
mov esp, ebp
pop ebp
ret 4

Function at 0x405881
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x419080]
jne 0x40588b
repz ret
jmp fcn.00406638
Function at 0x40bada
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00406905
and dword [ebp - 0x14], 0
cmp dword [0x41b084], 0
mov dword [ebp - 0x18], eax
jne 0x40bb8d
push 0x4151d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40bc35
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4151c4
push ebx
call edi
test eax, eax
je 0x40bc35
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4151b4
push ebx
mov dword [0x41b084], eax
call edi
push eax
call esi
push 0x4151a0
push ebx
mov dword [0x41b088], eax
call edi
push eax
call esi
push 0x415184
push ebx
mov dword [0x41b08c], eax
call edi
push eax
call esi
mov dword [0x41b094], eax
test eax, eax
je 0x40bb8d
push 0x41516c
push ebx
call edi
push eax
call esi
mov dword [0x41b090], eax
mov eax, dword [0x41b090]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40bbe6
cmp dword [0x41b094], ecx
je 0x40bbe6
push eax
call esi
push dword [0x41b094]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40bbe6
test ebx, ebx
je 0x40bbe6
call edi
test eax, eax
je 0x40bbdd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40bbdd
test byte [ebp - 8], 1
jne 0x40bbe6
or dword [ebp + 0x10], 0x200000
jmp 0x40bc19
mov eax, dword [0x41b088]
cmp eax, dword [ebp - 0x18]
je 0x40bc19
push eax
call esi
test eax, eax
je 0x40bc19
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40bc19
mov eax, dword [0x41b08c]
cmp eax, dword [ebp - 0x18]
je 0x40bc19
push eax
call esi
test eax, eax
je 0x40bc19
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41b084]
call esi
test eax, eax
je 0x40bc35
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40bc37
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405881
leave
ret
Function at 0x435d60
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 4], eax
cmp dword [0x442984], 0
jne 0x435d8c
push 0x1019
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x435d8c
xor eax, eax
jmp 0x435dc0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp eax, 0xfffffffe
je 0x435d9b
xor eax, eax
jmp 0x435dc0
push 0x10022
call dword [ebp - 4]
test eax, eax
jne 0x435db8
mov ecx, section..text
sub ecx, 0x51615
mov dword [0x442988], ecx
mov eax, dword [0x442988]
add eax, 4
mov esp, ebp
pop ebp
ret
Function at 0x4364d0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
jmp 0x4364e8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jae 0x43658c
mov edx, dword [ebp - 4]
sub edx, 0x231d
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + eax*2 + 0x463a]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
shr eax, 0xc
cmp eax, 3
jne 0x436587
mov ecx, dword [ebp - 8]
push ecx
call fcn.004364b0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x436546
push 0x154b
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x436546
xor eax, eax
jmp 0x43658c
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax - 0x4c3f8]
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx]
add ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov edx, dword [ebp + 0x10]
mov dword [edx + eax], ecx
mov eax, dword [ebp - 8]
sub eax, 0x4c3f8
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
sub edx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
jmp 0x4364df
mov esp, ebp
pop ebp
ret
Function at 0x10002f60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dc22f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.10095dab
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x10002feb
push eax
push esi
call fcn.1009637b
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.100960d9
int3

Function at 0x100037c0
Capabilities:
Check for unexpected memory writes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push 0x4000
push 0
call edi
mov esi, eax
test esi, esi
je 0x1000380a
push 4
push 0x203000
push 0x1000000
push 0
call edi
mov edi, eax
test edi, edi
jne 0x10003815
push 0x8000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 0x1009
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0xc]
mov dword [edi], 0x4d2
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x1000
push eax
push esi
push 0x1000
push edi
push 0
invalid
invalid
insb byte es:[edi], dx
invalid
Function at 0x10003a70
Capabilities:
Check for debugger via api
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 4], 0
call edi
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp dword [ebp - 4], 0
je 0x10003aa4
mov eax, 0x1001
pop edi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
xor eax, eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0x68]
and eax, 0x70
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10003acc
mov eax, 0x1000
pop edi
mov esp, ebp
pop ebp
ret
push esi
mov dword [ebp - 4], 0
call fcn.100035a0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, 0xffffffff
je 0x10003b36
test eax, eax
je 0x10003b36
push str.NtQueryInformationProcess
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10003b36
call edi
push 0
mov edi, eax
lea eax, [ebp - 4]
push 4
push eax
push 7
push edi
call esi
test eax, eax
jne 0x10003b15
cmp dword [ebp - 4], eax
jne 0x10003b2b
push 0
push 4
lea eax, [ebp - 4]
push eax
push 0x1f
push edi
call esi
test eax, eax
jne 0x10003b36
cmp dword [ebp - 4], eax
jne 0x10003b36
pop esi
mov eax, 4
pop edi
mov esp, ebp
pop ebp
ret
call fcn.100037c0
test eax, eax
je 0x10003b4a
pop esi
mov eax, 0x1009
pop edi
mov esp, ebp
pop ebp
ret
call fcn.10003870
test eax, eax
je 0x10003b5e
pop esi
mov eax, 0x2000
pop edi
mov esp, ebp
pop ebp
ret
call fcn.100038f0
test eax, eax
je 0x10003b72
pop esi
mov eax, 0x2002
pop edi
mov esp, ebp
pop ebp
ret
call fcn.10003960
test eax, eax
je 0x10003b86
pop esi
mov eax, 0x2003
pop edi
mov esp, ebp
pop ebp
ret
call fcn.10003a00
test eax, eax
je 0x10003b9a
pop esi
mov eax, 0x2004
pop edi
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.anti_debugging_test.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10003bc2
pop esi
mov eax, 0x2005
pop edi
mov esp, ebp
pop ebp
ret
push 0x2c8
lea eax, [ebp - 0x2cc]
push 0
push eax
call fcn.100ad9c0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea ecx, [ebp - 0x2d0]
mov dword [ebp - 0x2d0], 0x10010
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x10003c3b
cmp dword [ebp - 0x2cc], 0
jne 0x10003c30
cmp dword [ebp - 0x2c8], 0
jne 0x10003c30
cmp dword [ebp - 0x2c4], 0
jne 0x10003c30
cmp dword [ebp - 0x2c0], 0
jne 0x10003c30
cmp dword [ebp - 0x2bc], 0
jne 0x10003c30
cmp dword [ebp - 0x2b8], 0
je 0x10003c3b
pop esi
mov eax, 0x4000
pop edi
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x100065f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dc3f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov eax, ecx
push esi
push edi
push 8
mov dword [ebp - 0x10], eax
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.100aaff9
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.1009627b
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
pop edi
pop esi
mov dword [edx], 0
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x1000be10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x1000bef6
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x1000bee5
jg 0x1000be50
test edx, edx
je 0x1000bee5
nop dword [eax]
call fcn.100055d0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1000bea4
jg 0x1000be67
test esi, esi
je 0x1000bea4
cmp ebx, eax
jg 0x1000be77
jl 0x1000be71
cmp edi, esi
jae 0x1000be77
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.100ad440
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x1000bec9
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x1000bedf
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x1000be50
jl 0x1000bedf
test edi, edi
jne 0x1000be50
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x1000bf18
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x1000bf1a
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x1000bf98
jg 0x1000bf2d
test esi, esi
je 0x1000bf98
test eax, eax
jl 0x1000bf7c
jg 0x1000bf37
test ebx, ebx
je 0x1000bf7c
cmp edi, eax
jg 0x1000bf47
jl 0x1000bf41
cmp esi, ebx
jae 0x1000bf47
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.100ad440
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x1000bf98
jg 0x1000bf7f
test esi, esi
je 0x1000bf98
jmp 0x1000bf7f
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x1000bf98
push eax
push esi
push 1
push edx
call fcn.100bad39
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000c500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1000c51c
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000c54e
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1000c54e
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x1000c622
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1000c576
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1000c59f
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.100ba47e
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp + 8]
mov byte [ebp - 1], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 1]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x1000c5f5
sub eax, 1
je 0x1000c5f5
sub eax, 2
jne 0x1000c622
push dword [esi + 0x4c]
movsx eax, byte [ebp - 1]
push eax
call fcn.100ba47e
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x28]
sub edi, eax
je 0x1000c612
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100bad39
add esp, 0x10
cmp edi, eax
jne 0x1000c622
lea eax, [ebp - 1]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 8], eax
jne 0x1000c543
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4