joyce8/EMBER2024-capa huggingface dataset:
Function at 0x643c8058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x643c81a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x643c807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x643c806a
add dl, dl
jne 0x643c8089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x643c80dc
xor eax, eax
add dl, dl
jne 0x643c8096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x643c817d
add dl, dl
jne 0x643c80a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x643c80b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x643c80bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x643c80c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x643c80d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x643c8075
mov eax, 1
add dl, dl
jne 0x643c80ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x643c80f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x643c80e1
sub eax, ebx
mov ebx, 1
jne 0x643c8128
mov ecx, 1
add dl, dl
jne 0x643c810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x643c8119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x643c8105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x643c8075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x643c813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x643c814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x643c8136
cmp eax, 0x7d00
jae 0x643c816d
cmp eax, 0x500
jb 0x643c8168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x643c8075
cmp eax, 0x7f
ja 0x643c8170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x643c8075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x643c819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x643c8075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x430002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
mov eax, section..idata
nop
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x6eab7b60
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x71027276
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x10003360
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x100751e0]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 8]
push edi
call fcn.10006ed0
add esp, 4
lea eax, [esp + 0x10]
lea esi, [ebx + 0xc]
mov ecx, esi
push eax
call fcn.10005040
mov eax, dword [0x10077dac]
test eax, eax
je 0x100033c9
lea ecx, [esp + 0x10]
push ecx
push dword [ebx + 0xa0]
push dword [ebx + 0xa8]
push dword [ebx + 0xa4]
push dword [ebx]
call eax
add esp, 0x14
test al, al
jne 0x1000354b
test byte [0x100765ec], 2
je 0x100033e9
cmp dword [esp + 0x24], 0x10
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x100033ee
cmp dword [ebx], 2
jl 0x10003429
cmp dword [esp + 0x24], 0x10
lea edi, [esp + 0x10]
mov esi, dword [esp + 0x20]
cmovae edi, dword [esp + 0x10]
call fcn.1004da4a
add eax, 0x40
push eax
push 1
push esi
push edi
call fcn.1004de6f
call fcn.1004da4a
add eax, 0x40
push eax
call fcn.1004dbd9
lea edi, [ebx + 8]
add esp, 0x14
lea esi, [ebx + 0xc]
test byte [0x100765ec], 1
je 0x100034c8
xor edx, edx
xor ecx, ecx
call fcn.10002db0
cmp dword [0x10077db0], 0
jne 0x10003458
push 0xffffffffffffffff
push dword [0x10077d9c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x10003464
push dword [0x10077d98]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.10002f20
test al, al
je 0x100034a5
push 2
push 0
push 0
push dword [0x10077db4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0xc]
push 0
push ecx
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push dword [0x10077db4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x10077db0], 0
jne 0x100034bc
push dword [0x10077d9c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x100034c8
push dword [0x10077d98]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebx], 3
jne 0x1000354b
mov ecx, 0x400
lea eax, [esp + 0x10]
cmp dword [esp + 0x20], ecx
cmovb ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0x10
cmovae eax, dword [esp + 0x10]
test ecx, ecx
je 0x100034fc
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.1004a150
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.10014420
add esp, 4
cmp dword [0x10077da8], 0
je 0x10003541
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.10005040
lea eax, [esp + 0x28]
push eax
call dword [0x10077da8]
add esp, 4
cmp dword [esp + 0x3c], 0x10
jb 0x1000354b
push dword [esp + 0x28]
call fcn.100499a5
add esp, 4
jmp 0x1000354b
cmp byte [0x10077e50], 0
jne 0x10003598
int3
cmp dword [esp + 0x24], 0x10
jb 0x1000355e
push dword [esp + 0x10]
call fcn.100499a5
add esp, 4
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [edi + 0x50]
mov ecx, esi
call fcn.10004580
push esi
mov dword [esi], 0x1006ece4
call fcn.100497ed
mov ecx, dword [esp + 0x448]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1004a139
mov esp, ebp
pop ebp
ret
push 1
call fcn.1004d551
int3
Function at 0x100084c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x100751e0]
xor eax, esp
mov dword [esp + 0x1c], eax
cmp dword [0x10077dc8], 0
je 0x100084ee
xor al, al
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1004a139
mov esp, ebp
pop ebp
ret
push 0x20
call fcn.10049954
add esp, 4
test eax, eax
je 0x1000850c
push 0
mov ecx, eax
call fcn.100083e0
mov dword [0x10077dc8], eax
jmp 0x10008516
mov dword [0x10077dc8], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 8]
call fcn.10004000
mov ecx, dword [0x10077dc8]
lea eax, [esp + 4]
push eax
call fcn.10008ff0
cmp dword [esp + 0x18], 8
jb 0x10008549
push dword [esp + 4]
call fcn.100499a5
add esp, 4
mov ecx, dword [esp + 0x1c]
mov al, 1
xor ecx, esp
call fcn.1004a139
mov esp, ebp
pop ebp
ret

