joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101949a
Capabilities:
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x1036a44]
mov dword [ebp - 4], eax
mov eax, dword [0x1036c04]
test eax, eax
je 0x1019514
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x1019501
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x100
mov esi, eax
lea eax, [ebp - 0x204]
push eax
push 0x6a
push dword [0x1036b20]
call dword [sym.imp.USER32.dll_LoadStringW]
push esi
lea eax, [ebp - 0x204]
push eax
push 0x1002398
push 0xc1000002
call fcn.010152d4
add esp, 0x10
pop esi
push dword [0x1036c04]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x1036c04], 0
mov ecx, dword [ebp - 4]
call fcn.0102e95a
leave
ret

Function at 0x101def7
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1036a44]
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
xor ebx, ebx
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
call sub.CLUSAPI.dll_GetNodeClusterState
test byte [ebp - 0x28], 2
je 0x101df37
mov bl, 1
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
call fcn.0102e95a
leave
ret

Function at 0x101df97
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x1002660
push 0x80000002
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101e002
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1002620
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x101e002
cmp dword [ebp - 0x10], 4
jne 0x101e002
cmp byte [ebp - 8], 0
setne al
leave
ret
xor al, al
leave
ret
Function at 0x102ea72
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push eax
push edi
push edx
sub eax, eax
add eax, 0x30
mov edi, dword fs:[eax]
push ecx
mov ecx, dword [edi + 8]
mov eax, edi
add eax, 0xc
mov edx, dword [eax]
add edx, 0xc
mov edi, dword [edx]
push ebx
mov edx, edi
add edx, 0x18
mov eax, dword [edx]
test eax, eax
je 0x102eac2
mov edx, edi
add edx, 0x30
mov edx, dword [edx]
mov ebx, dword [edx]
and ebx, 0xdf00df
mov edx, dword [edx + 0xc]
shl edx, 8
add edx, ebx
sub edx, 0x3245334b
test edx, edx
je 0x102eacb
mov edx, dword [edi]
lea edi, [edx]
jmp 0x102ea8e
mov edi, dword [eax + 0x3c]
add edi, eax
mov edx, dword [edi + 0x78]
add edx, eax
push esi
mov ebx, dword [edx + 0x20]
add ebx, eax
mov esi, dword [ebx]
add esi, eax
mov edi, dword [esi + 0xb]
sub edi, 0x746365
test edi, edi
jne 0x102eaee
jmp 0x102eaf6
add ebx, 4
jmp 0x102eadb
mov edi, dword [edx + 0x20]
sub ebx, eax
sub ebx, edi
shr ebx, 1
mov edi, dword [edx + 0x24]
add edi, ebx
add edi, eax
mov ebx, dword [edi]
mov edi, dword [edx + 0x1c]
and ebx, 0xffff
shl ebx, 2
add edi, ebx
add edi, eax
mov ebx, dword [edi]
mov edx, 0x73000
mov esi, 0x40
add ebx, eax
push eax
mov edi, 0x63000
push ecx
push esi
add edx, ecx
push esp
push esi
push edi
push edx
call ebx
pop edx
pop ecx
push esi
lea edx, [0x11e10]
mov edi, 0x73000
mov eax, 0x760c
add edi, ecx
lea ebx, [7]
imul eax, ebx
add eax, 0x49c9
add eax, ecx
call 0x102eb80
lea eax, [0x4a41d]
mov edi, 0x87000
add eax, ecx
lea edx, [0x28bc]
add edi, ecx
call 0x102eb80
cmp eax, edi
jne 0x102eba7
lea ebx, [edx]
mov ebx, dword [eax]
test ebx, ebx
xor ebx, 0x14dd1748
cmp edi, ebx
mov dword [edi], ebx
lea ebx, [eax]
dec edx
dec edx
inc eax
inc eax
inc eax
dec edx
dec edx
add edi, 4
inc eax
test edx, edx
je 0x102eba6
jmp 0x102eb80
ret
lea edx, [0x30b]
mov edi, 0x73000
mov eax, 0x10000000
mov ebx, 5
add edi, ecx
imul edx, ebx
add edx, 0xc9
sub edi, edx
mov edx, edi
sub edx, eax
lea eax, [0x4d21d]
mov ebx, 0x4eb79
add eax, ecx
add ebx, ecx
cmp eax, ebx
jge 0x102ec75
mov esi, dword [eax + 4]
xor esi, 0x14dd1748
cmp esi, 0
je 0x102ec75
mov esi, eax
push ecx
mov ecx, esi
sub ecx, eax
test ecx, 3
add byte [eax], al
add byte [ebp + 2], dh
jmp 0x102ec15
mov ecx, dword [esi + 6]
xor ecx, 0x14dd1748
shr ecx, 0x10
jmp 0x102ec1e
mov ecx, dword [esi + 8]
xor ecx, 0x14dd1748
cmp cx, 0
je 0x102ec61
cmp esi, eax
je 0x102ec30
test ecx, 0xfff
je 0x102ec61
push ecx
and ecx, 0xf000
shr ecx, 0xc
cmp ecx, 3
pop ecx
jne 0x102ec5a
push ebx
and ecx, 0xfff
loope 0x102ec43
sldt word [eax]
mov ebx, dword [eax]
invalid
dec eax
pop ss
invalid

Function at 0x102f5be
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x80
push 3
push 0
push 7
push 0xc0000000
push 0x10030ec
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x102f5ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x102f5fb
mov eax, dword [ebp + 8]
and dword [eax], 0
xor eax, eax
inc eax
jmp 0x102f60e
xor eax, eax
jmp 0x102f60e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
xor eax, eax
inc eax
mov dword [ecx], eax
pop ebp
ret 4
Function at 0x78ab1d3f
Capabilities:
Accept command line arguments
Get thread local storage value

Disassembly:
push 8
push 0x78ab1de0
call fcn.78ab0950
mov eax, dword [ebp + 8]
cmp eax, 1
je 0x78abb8b1
xor edi, edi
cmp eax, edi
je 0x78ac7b31
cmp eax, 2
jne 0x78ab2967
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 0x78ab1dd1
push 0x214
push 1
call fcn.78b21d54
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 0x78ad7484
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.78ab1d38
xor eax, eax
inc eax
call fcn.78ab0995
ret
cmp eax, 3
jne 0x78ab1dd1
push edi
call fcn.78b21d54
pop ecx
jmp 0x78ab1dd1
call fcn.78abb359
test eax, eax
je 0x78ac7b77
call fcn.78abba14
test eax, eax
je 0x78ad7437
call fcn.78b21d54
test eax, eax
js 0x78ad7441
call fcn.78b21d54
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.78abb8a6
call fcn.78abb925
test eax, eax
js 0x78ac7b7e
push 0
call fcn.78b21d54
pop ecx
test eax, eax
jne 0x78ac7b7e
inc dword [0x78b55424]
jmp 0x78ab1dd1
cmp dword [0x78b55424], edi
jle 0x78ac7b77
dec dword [0x78b55424]
mov dword [ebp - 4], edi
cmp dword [0x78b55eac], edi
je 0x78ad7448
call fcn.78ac7ac7
cmp dword [ebp + 0xc], edi
je 0x78ad7452
mov dword [ebp - 4], 0xfffffffe
call fcn.78ac7b6d
jmp 0x78ab1dd1
xor eax, eax
jmp 0x78ab1dd9
call fcn.78b26d78
jmp 0x78ad7441
call fcn.78b266ba
jmp 0x78ac7b77
call fcn.78afc6e7
jmp 0x78ad7437
call sym.MSVCR100.dll__cexit
jmp 0x78ac7b4e
call fcn.78b26d78
call fcn.78afc6e7
call fcn.78b266ba
jmp 0x78ac7b5c
push esi
call fcn.78b21d54
pop ecx
jmp 0x78ac7b77

Function at 0x78ab23db
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 0x78ad7b05
test dword [ebp + 0xc], 0xfffffff9
jne 0x78ad7b05
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x78ac09bb
test al, 0x10
jne 0x78ab241d
test al, 1
je 0x78ab241d
test byte [ebp + 0xc], 2
jne 0x78ad7b22
xor eax, eax
pop esi
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.78b21d54
pop ecx
call sym.MSVCR100.dll__errno
mov eax, dword [eax]
jmp 0x78ab241f
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 0x78ab241f
call sym.MSVCR100.dll___doserrno
mov dword [eax], 5
call sym.MSVCR100.dll__errno
mov dword [eax], 0xd
jmp 0x78ac09c8
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 fcn.78b21d54
mov edi, eax
pop ecx
test edi, edi
je 0x78ac23a8
push ebx
push esi
push edi
call fcn.78b21d54
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.78b21d54
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.78b21d54
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 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 fcn.78b21d54
push 0x78b50c48
lea eax, [ebp - 0x2c]
push eax
call fcn.78b21d54
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 fcn.78b21d54
mov dword [ebp - 0x1c], 0x78abc7ec
push 0x78abc888
lea eax, [ebp - 0x1c]
jmp 0x78aeba1d
mov byte [eax], 1
push 1
call fcn.78b21d54
pop ecx
call fcn.78b21d54
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 fcn.78b21d54
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.78b21d54
cmp dword [ebx + 0x10], 0
jbe 0x78aef02b
push 0
call fcn.78b21d54
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.78b21d54
jmp 0x78aef02b
cmp dword [ebx + 0x10], 0
jbe 0x78aef061
push 0
call fcn.78b21d54
sub edi, dword [ebp - 0x18]
jmp 0x78aef07a
mov edi, ebx
call fcn.78b21d54
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 0x78aefc47
Capabilities:
Allocate thread local storage

Disassembly:
push 0x14
mov eax, 0x78b4fbe6
call fcn.78abb69a
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [edi + 4]
mov dword [edi], 0x78ae3d2c
call fcn.78b21d54
mov byte [ebp - 4], 1
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
lea esi, [edi + 0x40]
call fcn.78af1d01
push dword [0x78b5736c]
mov esi, dword [sym.imp.kernel32.dll_InitializeCriticalSectionAndSpinCount]
lea eax, [edi + 0x90]
push eax
call esi
push dword [0x78b5736c]
lea eax, [edi + 0xa8]
mov dword [eax], ebx
mov dword [eax + 4], eax
mov dword [eax + 8], ebx
or dword [edi + 0xc8], 0xffffffff
mov dword [edi + 0xb4], 0xffffffff
mov dword [edi + 0xb8], 0xffffffff
mov dword [edi + 0xbc], ebx
mov dword [edi + 0xc0], ebx
mov dword [edi + 0xc4], ebx
mov dword [edi + 0xcc], ebx
mov dword [edi + 0xd4], ebx
mov dword [edi + 0xd8], ebx
mov dword [edi + 0xdc], 1
mov dword [edi + 0xe0], ebx
mov dword [edi + 0xe4], ebx
mov dword [edi + 0xe8], ebx
mov dword [edi + 0xec], ebx
mov dword [edi + 0xf0], ebx
mov dword [edi + 0xf8], ebx
lea eax, [edi + 0x114]
mov dword [edi + 0x100], ebx
push eax
mov dword [edi + 0x104], ebx
mov dword [edi + 0x108], ebx
mov dword [edi + 0x10c], ebx
call esi
mov byte [ebp - 4], 4
mov esi, dword [sym.imp.kernel32.dll_InitializeSListHead]
lea eax, [edi + 0x140]
mov dword [edi + 0x12c], ebx
push eax
mov dword [edi + 0x130], ebx
mov dword [edi + 0x134], ebx
call esi
lea eax, [edi + 0x148]
push eax
call esi
lea eax, [edi + 0x150]
push eax
call esi
mov ecx, dword [ebp + 0xc]
push ebx
call fcn.78b21d54
mov ecx, dword [ebp + 0xc]
push 4
mov dword [edi + 8], eax
call fcn.78b21d54
mov ecx, dword [ebp + 0xc]
push 7
mov word [edi + 0x10], ax
call fcn.78b21d54
mov dword [edi + 0xc], eax
call fcn.78aeb72f
mov ecx, dword [ebp + 0xc]
mov esi, eax
push 2
call fcn.78b21d54
mov ecx, esi
shl ecx, 2
cmp ecx, eax
jbe 0x78aefdbd
call fcn.78aeb72f
shl eax, 2
jmp 0x78aefdc7
mov ecx, dword [ebp + 0xc]
push 2
call fcn.78b21d54
mov dword [edi + 0x110], eax
call dword [sym.imp.kernel32.dll_TlsAlloc]
mov dword [edi + 0x18], eax
cmp eax, 0xffffffff
jne 0x78aefe06
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, ebx
jle 0x78aefdef
and eax, 0xffff
or eax, 0x80070000
push eax
lea ecx, [ebp - 0x20]
call fcn.78b21d54
push 0x78b50c48
lea eax, [ebp - 0x20]
push eax
call fcn.78b21d54
mov eax, edi
call fcn.78abbf60
ret 8
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 fcn.78b21d54
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.78b21d54
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 fcn.78b21d54
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 fcn.78b21d54
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 fcn.78b21d54
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.78b21d54
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