joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007cf40
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd8
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x10], 0x100bb23c
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
test edi, edi
je 0x1007cf7e
mov dword [edi], 0
call fcn.100831b0
mov dword [edi + 4], eax
mov dword [esp], 0
call fcn.100831b0
mov dword [esp + 4], eax
mov edi, esp
lea eax, [esp + 0x80]
lea ecx, [esp + 8]
push edi
push eax
push esi
push ecx
call fcn.1007c6e0
add esp, 0x10
movzx eax, byte [esp + 8]
cmp eax, 2
je 0x1007cfc1
test eax, eax
jne 0x1007cfcb
lea ecx, [esp + 0x10]
push edi
call fcn.1007d160
jmp 0x1007cfea
test byte [ebx], 1
je 0x1007cfec
mov eax, dword [ebx + 8]
jmp 0x1007cfef
mov dword [esp + 0x30], 0x14
lea eax, [esp + 0x30]
lea ecx, [esp + 0x10]
push 0x100bb24d
push eax
push ecx
call fcn.1007dd30
add esp, 0xc
jmp 0x1007d000
lea eax, [ebx + 2]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, eax
mov al, 1
test ecx, ecx
je 0x1007d008
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1007a3d0
add esp, 4
mov esi, eax
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], esi
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 0x11
jne 0x1007d084
call dword [sym.imp.msvcrt.dll__errno]
mov esi, dword [eax]
call fcn.10083010
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [esp + 0x28], 0
call fcn.100831b0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x20]
push eax
push ecx
push ebx
push edx
call fcn.1007c6e0
add esp, 0x10
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
cmp al, 2
jne 0x1007d0a7
xor eax, eax
jmp 0x1007d000
call dword [sym.imp.msvcrt.dll__errno]
mov esi, dword [eax]
call fcn.10083010
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], esi
lea eax, [esp + 0x30]
lea ecx, [esp + 0x10]
push eax
jmp 0x1007cfba
jmp 0x1007cfb5
Function at 0x1007d3c0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov edi, dword [ebp + 0xc]
mov ebx, edi
sar ebx, 0x1f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__get_osfhandle]
mov esi, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edi
movsd xmm0, qword [esp + 0x18]
movsd qword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
sub esp, 0x14
test eax, eax
je 0x1007d43e
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
sub esp, 4
test eax, eax
je 0x1007d43e
mov esi, dword [ebp + 0x10]
mov dword [esi], 0
call fcn.100831b0
mov dword [esi + 4], eax
xor eax, eax
jmp 0x1007d46b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], eax
call fcn.1007a3d0
mov esi, eax
mov edi, dword [sym.imp.msvcrt.dll__errno]
call edi
mov dword [eax], esi
call edi
mov esi, dword [eax]
call fcn.10083010
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov dword [ecx], esi
mov al, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1007dc30
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esp + 0x10], 0x100bb23c
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], 0
test esi, esi
je 0x1007dc6f
mov dword [esi], 0
call fcn.100831b0
mov dword [esi + 4], eax
test byte [edi], 1
je 0x1007dc79
mov eax, dword [edi + 8]
jmp 0x1007dc7c
lea eax, [edi + 2]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, eax
mov al, 1
test ecx, ecx
jne 0x1007dd22
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1007a3d0
add esp, 4
mov esi, eax
mov ebx, dword [sym.imp.msvcrt.dll__errno]
call ebx
mov dword [eax], esi
call ebx
cmp dword [eax], 0x11
jne 0x1007dcf9
call dword [sym.imp.msvcrt.dll__errno]
mov esi, dword [eax]
call fcn.10083010
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp], 0
call fcn.100831b0
mov dword [esp + 4], eax
mov eax, esp
lea ecx, [esp + 0x28]
lea edx, [esp + 0x20]
push eax
push ecx
push edi
push edx
call fcn.1007c6e0
add esp, 0x10
cmp byte [esp + 0x20], 2
jne 0x1007dd14
xor eax, eax
jmp 0x1007dd22
call dword [sym.imp.msvcrt.dll__errno]
mov esi, dword [eax]
call fcn.10083010
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], esi
lea eax, [esp + 0x28]
jmp 0x1007dd18
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
push eax
call fcn.1007d160
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1007de80
Capabilities:
Get common file path

