joyce8/EMBER2024-capa huggingface dataset:
Function at 0x788147ff
Capabilities:
Get thread local storage value

Disassembly:
push 0x3c
push 0x788148a0
call fcn.78801330
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
push dword [0x78918190]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x28], eax
xor edi, edi
inc edi
push edi
lea ecx, [ebp - 0x4c]
call fcn.788b26ac
mov dword [ebp - 4], ebx
push dword [ebp - 0x28]
mov ecx, dword [0x7891e294]
call fcn.788b26ac
mov dword [ebp - 0x1c], edi
mov esi, dword [ebp + 8]
cmp esi, ebx
jne 0x788148ac
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x78890ac0
push dword [ebp + 0x10]
push eax
mov ecx, dword [0x7891e29c]
call fcn.78807a8e
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x78814870
mov ecx, dword [0x7891e298]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x7891e294]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x20], ebx
je 0x788823ea
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.7880cf41
mov eax, dword [ebp - 0x20]
call fcn.78801370
ret 0xc
mov ecx, dword [0x7891e29c]
mov dword [ebp - 0x2c], ecx
push esi
call fcn.788b26ac
jmp 0x78814860
mov eax, dword [esi + 8]
mov dword [ebp - 0x30], eax
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x34], ecx
push eax
push ebx
push ecx
call fcn.788b26ac
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
jmp 0x78882401
cmp esi, ebx
jne 0x788824f4
push dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
call fcn.788b26ac
mov dword [ebp - 0x24], eax
push 0x18
call fcn.788b26ac
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], esi
mov edi, dword [ebp - 0x24]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x20]
push eax
push edi
mov ecx, esi
call fcn.788b26ac
mov edi, eax
mov dword [ebp - 0x20], edi
push dword [ebp - 0x28]
mov ecx, dword [0x7891e294]
call fcn.788b26ac
mov dword [ebp - 0x1c], 2
push edi
push dword [ebp - 0x24]
mov ecx, dword [0x7891e29c]
call fcn.788b26ac
mov esi, eax
mov dword [ebp - 0x40], esi
mov eax, dword [0x7891e298]
mov dword [esi + 0xc], eax
mov ecx, dword [0x7891e294]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov dword [ebp - 0x1c], ebx
cmp esi, edi
jne 0x78890aca
mov dword [ebp - 0x20], esi
jmp 0x78814887
mov ecx, esi
call fcn.7880cf79
cmp eax, edi
jne 0x78837eb2
mov dword [ebp - 0x24], esi
jmp 0x78882401
mov eax, 0x78811004
jmp 0x78814851
push ebx
lea ecx, [edi + 0x10]
call fcn.788b26ac
mov ecx, edi
call fcn.788b0cb6
jmp 0x7888246f
Function at 0x788148d2
Capabilities:
Get thread local storage value

Disassembly:
push 0x38
push 0x78814970
call fcn.78801330
and dword [ebp - 0x1c], 0
push dword [0x78918190]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x20], eax
xor ebx, ebx
inc ebx
push ebx
lea ecx, [ebp - 0x48]
call fcn.788b26ac
and dword [ebp - 4], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3c], edi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x38], esi
push dword [ebp - 0x20]
mov ecx, dword [0x7891e290]
call fcn.788b26ac
mov dword [ebp - 0x1c], ebx
push 4
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [0x7891e2a0]
call fcn.78807a8e
mov ebx, eax
mov dword [ebp - 0x28], ebx
test ebx, ebx
je 0x78814940
mov eax, dword [0x7891e298]
mov dword [ebx + 0xc], eax
mov ecx, dword [0x7891e290]
mov eax, dword [ecx]
call dword [eax + 0x18]
and dword [ebp - 0x1c], 0
test ebx, ebx
je 0x78882477
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.7880cf41
mov eax, ebx
call fcn.78801370
ret 8
push 4
lea eax, [ebp - 0x3c]
push eax
call fcn.788b26ac
mov dword [ebp - 0x24], eax
push 0x1c
call fcn.788b26ac
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
push dword [ebp - 0x24]
push esi
push edi
mov ecx, eax
call fcn.788b26ac
mov edi, eax
mov dword [ebp - 0x28], edi
push dword [ebp - 0x20]
mov ecx, dword [0x7891e290]
call fcn.788b26ac
mov dword [ebp - 0x1c], 2
push edi
push dword [ebp - 0x24]
mov ecx, dword [0x7891e2a0]
call fcn.788b26ac
mov esi, eax
mov dword [ebp - 0x34], esi
mov eax, dword [0x7891e298]
mov dword [esi + 0xc], eax
mov ecx, dword [0x7891e290]
mov eax, dword [ecx]
call dword [eax + 0x10]
and dword [ebp - 0x1c], ebx
cmp esi, edi
jne 0x78890583
mov ebx, esi
mov dword [ebp - 0x28], ebx
jmp 0x78814957
push ebx
lea ecx, [edi + 0x18]
call fcn.788b26ac
mov ecx, edi
call fcn.788b0cb6
jmp 0x788824ea

Function at 0x788152e0
Capabilities:
Get thread local storage value

Disassembly:
call fcn.788072a6
test eax, eax
jne fcn.7880f880
push esi
lea esi, [ecx + 4]
push esi
call fcn.788b26ac
sub eax, 8
mov dword [esi], eax
shr eax, 3
pop esi
ret

Function at 0x788162a7
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push esi
mov esi, ecx
mov eax, dword [esi + 0x54]
cmp eax, 0xffffffff
mov dword [esi], 0x78807fe8
mov dword [esi + 4], 0x78809f00
je 0x788162d8
cmp byte [esi + 0x58], 0
jne 0x788a4694
push dword [esi + 0x54]
call dword [sym.imp.kernel32.dll_CloseHandle]
or dword [esi + 0x54], 0xffffffff
mov ecx, esi
pop esi
push eax
call dword [sym.imp.kernel32.dll_SetEndOfFile]
push dword [esi + 0x54]
call dword [sym.imp.kernel32.dll_FlushFileBuffers]
jmp 0x788162cb
Function at 0x78821555
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push esi
push dword [0x78918190]
call dword [sym.imp.kernel32.dll_TlsGetValue]
push dword [0x7891e34c]
and dword [0x7891e360], 0
mov esi, eax
mov byte [0x7891e358], 1
call dword [sym.imp.kernel32.dll_ResetEvent]
push esi
mov dword [0x7891e1f0], 0x788b0c9a
mov dword [0x7891e1ec], 0x78821685
call fcn.78814c2e
mov esi, dword [0x7891e340]
test esi, esi
mov eax, dword [0x7891e348]
mov dword [0x7891e350], esi
mov dword [0x7891e1e8], eax
je 0x788215fa
push edi
cmp byte [esi + 0x44], 0
jne 0x7888f924
lea edi, [esi + 0xc]
push edi
call fcn.788b26ac
push esi
call fcn.788b26ac
cmp dword [esi + 0x2c], 0
mov dword [edi], eax
mov dword [esi + 4], esi
mov byte [esi + 0x18], 1
je 0x788215f2
inc dword [0x7891e360]
mov byte [esi + 0x19], 1
mov eax, dword [0x7891e348]
add dword [0x7891e1e8], eax
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x788215b5
pop edi
push dword [0x7891e34c]
mov dword [0x7891e1f0], 0x78809ed9
call dword [sym.imp.kernel32.dll_SetEvent]
pop esi
ret
push esi
call fcn.78814c2e
jmp 0x788215bf
Function at 0x7887e74c
Capabilities:
Get thread local storage value

Disassembly:
push 0x34
push 0x7887e850
call fcn.78801330
mov esi, ecx
mov byte [ebp - 0x1c], 0
mov edi, dword [esi + 0x34]
mov dword [ebp - 0x24], edi
mov ebx, dword [edi + 0xb4]
xor ecx, ecx
cmp dword [ebp + 8], ecx
jne 0x7887e781
mov ecx, edi
call fcn.78809024
mov dword [ebp + 8], eax
mov byte [ebp - 0x1c], 1
xor ecx, ecx
mov eax, dword [edi + 0xbc]
cmp eax, 4
jne 0x788a73f0
mov eax, dword [edi + 0x54]
shr eax, 0xa
test al, 1
jne 0x788a73fa
mov ecx, dword [edi + 0x60]
mov dword [ebp - 0x20], ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [edi + 0xbc], 2
and dword [ebp - 4], 0
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x7887e83f
test ebx, ebx
je 0x7887e7d9
mov byte [esi + 0x2f], 1
push edi
mov eax, dword [0x7891e2a4]
push eax
push eax
push ebx
mov ecx, esi
call fcn.788b26ac
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
test al, 0x20
jne 0x788a744d
test al, 0x1f
jne 0x788a7477
cmp byte [ebp - 0x1c], 0
je 0x7887e814
push dword [0x78918190]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov ecx, dword [ebx + 0x50]
test ecx, ecx
jne 0x788a7459
push dword [ebp - 0x1c]
push edi
push dword [ebp + 8]
push esi
call fcn.7887e6c4
mov dword [edi + 0xbc], 4
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx]
call dword [eax + 0x10]
call fcn.78801370
ret 4
cmp byte [ebp - 0x1c], 0
je 0x7887e7d9
jmp 0x788a7417
push 0xc00ce212
call fcn.788b26ac
cmp dword [esi + 0x5c], ecx
je 0x7887e79e
push ecx
push ecx
push ecx
push ecx
push 0xc00ce23d
push 0x80004005
push ecx
call fcn.788b26ac
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x2c], eax
push eax
mov ecx, esi
call fcn.788b26ac
push eax
mov ecx, esi
call fcn.788b26ac
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x7887e7d9
mov dword [ebp - 0x34], eax
mov ecx, eax
call fcn.78815218
jmp 0x7887e7d9
push ecx
push esi
call fcn.7890c629
jmp 0x7887e821
cmp dword [ecx + 0x10], esi
jne 0x7887e814
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], ecx
mov eax, dword [ecx]
push 1
call dword [eax]
and dword [ebx + 0x50], 0
jmp 0x7887e814
push ecx
call fcn.788b26ac
push 0
push dword [ebp - 0x14]
call fcn.788b26ac
ret
Function at 0x788b26ac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x788b26bb
pop dword [ebp - 0x10]
mov eax, 0x788b26bb
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x97b34
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0x534a
xor edi, edi
add edi, eax
mov ebx, 0x31d3b1d8
sub ebx, 0xb93df1d8
add ebx, dword [ebp - 0x10]
mov esi, 0x7634b0c9
sub esi, 0x71999fe2
add dword [ebp - 4], 0x7d1fe4a6
mov edx, dword [ebx]
xor dword [ebp - 4], 0xfa962dc0
sub edx, esi
mov dword [ebp - 8], 0x31455334
mov dword [edi], edx
sub dword [ebp - 0xc], ebx
add edi, 0x4ad02b0c
add edi, 0xb52fd4f8
add ebx, 0x5f8b08e
sub ebx, 0x5f8b08a
loop 0x788b270c
add eax, 0x13ffb
mov ebx, eax
add eax, 0x64c8d00f
sub eax, 0x64c8d00a
mov ecx, 0x92fa1833
add ecx, 0xe585e7cd
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x788ccafe
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x7891e1e4]
mov dword [ebp - 4], eax
mov eax, dword [0x7892a46c]
cmp eax, 0xffffffff
jne 0x788ccb67
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.kernel32.dll_GetVersionExW]
test eax, eax
je fcn.788b0842
xor eax, eax
inc eax
cmp dword [ebp - 0x108], 2
jne 0x788ccb4f
cmp dword [ebp - 0x114], 5
jae 0x788ccb62
cmp dword [ebp - 0x108], eax
jne 0x788ccb60
cmp dword [ebp - 0x110], 0x5a
jae 0x788ccb62
xor eax, eax
mov dword [0x7892a46c], eax
mov ecx, dword [ebp - 4]
call fcn.78809964
leave
ret

Function at 0x78914aa1
Capabilities:
Encrypt data using dpapi

Disassembly:
push 0x18
push 0x78914b90
call fcn.78801330
xor esi, esi
mov dword [ebp - 0x24], esi
cmp byte [0x7892ccc8], 0
je 0x78914b35
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
push dword [ebp + 0xc]
push 5
push esi
push esi
push esi
cmp byte [ebp + 0x10], 0
je 0x78914adf
push 0x78914b78
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
jmp 0x78914aec
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
mov dword [ebp - 0x20], eax
cmp eax, esi
jne 0x78914b0d
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x28], eax
cmp eax, esi
jle 0x78914b0a
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x24], eax
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], esi
je 0x78914b6b
push dword [ebp - 0x1c]
call dword [sym.imp.kernel32.dll_LocalFree]
jmp 0x78914b6b
mov ebx, dword [ebp + 8]
push dword [ebx]
push esi
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov edx, dword [ebp + 0xc]
mov dword [edx + 4], eax
cmp eax, esi
jne 0x78914b52
mov eax, 0x8007000e
jmp 0x78914b6e
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
mov dword [edx], eax
mov eax, dword [ebp - 0x24]
call fcn.78801370
ret 0xc
Function at 0x10001000
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x1001fc88
call fcn.10006650
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov edx, dword [ebp - 0x30]
cmp word [edx], ax
jne 0x10001068
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x10001068
mov ecx, dword [eax + 0xd8]
lea esi, [ecx + edx]
cmp dword [ebp + 0xc], esi
jb 0x10001068
mov eax, dword [eax + 0xdc]
add eax, ecx
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x10001068
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x10001071
mov dword [ebp - 4], 0xfffffffe
xor al, al
call fcn.100066a0
ret
Function at 0x10001169
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, eax
push edi
mov ebx, 0x10000
cmp esi, 0x7ff80000
jbe 0x1000118c
lea eax, [esi - 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x1000118f
mov dword [ebp - 4], ebx
cmp esi, 0x80000000
jae 0x100011a2
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 8], eax
jmp 0x100011a9
mov dword [ebp - 8], 0xfff80000
mov eax, dword [0x10077e44]
mov ecx, dword [0x10077e40]
test eax, eax
jne 0x100011c3
test ecx, ecx
je 0x100011d8
mov eax, ecx
mov dword [0x10077e44], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x100011d8
cmp edx, dword [ebp - 4]
jb 0x100011d8
cmp edx, dword [ebp - 8]
jbe 0x100012a9
mov eax, ecx
test ecx, ecx
jmp 0x100011fc
test eax, eax
je 0x100011f7
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x100011f7
cmp ecx, dword [ebp - 4]
jb 0x100011f7
cmp ecx, dword [ebp - 8]
jbe 0x100012a9
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x10077e44], eax
jne 0x100011de
mov eax, esi
and eax, 0xffff
sub esi, eax
mov edi, esi
cmp esi, dword [ebp - 4]
jbe 0x1000133e
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x10001229
mov edi, 0x6fff0000
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000133e
cmp dword [ebp - 0x30], ebx
jne 0x10001248
cmp dword [ebp - 0x34], ebx
jae 0x1000125b
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 4]
ja 0x10001217
jmp 0x1000133e
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10077e44], eax
test eax, eax
je 0x1000133e
mov ecx, dword [0x10077e40]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x10077e40], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x1000129b
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, dword [ebp - 4]
jb 0x10001343
cmp esi, dword [ebp - 8]
ja 0x10001343
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call fcn.10007370
add esp, 0xc
mov eax, esi
jmp 0x10001345
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x100012ea
mov esi, 0x80010000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10001343
cmp dword [ebp - 0x14], ebx
jne 0x10001335
cmp dword [ebp - 0x18], ebx
jb 0x10001335
movzx ecx, si
test ecx, ecx
je 0x10001319
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x18], eax
add dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x24]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10077e44], eax
test eax, eax
jne 0x10001277
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
lea esi, [eax + ecx]
cmp esi, dword [ebp - 8]
jb 0x100012d8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000137d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x10077e4c], edi
je 0x10001390
mov eax, 0x10dd
jmp 0x100013eb
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x10077e4c
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x10001389
push esi
mov esi, dword [0x10077e40]
mov dword [0x10077e48], edi
mov dword [0x10077e5c], edi
mov dword [0x10077e58], edi
mov dword [0x10077e50], edi
mov dword [0x10077e54], edi
jmp 0x100013e4
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x100013ce
xor eax, eax
pop esi
pop edi
pop ecx
ret

Function at 0x100013ee
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10077e4c], eax
je 0x10001404
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x10077e5c]
xor ebx, ebx
push edi
cmp esi, ebx
je 0x1000144f
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x10001440
mov edi, dword [esi + 0x10]
cmp edi, ebx
je 0x10001440
call fcn.1000134a
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call fcn.10005d99
pop ecx
mov esi, edi
cmp edi, ebx
jne 0x10001413
mov dword [0x10077e5c], ebx
call fcn.10001142
mov esi, dword [0x10077e58]
cmp esi, ebx
je 0x1000147c
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.10005d99
pop ecx
mov esi, edi
cmp edi, ebx
jne 0x10001464
pop edi
pop esi
mov dword [0x10077e58], ebx
mov dword [0x10077e4c], ebx
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x100016d3
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x10077e50]
test eax, eax
jne 0x10001743
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x100016ef
xor eax, eax
jmp 0x10001742
push esi
push 8
call fcn.10005a4f
mov esi, eax
pop ecx
test esi, esi
jne 0x10001703
push 8
pop edi
jmp 0x1000171e
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1000172f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.10005d99
pop ecx
and dword [0x10077e54], 0
mov dword [0x10077e50], edi
mov eax, edi
jmp 0x10001741
mov eax, dword [0x10077e58]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x10077e58], esi
xor eax, eax
pop esi
pop edi
ret 4
Function at 0x10002120
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x10002147
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push 0
push 0x10001e90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc

Function at 0x10002160
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x10021040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.10007370
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.10002150
push dword [eax + 4]
push dword [eax]
call fcn.1000aca0
add esp, 0x1c
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10005a41
mov esp, ebp
pop ebp
ret

Function at 0x1000b30d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000b34c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000b34c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000b34c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000b34c
cmp dword [ecx + 0x74], 0xe
jbe 0x1000b34c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000f53e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000f5db
push ebx
push esi
call fcn.1000f507
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000f49b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000f588
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000f5da
push edi
push eax
call fcn.1000c1fc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000f5a8
call fcn.1000c1c2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000f5d9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000f49b
add esp, 0x20
test eax, eax
jne 0x1000f5c7
push edi
call fcn.1000c1c2
jmp 0x1000f5cf
push ebx
call fcn.1000c1c2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000f848
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001ad40
push 0x1001ad38
push str.FlsAlloc
push 0x1f
call fcn.1000f764
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000f87c
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001818c]
call esi
jmp 0x1000f882
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000f8c6
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001ad50
push 0x1001ad48
push str.FlsGetValue
push 0x21
call fcn.1000f764
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000f8fd
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001818c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000f905
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001ad58
push 0x1001ad50
push str.FlsSetValue
push 0x22
call fcn.1000f764
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000f93f
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001818c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10017050
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001707d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001707d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret