joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10077e90
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 0x10077f0e
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
sub esp, 4
test eax, eax
je 0x10077f0e
mov esi, dword [ebp + 0x10]
mov dword [esi], 0
call fcn.1007dcd0
mov dword [esi + 4], eax
xor eax, eax
jmp 0x10077f3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], eax
call fcn.10074ea0
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.1007db30
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 0x10078700
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], 0x100b624c
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], 0
test esi, esi
je 0x1007873f
mov dword [esi], 0
call fcn.1007dcd0
mov dword [esi + 4], eax
test byte [edi], 1
je 0x10078749
mov eax, dword [edi + 8]
jmp 0x1007874c
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 0x100787f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10074ea0
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 0x100787c9
call dword [sym.imp.msvcrt.dll__errno]
mov esi, dword [eax]
call fcn.1007db30
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp], 0
call fcn.1007dcd0
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.100771b0
add esp, 0x10
cmp byte [esp + 0x20], 2
jne 0x100787e4
xor eax, eax
jmp 0x100787f2
call dword [sym.imp.msvcrt.dll__errno]
mov esi, dword [eax]
call fcn.1007db30
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], esi
lea eax, [esp + 0x28]
jmp 0x100787e8
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
push eax
call fcn.10077c30
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10078950
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 0x100789a5
mov ebx, eax
add eax, eax
push eax
call sub.msvcrt.dll_malloc
add esp, 4
mov esi, eax
test edi, edi
je 0x10078993
push edi
call fcn.100af5d2
add esp, 4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x100789ab
mov eax, esi
pop esi
pop edi
pop ebx
ret
mov esi, edi
test eax, eax
jne 0x1007899f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10074ea0
add esp, 4
mov edi, eax
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], edi
xor eax, eax
test esi, esi
je 0x100789a1
push esi
call fcn.100af5d2
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebx
ret

Function at 0x10079660
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 0x1007973f
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
test cl, 1
jne 0x10079758
mov ecx, eax
and ecx, 0x400
je 0x10079758
sub esp, 0x1c
movaps xmm0, xmmword [0x100b61d0]
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 0x1007977b
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 0x10079718
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 0x10079736
push 0x28
lea eax, [esp + 0xc]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
test eax, eax
jne 0x10079736
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10074ea0
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 0x10079799
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10074ea0
add esp, 4
mov esi, eax
call dword [sym.imp.msvcrt.dll__errno]
jmp 0x10079792
mov edx, eax
and edx, 0xfffffffe
xor ecx, ecx
test bl, 0x92
sete cl
or ecx, edx
xor edi, edi
cmp ecx, eax
je 0x10079799
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x10079799
jmp 0x1007973f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10074ea0
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 0x10079df0
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 [0x100b6200]
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 0x10079ea8
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 0x10079e7d
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
sub esp, 4
xor edi, edi
test eax, eax
jne 0x10079e9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], eax
call fcn.10074ea0
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 0x10079ec5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], eax
call fcn.10074ea0
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 0x1007cc30
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.10084ee0
test al, al
je 0x1007cc77
mov esi, dword [fcn.1007cf00]
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.1007c250
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.10084fd0
Function at 0x10084900
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.0x10084911
jmp dword [eax*4 + 0x100b79d8]
cmp dword [0x100c8494], 0
je 0x10084a20
push 0x100c8498
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x100c84b0]
test edi, edi
je 0x10084a15
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1008495b
mov edi, dword [edi + 8]
test edi, edi
je 0x10084a15
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x10084950
test esi, esi
je 0x10084950
mov ecx, dword [edi + 4]
call dword [0x100bd75c]
push esi
call ecx
add esp, 4
jmp 0x10084950
call fcn.100abc20
jmp case.default.0x10084911
cmp dword [0x100c8494], 0
je case.default.0x10084911
push 0x100c8498
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x100c84b0]
test edi, edi
je 0x10084a08
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100849c7
mov edi, dword [edi + 8]
test edi, edi
je 0x10084a08
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x100849c0
test esi, esi
je 0x100849c0
mov ecx, dword [edi + 4]
call dword [0x100bd75c]
push esi
call ecx
add esp, 4
jmp 0x100849c0
cmp dword [0x100c8494], 0
jne 0x100849fc
push 0x100c8498
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x100c8494], 1
jmp case.default.0x10084911
push 0x100c8498
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.default.0x10084911
push 0x100c8498
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x100c8494]
cmp eax, 1
jne case.default.0x10084911
mov eax, dword [0x100c84b0]
test eax, eax
je 0x10084a52
nop word cs:[eax + eax]
mov esi, dword [eax + 8]
push eax
call fcn.100af5d2
add esp, 4
mov eax, esi
test esi, esi
jne 0x10084a40
mov dword [0x100c84b0], 0
mov dword [0x100c8494], 0
push 0x100c8498
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret

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