Disassembly:
push ebx
push edi
push esi
push 0x21c
call sub.msvcrt.dll_malloc
add esp, 4
mov edi, eax
push eax
push 0x10e
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, 0x10f
jb 0x1007ded5
mov ebx, eax
add eax, eax
push eax
call sub.msvcrt.dll_malloc
add esp, 4
mov esi, eax
test edi, edi
je 0x1007dec3
push edi
call fcn.100b4b08
add esp, 4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1007dedb
mov eax, esi
pop esi
pop edi
pop ebx
ret
mov esi, edi
test eax, eax
jne 0x1007decf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1007a3d0
add esp, 4
mov edi, eax
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], edi
xor eax, eax
test esi, esi
je 0x1007ded1
push esi
call fcn.100b4b08
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebx
ret

Function at 0x1007eb90
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1007ec6f
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
test cl, 1
jne 0x1007ec88
mov ecx, eax
and ecx, 0x400
je 0x1007ec88
sub esp, 0x1c
movaps xmm0, xmmword [0x100bb1c0]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2000000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 4], eax
cmp eax, 0xffffffff
je 0x1007ecab
mov esi, eax
lea eax, [esp + 8]
push 0x28
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
test eax, eax
je 0x1007ec48
mov eax, dword [esp + 0x28]
mov edx, eax
and edx, 0xfffffffe
xor ecx, ecx
test bl, 0x92
sete cl
or ecx, edx
mov dword [esp + 0x28], ecx
xor edi, edi
cmp ecx, eax
je 0x1007ec66
push 0x28
lea eax, [esp + 0xc]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
test eax, eax
jne 0x1007ec66
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1007a3d0
add esp, 4
mov edi, eax
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], edi
mov edi, 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1007ecc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1007a3d0
add esp, 4
mov esi, eax
call dword [sym.imp.msvcrt.dll__errno]
jmp 0x1007ecc2
mov edx, eax
and edx, 0xfffffffe
xor ecx, ecx
test bl, 0x92
sete cl
or ecx, edx
xor edi, edi
cmp ecx, eax
je 0x1007ecc9
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1007ecc9
jmp 0x1007ec6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1007a3d0
add esp, 4
mov esi, eax
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], esi
mov edi, 0xffffffff
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1007f320
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [ebp + 8]
movaps xmm0, xmmword [0x100bb1f0]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2000000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x1007f3d8
mov esi, eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x20], eax
sar eax, 0x1f
mov dword [esp + 0x24], eax
movsd xmm0, qword [esp + 0x20]
movsd qword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
sub esp, 0x14
test eax, eax
je 0x1007f3ad
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
sub esp, 4
xor edi, edi
test eax, eax
jne 0x1007f3ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], eax
call fcn.1007a3d0
mov edi, eax
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], edi
mov edi, 0xffffffff
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x1007f3f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], eax
call fcn.1007a3d0
mov esi, eax
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], esi
mov edi, 0xffffffff
mov eax, edi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
Function at 0x10082160
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
call fcn.1008a3d0
test al, al
je 0x100821a7
mov esi, dword [fcn.1008a300]
push 2
call esi
add esp, 4
push ebp
push ebx
push edi
push str.libunwind:__Unwind_SetGR_context_p__reg_d__value0x_0x__n
push eax
call fcn.10081780
add esp, 0x14
push 2
call esi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.1008a4c0
Function at 0x10089de0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
cmp eax, 3
ja case.default.0x10089df1
jmp dword [eax*4 + 0x100bc9c8]
cmp dword [0x100cd58c], 0
je 0x10089f00
push 0x100cd590
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x100cd5a8]
test edi, edi
je 0x10089ef5
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10089e3b
mov edi, dword [edi + 8]
test edi, edi
je 0x10089ef5
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x10089e30
test esi, esi
je 0x10089e30
mov ecx, dword [edi + 4]
call dword [0x100c2744]
push esi
call ecx
add esp, 4
jmp 0x10089e30
call fcn.100b10b0
jmp case.default.0x10089df1
cmp dword [0x100cd58c], 0
je case.default.0x10089df1
push 0x100cd590
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x100cd5a8]
test edi, edi
je 0x10089ee8
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10089ea7
mov edi, dword [edi + 8]
test edi, edi
je 0x10089ee8
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x10089ea0
test esi, esi
je 0x10089ea0
mov ecx, dword [edi + 4]
call dword [0x100c2744]
push esi
call ecx
add esp, 4
jmp 0x10089ea0
cmp dword [0x100cd58c], 0
jne 0x10089edc
push 0x100cd590
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x100cd58c], 1
jmp case.default.0x10089df1
push 0x100cd590
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.default.0x10089df1
push 0x100cd590
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x100cd58c]
cmp eax, 1
jne case.default.0x10089df1
mov eax, dword [0x100cd5a8]
test eax, eax
je 0x10089f32
nop word cs:[eax + eax]
mov esi, dword [eax + 8]
push eax
call fcn.100b4b08
add esp, 4
mov eax, esi
test esi, esi
jne 0x10089f20
mov dword [0x100cd5a8], 0
mov dword [0x100cd58c], 0
push 0x100cd590
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1008a060
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push edi
push esi
mov esi, dword [0x100bb748]
movzx ecx, word [esi]
xor eax, eax
cmp ecx, 0x5a4d
jne 0x1008a0c6
mov ecx, dword [esi + 0x3c]
cmp dword [esi + ecx], 0x4550
jne 0x1008a0c6
add esi, ecx
movzx ecx, word [esi + 0x18]
cmp ecx, 0x10b
jne 0x1008a0c6
movzx ecx, word [esi + 6]
test ecx, ecx
je 0x1008a0c6
mov edx, dword [esp + 0xc]
sub edx, dword [0x100bb748]
movzx edi, word [esi + 0x14]
add esi, edi
add esi, 0x18
jmp 0x1008a0b6
add esi, 0x28
dec ecx
je 0x1008a0c6
mov edi, dword [esi + 0xc]
cmp edi, edx
ja 0x1008a0b0
add edi, dword [esi + 8]
cmp edi, edx
jbe 0x1008a0b0
mov eax, esi
pop esi
pop edi
ret

Function at 0x1008a308
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [sym.imp.msvcrt.dll__iob]
shl eax, 5
add eax, dword [ecx]
ret
Function at 0x1008a310
Capabilities:
Query environment variable

Disassembly:
push ebx
push edi
push esi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
cmp byte [0x100ce84f], 1
jne 0x1008a32f
cmp byte [0x100ce84e], 0
jne 0x1008a34e
jmp 0x1008a37b
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x100ce84f], 1
test eax, eax
setne byte [0x100ce84e]
je 0x1008a37b
mov ebx, dword [fcn.1008a300]
push 2
call ebx
add esp, 4
push edi
push esi
push str.libunwind:___unw_init_local_cursor_p__context_p__n
push eax
call fcn.100827f0
add esp, 0x10
push 2
call ebx
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
mov dword [esi], 0x100bcd24
mov dword [esi + 4], 0x100ce628
movups xmm0, xmmword [edi]
movups xmm1, xmmword [edi + 0x10]
movups xmmword [esi + 8], xmm0
movups xmmword [esi + 0x18], xmm1
movups xmm0, xmmword [edi + 0x20]
movups xmmword [esi + 0x28], xmm0
movups xmm0, xmmword [edi + 0x30]
movups xmmword [esi + 0x38], xmm0
xorps xmm0, xmm0
movups xmmword [esi + 0x48], xmm0
movups xmmword [esi + 0x58], xmm0
movups xmmword [esi + 0x62], xmm0
mov ecx, esi
push 0
call fcn.1008b790
xor eax, eax
pop esi
pop edi
pop ebx
ret

Function at 0x1008a3d0
Capabilities:
Query environment variable

Disassembly:
cmp byte [0x100ce84f], 1
jne 0x1008a3e4
cmp byte [0x100ce84e], 0
setne al
ret
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
test eax, eax
setne al
setne byte [0x100ce84e]
mov byte [0x100ce84f], 1
ret

Function at 0x1008a410
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp byte [0x100ce84f], 1
jne 0x1008a434
cmp byte [0x100ce84e], 0
jne 0x1008a453
jmp 0x1008a481
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x100ce84f], 1
test eax, eax
setne byte [0x100ce84e]
je 0x1008a481
mov edi, dword [fcn.1008a300]
push 2
call edi
add esp, 4
push ebx
push ebp
push esi
push str.libunwind:___unw_get_reg_cursor_p__regNum_d__value_p__n
push eax
call fcn.100827f0
add esp, 0x14
push 2
call edi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x100c2744]
mov ecx, esi
push ebp
call edi
mov ecx, eax
mov eax, 0xffffe672
test cl, cl
je 0x1008a4b4
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x100c2744]
mov ecx, esi
push ebp
call edi
mov dword [ebx], eax
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1008a4c0
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov ebp, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
cmp byte [0x100ce84f], 1
jne 0x1008a4e7
cmp byte [0x100ce84e], 0
jne 0x1008a506
jmp 0x1008a534
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x100ce84f], 1
test eax, eax
setne byte [0x100ce84e]
je 0x1008a534
mov edi, dword [fcn.1008a300]
push 2
call edi
add esp, 4
push ebp
push ebx
push esi
push str.libunwind:___unw_set_reg_cursor_p__regNum_d__value0x_x__n
push eax
call fcn.100827f0
add esp, 0x14
push 2
call edi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x100c2744]
mov ecx, esi
push ebx
call edi
mov ecx, eax
mov eax, 0xffffe672
test cl, cl
je 0x1008a5c8
mov eax, dword [esi]
mov edi, dword [eax + 0x10]
mov ecx, edi
call dword [0x100c2744]
mov ecx, esi
push ebp
push ebx
call edi
xor eax, eax
cmp ebx, 0xffffffff
jne 0x1008a5c8
mov eax, dword [esi]
mov edi, dword [eax + 0x24]
mov ecx, edi
call dword [0x100c2744]
mov eax, esp
mov ecx, esi
push eax
call edi
mov eax, dword [esi]
mov edi, dword [eax + 0x34]
mov ecx, edi
call dword [0x100c2744]
mov ecx, esi
push 0
call edi
cmp dword [esp + 0x10], 0
je 0x1008a5c6
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x100c2744]
mov ecx, esi
push 0xfffffffffffffffe
call edi
mov edi, eax
add edi, dword [esp + 0x10]
mov eax, dword [esi]
mov ebx, dword [eax + 0x10]
mov ecx, ebx
call dword [0x100c2744]
mov ecx, esi
push edi
push 0xfffffffffffffffe
call ebx
xor eax, eax
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1008a760
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
mov esi, dword [esp + 0xc]
cmp byte [0x100ce84f], 1
jne 0x1008a77a
cmp byte [0x100ce84e], 0
jne 0x1008a799
jmp 0x1008a7c5
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x100ce84f], 1
test eax, eax
setne byte [0x100ce84e]
je 0x1008a7c5
mov edi, dword [fcn.1008a300]
push 2
call edi
add esp, 4
push esi
push str.libunwind:___unw_step_cursor_p__n
push eax
call fcn.100827f0
add esp, 0xc
push 2
call edi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 0x20]
mov ecx, edi
call dword [0x100c2744]
mov ecx, esi
push 0
call edi
pop esi
pop edi
ret

Function at 0x1008a7e0
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
mov esi, dword [esp + 0xc]
cmp byte [0x100ce84f], 1
jne 0x1008a7fa
cmp byte [0x100ce84e], 0
jne 0x1008a819
jmp 0x1008a845
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x100ce84f], 1
test eax, eax
setne byte [0x100ce84e]
je 0x1008a845
mov edi, dword [fcn.1008a300]
push 2
call edi
add esp, 4
push esi
push str.libunwind:___unw_step_stage2_cursor_p__n
push eax
call fcn.100827f0
add esp, 0xc
push 2
call edi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 0x20]
mov ecx, edi
call dword [0x100c2744]
mov ecx, esi
push 1
call edi
pop esi
pop edi
ret
Function at 0x1008a860
Capabilities:
Query environment variable

Disassembly:
push ebx
push edi
push esi
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
cmp byte [0x100ce84f], 1
jne 0x1008a87f
cmp byte [0x100ce84e], 0
jne 0x1008a89e
jmp 0x1008a8cb
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x100ce84f], 1
test eax, eax
setne byte [0x100ce84e]
je 0x1008a8cb
mov edi, dword [fcn.1008a300]
push 2
call edi
add esp, 4
push ebx
push esi
push str.libunwind:___unw_get_proc_info_cursor_p__info_p__n
push eax
call fcn.100827f0
add esp, 0x10
push 2
call edi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 0x24]
mov ecx, edi
call dword [0x100c2744]
mov ecx, esi
push ebx
call edi
xor ecx, ecx
cmp dword [ebx + 4], 0
mov eax, 0xffffe66b
cmovne eax, ecx
pop esi
pop edi
pop ebx
ret

Function at 0x1008a8f0
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
mov esi, dword [esp + 0xc]
cmp byte [0x100ce84f], 1
jne 0x1008a90a
cmp byte [0x100ce84e], 0
jne 0x1008a929
jmp 0x1008a955
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x100ce84f], 1
test eax, eax
setne byte [0x100ce84e]
je 0x1008a955
mov edi, dword [fcn.1008a300]
push 2
call edi
add esp, 4
push esi
push str.libunwind:___unw_resume_cursor_p__n
push eax
call fcn.100827f0
add esp, 0xc
push 2
call edi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 0x28]
mov ecx, edi
call dword [0x100c2744]
mov ecx, esi
call edi
mov eax, 0xffffe674
pop esi
pop edi
ret