Function at 0x10008ff0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x100751e0]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, ecx
mov dword [esp + 8], 0
mov ecx, 0x1006f438
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10009032
sub ecx, edx
lea eax, [esp + 0xc]
sar ecx, 1
mov edx, 3
push ecx
push 0x1006f438
push eax
mov ecx, esi
call fcn.10013e00
add esp, 0xc
cmp dword [esp + 0x1c], 0
je 0x10009099
cmp dword [esp + 0x20], 8
lea ecx, [esp + 8]
lea eax, [esp + 0xc]
mov dword [esp + 8], 0
cmovae eax, dword [esp + 0xc]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [esp + 0xc]
call fcn.10008580
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x20], 8
jb 0x100090ac
push dword [esp + 0xc]
call fcn.100499a5
add esp, 4
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor ecx, esp
call fcn.1004a139
mov esp, ebp
pop ebp
ret 4
Function at 0x1000d140
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov dword [esp], 0
call fcn.1000e5d0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 4], eax
lea eax, [esp + 4]
mov ecx, eax
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], 0
call fcn.10017340
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], 0
call fcn.10012510
mov esp, ebp
pop ebp
ret

Function at 0x100101c0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [esi + 0x14]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edx
and ecx, eax
cmp dword [esi + 0x18], ecx
ja 0x10010212
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov edx, dword [esi + 8]
mov esi, dword [esi]
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov ebx, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
cmp ebx, esi
jne 0x1001022a
mov ecx, esi
jmp 0x1001022f
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x1001025c
mov ecx, dword [eax + 8]
cmp ecx, dword [edi]
je 0x1001023e
mov eax, dword [eax]
jmp 0x10010222
mov ecx, dword [edi]
cmp ecx, dword [eax + 8]
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], esi
jne 0x1001024e
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x100105b0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [ebx + 0x14]
xor ecx, eax
imul ecx, ecx, 0x1000193
and ecx, edx
cmp dword [ebx + 0x18], ecx
ja 0x10010604
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov esi, dword [ebx]
lea edx, [ecx*8]
mov ecx, dword [ebx + 8]
mov dword [esp + 0xc], edx
mov eax, dword [ecx + edx]
cmp esi, eax
je 0x10010633
mov esi, dword [ecx + edx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x10010633
mov ecx, dword [edi]
mov esi, dword [esi + 4]
cmp dword [esi + 8], ecx
je 0x10010677
cmp esi, eax
jne 0x10010627
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x10010661
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [esp + 0xc]
mov ecx, dword [ebx + 8]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x10010693
mov dword [ecx], edi
mov eax, dword [ebx + 8]
mov dword [eax + edx + 4], edi
jmp 0x100106b5
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.100106d0
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x1001069b
mov dword [ecx], edi
jmp 0x100106b5
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x100106b5
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.10010720
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10012dc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], 0
mov esi, edx
push edi
test ebx, ebx
je 0x10012e2c
cmp dword [0x10079064], 0
jne 0x10012e19
push 0x44
call fcn.10049954
add esp, 4
test eax, eax
je 0x10012dfa
mov ecx, eax
call fcn.100016f0
mov edx, eax
jmp 0x10012dfc
xor edx, edx
mov ecx, edx
mov edi, 0x10079064
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
je 0x10012e19
test edx, edx
je 0x10012e19
push ecx
mov ecx, edx
call fcn.100016b0
mov eax, dword [0x10079064]
cmp dword [eax], 1
jl 0x10012e2c
mov dword [ebp - 4], 0x10000
jmp 0x10012e2e
xor ebx, ebx
push 0xc
call fcn.10049954
add esp, 4
mov edi, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [edi], esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
push 0x10012cb0
setne cl
push ebx
mov byte [edi + 4], cl
mov ecx, dword [ebp + 0xc]
push 0
mov dword [edi + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, eax
test ecx, ecx
jne 0x10012e7b
push edi
call fcn.100499a5
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x10012e90
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
mov al, 1
mov dword [esi], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10015e50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov dword [esp + 4], 0
call fcn.10015e90
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
test ecx, ecx
je 0x10015e85
mov edx, 1
add ecx, 4
lock xadd dword [ecx], edx
mov esp, ebp
pop ebp
ret

Function at 0x10016420
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
push edx
xor ebx, ebx
push ecx
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x100164b2
cmp dword [0x10077d84], 3
jg 0x100164a4
lea ebx, [eax + 1]
mov dword [esp + 8], 3
push ebx
push 2
lea ecx, [esp + 0x18]
call fcn.10004460
mov dword [esp + 0xac], str.e:core_45_src_base_threading_thread_local_win.cc
mov dword [esp + 0xb0], 0x23
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x23
push str.e:core_45_src_base_threading_thread_local_win.cc
lea ecx, [esp + 0x10]
mov dword [esp + 0xbc], eax
call fcn.100035a0
lea eax, [esp + 0x10]
push str.Failed_to_TlsSetValue__.
push eax
call fcn.10002510
add esp, 8
test bl, 1
je 0x100164b2
lea ecx, [esp + 8]
call fcn.10003360
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10017db0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
mov edi, ecx
mov dword [ebp - 4], 0
call fcn.1000e5d0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 1
cmp byte [eax + 0x6d], 0
lea eax, [ebp - 0x20]
je 0x10017e0c
push 0xf
push 0xf
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x10017e08
push 1
push 0x113
push 0x113
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x10017e08
xor dl, dl
jmp 0x10017e1e
mov dl, 1
jmp 0x10017e1e
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
setne dl
xor ecx, ecx
lea eax, [edi + 0x10]
xchg dword [eax], ecx
test dl, dl
jne 0x10017e30
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.10017bf0
pop edi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x1001b57e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x1001b590
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x100751e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x218]
mov esi, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x1001b6af
sub esp, 8
lea eax, [ebp - 0x218]
mov edx, esp
mov dword [edx], eax
cmp word [ebp - 0x218], 0
jne 0x1001b5e0
xor ecx, ecx
jmp 0x1001b5ff
lea ecx, [ebp - 0x218]
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001b5f0
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x248]
call fcn.1000b580
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x1001b61c
mov ecx, dword [eax]
jmp 0x1001b61e
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x230]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.1000b580
lea ecx, [ebp - 0x230]
call fcn.1000c080
lea eax, [ebp - 0x230]
cmp esi, eax
je 0x1001b652
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.10004e70
cmp dword [ebp - 0x21c], 8
jb 0x1001b669
push dword [ebp - 0x230]
call fcn.100499a5
add esp, 4
xor eax, eax
mov dword [ebp - 0x21c], 7
cmp dword [ebp - 0x234], 8
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
jb 0x1001b69d
push dword [ebp - 0x248]
call fcn.100499a5
add esp, 4
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004a139
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.1004a139
mov esp, ebp
pop ebp
ret
Function at 0x1001b6d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x100751e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x210]
mov esi, ecx
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1001b77b
cmp word [ebp - 0x210], 0
je 0x1001b77b
sub esp, 8
lea eax, [ebp - 0x210]
mov edx, esp
mov dword [edx], eax
cmp word [ebp - 0x210], 0
jne 0x1001b73f
xor ecx, ecx
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.1000b580
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004a139
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x210]
lea edi, [ecx + 2]
jmp 0x1001b750
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001b750
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.1000b580
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004a139
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x214], 7
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
call fcn.1001b590
mov ecx, esi
test al, al
je 0x1001b7cd
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
mov dword [esi + 0x10], 0
push eax
mov word [esi], ax
lea eax, [ebp - 0x228]
push eax
call fcn.10004e70
jmp 0x1001b7e4
sub esp, 8
mov eax, esp
mov dword [eax], 0x1006f378
mov dword [eax + 4], 3
call fcn.1000b580
cmp dword [ebp - 0x214], 8
jb 0x1001b7fb
push dword [ebp - 0x228]
call fcn.100499a5
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.1004a139
mov esp, ebp
pop ebp
ret
Function at 0x1001b810
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x100751e0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov word [ebp - 0x210], ax
mov esi, ecx
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1001b94d
cmp eax, 0x104
ja 0x1001b94d
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x240]
call fcn.10004000
sub esp, 8
lea eax, [ebp - 0x240]
cmp dword [ebp - 0x22c], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x240]
mov dword [ecx], eax
mov eax, dword [ebp - 0x230]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x258]
call fcn.1000b580
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x1001b8a4
mov ecx, dword [eax]
jmp 0x1001b8a6
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x228]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.1000b580
lea ecx, [ebp - 0x228]
call fcn.1000c080
lea eax, [ebp - 0x228]
cmp esi, eax
je 0x1001b8da
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.10004e70
cmp dword [ebp - 0x214], 8
jb 0x1001b8f1
push dword [ebp - 0x228]
call fcn.100499a5
add esp, 4
xor eax, eax
mov dword [ebp - 0x214], 7
cmp dword [ebp - 0x244], 8
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
jb 0x1001b925
push dword [ebp - 0x258]
call fcn.100499a5
add esp, 4
cmp dword [ebp - 0x22c], 8
jb 0x1001b93c
push dword [ebp - 0x240]
call fcn.100499a5
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004a139
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.1004a139
mov esp, ebp
pop ebp
ret

Function at 0x1001d1f0
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
call fcn.1001d500
mov eax, dword [0x100767b4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
test edx, edx
jne 0x1001d211
call fcn.1002ca90
mov edx, eax
mov eax, dword [0x10077f14]
cmp dword [edx + eax*4], 0
jne 0x1001d259
push 0x70
call fcn.10049954
add esp, 4
test eax, eax
je 0x1001d236
push esi
mov ecx, eax
call fcn.1001cfb0
mov esi, eax
jmp 0x1001d238
xor esi, esi
mov eax, dword [0x100767b4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x1001d251
call fcn.1002ca90
mov ecx, eax
mov eax, dword [0x10077f14]
mov dword [ecx + eax*4], esi
pop esi
ret
Function at 0x1001d260
Capabilities:
Get thread local storage value

Disassembly:
cmp byte [0x10077f10], 0
push ebx
push esi
push edi
jne 0x1001d272
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [0x100767b4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x1001d28b
call fcn.1002ca90
mov ecx, eax
mov eax, dword [0x10077f14]
mov eax, dword [ecx + eax*4]
test eax, eax
jne 0x1001d322
mov ecx, 0x10077ef0
xor edi, edi
xor ebx, ebx
call fcn.10015bd0
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x10077ee8]
test ecx, ecx
je 0x1001d2cb
mov eax, dword [ecx + 4]
mov edi, ecx
mov dword [0x10077ee8], eax
mov dword [ecx + 4], ebx
jmp 0x1001d2d8
mov ebx, dword [0x10077f24]
inc ebx
mov dword [0x10077f24], ebx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x1001d2ff
push 0x70
call fcn.10049954
add esp, 4
test eax, eax
je 0x1001d2fd
push ebx
mov ecx, eax
call fcn.1001d070
mov edi, eax
jmp 0x1001d2ff
xor edi, edi
mov eax, dword [0x100767b4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x1001d318
call fcn.1002ca90
mov ecx, eax
mov eax, dword [0x10077f14]
mov dword [ecx + eax*4], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret