joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10078ba2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov dword [ebp - 4], edx
xor ebx, ebx
push edi
xor edx, edx
call fcn.10077c79
mov edi, eax
test edi, edi
je 0x10078c0c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [ebp - 8], ecx
cmp esi, 0xffffffff
je 0x10078be4
test esi, 0x400
je 0x10078be4
xor eax, eax
inc eax
jmp 0x10078be6
xor eax, eax
mov edx, dword [ebp - 4]
xor ebx, ebx
test ecx, ecx
push edi
push 0
mov dword [edx], eax
sete bl
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret

Function at 0x10078f1b
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100a8ba4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
mov esi, ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10078f8d
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x10078f7a
mov ebx, dword [ebp - 0x14]
jmp 0x10078f82
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x10078f95
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.1002c750
leave
ret

Function at 0x1007994d
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100a8ba4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
mov esi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push 0x10027a74
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x100799ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x100799d5
movzx edi, di
or edi, 0x80070000
jmp 0x100799d5
push edi
push 0x4000000
push 2
push edi
push 7
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x10079995
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.1002c750
leave
ret
Function at 0x10079cae
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
push 4
push dword [ebp + 0xc]
push 0x100514e0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, eax
call fcn.10079d27
test al, al
jne 0x10079cee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x10079cfa
movzx ebx, bx
or ebx, 0x80070000
jmp 0x10079cfa
mov dword [esi], ecx
test ecx, ecx
jne 0x10079cf7
or dword [esi], 0xffffffff
mov byte [esi + 4], bl
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8

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

Disassembly:
push 4
mov eax, 0x1003102f
call fcn.1002ceb7
mov esi, ecx
push 0x100a93f8
lea ecx, [ebp - 0x10]
call fcn.1003a983
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.10079d36
test al, al
je 0x1007a082
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.1007968d
test eax, eax
js 0x1007a082
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, dword [ebp - 0x10]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp edi, 0xffffffff
setne bl
jmp 0x1007a085
mov esi, dword [ebp - 0x10]
lea ecx, [esi - 0x10]
call fcn.1003c869
mov al, bl
call fcn.1002ce85
ret

Function at 0x1007a0e9
Capabilities:
Resume thread

Disassembly:
mov edi, edi
push esi
push edi
mov edi, ecx
xor esi, esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x1007a113
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1007a113
movzx esi, si
or esi, 0x80070000
mov byte [edi + 4], 1
mov eax, esi
pop edi
pop esi
ret
Function at 0x1007b925
Capabilities:
Query environment variable

Disassembly:
push 0x10
mov eax, 0x10037ed1
call fcn.1002cf20
mov eax, ecx
mov dword [ebp - 0x18], eax
xor esi, esi
mov dword [ebp - 4], esi
mov edi, esi
mov eax, dword [eax]
mov dword [ebp - 0x14], esi
cmp dword [eax - 0xc], esi
je 0x1007ba04
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
jne 0x1007b978
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1007ba0f
movzx esi, si
or esi, 0x80070000
jmp 0x1007ba0f
push 0x100055d0
xor ecx, ecx
lea eax, [ebx + 1]
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1002c9aa
mov edi, eax
mov dword [ebp - 0x14], edi
pop ecx
pop ecx
test edi, edi
jne 0x1007b9a6
mov esi, 0x8007000e
jmp 0x1007ba0f
lea eax, [ebx*2 + 2]
push eax
push esi
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
mov ebx, dword [ebp - 0x18]
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1007b9e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1007ba04
movzx esi, si
or esi, 0x80070000
jmp 0x1007ba04
mov ecx, edi
call fcn.1003cfc0
push eax
push edi
mov ecx, ebx
call fcn.1003cf00
jmp 0x1007ba04
test edi, edi
je 0x1007ba0f
push edi
call sub.msvcrt.dll_free
pop ecx
mov eax, esi
call fcn.1002ce85
ret
Function at 0x1007c0ab
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100a8ba4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
mov esi, ecx
lea eax, [ebp - 0xc]
push 2
push eax
mov dword [esi], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x1007c106
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x1007c152
movzx ebx, bx
or ebx, 0x80070000
jmp 0x1007c152
push esi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x1007c0ef
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test eax, eax
je 0x1007c152
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0x80070000
test eax, eax
jle 0x1007c138
movzx eax, ax
or eax, esi
test eax, eax
jns 0x1007c14d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x1007c152
movzx ebx, bx
or ebx, esi
jmp 0x1007c152
mov ebx, 0x80004005
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.1002c750
leave
ret
Function at 0x1007cd2e
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea edx, [ebp - 8]
xor ebx, ebx
mov ecx, edi
mov esi, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.10077640
test eax, eax
je 0x1007ce6b
cmp dword [ebp - 4], ebx
ja 0x1007cd69
cmp dword [ebp - 8], 0x1900000
jbe 0x1007ce6b
mov ecx, edi
push 2
pop esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, esi
cmp ax, bx
jne 0x1007cd71
sub ecx, edx
mov edx, 0x100a8f10
sar ecx, 1
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x1007cd87
sub edx, esi
lea esi, [ecx + 1]
sar edx, 1
xor ecx, ecx
add esi, edx
push 0x100055d0
push 2
pop edx
mov eax, esi
mov dword [ebp - 4], esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1002c9aa
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x1007cdcb
mov esi, 0x8007000e
jmp 0x1007ce6b
lea eax, [esi + esi]
push eax
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
mov edx, esi
mov ecx, ebx
push edi
call fcn.100529e2
mov esi, eax
test esi, esi
js 0x1007ce64
mov edx, dword [ebp - 4]
mov ecx, ebx
push 0x100a8f10
call fcn.1005779b
mov esi, eax
test esi, esi
js 0x1007ce64
push 1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1007ce3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x80070000
test eax, eax
jle 0x1007ce23
movzx eax, ax
or eax, edi
test eax, eax
jns 0x1007ce38
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1007ce64
movzx esi, si
or esi, edi
jmp 0x1007ce64
mov esi, 0x80004005
jmp 0x1007ce64
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x1007ce0d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call sub.msvcrt.dll_free
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x1007d24a
Capabilities:
Print debug messages

Disassembly:
push 0x1c
mov eax, 0x10038141
call fcn.1002cf20
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi], ebx
jne 0x1007d2ba
push 0x100a93f8
lea ecx, [ebp - 0x20]
call fcn.1003a983
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
lea eax, [ebp + 0x18]
push eax
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
call fcn.10071228
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
lea ecx, [esi + 0x1c]
call fcn.1007ca04
jmp 0x1007d2a8
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.1003c869
mov eax, ebx
jmp 0x1007d354
mov eax, dword [ebp + 0x10]
cmp eax, dword [esi + 0x4c]
ja 0x1007d352
sub eax, ebx
je 0x1007d352
sub eax, 1
je 0x1007d2ee
sub eax, 1
je 0x1007d2e7
sub eax, 1
je 0x1007d2e0
sub eax, 1
mov eax, 0x4000000
jmp 0x1007d2f3
mov eax, 0x3000000
jmp 0x1007d2f3
mov eax, 0x2000000
mov edi, dword [esi + 0x10]
test edi, edi
je 0x1007d35a
cmp dword [esi + 0xc], ebx
je 0x1007d35a
cmp dword [esi + 0x14], ebx
je 0x1007d35a
lea ecx, [ebp + 0x18]
push ecx
push dword [ebp + 0x14]
mov ecx, edi
push eax
call dword [0x100aa3f8]
call edi
mov esi, dword [esi + 0x14]
mov edi, eax
push ebx
push ebx
push ebx
mov ecx, esi
call dword [0x100aa3f8]
call esi
mov esi, dword [ebp + 8]
push eax
push 0x10027c84
push 0x10027ca4
mov esi, dword [esi + 0xc]
mov ecx, esi
push 0x106
push ebx
push 0x10027ce4
push dword [ebp + 0xc]
push edi
call dword [0x100aa3f8]
call esi
xor eax, eax
call fcn.1002ce85
ret
push 0x100a93f8
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 3
call fcn.1003a983
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 4
push eax
push dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
call fcn.10071228
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esi - 0x10]
call fcn.1003c869
jmp 0x1007d352
Function at 0x1007db7f
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0x30
push 0x100a5b28
call fcn.1002ccdc
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ecx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
or dword [ebp - 0x24], 0xffffffff
or dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
xor eax, eax
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
push ebx
push 0x100
push 2
push ebx
push ebx
push 0xc0000000
push edx
mov esi, dword [0x100a96d0]
mov ecx, esi
call dword [0x100aa3f8]
call esi
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, 0xffffffff
je 0x1007dc5d
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x1007dbf3
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], ebx
push ebx
push ebx
neg esi
sbb esi, esi
lea eax, [ebp - 0x40]
and esi, eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov esi, dword [0x100a96dc]
mov ecx, esi
call dword [0x100aa3f8]
call esi
test eax, eax
je 0x1007dc5d
lea eax, [ebp - 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
je 0x1007dc5d
push ebx
push eax
push dword [ebp - 0x30]
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1007dc5d
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.1007dcae
test ebx, ebx
je 0x1007dc94
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x1007dc7f
mov eax, dword [ebp - 0x34]
mov dword [ecx], eax
mov eax, dword [ebp - 0x30]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1007dc8b
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x1007dc94
mov dword [eax], edi
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1007dd10
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100a8ba4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, edx
push 0
push eax
mov esi, ecx
call sub.msvcrt.dll_memset
and dword [ebp - 0x210], 0
lea eax, [ebp - 0x20c]
add esp, 0xc
push eax
push 0
push 0x10028094
push 0x100a94b8
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1007ddcc
lea eax, [ebp - 0x210]
mov edx, 0x104
push eax
lea ecx, [ebp - 0x20c]
call fcn.10041a2c
test eax, eax
js 0x1007ddcc
mov eax, dword [ebp - 0x210]
mov edx, esi
add eax, 0xfffffffd
mov ecx, edi
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10077efe
test eax, eax
js 0x1007ddcc
push 0x100280a0
mov edx, esi
mov ecx, edi
call fcn.1005779b
test eax, eax
js 0x1007ddcc
mov esi, dword [0x100a96e0]
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call dword [0x100aa3f8]
call esi
xor eax, eax
inc eax
jmp 0x1007ddce
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1002c750
leave
ret
Function at 0x1007e280
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
push 0x100a5ac8
call fcn.1002ccdc
xor edi, edi
mov ebx, edi
mov dword [ebp - 0x20], ebx
push dword [0x100a8f1c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x1007e3d6
push 0x100a9414
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], edi
cmp dword [0x100a94a8], esi
jne 0x1007e2f3
push 4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x100a94a8], eax
test eax, eax
je 0x1007e37b
mov ecx, edi
mov dword [0x100a96c8], ecx
mov dword [0x100a96c4], 1
jmp 0x1007e333
mov ecx, dword [0x100a96c8]
mov eax, dword [0x100a96c4]
cmp ecx, eax
jne 0x1007e333
lea eax, [eax*4 + 4]
push eax
push dword [0x100a94a8]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x1007e37b
mov dword [0x100a94a8], eax
inc dword [0x100a96c4]
mov ecx, dword [0x100a96c8]
mov eax, dword [0x100a94a8]
mov dword [eax + ecx*4], edi
push 0x8010
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x1007e37b
lea eax, [esi + 0x10]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x8000
push esi
push dword [0x100a8f1c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1007e37b
xor ebx, ebx
inc ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.1007e3aa
test ebx, ebx
je 0x1007e3ab
mov ecx, dword [0x100a96c8]
mov eax, dword [0x100a94a8]
mov dword [eax + ecx*4], esi
inc ecx
mov dword [0x100a96c8], ecx
jmp 0x1007e3c9
push edi
push dword [0x100a8f1c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, edi
push 0x100a9414
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1007e7bb
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x100a8f20]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1007e7f4
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1007e7f4
mov eax, dword [eax]
mov eax, dword [eax + ecx*4 - 4]
test eax, eax
je 0x1007e7f4
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x1007e7f4
mov eax, dword [eax + 8]
mov eax, dword [eax + ecx*4 - 4]
test eax, eax
je 0x1007e7f4
mov eax, dword [eax]
test eax, eax
jne 0x1007e7f9
mov eax, 0x10009214
ret
Function at 0x1007e7fa
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x100a8f20]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1007e834
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1007e834
mov eax, dword [eax]
mov eax, dword [eax + ecx*4 - 4]
test eax, eax
je 0x1007e834
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x1007e834
mov eax, dword [eax + 8]
mov eax, dword [eax + ecx*4 - 4]
test eax, eax
je 0x1007e834
mov eax, dword [eax + 4]
test eax, eax
jne 0x1007e839
mov eax, 0x1000921c
ret
Function at 0x100804bd
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100a8ba4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x100a9700], 0
jne 0x10080668
mov dword [0x100a9700], 1
mov dword [0x100a96e4], ecx
call fcn.100803bc
test eax, eax
je 0x1008055b
push 0x1002a598
mov dword [0x100a96d4], 0x1007ff50
mov dword [0x100a9704], 0x100801c0
mov dword [0x100a96e8], 0x10080080
mov dword [0x100a9474], 0x10080310
mov dword [0x100a9470], 0x100803b0
mov dword [0x100a96d0], 0x1007fe70
mov dword [0x100a96e0], 0x100802d0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100805a1
push 0x1002a5ac
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x100805a1
mov dword [0x100a96d4], 0x1007fe80
mov dword [0x100a9704], 0x100800e0
mov dword [0x100a96e8], 0x1007ffb0
mov dword [0x100a9474], 0x10080310
mov dword [0x100a9470], 0x10080320
mov dword [0x100a96d0], 0x1007fdd0
mov dword [0x100a96e0], 0x10080240
push esi
push 0x208
xor esi, esi
mov dword [0x100a96cc], 0x10080410
lea eax, [ebp - 0x20c]
mov dword [0x100a96f4], 0x10080490
push esi
push eax
mov dword [0x100a96d8], 0x1007fdb0
mov dword [0x100a96f8], 0x100803f0
mov dword [0x100a9708], 0x10080480
mov dword [0x100a96f0], 0x10080430
mov dword [0x100a96fc], 0x10080300
mov dword [0x100a96ec], 0x100804a0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x1002a5c8
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1008065d
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
jne 0x1008064a
push esi
mov dword [0x100a96dc], 0x1002c000
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10080667
push 0x1002a604
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100a96dc], eax
jmp 0x10080667
mov dword [0x100a96dc], 0x1002c000
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.1002c750
leave
ret
Function at 0x1008552b
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 4], ebx
je 0x1008554e
push dword [esi + 4]
mov eax, dword fs:[0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [esi + 4], ebx
cmp dword [esi + 8], ebx
je 0x10085569
push dword [esi + 8]
mov eax, dword fs:[0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [esi + 8], ebx
cmp dword [esi + 0xc], ebx
je 0x10085584
push dword [esi + 0xc]
mov eax, dword fs:[0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [esi + 0xc], ebx
cmp dword [esi + 0x10], ebx
je 0x1008559f
push dword [esi + 0x10]
mov eax, dword fs:[0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [esi + 0x10], ebx
cmp dword [esi + 0x14], ebx
je 0x100855ba
push dword [esi + 0x14]
mov eax, dword fs:[0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [esi + 0x14], ebx
push 0x20
pop eax
mov byte [esi], bl
inc esi
sub eax, 1
jne 0x100855bd
pop esi
pop ebx
ret

Function at 0x100856a9
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov eax, ecx
mov dword [esp + 8], eax
push esi
push edi
test eax, eax
je 0x10085745
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x10085745
test edx, edx
je 0x10085745
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x10085745
push dword [ebp + 0xc]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
push ecx
push ecx
mov ecx, eax
call fcn.1008561a
mov esi, eax
cmp esi, 1
jne 0x10085704
push 0x14
pop eax
mov byte [ebx], 0
inc ebx
sub eax, 1
jne 0x100856f9
jmp 0x10085741
test esi, esi
js 0x10085741
mov edx, dword [esp + 0x10]
lea esi, [esp + 0x18]
mov ecx, dword [esp + 0x14]
sub esp, 0x10
mov edi, esp
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.10085353
cmp dword [esp + 0xc], 0
mov esi, eax
je 0x10085741
push dword [esp + 0xc]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
jmp 0x1008574a
mov eax, 0x80070057
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x100928f9
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push edi
xor edi, edi
mov ecx, edi
cmp dword [esi + 4], edi
jbe 0x1009291e
mov edx, edi
mov eax, dword [esi + 8]
lea edx, [edx + 0x5c]
inc ecx
mov dword [eax + edx - 0x48], edi
mov dword [eax + edx - 0x54], edi
cmp ecx, dword [esi + 4]
jb 0x1009290a
push dword [esi + 8]
mov eax, dword fs:[0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [esi + 0xc]
mov dword [esi + 8], edi
test ecx, ecx
je 0x10092942
push 1
call fcn.10092535
mov dword [esi + 0xc], edi
pop edi
pop esi
ret