Function at 0x1008a970
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp byte [0x100ce84f], 1
jne 0x1008a994
cmp byte [0x100ce84e], 0
jne 0x1008a9b3
jmp 0x1008a9e1
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x100ce84f], 1
test eax, eax
setne byte [0x100ce84e]
je 0x1008a9e1
mov edi, dword [fcn.1008a300]
push 2
call edi
add esp, 4
push ebp
push ebx
push esi
push str.libunwind:___unw_get_proc_name_cursor_p__buf_p__bufLen_lu__n
push eax
call fcn.100827f0
add esp, 0x14
push 2
call edi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 0x30]
mov ecx, edi
call dword [0x100c2744]
mov ecx, esi
push dword [esp + 0x20]
push ebp
push ebx
call edi
xor ecx, ecx
test al, al
mov eax, 0xffffe674
cmovne eax, ecx
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1008b400
Capabilities:
Query environment variable

Disassembly:
cmp byte [0x100ce84d], 1
jne 0x1008b414
cmp byte [0x100ce84c], 0
setne al
ret
push str.LIBUNWIND_PRINT_UNWINDING
call sub.msvcrt.dll_getenv
add esp, 4
test eax, eax
setne al
setne byte [0x100ce84c]
mov byte [0x100ce84d], 1
ret
Function at 0x1008e690
Capabilities:
Enumerate process modules
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, 0x1014
call fcn.10089bd4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push 0x1000
push edx
push eax
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x1008e7ce
mov ecx, dword [esp + 0x10]
xor edx, edx
mov eax, 0
cmp ecx, 4
jb 0x1008e83b
shr ecx, 2
mov dword [esp + 8], ecx
jmp 0x1008e6f3
mov edx, dword [esp + 0xc]
inc edx
xor eax, eax
mov ecx, dword [esp + 8]
cmp edx, ecx
je 0x1008e83b
mov dword [esp + 0xc], edx
mov esi, dword [esp + edx*4 + 0x14]
mov eax, dword [esi + 0x3c]
movzx ecx, word [esi + eax + 0x14]
mov edx, dword [esp + 0x102c]
mov dword [edx], esi
mov dword [esp + 4], esi
movzx ebx, word [esi + eax + 6]
test ebx, ebx
je 0x1008e6e0
add eax, dword [esp + 4]
lea ebp, [eax + ecx]
add ebp, 0x18
mov dword [esp], 0
xor ecx, ecx
jmp 0x1008e76e
mov eax, dword [ebp + 8]
add eax, edi
mov ecx, dword [esp + 0x1028]
cmp eax, ecx
mov eax, esi
movzx esi, al
mov eax, esi
mov edx, 1
cmova eax, edx
cmp edi, ecx
mov ecx, eax
cmova ecx, esi
test cl, 1
je 0x1008e764
mov eax, dword [esp]
and al, 1
jne 0x1008e7ea
add ebp, 0x28
dec ebx
je 0x1008e6e0
mov esi, ecx
mov edi, dword [ebp + 0xc]
add edi, dword [esp + 4]
push 8
push str..text
push ebp
call sub.msvcrt.dll_strncmp
add esp, 0xc
test eax, eax
je 0x1008e730
push 8
push str..eh_frame
push ebp
call sub.msvcrt.dll_strncmp
add esp, 0xc
test eax, eax
je 0x1008e7b0
mov ecx, esi
test cl, 1
jne 0x1008e759
jmp 0x1008e764
mov ecx, dword [esp + 0x102c]
mov dword [ecx + 4], edi
mov eax, dword [ebp + 8]
mov dword [ecx + 8], eax
mov al, 1
mov dword [esp], eax
mov ecx, esi
test cl, 1
jne 0x1008e759
jmp 0x1008e764
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp byte [0x100ce84d], 1
jne 0x1008e7ee
cmp byte [0x100ce84c], 0
jne 0x1008e80d
jmp 0x1008e839
mov al, 1
jmp 0x1008e83b
push str.LIBUNWIND_PRINT_UNWINDING
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x100ce84d], 1
test eax, eax
setne byte [0x100ce84c]
je 0x1008e839
mov edi, dword [fcn.1008a300]
push 2
call edi
add esp, 4
push esi
push str.libunwind:_findUnwindSections:_EnumProcessModules_failed__returned_error__d_n
push eax
call fcn.100827f0
add esp, 0xc
push 2
call edi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
xor eax, eax
add esp, 0x1014
pop esi
pop edi
pop ebx
pop ebp
ret 8