joyce8/EMBER2024-capa huggingface dataset:
Function at 0x78aafc84
Capabilities:
Encode data using xor

Disassembly:
push edi
mov dl, 0x78
pop edx
xor eax, 0x78b2
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
call 0x3523b1e3
cld
stosb byte es:[edi], al
js 0x78aafc89
inc esi
mov ch, 0x78
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al

Function at 0x78ab0817
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x78b54610]
jne sym.MSVCR100.dll___report_gsfailure
repz ret

Function at 0x78ab1d4f
Capabilities:
Accept command line arguments
Get thread local storage value

Disassembly:
push 8
push 0x78ab1df0
call fcn.78ab0960
mov eax, dword [ebp + 8]
cmp eax, 1
je 0x78abb8b9
xor edi, edi
cmp eax, edi
je 0x78ac7b31
cmp eax, 2
jne 0x78ab2977
call sym.MSVCR100.dll___set_flsgetvalue
push dword [0x78b548b4]
push dword [0x78b548b8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
test eax, eax
jne 0x78ab1de1
push 0x214
push 1
call sym.MSVCR100.dll__calloc_crt
pop ecx
pop ecx
mov esi, eax
cmp esi, edi
je 0x78ac7b77
push esi
push dword [0x78b548b4]
push dword [0x78b54e50]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
call eax
test eax, eax
je 0x78ad7444
push edi
push esi
call sym.MSVCR100.dll__initptd
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
or dword [esi + 4], 0xffffffff
call fcn.78ab1d48
xor eax, eax
inc eax
call fcn.78ab09a5
ret
cmp eax, 3
jne 0x78ab1de1
push edi
call fcn.78ab2909
pop ecx
jmp 0x78ab1de1
call fcn.78abb361
test eax, eax
je 0x78ac7b77
call fcn.78abba1c
test eax, eax
je 0x78ad73f7
call fcn.78abb3e2
test eax, eax
js 0x78ad7401
call fcn.78abb50a
mov dword [0x78b55428], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [sym.MSVCR100.dll__acmdln], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [sym.MSVCR100.dll__wcmdln], eax
call fcn.78abb8ae
call fcn.78abb92d
test eax, eax
js 0x78ac7b7e
push 0
call fcn.78abc42f
pop ecx
test eax, eax
jne 0x78ac7b7e
inc dword [0x78b55424]
jmp 0x78ab1de1
cmp dword [0x78b55424], edi
jle 0x78ac7b77
dec dword [0x78b55424]
mov dword [ebp - 4], edi
cmp dword [0x78b55eac], edi
je 0x78ad7408
call fcn.78ac7ac7
cmp dword [ebp + 0xc], edi
je 0x78ad7412
mov dword [ebp - 4], 0xfffffffe
call fcn.78ac7b6d
jmp 0x78ab1de1
xor eax, eax
jmp 0x78ab1de9
call fcn.78b26d38
jmp 0x78ad7401
call fcn.78b2667a
jmp 0x78ac7b77
call fcn.78afc6a7
jmp 0x78ad73f7
call sym.MSVCR100.dll__cexit
jmp 0x78ac7b4e
call fcn.78b26d38
call fcn.78afc6a7
call fcn.78b2667a
jmp 0x78ac7b5c
push esi
call sym.MSVCR100.dll_free
pop ecx
jmp 0x78ac7b77
Function at 0x78ab23eb
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
je 0x78ad7ac5
test dword [ebp + 0xc], 0xfffffff9
jne 0x78ad7ac5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x78ac0953
test al, 0x10
jne 0x78ab242d
test al, 1
je 0x78ab242d
test byte [ebp + 0xc], 2
jne 0x78ad7ae2
xor eax, eax
pop esi
pop ebp
ret
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 0x78ab242f
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 0x78ab242f
call sym.MSVCR100.dll___doserrno
mov dword [eax], 5
call sym.MSVCR100.dll__errno
mov dword [eax], 0xd
jmp 0x78ac0960
Function at 0x78ab8468
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
call sym.MSVCR100.dll__getptd
lea edi, [eax + 0x9c]
mov eax, dword [ebp + 8]
test eax, eax
je 0x78ae1780
mov dword [edi], eax
add eax, 0x40
lea ebx, [edi + 4]
mov dword [ebx], eax
je 0x78ab849b
cmp byte [eax], 0
jne 0x78ae178c
mov eax, dword [edi]
and dword [edi + 8], 0
test eax, eax
je 0x78ab84ae
cmp byte [eax], 0
jne 0x78ae17a1
mov ebx, dword [ebx]
test ebx, ebx
je 0x78ab84bd
cmp byte [ebx], 0
jne 0x78ae1801
mov dword [edi + 8], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
cmp dword [edi + 8], 0
je 0x78ab85a8
mov esi, dword [ebp + 8]
mov eax, esi
sub eax, 0xffffff80
neg esi
sbb esi, esi
and esi, eax
call fcn.78ab85ac
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
je 0x78ab85a8
cmp esi, 0xfde8
je 0x78ab85a8
cmp esi, 0xfde9
je 0x78ab85a8
movzx eax, si
push eax
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x78ab85a8
push 1
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x78ab85a8
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x78ab854d
mov cx, word [edi + 0x18]
mov word [eax], cx
mov cx, word [edi + 0x1c]
mov word [eax + 2], cx
mov word [eax + 4], si
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x78ab85a0
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ecx, 0x814
cmp word [eax], cx
je 0x78ae1833
push 0x40
push ebx
push 0x1001
push dword [edi + 0x18]
call esi
test eax, eax
je 0x78ab85a8
push 0x40
lea eax, [ebx + 0x40]
push eax
push 0x1002
push dword [edi + 0x1c]
call esi
test eax, eax
je 0x78ab85a8
push 0xa
push 0x10
sub ebx, 0xffffff80
push ebx
push dword [ebp + 8]
call sym.MSVCR100.dll__itoa_s
add esp, 0x10
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x78ab85a3
or dword [edi + 8], 0x104
jmp 0x78ab84c4
push ebx
push 0x16
push 0x78ae1a60
call fcn.78b2eefa
add esp, 0xc
jmp 0x78ab849b
mov eax, dword [ebx]
test eax, eax
je 0x78ae17b5
cmp byte [eax], 0
je 0x78ae17b5
mov esi, edi
call fcn.78b2f377
jmp 0x78ae17bc
mov esi, edi
call fcn.78b2f3de
cmp dword [edi + 8], 0
jne 0x78ab84da
push edi
push 0x40
push 0x78ae1858
call fcn.78b2eefa
add esp, 0xc
test eax, eax
je 0x78ab84d0
mov ebx, dword [ebx]
test ebx, ebx
je 0x78ae17f5
cmp byte [ebx], 0
je 0x78ae17f5
mov esi, edi
call fcn.78b2f377
jmp 0x78ab84d0
mov esi, edi
call fcn.78b2f3de
jmp 0x78ab84d0
push ebx
call sym.MSVCR100.dll_strlen
sub eax, 3
neg eax
pop ecx
sbb eax, eax
push 1
inc eax
push 0x78b2efe4
mov dword [edi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
test byte [edi + 8], 4
jne 0x78ab84d0
and dword [edi + 8], 0
jmp 0x78ab84d0
push 0x78ae1b18
push 0x40
push ebx
call sym.MSVCR100.dll_strcpy_s
add esp, 0xc
test eax, eax
je 0x78ab8579
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call sym.MSVCR100.dll__invoke_watson
int3
Function at 0x78ab85ac
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
test esi, esi
je 0x78ab85bf
cmp byte [esi], 0
jne 0x78ac2823
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x78ae1770
cmp dword [ebp - 4], 0
je 0x78ae1774
mov eax, dword [ebp - 4]
leave
ret
push 0x78ac2840
push esi
call sym.MSVCR100.dll_strcmp
pop ecx
pop ecx
test eax, eax
je 0x78ab85bf
jmp 0x78ae1732
push 0x78ae177c
push esi
call sym.MSVCR100.dll_strcmp
pop ecx
pop ecx
test eax, eax
jne 0x78ae1761
push 2
lea eax, [ebp - 4]
push eax
push 0x2000000b
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x78ab85e5
jmp 0x78ae1770
push esi
call sym.MSVCR100.dll_atol
pop ecx
mov dword [ebp - 4], eax
jmp 0x78ab85e5
xor eax, eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetACP]
leave
ret
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 0x78ae06c1
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 0x78ae061f
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 0x78ae0693
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 0x78ae06b7
cmp dword [ebp - 0x8c], edi
je 0x78ab8906
jmp 0x78ae06ab
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.78ab0817
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 0x78ae069f
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 0x78abb50a
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 0x78ae06ce
cmp word [ebx], si
je 0x78abb53b
add eax, 2
cmp word [eax], si
jne 0x78abb52b
add eax, 2
cmp word [eax], si
jne 0x78abb52b
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 0x78abb58e
push eax
call sym.MSVCR100.dll__malloc_crt
pop ecx
mov dword [ebp - 4], eax
cmp eax, esi
je 0x78abb58e
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 0x78ae06d5
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 0x78ae06e6
xor eax, eax
jmp 0x78abb58a
push dword [ebp - 4]
call sym.MSVCR100.dll_free
pop ecx
mov dword [ebp - 4], esi
jmp 0x78abb57f
xor eax, eax
jmp 0x78abb589
Function at 0x78ac22f7
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 0x78ae06ca
cmp word [esi], cx
je 0x78ac2321
add eax, 2
cmp word [eax], cx
jne 0x78ac2311
add eax, 2
cmp word [eax], cx
jne 0x78ac2311
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 0x78ac2340
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 0x78ae87b8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x24
mov eax, 0x78b4fbe8
call fcn.78b24a54
mov eax, dword [ebx + 0x30]
lea ecx, [eax + 1]
mov dword [ebx + 0x30], ecx
test eax, eax
jne 0x78ae8906
cmp dword [ebx + 0x1c], eax
setne byte [ebp - 0x29]
cmp dword [ebx + 0x18], eax
jne 0x78ae88db
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 0x78ae882b
mov ecx, dword [edx + 0x10]
add ecx, edi
inc dword [ecx + 0x1c]
inc dword [edx + 0xac]
cmp byte [esi + 0x29], 0
je 0x78ae882b
mov eax, dword [ebp - 0x30]
mov byte [esi + 0x2a], 1
call fcn.78af2ce1
cmp byte [ebp - 0x29], 0
jne 0x78ae88eb
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.78aeb5a5
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.78aeb605
mov edi, dword [ebx + 0x14]
mov esi, ebx
call fcn.78af3017
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.78af325d
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x78ae88eb
mov ecx, dword [ebx + 0x14]
lea ecx, [ecx + 0xc4]
mov eax, ebx
call fcn.78af325d
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.78b24ac3
ret
Function at 0x78ae890c
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 0x78ae89a6
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 0x78ae8984
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.78af27ab
test bl, bl
jne 0x78ae89a6
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
lea esi, [edi + 8]
call fcn.78aeb605
mov esi, dword [edi + 0x14]
call fcn.78af3061
mov eax, dword [edi + 0x14]
call fcn.78af2f97
jmp 0x78ae89a6
call fcn.78ae890c
mov ecx, dword [edi + 0x14]
lea ecx, [ecx + 0xc4]
mov eax, edi
call fcn.78af328d
push edi
mov dword [edi], 0x78ae3b4c
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 0x78aeb93a
Capabilities:
Allocate thread local storage

Disassembly:
push 0x20
mov eax, 0x78b4f843
call fcn.78abb6a2
mov edi, dword [ebp + 8]
push dword [0x78b5736c]
xor esi, esi
mov dword [edi], 0x78ae3ca0
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 0x78aeb9f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x78aeb9dc
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 0x78b50bf8
lea eax, [ebp - 0x2c]
push eax
call sym.MSVCR100.dll__CxxThrowException
push 0x78aebab8
push 0x78ae3c80
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 0x78aeba28
mov ecx, dword [0x78b555e8]
xor ecx, eax
mov dword [edi + 0x8c], ecx
mov dword [edi + 0x90], esi
jmp 0x78aeba77
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 0x78aeba74
push 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 0x78abb75c
call sym.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_
mov dword [ebp - 0x1c], 0x78abc7f4
push 0x78abc890
lea eax, [ebp - 0x1c]
jmp 0x78aeb9ed
mov byte [eax], 1
push 1
call fcn.78aebc7a
pop ecx
call fcn.78aec183
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.78abbf68
ret 4
Function at 0x78aeef7e
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xc
mov eax, 0x78b4ff74
call fcn.78abb6a2
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 0x78aef05b
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 0x78aef02e
dec eax
jne 0x78aef042
cmp dword [ebp - 0x18], 0x102
jne 0x78aeeffd
mov eax, ebx
call fcn.78aeeae2
cmp dword [ebx + 0x10], 0
jbe 0x78aeeff3
push 0
call fcn.78aeede5
call esi
push 0x64
mov dword [ebp - 0x10], eax
pop edi
jmp 0x78aef042
call esi
sub eax, dword [ebp - 0x10]
push 0x64
pop edi
mov dword [ebp - 0x18], eax
cmp eax, edi
jbe 0x78aef01c
cmp eax, 0x82
jbe 0x78aeefe6
mov edi, ebx
call fcn.78aebad1
jmp 0x78aeeff3
cmp dword [ebx + 0x10], 0
jbe 0x78aef029
push 0
call fcn.78aeede5
sub edi, dword [ebp - 0x18]
jmp 0x78aef042
mov edi, ebx
call fcn.78aec784
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 0x78aeefb1
call fcn.78abbf68
ret
Function at 0x78af003a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
call fcn.78aeb6ff
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 0x78af0098
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x78af007f
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 0x78b50bf8
lea eax, [esp + 4]
push eax
call sym.MSVCR100.dll__CxxThrowException
call fcn.78afa0b4
mov esp, ebp
pop ebp
ret

Function at 0x78af0ac8
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 0x78af0af3
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 0x78af0b3c
mov ecx, esi
call fcn.78ae68fd
mov eax, dword [esi + 0x88]
test eax, eax
je 0x78af0b29
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 0x78af0b49
test esi, esi
je 0x78af0b49
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 0x78af0b82
cmp byte [esi + 0x40], 0
jne 0x78af0b82
lea ecx, [esi]
call fcn.78ae6b88
push 3
lea eax, [esi - 4]
call fcn.78ae9a0c
lea ecx, [esi]
call fcn.78ae6b99
pop edi
pop esi
leave
ret 4