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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001ad78
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10022490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x10004231
cmp byte [ebx + 0x49], 0
je 0x10004231
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x10004225
lea esi, [ebp - 0x2c]
call fcn.10003ce0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x10004113
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x1000414c
dec eax
je 0x10004150
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x1000422c
call fcn.10002b20
xor al, al
jmp 0x10004233
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x10004160
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x1000418d
cmp edi, 0x10
jae 0x1000416f
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.100085cc
add esp, 0x10
cmp esi, eax
jne 0x1000421d
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x10004229
test esi, esi
jne 0x10004107
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x1000424e
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x1000424e
cmp edi, esi
jae 0x10004206
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.100046b0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x10004107
mov ecx, eax
cmp edi, 0x10
jae 0x100041e2
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x100041fd
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x10004101
test esi, esi
jne 0x100041d8
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x10004215
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x10004101
lea ecx, [ebp - 0x2c]
call fcn.10002b20
xor al, al
jmp 0x10004233
lea ecx, [ebp - 0x2c]
call fcn.10002b20
mov al, 1
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.1000717e
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.10006be9
int3
Function at 0x10004560
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001aceb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10022490]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10006d3d
push 4
mov dword [ebp - 4], 0
call fcn.10008778
mov edi, eax
add esp, 4
test edi, edi
je 0x100045dc
call fcn.10006b38
mov dword [edi], eax
call fcn.100068f7
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.10006cfe
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x100045d2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.10006d26
jmp 0x100045de
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 4

Function at 0x10005170
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x100268dc]
push esi
xor esi, esi
cmp eax, esi
je 0x1000518b
lea esp, [esp]
cmp dword [eax + 4], esi
jne 0x100051d3
mov eax, dword [eax]
cmp eax, esi
jne 0x10005180
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp eax, esi
je 0x100051d3
lea ecx, [eax + 0x20]
mov edx, ecx
mov dword [eax + 4], esi
mov dword [eax + 8], esi
sub edx, eax
nop
mov esi, dword [eax + 4]
mov dword [ecx], esi
mov dword [eax + 4], ecx
add edx, 0x20
add ecx, 0x20
cmp edx, 0xfe0
jbe 0x100051b0
mov ecx, dword [0x100268dc]
mov dword [eax], ecx
mov dword [0x100268dc], eax
pop esi
ret
Function at 0x10005b70
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10022490]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10005c54
lea eax, [ebp - 0x20]
push eax
push ebx
mov dword [ebp - 0x20], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10005c4d
push edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp dword [ebp - 0x20], 0x10
jb 0x10005c32
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x10005c32
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10005c32
mov eax, dword [esi]
test eax, eax
jne 0x10005bf7
mov ecx, dword [0x10025750]
push 0x200
push eax
push ecx
mov dword [esi + 4], 0x80
call edi
mov dword [esi], eax
test eax, eax
je 0x10005c4c
jmp 0x10005c24
mov ecx, dword [esi + 4]
cmp dword [esi + 8], ecx
jb 0x10005c24
lea edx, [ecx*8]
push edx
push eax
mov eax, dword [0x10025750]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x10005c4c
mov ecx, dword [esi + 4]
add ecx, ecx
mov dword [esi + 4], ecx
mov dword [esi], eax
mov edx, dword [esi + 8]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x18]
mov dword [eax + edx*4], ecx
inc dword [esi + 8]
lea edx, [ebp - 0x20]
push edx
push ebx
mov dword [ebp - 0x20], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10005bb7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000717e
mov esp, ebp
pop ebp
ret

Function at 0x10005c70
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.10005b70
cmp dword [esi], ebx
je 0x10005ccb
cmp dword [esi + 8], ebx
jbe 0x10005ccb
push edi
mov eax, dword [esi]
mov ecx, dword [eax + ebx*4]
push ecx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10005cc4
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edx
push edi
call fcn.10005a10
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [esi + 8]
jb 0x10005c90
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10005cd0
Capabilities:
Resume thread

Disassembly:
cmp dword [ebx], 0
je 0x10005d1d
push edi
xor edi, edi
cmp dword [ebx + 8], edi
jbe 0x10005d0b
push esi
mov edi, edi
mov eax, dword [ebx]
mov ecx, dword [eax + edi*4]
push ecx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x10005d04
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [ebx + 8]
jb 0x10005ce0
pop esi
mov edx, dword [ebx]
mov eax, dword [0x10025750]
push edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
ret
Function at 0x10005d20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
imul esi, esi, 0x2c
add esi, dword [0x100268d0]
push edi
test byte [esi + 0x14], 1
mov edi, dword [esi]
mov ebx, 5
je 0x10005d46
sub edi, ebx
mov ebx, 7
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10005d64
pop edi
pop esi
mov eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [edi], 0xe9
mov ecx, dword [esi + 4]
sub ecx, edi
sub ecx, 5
mov dword [edi + 1], ecx
test byte [esi + 0x14], 1
je 0x10005d7f
mov eax, dword [esi]
mov word [eax], 0xf9eb
mov eax, dword [ebp - 4]
lea edx, [ebp - 4]
push edx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [esi + 0x14], 6
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005db0
Capabilities:
Allocate or change rwx memory
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, dword [0x100268d8]
push esi
push edi
xor esi, esi
xor edi, edi
mov dword [ebp - 4], esi
test ecx, ecx
je 0x10005f0d
mov eax, dword [0x100268d0]
add eax, 0x14
test byte [eax], 2
je 0x10005dea
inc edi
add eax, 0x2c
cmp edi, ecx
jb 0x10005dd5
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 8], edi
cmp edi, 0xffffffff
je 0x10005f0d
push ebx
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
call fcn.10005c70
add esp, 8
cmp edi, dword [0x100268d8]
jae 0x10005ec3
mov eax, edi
imul eax, eax, 0x2c
mov dword [ebp - 0x10], eax
lea ebx, [ebx]
mov ecx, dword [0x100268d0]
test byte [eax + ecx + 0x14], 2
lea esi, [eax + ecx]
jne 0x10005ea1
test byte [esi + 0x14], 1
mov edi, dword [esi]
mov ebx, 5
je 0x10005e44
sub edi, ebx
mov ebx, 7
lea edx, [ebp - 0xc]
push edx
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10005eb9
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x10005e71
mov eax, dword [esi]
mov word [eax], 0xf9eb
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 0xc]
push ecx
push edx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [esi + 0x14], 6
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
mov dword [ebp - 4], 0
inc edi
add eax, 0x2c
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], eax
cmp edi, dword [0x100268d8]
jb 0x10005e20
jmp 0x10005ec0
mov dword [ebp - 4], 0xa
mov esi, dword [ebp - 4]
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x10005f0c
xor edi, edi
cmp dword [ebp - 0x14], edi
jbe 0x10005efc
mov eax, dword [ebx + edi*4]
push eax
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x10005ef3
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [ebp - 0x14]
jb 0x10005ed1
mov esi, dword [ebp - 4]
mov ecx, dword [0x10025750]
push ebx
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000717e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10022490]
jne 0x10007188
repz ret
jmp fcn.1000b8fa

Function at 0x10016087
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10022490]
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.1000f055
and dword [ebp - 0x14], 0
cmp dword [0x100253d0], 0
mov dword [ebp - 0x18], eax
jne 0x1001613a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x100161e2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x100161e2
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x100253d0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x100253d4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x100253d8], eax
call edi
push eax
call esi
mov dword [0x100253e0], eax
test eax, eax
je 0x1001613a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x100253dc], eax
mov eax, dword [0x100253dc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10016193
cmp dword [0x100253e0], ecx
je 0x10016193
push eax
call esi
push dword [0x100253e0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10016193
test ebx, ebx
je 0x10016193
call edi
test eax, eax
je 0x1001618a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1001618a
test byte [ebp - 8], 1
jne 0x10016193
or dword [ebp + 0x10], 0x200000
jmp 0x100161c6
mov eax, dword [0x100253d4]
cmp eax, dword [ebp - 0x18]
je 0x100161c6
push eax
call esi
test eax, eax
je 0x100161c6
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100161c6
mov eax, dword [0x100253d8]
cmp eax, dword [ebp - 0x18]
je 0x100161c6
push eax
call esi
test eax, eax
je 0x100161c6
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x100253d0]
call esi
test eax, eax
je 0x100161e2
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x100161e4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000717e
leave
ret
Function at 0x7008b9e0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x7034b03c
call sym._EnterCriticalSection_4
mov ebx, dword [0x7034b034]
sub esp, 4
test ebx, ebx
je 0x7008ba2b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x7008ba24
test esi, esi
je 0x7008ba24
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x7008ba00
mov dword [esp], 0x7034b03c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x7008bc10
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], 0x702bece4
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x7008bc60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x7008bd34
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x7008bc9e
cmp eax, 4
jne 0x7008bcc0
test esi, esi
je 0x7008bcb2
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x7008bca4
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x7008bcff
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x7008bcf1
cmp ecx, 0x40
je 0x7008bcb2
cmp ecx, 4
je 0x7008bcb2
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.7008bc10
lea esi, [esi]
Function at 0x7008f8f0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x22c
mov eax, dword [esp + 0x24c]
call fcn.7008f790
test eax, eax
je 0x7008fa1f
mov ebx, eax
cmp eax, dword [0x7024e18c]
je 0x7008fa60
mov dword [esp], ebx
call sym._remque
mov eax, dword [0x7024e188]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._insque
mov eax, dword [0x7024e188]
test eax, eax
je 0x7008fab0
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sym.___mingw_ftelli64
mov dword [esp + 0xc], 2
mov edi, eax
mov eax, dword [esp + 0x24c]
mov dword [esp + 4], 0
mov ebp, edx
mov dword [esp + 8], 0
mov eax, dword [eax + 0x10]
mov dword [esp], eax
call sym.__lseeki64
mov dword [esp + 0x1c], ebp
cmp eax, edi
mov ebx, eax
mov eax, edx
sbb eax, dword [esp + 0x1c]
mov dword [esp + 0x18], edi
mov esi, edx
jge 0x7008fa80
xor eax, eax
mov edx, dword [esp + 0x18]
lea edi, [esp + 0x24]
mov ecx, 0x7f
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], 0
mov ecx, dword [esp + 0x1c]
sub edx, ebx
sbb ecx, esi
xor ebp, ebp
lea esi, [esi]
nop
mov eax, 0x200
mov esi, edx
mov edi, ecx
cmp eax, edx
mov eax, ebp
sbb eax, ecx
jge 0x7008f9d8
mov esi, 0x200
xor edi, edi
mov eax, dword [esp + 0x24c]
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
lea eax, [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
call sym._fwrite
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp eax, esi
jne 0x7008fac0
sub edx, esi
mov eax, ebp
sbb ecx, edi
cmp ebp, edx
sbb eax, ecx
jl 0x7008f9c0
mov eax, dword [esp + 0x24c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x248]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x244]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x240]
mov dword [esp], eax
call sym._fwrite
add esp, 0x22c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, dword [eax]
jne 0x7008f91c
mov dword [0x7024e18c], 0
jmp 0x7008f924
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24c]
mov dword [esp + 8], edx
mov dword [esp], eax
call sym.___mingw_fseeki64
jmp 0x7008fa1f
mov dword [0x7024e188], ebx
jmp 0x7008f942
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24c]
mov dword [esp + 8], edx
mov dword [esp], eax
call sym.___mingw_fseeki64
add esp, 0x22c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x70094470
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x3c
mov dword [esp + 4], 0
mov dword [esp], 2
call sym._setlocale
test eax, eax
je 0x70094544
mov dword [esp], eax
mov esi, eax
mov ebx, esp
call sym._strlen
lea edx, [eax + 1]
add eax, 0x10
shr eax, 4
shl eax, 4
call fcn.700963c0
sub esp, eax
lea eax, [esp + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._memcpy
mov dword [esp + 4], 0x702bf468
mov dword [esp], 2
mov esi, eax
call sym._setlocale
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._strcmp
test eax, eax
je 0x70094550
mov dword [esp + 4], esi
mov dword [esp], 2
call sym._setlocale
mov eax, esi
mov dword [esp + 4], 0x2e
mov dword [esp], eax
call sym._strchr
test eax, eax
je 0x70094540
add eax, 1
mov dword [esp], eax
call sym._atoi
mov edi, eax
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._GetCPInfo_8
sub esp, 8
test eax, eax
je 0x70094540
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x70094590
xor edi, edi
mov esp, ebx
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.LC_ALL
call sym._getenv
test eax, eax
jne 0x70094502
mov dword [esp], str.LC_CTYPE
call sym._getenv
test eax, eax
jne 0x70094502
mov dword [esp], str.LANG
call sym._getenv
test eax, eax
jne 0x70094502
mov eax, esi
jmp 0x70094502
mov esp, ebx
jmp 0x70094544

Function at 0x70097070
Capabilities:
Allocate thread local storage

Disassembly:
push esi
push ebx
sub esp, 4
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
call sym._TlsAlloc_0
cmp eax, 0xffffffff
je 0x700970a0
mov dword [esi], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
add esp, 4
pop ebx
pop esi
jmp sym.___mingwthr_key_dtor
add esp, 4
pop ebx
pop esi
jmp sym._GetLastError_0

Function at 0x700970e0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call sym._GetLastError_0
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sym._SetLastError_4
mov eax, ebx
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x70097110
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
je 0x70097138
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp sym._GetLastError_0
Function at 0x7009b320
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
mov dword [0x7034ba40], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateSemaphoreW_16
sub esp, 0x10
mov dword [0x7034ba44], eax
call sym._TlsAlloc_0
cmp eax, 0xffffffff
je 0x7009b388
mov dword [esp + 4], dbg.emutls_destroy
mov dword [esp], eax
mov dword [0x7034ba3c], eax
call sym.___mingwthr_key_dtor
test eax, eax
jne sym._emutls_init.cold
add esp, 0x1c
ret
call sym._GetLastError_0
jmp 0x7009b378