joyce8/EMBER2024-capa huggingface dataset:
Function at 0x78ac1201
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
xor ecx, ecx
cmp esi, ecx
je 0x78ae06ff
cmp word [esi], cx
je 0x78ac122b
add eax, 2
cmp word [eax], cx
jne 0x78ac121b
add eax, 2
cmp word [eax], cx
jne 0x78ac121b
push ebx
sub eax, esi
lea ebx, [eax + 2]
push edi
push ebx
call sym.MSVCR100.dll__malloc_crt
mov edi, eax
pop ecx
test edi, edi
je 0x78ac124a
push ebx
push esi
push edi
call sym.MSVCR100.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x78ac7e18
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x78ac7e54
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x78ac7e54
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x78ac7e54
xor eax, eax
cmp dword [ecx + 0x74], 0xe
jbe 0x78ac7e53
cmp dword [ecx + 0xe8], eax
setne al
ret
xor eax, eax
ret
Function at 0x78ae880c
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x28
mov eax, 0x78b4ee00
call fcn.78b2499c
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
lea ecx, [eax + 1]
mov dword [ebx + 0x30], ecx
test eax, eax
jne 0x78ae8926
cmp dword [ebx + 0x1c], eax
setne byte [ebp - 0x29]
cmp dword [ebx + 0x18], eax
jne 0x78ae88fb
cmp byte [ebp - 0x29], al
mov edi, dword [ebx + 0x14]
sete al
movzx eax, al
push eax
push dword [ebx + 0x28]
mov eax, dword [ebx + 0x24]
call fcn.78af2832
cmp byte [ebp - 0x29], 0
jne 0x78ae890b
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
lea esi, [ebp - 0x28]
mov dword [ebp - 0x30], eax
call fcn.78aeb795
mov cx, word [eax + 4]
mov word [ebx + 0xc], cx
mov eax, dword [eax]
mov dword [ebx + 8], eax
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x14]
imul eax, eax, 0x2c
mov ecx, dword [ecx + 0x10]
mov esi, dword [eax + ecx]
movzx edi, word [eax + ecx + 0x10]
push 0xc
lea eax, [ebp - 0x1c]
push 0
push eax
call sym.MSVCR100.dll_memset
add esp, 0xc
push dword [ebp - 0x30]
mov dword [ebp - 0x1c], esi
lea esi, [ebp - 0x1c]
mov word [ebp - 0x18], di
call fcn.78aeb7f5
mov edi, dword [ebx + 0x14]
mov esi, ebx
call fcn.78af314f
mov esi, dword [ebx + 0x14]
lea edi, [esi + 0x20]
push edi
mov dword [ebp - 0x30], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
imul eax, eax, 0x2c
mov ecx, dword [ebx + 0x28]
mov edx, dword [esi + 0x10]
imul ecx, ecx, 0x2c
mov eax, dword [eax + edx + 0x28]
lea ecx, [eax + ecx + 8]
mov eax, ebx
call fcn.78af3395
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x78ae890b
mov ecx, dword [ebx + 0x14]
lea ecx, [ecx + 0xc4]
mov eax, ebx
call fcn.78af3395
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x70]
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push ebx
push esi
mov dword [ebx + 0x20], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call fcn.78b24a0b
ret 4
Function at 0x78ae892e
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, ecx
dec dword [ebx + 0x30]
push esi
push edi
jne 0x78ae89d1
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0xc]
push dword [ebx + 0x20]
cmp dword [ebx + 0x1c], 0
mov eax, dword [eax + 0x70]
push eax
setne byte [esp + 0x17]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebx + 0x18]
and dword [ebx + 0x20], 0
test ecx, ecx
jne 0x78ae89af
cmp byte [esp + 0xf], cl
mov edi, dword [ebx + 0x14]
sete al
movzx eax, al
push eax
push dword [ebx + 0x28]
push dword [ebx + 0x24]
call fcn.78af288a
cmp byte [esp + 0xf], 0
jne 0x78ae89d1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
lea esi, [ebx + 8]
call fcn.78aeb7f5
mov esi, dword [ebx + 0x14]
mov edi, ebx
call fcn.78af3199
push dword [ebx + 0x14]
call fcn.78af30cd
jmp 0x78ae89d1
call fcn.78ae892e
mov ecx, dword [ebx + 0x14]
lea ecx, [ecx + 0xc4]
mov eax, ebx
call fcn.78af33c5
push ebx
mov dword [ebx], 0x78ae3b84
call sym.MSVCR100.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x78aebae2
Capabilities:
Allocate thread local storage

Disassembly:
push 0x20
mov eax, 0x78b4ea57
call fcn.78abb046
mov edi, dword [ebp + 8]
push dword [0x78b5636c]
xor esi, esi
mov dword [edi], 0x78ae3cd8
lea eax, [edi + 0x24]
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov dword [edi + 0xc], 0x10
mov dword [edi + 0x10], esi
mov dword [edi + 0x1c], esi
push eax
mov dword [edi + 0x20], esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov dword [ebp - 4], esi
push dword [0x78b5636c]
lea ebx, [edi + 0x68]
mov dword [edi + 0x3c], esi
mov dword [edi + 0x40], esi
mov dword [edi + 0x44], esi
mov dword [edi + 0x48], esi
mov dword [edi + 0x4c], esi
mov dword [edi + 0x50], esi
mov dword [edi + 0x54], esi
mov dword [edi + 0x58], esi
mov dword [edi + 0x5c], esi
lea eax, [ebx + 0xc]
mov dword [edi + 0x60], esi
mov dword [edi + 0x64], esi
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebx], esi
mov dword [ebx + 4], esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebx + 8], eax
cmp eax, 0xffffffff
jne 0x78aebb9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x78aebb84
and eax, 0xffff
or eax, 0x80070000
push eax
lea ecx, [ebp - 0x2c]
call sym.MSVCR100.dll_public:_void___thiscall_Concurrency::scheduler_resource_allocation_error::constructor_long_int_
push 0x78b4feb4
lea eax, [ebp - 0x2c]
push eax
call sym.MSVCR100.dll__CxxThrowException
push 0x78aebc60
push 0x78ae3cb8
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x78aebbd0
mov ecx, dword [0x78b54630]
xor ecx, eax
mov dword [edi + 0x8c], ecx
mov dword [edi + 0x90], esi
jmp 0x78aebc1f
push 4
push 0x3000
push 0x1000
push esi
mov dword [edi + 0x8c], esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [edi + 0x90], eax
cmp eax, esi
jne 0x78aebc1c
push 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 0x78abb0d8
call sym.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_
mov dword [ebp - 0x1c], 0x78abbd3c
push 0x78abbdd8
lea eax, [ebp - 0x1c]
jmp 0x78aebb95
mov byte [eax], 1
push 1
call fcn.78aebe38
pop ecx
call fcn.78aec337
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x48], eax
mov eax, dword [edi + 0xc]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sym.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
mov dword [edi + 0x4c], eax
pop ecx
mov eax, edi
call fcn.78abb658
ret 4
Function at 0x78aef174
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xc
mov eax, 0x78b4f1e0
call fcn.78abb046
mov edi, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x64
pop esi
call ebx
sub eax, 0x1f4
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x20]
cmp eax, 2
je 0x78aef263
lea eax, [edi + 0x24]
mov dword [ebp - 0x14], eax
push esi
push dword [edi + 0x48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
mov eax, dword [edi + 0x20]
sub eax, 0
je 0x78aef237
dec eax
jne 0x78aef24a
cmp dword [ebp - 0x18], 0x102
jne 0x78aef1f2
call fcn.78aeeccd
cmp dword [edi + 0x10], 0
jbe 0x78aef1e8
push 0
push edi
call fcn.78aeefcd
call ebx
push 0x64
mov dword [ebp - 0x10], eax
pop esi
jmp 0x78aef24a
call ebx
sub eax, dword [ebp - 0x10]
push 0x64
pop esi
mov dword [ebp - 0x18], eax
cmp eax, esi
jbe 0x78aef224
cmp eax, 0x82
jbe 0x78aef20f
call fcn.78aebc79
jmp 0x78aef21d
cmp dword [edi + 0x10], 0
jbe 0x78aef21d
push 0
push edi
call fcn.78aeefcd
call ebx
mov dword [ebp - 0x10], eax
jmp 0x78aef24a
cmp dword [edi + 0x10], 0
jbe 0x78aef232
push 0
push edi
call fcn.78aeefcd
sub esi, dword [ebp - 0x18]
jmp 0x78aef24a
push edi
call fcn.78aec93e
movzx esi, al
neg esi
sbb esi, esi
and esi, 0xffffff9b
add esi, 0x64
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 0x20]
cmp eax, 2
jne 0x78aef1a7
call fcn.78abb658
ret
Function at 0x78af007c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
call fcn.78aeb834
xor ecx, ecx
inc ecx
cmp ecx, eax
sbb eax, eax
and eax, 0xfa0
mov dword [0x78b5636c], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x78b57994], eax
cmp eax, 0xffffffff
jne 0x78af00da
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x78af00c1
and eax, 0xffff
or eax, 0x80070000
push eax
lea ecx, [esp + 4]
call sym.MSVCR100.dll_public:_void___thiscall_Concurrency::scheduler_resource_allocation_error::constructor_long_int_
push 0x78b4feb4
lea eax, [esp + 4]
push eax
call sym.MSVCR100.dll__CxxThrowException
call fcn.78afa256
mov esp, ebp
pop ebp
ret

Function at 0x78af0b09
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
and dword [ebp + 8], 0
cmp byte [ebp + 0xc], 0
push esi
push edi
mov esi, eax
je 0x78af0b38
mov edi, dword [esi + 0x24]
push edi
push dword [0x78b57994]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
and dword [esi + 0x24], 0
mov dword [ebp + 8], edi
lea eax, [ebx + 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDepthSList]
mov ecx, dword [ebx + 0x14]
movzx eax, ax
cmp eax, ecx
jge 0x78af0b81
mov ecx, esi
call fcn.78ae6943
mov eax, dword [esi + 0x88]
test eax, eax
je 0x78af0b6e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x88], 0
add esi, 4
push esi
lea eax, [ebx + 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
jmp 0x78af0b8e
test esi, esi
je 0x78af0b8e
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x44]
lea eax, [ebx + 0xd8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov esi, dword [ebp + 8]
test esi, esi
je 0x78af0bc7
cmp byte [esi + 0x40], 0
jne 0x78af0bc7
lea ecx, [esi]
call fcn.78ae6bcc
push 3
lea eax, [esi - 4]
call fcn.78ae9bd9
lea ecx, [esi]
call fcn.78ae6bdd
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x78af276d
Capabilities:
Get thread local storage value

Disassembly:
push 0
mov eax, 0x78b4f9fc
call fcn.78abb046
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xc]
push dword [eax + 0x70]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x78af2828
mov ecx, eax
and ecx, 3
jne 0x78af279c
mov esi, eax
push eax
jmp 0x78af27b8
cmp ecx, 1
jne 0x78af27bf
and eax, 0xfffffffe
mov esi, dword [eax + 0x10]
mov eax, dword [esi + 0x20]
add esi, 4
test eax, eax
je 0x78af27b7
cmp byte [eax + 0x40], 0
jne 0x78af2828
push esi
call fcn.78ae880c
jmp 0x78af27f2
and eax, 0xfffffffd
mov esi, eax
lea edi, [esi + 4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
mov esi, dword [esi + 0x20]
mov eax, dword [esi + 0x28]
add esi, 0xc
test eax, eax
je 0x78af27e5
cmp byte [eax + 0x40], 0
je 0x78af27e5
xor esi, esi
jmp 0x78af27eb
push esi
call fcn.78ae880c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
test esi, esi
je 0x78af2828
cmp dword [esi + 0x14], ebx
je 0x78af2824
push 0x3c
call sym.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
mov dword [ebp + 8], edi
xor eax, eax
mov dword [ebp - 4], eax
cmp edi, eax
je 0x78af2818
push esi
push ebx
call fcn.78ae86fb
or dword [ebp - 4], 0xffffffff
push eax
mov esi, eax
call fcn.78ae880c
mov eax, esi
jmp 0x78af282a
xor eax, eax
call fcn.78abb658
ret 4

Function at 0x78af7403
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebx
push 0x78af7494
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x78af7490
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x78af74b0
push ebx
call esi
mov ecx, dword [0x78b54630]
push 0x78af74c4
xor ecx, eax
push ebx
mov dword [edi], ecx
call esi
mov ecx, dword [0x78b54630]
push 0x78af74dc
xor ecx, eax
push ebx
mov dword [edi + 4], ecx
call esi
mov ecx, dword [0x78b54630]
push 0x78af74e8
xor ecx, eax
push ebx
mov dword [edi + 8], ecx
call esi
mov ecx, dword [0x78b54630]
push 0x78af7500
xor ecx, eax
push ebx
mov dword [edi + 0xc], ecx
call esi
mov ecx, dword [0x78b54630]
push 0x78af7514
xor ecx, eax
push ebx
mov dword [edi + 0x10], ecx
call esi
mov ecx, dword [0x78b54630]
xor ecx, eax
mov dword [edi + 0x14], ecx
pop esi
mov eax, edi
pop ebx
ret
Function at 0x78afa890
Capabilities:
Get thread local storage value
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x78b53610]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x80c], edi
call fcn.78af035a
push dword [0x78b579bc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x78afa8e0
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.78ab07a7
leave
ret
test esi, esi
je 0x78afa93d
cmp dword [esi + 0x1c], 0
je 0x78afa93d
mov eax, dword [esi + 0x18]
test eax, eax
je 0x78afa8f6
mov edi, dword [eax + 0x6c]
jmp 0x78afa8f9
or edi, 0xffffffff
push dword [ebp + 0x10]
push dword [ebp - 0x80c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 8]
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push eax
push 0x78afa9a8
lea eax, [ebp - 0x808]
push 0x400
push eax
call sym.MSVCR100.dll_swprintf_s
add esp, 0x2c
jmp 0x78afa962
push dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x78afaa10
lea eax, [ebp - 0x808]
push 0x400
push eax
call sym.MSVCR100.dll_swprintf_s
add esp, 0x1c
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0x808]
push eax
push dword [0x78b54634]
call sym.MSVCR100.dll_fwprintf
push dword [0x78b54634]
call sym.MSVCR100.dll_fflush
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0xfffffffffffffff8
call sym.MSVCR100.dll_exit
int3

Function at 0x78afaac5
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x78b53610]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x78b57a50]
test dword [ebp + 8], eax
je 0x78afab5a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call fcn.78afacea
xor eax, eax
mov word [ebp - 8], ax
mov eax, dword [0x78b54634]
add esp, 0xc
test eax, eax
je 0x78afab4d
lea ecx, [ebp - 0x808]
push ecx
push eax
call sym.MSVCR100.dll_fwprintf
pop ecx
pop ecx
push 0
push 0x32
push dword [0x78b57a5c]
push dword [0x78b57a58]
call fcn.78ac8690
add dword [0x78b57a58], 1
adc dword [0x78b57a5c], 0
or eax, edx
jne 0x78afab5a
push dword [0x78b54634]
call sym.MSVCR100.dll_fflush
pop ecx
jmp 0x78afab5a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.78ab07a7
leave
ret
Function at 0x78afac51
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
xor ecx, ecx
sub esp, 0x14
mov eax, 0x78b57a54
inc ecx
lock xadd dword [eax], ecx
inc ecx
cmp ecx, 1
jne 0x78afac7c
call fcn.78afabc4
xor ecx, ecx
mov eax, 0x78b5635c
inc ecx
lock xadd dword [eax], ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x78afacc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x78afacab
and eax, 0xffff
or eax, 0x80070000
push eax
lea ecx, [ebp - 0x14]
call sym.MSVCR100.dll_public:_void___thiscall_Concurrency::scheduler_resource_allocation_error::constructor_long_int_
push 0x78b4feb4
lea eax, [ebp - 0x14]
push eax
call sym.MSVCR100.dll__CxxThrowException
leave
ret

Function at 0x78afea37
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x78afea5e
call sym.MSVCR100.dll___doserrno
mov dword [eax], esi
call sym.MSVCR100.dll__errno
push 0x16
pop esi
mov dword [eax], esi
call sym.MSVCR100.dll__invalid_parameter_noinfo
mov eax, esi
jmp 0x78afeab3
test dword [ebp + 0xc], 0xfffffff9
jne 0x78afea44
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78afea8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.MSVCR100.dll__dosmaperr
pop ecx
call sym.MSVCR100.dll__errno
mov eax, dword [eax]
jmp 0x78afeab3
test al, 0x10
jne 0x78afeab1
test al, 1
je 0x78afeab1
test byte [ebp + 0xc], 2
je 0x78afeab1
call sym.MSVCR100.dll___doserrno
mov dword [eax], 5
call sym.MSVCR100.dll__errno
mov dword [eax], 0xd
jmp 0x78afea82
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x78afeaf6
call sym.MSVCR100.dll___doserrno
and dword [eax], 0
call sym.MSVCR100.dll__errno
mov dword [eax], 0x16
call sym.MSVCR100.dll__invalid_parameter_noinfo
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78afeb13
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.MSVCR100.dll__dosmaperr
pop ecx
jmp 0x78afeaf1
test byte [ebp + 0xc], 0x80
je 0x78afeb1e
and eax, 0xfffffffe
jmp 0x78afeb21
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x78afeb04
xor eax, eax
pop ebp
ret
Function at 0x78b0048f
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x78b004b7
call sym.MSVCR100.dll___doserrno
and dword [eax], 0
call sym.MSVCR100.dll__errno
mov dword [eax], 0x16
call sym.MSVCR100.dll__invalid_parameter_noinfo
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x78b004d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.MSVCR100.dll__dosmaperr
pop ecx
jmp 0x78b004b2
test byte [ebp + 0xc], 0x80
je 0x78b004df
and eax, 0xfffffffe
jmp 0x78b004e2
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x78b004c5
xor eax, eax
pop ebp
ret

Function at 0x78b2b5a7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x78b53610]
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 sym.MSVCR100.dll__encoded_null
and dword [ebp - 0x14], 0
cmp dword [0x78b57598], 0
mov dword [ebp - 0x18], eax
jne 0x78b2b65a
push 0x78ae31dc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x78b2b702
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x78b2b730
push ebx
call edi
test eax, eax
je 0x78b2b702
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x78ae31cc
push ebx
mov dword [0x78b57598], eax
call edi
push eax
call esi
push 0x78ae31b8
push ebx
mov dword [0x78b5759c], eax
call edi
push eax
call esi
push 0x78b2b714
push ebx
mov dword [0x78b575a0], eax
call edi
push eax
call esi
mov dword [0x78b575a8], eax
test eax, eax
je 0x78b2b65a
push 0x78ae31a0
push ebx
call edi
push eax
call esi
mov dword [0x78b575a4], eax
mov eax, dword [0x78b575a4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x78b2b6b3
cmp dword [0x78b575a8], ecx
je 0x78b2b6b3
push eax
call esi
push dword [0x78b575a8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x78b2b6b3
test ebx, ebx
je 0x78b2b6b3
call edi
test eax, eax
je 0x78b2b6aa
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x78b2b6aa
test byte [ebp - 8], 1
jne 0x78b2b6b3
or dword [ebp + 0x10], 0x200000
jmp 0x78b2b6e6
mov eax, dword [0x78b5759c]
cmp eax, dword [ebp - 0x18]
je 0x78b2b6e6
push eax
call esi
test eax, eax
je 0x78b2b6e6
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x78b2b6e6
mov eax, dword [0x78b575a0]
cmp eax, dword [ebp - 0x18]
je 0x78b2b6e6
push eax
call esi
test eax, eax
je 0x78b2b6e6
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x78b57598]
call esi
test eax, eax
je 0x78b2b702
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x78b2b704
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.78ab07a7
leave
ret
Function at 0x78b2c097
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x78b576b8], eax
mov dword [0x78b576b4], ecx
mov dword [0x78b576b0], edx
mov dword [0x78b576ac], ebx
mov dword [0x78b576a8], esi
mov dword [0x78b576a4], edi
mov word [0x78b576d0], ss
mov word [0x78b576c4], cs
mov word [0x78b576a0], ds
mov word [0x78b5769c], es
mov word [0x78b57698], fs
mov word [0x78b57694], gs
pushfd
pop dword [0x78b576c8]
mov eax, dword [ebp]
mov dword [0x78b576bc], eax
mov eax, dword [ebp + 4]
mov dword [0x78b576c0], eax
lea eax, [ebp + 8]
mov dword [0x78b576cc], eax
mov eax, dword [ebp - 0x320]
mov dword [0x78b57608], 0x10001
mov eax, dword [0x78b576c0]
mov dword [0x78b575bc], eax
mov dword [0x78b575b0], 0xc0000409
mov dword [0x78b575b4], 1
mov eax, dword [0x78b53610]
mov dword [ebp - 0x328], eax
mov eax, dword [0x78b54440]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x78b57600], eax
push 1
call sym.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x78b2c198
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x78b57600], 0
jne 0x78b2c183
push 1
call sym.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret