joyce8/EMBER2024-capa huggingface dataset:
Function at 0x78ab888a
Capabilities:
Get geographical location

Disassembly:
cmp dword [ebp + 0xc], 0
jne 0x78ab8644
and dword [ebp - 0x88], 0
push 2
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebp + 0x14]
or eax, 0x20000000
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x78ab8644
mov al, byte [ebp - 0x88]
mov byte [edi], al
jmp 0x78ab8906
or eax, 0xffffffff
jmp 0x78ab8908
push dword [edi]
call sym.MSVCR100.dll_free
jmp 0x78ae06ee
and dword [ebp - 0x8c], 0
push 0x80
lea ebx, [ebp - 0x84]
mov ecx, ebx
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call fcn.78ab87e7
mov esi, eax
add esp, 0x14
test esi, esi
je 0x78ae064c
push 1
push esi
call sym.MSVCR100.dll__calloc_crt
mov dword [edi], eax
xor edi, edi
pop ecx
pop ecx
cmp eax, edi
je 0x78ae06c0
lea ecx, [esi - 1]
push ecx
push ebx
push esi
push eax
call sym.MSVCR100.dll_strncpy_s
add esp, 0x10
test eax, eax
jne 0x78ae06e4
cmp dword [ebp - 0x8c], edi
je 0x78ab8906
jmp 0x78ae06d8
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x78b54610]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 1
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x88], eax
je 0x78ab881e
cmp dword [ebp + 0xc], 2
jne 0x78ab860b
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor eax, eax
push eax
push eax
push dword [ebp + 0x14]
mov dword [edi], eax
push dword [ebp + 0x10]
call esi
mov ebx, eax
test ebx, ebx
je 0x78ab864c
push 2
push ebx
call sym.MSVCR100.dll__calloc_crt
pop ecx
pop ecx
mov dword [edi], eax
test eax, eax
je 0x78ab864c
push ebx
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call esi
test eax, eax
je 0x78ab864c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.78ab0807
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x78ab8644
push esi
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x88]
call fcn.78ab87e7
add esp, 0x14
mov dword [ebp - 0x90], eax
test eax, eax
je 0x78ab8644
inc esi
push esi
push eax
call sym.MSVCR100.dll__calloc_crt
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x78ab8644
push dword [ebp - 0x90]
mov dword [ebp - 0x8c], esi
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x88]
call fcn.78ab87e7
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x78ab884c
jmp 0x78ae06cc
cmp dword [ebp - 0x8c], edi
je 0x78ab8644
push ebx
call sym.MSVCR100.dll_free
pop ecx
jmp 0x78ab8644
push ebx
call sym.MSVCR100.dll_free
pop ecx
jmp 0x78ab8906
push edi
push edi
push edi
push edi
push edi
call sym.MSVCR100.dll__invoke_watson
and dword [edi], 0
pop ecx
jmp 0x78ab8644
Function at 0x78abb502
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov ebx, eax
xor esi, esi
cmp ebx, esi
je 0x78ae06fb
cmp word [ebx], si
je 0x78abb533
add eax, 2
cmp word [eax], si
jne 0x78abb523
add eax, 2
cmp word [eax], si
jne 0x78abb523
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
sub eax, ebx
push esi
sar eax, 1
inc eax
push eax
push ebx
push esi
push esi
mov dword [ebp - 0xc], eax
call edi
mov dword [ebp - 8], eax
cmp eax, esi
je 0x78abb586
push eax
call sym.MSVCR100.dll__malloc_crt
pop ecx
mov dword [ebp - 4], eax
cmp eax, esi
je 0x78abb586
push esi
push esi
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push ebx
push esi
push esi
call edi
test eax, eax
je 0x78ae0702
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x78ae0713
xor eax, eax
jmp 0x78abb582
push dword [ebp - 4]
call sym.MSVCR100.dll_free
pop ecx
mov dword [ebp - 4], esi
jmp 0x78abb577
xor eax, eax
jmp 0x78abb581
Function at 0x78ac235f
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 0x78ae06f7
cmp word [esi], cx
je 0x78ac2389
add eax, 2
cmp word [eax], cx
jne 0x78ac2379
add eax, 2
cmp word [eax], cx
jne 0x78ac2379
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 0x78ac23a8
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 0x78ac78ec
Capabilities:
Parse pe header

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

Disassembly:
push 0x24
mov eax, 0x78b4fc38
call fcn.78b24a94
mov eax, dword [ebx + 0x30]
lea ecx, [eax + 1]
mov dword [ebx + 0x30], ecx
test eax, eax
jne 0x78ae8936
cmp dword [ebx + 0x1c], eax
setne byte [ebp - 0x29]
cmp dword [ebx + 0x18], eax
jne 0x78ae890b
mov esi, dword [ebx + 0x28]
mov edi, dword [ebx + 0x24]
mov edx, dword [ebx + 0x14]
imul edi, edi, 0x2c
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x30], esi
imul esi, esi, 0x2c
add esi, dword [eax + edi + 0x28]
mov ecx, dword [esi + 0x20]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
test ecx, ecx
jne 0x78ae885b
mov ecx, dword [edx + 0x10]
add ecx, edi
inc dword [ecx + 0x1c]
inc dword [edx + 0xac]
cmp byte [esi + 0x29], 0
je 0x78ae885b
mov eax, dword [ebp - 0x30]
mov byte [esi + 0x2a], 1
call fcn.78af2d19
cmp byte [ebp - 0x29], 0
jne 0x78ae891b
inc dword [edx + 0xb4]
inc dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
lea esi, [ebp - 0x28]
mov dword [ebp - 0x30], eax
call fcn.78aeb5d5
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.78aeb635
mov edi, dword [ebx + 0x14]
mov esi, ebx
call fcn.78af304f
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.78af3295
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x78ae891b
mov ecx, dword [ebx + 0x14]
lea ecx, [ecx + 0xc4]
mov eax, ebx
call fcn.78af3295
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.78b24b03
ret
Function at 0x78ae893c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
dec dword [edi + 0x30]
jne 0x78ae89d6
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0xc]
push dword [edi + 0x20]
cmp dword [edi + 0x1c], 0
mov eax, dword [eax + 0x70]
push eax
setne bl
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [edi + 0x18]
and dword [edi + 0x20], 0
test ecx, ecx
jne 0x78ae89b4
mov ecx, dword [edi + 0x24]
mov edx, dword [edi + 0x14]
test bl, bl
sete al
movzx eax, al
push eax
mov eax, dword [edi + 0x28]
call fcn.78af27e3
test bl, bl
jne 0x78ae89d6
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
lea esi, [edi + 8]
call fcn.78aeb635
mov esi, dword [edi + 0x14]
call fcn.78af3099
mov eax, dword [edi + 0x14]
call fcn.78af2fcf
jmp 0x78ae89d6
call fcn.78ae893c
mov ecx, dword [edi + 0x14]
lea ecx, [ecx + 0xc4]
mov eax, edi
call fcn.78af32c5
push edi
mov dword [edi], 0x78ae3b7c
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 0x78aeb96a
Capabilities:
Allocate thread local storage

Disassembly:
push 0x20
mov eax, 0x78b4f893
call fcn.78abb69a
mov edi, dword [ebp + 8]
push dword [0x78b5736c]
xor esi, esi
mov dword [edi], 0x78ae3cd0
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 [0x78b5736c]
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 0x78aeba23
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x78aeba0c
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 0x78b50c48
lea eax, [ebp - 0x2c]
push eax
call sym.MSVCR100.dll__CxxThrowException
push 0x78aebae8
push 0x78ae3cb0
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 0x78aeba58
mov ecx, dword [0x78b555e8]
xor ecx, eax
mov dword [edi + 0x8c], ecx
mov dword [edi + 0x90], esi
jmp 0x78aebaa7
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 0x78aebaa4
push 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 0x78abb754
call sym.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_
mov dword [ebp - 0x1c], 0x78abc7ec
push 0x78abc888
lea eax, [ebp - 0x1c]
jmp 0x78aeba1d
mov byte [eax], 1
push 1
call fcn.78aebcae
pop ecx
call fcn.78aec1b7
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.78abbf60
ret 4
Function at 0x78aeefb6
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xc
mov eax, 0x78b4ffc4
call fcn.78abb69a
mov ebx, ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x64
pop edi
call esi
sub eax, 0x1f4
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x20]
cmp eax, 2
je 0x78aef093
lea eax, [ebx + 0x24]
mov dword [ebp - 0x14], eax
push edi
push dword [ebx + 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 [ebx + 0x20]
sub eax, 0
je 0x78aef066
dec eax
jne 0x78aef07a
cmp dword [ebp - 0x18], 0x102
jne 0x78aef035
mov eax, ebx
call fcn.78aeeb1a
cmp dword [ebx + 0x10], 0
jbe 0x78aef02b
push 0
call fcn.78aeee1d
call esi
push 0x64
mov dword [ebp - 0x10], eax
pop edi
jmp 0x78aef07a
call esi
sub eax, dword [ebp - 0x10]
push 0x64
pop edi
mov dword [ebp - 0x18], eax
cmp eax, edi
jbe 0x78aef054
cmp eax, 0x82
jbe 0x78aef01e
mov edi, ebx
call fcn.78aebb01
jmp 0x78aef02b
cmp dword [ebx + 0x10], 0
jbe 0x78aef061
push 0
call fcn.78aeee1d
sub edi, dword [ebp - 0x18]
jmp 0x78aef07a
mov edi, ebx
call fcn.78aec7b8
movzx edi, al
neg edi
sbb edi, edi
and edi, 0xffffff9b
add edi, 0x64
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebx + 0x20]
cmp eax, 2
jne 0x78aeefe9
call fcn.78abbf60
ret
Function at 0x78af0072
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
call fcn.78aeb72f
xor ecx, ecx
inc ecx
cmp ecx, eax
sbb eax, eax
and eax, 0xfa0
mov dword [0x78b5736c], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x78b5892c], eax
cmp eax, 0xffffffff
jne 0x78af00d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x78af00b7
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 0x78b50c48
lea eax, [esp + 4]
push eax
call sym.MSVCR100.dll__CxxThrowException
call fcn.78afa0f0
mov esp, ebp
pop ebp
ret

Function at 0x78af0b00
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp byte [ebp + 8], 0
push esi
push edi
mov esi, eax
je 0x78af0b2b
mov edi, dword [esi + 0x24]
push edi
push dword [0x78b5892c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
and dword [esi + 0x24], 0
mov dword [ebp - 4], 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 0x78af0b74
mov ecx, esi
call fcn.78ae692d
mov eax, dword [esi + 0x88]
test eax, eax
je 0x78af0b61
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 0x78af0b81
test esi, esi
je 0x78af0b81
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 - 4]
test esi, esi
je 0x78af0bba
cmp byte [esi + 0x40], 0
jne 0x78af0bba
lea ecx, [esi]
call fcn.78ae6bb8
push 3
lea eax, [esi - 4]
call fcn.78ae9a3c
lea ecx, [esi]
call fcn.78ae6bc9
pop edi
pop esi
leave
ret 4
Function at 0x78af2713
Capabilities:
Get thread local storage value

Disassembly:
push 0
mov eax, 0x78b4fd3c
call fcn.78abb69a
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xc]
push dword [eax + 0x70]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x78af27d9
mov ecx, eax
and ecx, 3
jne 0x78af2743
mov esi, eax
mov ebx, eax
jmp 0x78af2760
cmp ecx, 1
jne 0x78af2767
and eax, 0xfffffffe
mov esi, dword [eax + 0x10]
mov eax, dword [esi + 0x20]
add esi, 4
test eax, eax
je 0x78af275e
cmp byte [eax + 0x40], 0
jne 0x78af27d9
mov ebx, esi
call fcn.78ae87e8
jmp 0x78af279e
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 0x78af278d
cmp byte [eax + 0x40], 0
je 0x78af278d
xor esi, esi
jmp 0x78af2794
mov ebx, esi
call fcn.78ae87e8
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
mov edi, dword [ebp + 8]
test esi, esi
je 0x78af27d9
cmp dword [esi + 0x14], edi
je 0x78af27d5
push 0x3c
call sym.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp + 8], eax
and dword [ebp - 4], 0
test eax, eax
je 0x78af27c6
push edi
mov ebx, esi
mov edi, eax
call fcn.78ae86da
jmp 0x78af27c8
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov ebx, eax
mov esi, eax
call fcn.78ae87e8
mov eax, esi
jmp 0x78af27db
xor eax, eax
call fcn.78abbf60
ret 4

Function at 0x78af7297
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebx
push 0x78af7328
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x78af7324
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x78af7344
push ebx
call esi
mov ecx, dword [0x78b555e8]
push 0x78af7358
xor ecx, eax
push ebx
mov dword [edi], ecx
call esi
mov ecx, dword [0x78b555e8]
push 0x78af7370
xor ecx, eax
push ebx
mov dword [edi + 4], ecx
call esi
mov ecx, dword [0x78b555e8]
push 0x78af737c
xor ecx, eax
push ebx
mov dword [edi + 8], ecx
call esi
mov ecx, dword [0x78b555e8]
push 0x78af7394
xor ecx, eax
push ebx
mov dword [edi + 0xc], ecx
call esi
mov ecx, dword [0x78b555e8]
push 0x78af73a8
xor ecx, eax
push ebx
mov dword [edi + 0x10], ecx
call esi
mov ecx, dword [0x78b555e8]
xor ecx, eax
mov dword [edi + 0x14], ecx
pop esi
mov eax, edi
pop ebx
ret
Function at 0x78afa728
Capabilities:
Get thread local storage value
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x78b54610]
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 [0x78b58954]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x78afa778
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.78ab0807
leave
ret
test esi, esi
je 0x78afa7d5
cmp dword [esi + 0x1c], 0
je 0x78afa7d5
mov eax, dword [esi + 0x18]
test eax, eax
je 0x78afa78e
mov edi, dword [eax + 0x6c]
jmp 0x78afa791
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 0x78afa840
lea eax, [ebp - 0x808]
push 0x400
push eax
call sym.MSVCR100.dll_swprintf_s
add esp, 0x2c
jmp 0x78afa7fa
push dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x78afa8a8
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 [0x78b555ec]
call sym.MSVCR100.dll_fwprintf
push dword [0x78b555ec]
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 0x78afa8fc
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x78b54610]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea ebx, [ebp - 0x808]
call fcn.78afab7a
xor eax, eax
pop ecx
mov word [ebp - 8], ax
pop ecx
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, ebx
push eax
call sym.MSVCR100.dll___iob_func
add eax, 0x40
push eax
call sym.MSVCR100.dll_fwprintf
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.78ab0807
leave
ret
Function at 0x78afa955
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x78b54610]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x78b589ec]
test dword [ebp + 8], eax
je 0x78afa9ea
push ebx
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea ebx, [ebp - 0x808]
call fcn.78afab7a
xor eax, eax
pop ecx
mov word [ebp - 8], ax
mov eax, dword [0x78b555ec]
pop ecx
pop ebx
test eax, eax
je 0x78afa9dd
lea ecx, [ebp - 0x808]
push ecx
push eax
call sym.MSVCR100.dll_fwprintf
pop ecx
pop ecx
push 0
push 0x32
push dword [0x78b589f4]
push dword [0x78b589f0]
call fcn.78ac8210
add dword [0x78b589f0], 1
adc dword [0x78b589f4], 0
or eax, edx
jne 0x78afa9ea
push dword [0x78b555ec]
call sym.MSVCR100.dll_fflush
pop ecx
jmp 0x78afa9ea
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.78ab0807
leave
ret

Function at 0x78afaae1
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
xor ecx, ecx
sub esp, 0x14
mov eax, 0x78b589f8
inc ecx
lock xadd dword [eax], ecx
inc ecx
cmp ecx, 1
jne 0x78afab0c
call fcn.78afaa54
xor ecx, ecx
mov eax, 0x78b5735c
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 0x78afab52
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x78afab3b
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 0x78b50c48
lea eax, [ebp - 0x14]
push eax
call sym.MSVCR100.dll__CxxThrowException
leave
ret

Function at 0x78afe8af
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 0x78afe8d6
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 0x78afe92b
test dword [ebp + 0xc], 0xfffffff9
jne 0x78afe8bc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78afe903
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 0x78afe92b
test al, 0x10
jne 0x78afe929
test al, 1
je 0x78afe929
test byte [ebp + 0xc], 2
je 0x78afe929
call sym.MSVCR100.dll___doserrno
mov dword [eax], 5
call sym.MSVCR100.dll__errno
mov dword [eax], 0xd
jmp 0x78afe8fa
xor eax, eax
pop esi
pop ebp
ret
Function at 0x78afe946
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 0x78afe96e
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 0x78afe98b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.MSVCR100.dll__dosmaperr
pop ecx
jmp 0x78afe969
test byte [ebp + 0xc], 0x80
je 0x78afe996
and eax, 0xfffffffe
jmp 0x78afe999
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x78afe97c
xor eax, eax
pop ebp
ret

Function at 0x78b00307
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 0x78b0032f
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 0x78b0034c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.MSVCR100.dll__dosmaperr
pop ecx
jmp 0x78b0032a
test byte [ebp + 0xc], 0x80
je 0x78b00357
and eax, 0xfffffffe
jmp 0x78b0035a
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x78b0033d
xor eax, eax
pop ebp
ret