Disassembly:
push edi
push esi
mov esi, dword [0x100b6758]
movzx ecx, word [esi]
xor eax, eax
cmp ecx, 0x5a4d
jne 0x10084be6
mov ecx, dword [esi + 0x3c]
cmp dword [esi + ecx], 0x4550
jne 0x10084be6
add esi, ecx
movzx ecx, word [esi + 0x18]
cmp ecx, 0x10b
jne 0x10084be6
movzx ecx, word [esi + 6]
test ecx, ecx
je 0x10084be6
mov edx, dword [esp + 0xc]
sub edx, dword [0x100b6758]
movzx edi, word [esi + 0x14]
add esi, edi
add esi, 0x18
jmp 0x10084bd6
add esi, 0x28
dec ecx
je 0x10084be6
mov edi, dword [esi + 0xc]
cmp edi, edx
ja 0x10084bd0
add edi, dword [esi + 8]
cmp edi, edx
jbe 0x10084bd0
mov eax, esi
pop esi
pop edi
ret
Function at 0x10084e20
Capabilities:
Query environment variable

Disassembly:
push ebx
push edi
push esi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
cmp byte [0x100c974f], 1
jne 0x10084e3f
cmp byte [0x100c974e], 0
jne 0x10084e5e
jmp 0x10084e8b
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x100c974f], 1
test eax, eax
setne byte [0x100c974e]
je 0x10084e8b
mov ebx, dword [fcn.1007cf00]
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.1007d310
add esp, 0x10
push 2
call ebx
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
mov dword [esi], 0x100b7d30
mov dword [esi + 4], 0x100c9528
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.100862a0
xor eax, eax
pop esi
pop edi
pop ebx
ret

Function at 0x10084ee0
Capabilities:
Query environment variable

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

Function at 0x10084f20
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 [0x100c974f], 1
jne 0x10084f44
cmp byte [0x100c974e], 0
jne 0x10084f63
jmp 0x10084f91
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x100c974f], 1
test eax, eax
setne byte [0x100c974e]
je 0x10084f91
mov edi, dword [fcn.1007cf00]
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.1007d310
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 [0x100bd75c]
mov ecx, esi
push ebp
call edi
mov ecx, eax
mov eax, 0xffffe672
test cl, cl
je 0x10084fc4
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x100bd75c]
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 0x10084fd0
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 [0x100c974f], 1
jne 0x10084ff7
cmp byte [0x100c974e], 0
jne 0x10085016
jmp 0x10085044
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x100c974f], 1
test eax, eax
setne byte [0x100c974e]
je 0x10085044
mov edi, dword [fcn.1007cf00]
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.1007d310
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 [0x100bd75c]
mov ecx, esi
push ebx
call edi
mov ecx, eax
mov eax, 0xffffe672
test cl, cl
je 0x100850d8
mov eax, dword [esi]
mov edi, dword [eax + 0x10]
mov ecx, edi
call dword [0x100bd75c]
mov ecx, esi
push ebp
push ebx
call edi
xor eax, eax
cmp ebx, 0xffffffff
jne 0x100850d8
mov eax, dword [esi]
mov edi, dword [eax + 0x24]
mov ecx, edi
call dword [0x100bd75c]
mov eax, esp
mov ecx, esi
push eax
call edi
mov eax, dword [esi]
mov edi, dword [eax + 0x34]
mov ecx, edi
call dword [0x100bd75c]
mov ecx, esi
push 0
call edi
cmp dword [esp + 0x10], 0
je 0x100850d6
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x100bd75c]
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 [0x100bd75c]
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 0x10085270
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
mov esi, dword [esp + 0xc]
cmp byte [0x100c974f], 1
jne 0x1008528a
cmp byte [0x100c974e], 0
jne 0x100852a9
jmp 0x100852d5
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x100c974f], 1
test eax, eax
setne byte [0x100c974e]
je 0x100852d5
mov edi, dword [fcn.1007cf00]
push 2
call edi
add esp, 4
push esi
push str.libunwind:___unw_step_cursor_p__n
push eax
call fcn.1007d310
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 [0x100bd75c]
mov ecx, esi
push 0
call edi
pop esi
pop edi
ret

Function at 0x100852f0
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
mov esi, dword [esp + 0xc]
cmp byte [0x100c974f], 1
jne 0x1008530a
cmp byte [0x100c974e], 0
jne 0x10085329
jmp 0x10085355
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x100c974f], 1
test eax, eax
setne byte [0x100c974e]
je 0x10085355
mov edi, dword [fcn.1007cf00]
push 2
call edi
add esp, 4
push esi
push str.libunwind:___unw_step_stage2_cursor_p__n
push eax
call fcn.1007d310
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 [0x100bd75c]
mov ecx, esi
push 1
call edi
pop esi
pop edi
ret
Function at 0x10085370
Capabilities:
Query environment variable

Disassembly:
push ebx
push edi
push esi
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
cmp byte [0x100c974f], 1
jne 0x1008538f
cmp byte [0x100c974e], 0
jne 0x100853ae
jmp 0x100853db
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x100c974f], 1
test eax, eax
setne byte [0x100c974e]
je 0x100853db
mov edi, dword [fcn.1007cf00]
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.1007d310
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 [0x100bd75c]
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 0x10085400
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
mov esi, dword [esp + 0xc]
cmp byte [0x100c974f], 1
jne 0x1008541a
cmp byte [0x100c974e], 0
jne 0x10085439
jmp 0x10085465
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x100c974f], 1
test eax, eax
setne byte [0x100c974e]
je 0x10085465
mov edi, dword [fcn.1007cf00]
push 2
call edi
add esp, 4
push esi
push str.libunwind:___unw_resume_cursor_p__n
push eax
call fcn.1007d310
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 [0x100bd75c]
mov ecx, esi
call edi
mov eax, 0xffffe674
pop esi
pop edi
ret

Function at 0x10085480
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 [0x100c974f], 1
jne 0x100854a4
cmp byte [0x100c974e], 0
jne 0x100854c3
jmp 0x100854f1
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x100c974f], 1
test eax, eax
setne byte [0x100c974e]
je 0x100854f1
mov edi, dword [fcn.1007cf00]
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.1007d310
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 [0x100bd75c]
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 0x10085f10
Capabilities:
Query environment variable

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

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, 0x1014
call fcn.100846f4
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 0x100892de
mov ecx, dword [esp + 0x10]
xor edx, edx
mov eax, 0
cmp ecx, 4
jb 0x1008934b
shr ecx, 2
mov dword [esp + 8], ecx
jmp 0x10089203
mov edx, dword [esp + 0xc]
inc edx
xor eax, eax
mov ecx, dword [esp + 8]
cmp edx, ecx
je 0x1008934b
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 0x100891f0
add eax, dword [esp + 4]
lea ebp, [eax + ecx]
add ebp, 0x18
mov dword [esp], 0
xor ecx, ecx
jmp 0x1008927e
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 0x10089274
mov eax, dword [esp]
and al, 1
jne 0x100892fa
add ebp, 0x28
dec ebx
je 0x100891f0
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 0x10089240
push 8
push str..eh_frame
push ebp
call sub.msvcrt.dll_strncmp
add esp, 0xc
test eax, eax
je 0x100892c0
mov ecx, esi
test cl, 1
jne 0x10089269
jmp 0x10089274
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 0x10089269
jmp 0x10089274
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp byte [0x100c974d], 1
jne 0x100892fe
cmp byte [0x100c974c], 0
jne 0x1008931d
jmp 0x10089349
mov al, 1
jmp 0x1008934b
push str.LIBUNWIND_PRINT_UNWINDING
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x100c974d], 1
test eax, eax
setne byte [0x100c974c]
je 0x10089349
mov edi, dword [fcn.1007cf00]
push 2
call edi
add esp, 4
push esi
push str.libunwind:_findUnwindSections:_EnumProcessModules_failed__returned_error__d_n
push eax
call fcn.1007d310
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
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
jmp 0x431219