joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6c95ce59
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
add ebx, 0x10815
call fcn.6c95ccc5
add byte [esi + 0x4d], cl
dec ebp
inc esp
aaa
cmp dword [esi + eax*2 + 0x50], eax
add esp, 4
pop ebx
push ebx
push eax
add esp, 4
add ebx, 0x17524
add ebx, 0x11652
add ebx, 0x58e8
pop ebx
lea edx, [ebp - 0x1740]
mov dword [ebp - 0xcb4], edx
mov eax, dword [ebp - 0x510]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0xcb0], ecx
xor edx, edx
mov word [ebp - 0x218], dx
xor eax, eax
mov word [ebp - 0x34], ax
push edx
push eax
add esp, 4
xor edx, 0x9007
and edx, 0xb9dd
pop edx
push ecx
push esi
add esp, 4
sub ecx, 0x12eee
jmp 0x6c95cd2d
call 0x6c95cd39
add byte [edx + 0x35], cl
cmp al, byte [eax + 0x3c]
dec edi
add esp, 4
pop ecx
mov ecx, dword [ebp - 0xcb0]
mov dx, word [ecx]
mov word [ebp - 0x103e], dx
mov eax, dword [ebp - 0xcb0]
add eax, 2
mov dword [ebp - 0xcb0], eax
mov cx, word [ebp - 0x103e]
mov word [ebp - 0x218], cx
mov edx, dword [ebp - 0xcb4]
mov ax, word [edx]
mov word [ebp - 0x1040], ax
mov ecx, dword [ebp - 0xcb4]
add ecx, 2
mov dword [ebp - 0xcb4], ecx
mov dx, word [ebp - 0x1040]
mov word [ebp - 0x34], dx
push edx
push edx
add esp, 4
sub edx, 0x3d2d
xor edx, 0x161f4
or edx, 0x458b
or edx, 0x15d06
pop edx
push edx
or edx, 0x1504e
and edx, 0x15ba7
and edx, 0x10adb
pop edx
movzx eax, word [ebp - 0x34]
test eax, eax
jne 0x6c95cde3
movzx ecx, word [ebp - 0x218]
movzx edx, word [ebp - 0x34]
sub ecx, edx
mov dword [ebp - 0x160c], ecx
jmp 0x6c95ce3d
movzx eax, word [ebp - 0x218]
movzx ecx, word [ebp - 0x34]
cmp eax, ecx
je 0x6c95cd0b
movzx edx, word [ebp - 0x218]
xor edx, 0x20
movzx eax, word [ebp - 0x34]
cmp edx, eax
je 0x6c95cd0b
movzx ecx, word [ebp - 0x218]
movzx edx, word [ebp - 0x34]
cmp ecx, edx
jge 0x6c95ce27
mov dword [ebp - 0x1608], 0xffffffff
jmp 0x6c95ce31
mov dword [ebp - 0x1608], 1
mov eax, dword [ebp - 0x1608]
mov dword [ebp - 0x160c], eax
cmp dword [ebp - 0x160c], 0
jne 0x6c95ce86
push edi
xor edi, 0x11150
call 0x6c95ce59
add byte [ecx + 0x3c], al
dec ebx
aaa
cmp al, byte [ebx + 0x4eb04c4]
aas
inc esp
inc ebx
dec edx
or edi, 0x1b11
pop edi
push esi
jmp 0x6c95ce71
add esi, 0x10b65
pop esi
mov ecx, dword [ebp - 0x510]
mov dword [ebp - 0x2d4], ecx
jmp 0x6c95ceee
push edx
push ebx
add esp, 4
and edx, 0xde53
or edx, 0x15d7a
pop edx
push eax
push ecx
add esp, 4
call 0x6c95cead
add byte [eax + 0x3b], dl
cmp ecx, dword [eax + 0x4b]
xor cl, byte [edx + 0x35]
xor edi, dword [edx]
add esp, 4
jmp 0x6c95ceb7
pop eax
mov edx, dword [ebp - 0x510]
mov eax, dword [edx]
mov dword [ebp - 0x510], eax
mov ecx, dword [ebp - 0x510]
cmp ecx, dword [ebp - 0xcb8]
je 0x6c95cee4
mov edx, dword [ebp - 0x510]
cmp dword [edx + 0x30], 0
jne 0x6c95ccaf
mov dword [ebp - 0x2d4], 0
Function at 0x6c95cead
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
add ebx, 0x10815
call fcn.6c95ccc5
add byte [esi + 0x4d], cl
dec ebp
inc esp
aaa
cmp dword [esi + eax*2 + 0x50], eax
add esp, 4
pop ebx
push ebx
push eax
add esp, 4
add ebx, 0x17524
add ebx, 0x11652
add ebx, 0x58e8
pop ebx
lea edx, [ebp - 0x1740]
mov dword [ebp - 0xcb4], edx
mov eax, dword [ebp - 0x510]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0xcb0], ecx
xor edx, edx
mov word [ebp - 0x218], dx
xor eax, eax
mov word [ebp - 0x34], ax
push edx
push eax
add esp, 4
xor edx, 0x9007
and edx, 0xb9dd
pop edx
push ecx
push esi
add esp, 4
sub ecx, 0x12eee
jmp 0x6c95cd2d
call 0x6c95cd39
add byte [edx + 0x35], cl
cmp al, byte [eax + 0x3c]
dec edi
add esp, 4
pop ecx
mov ecx, dword [ebp - 0xcb0]
mov dx, word [ecx]
mov word [ebp - 0x103e], dx
mov eax, dword [ebp - 0xcb0]
add eax, 2
mov dword [ebp - 0xcb0], eax
mov cx, word [ebp - 0x103e]
mov word [ebp - 0x218], cx
mov edx, dword [ebp - 0xcb4]
mov ax, word [edx]
mov word [ebp - 0x1040], ax
mov ecx, dword [ebp - 0xcb4]
add ecx, 2
mov dword [ebp - 0xcb4], ecx
mov dx, word [ebp - 0x1040]
mov word [ebp - 0x34], dx
push edx
push edx
add esp, 4
sub edx, 0x3d2d
xor edx, 0x161f4
or edx, 0x458b
or edx, 0x15d06
pop edx
push edx
or edx, 0x1504e
and edx, 0x15ba7
and edx, 0x10adb
pop edx
movzx eax, word [ebp - 0x34]
test eax, eax
jne 0x6c95cde3
movzx ecx, word [ebp - 0x218]
movzx edx, word [ebp - 0x34]
sub ecx, edx
mov dword [ebp - 0x160c], ecx
jmp 0x6c95ce3d
movzx eax, word [ebp - 0x218]
movzx ecx, word [ebp - 0x34]
cmp eax, ecx
je 0x6c95cd0b
movzx edx, word [ebp - 0x218]
xor edx, 0x20
movzx eax, word [ebp - 0x34]
cmp edx, eax
je 0x6c95cd0b
movzx ecx, word [ebp - 0x218]
movzx edx, word [ebp - 0x34]
cmp ecx, edx
jge 0x6c95ce27
mov dword [ebp - 0x1608], 0xffffffff
jmp 0x6c95ce31
mov dword [ebp - 0x1608], 1
mov eax, dword [ebp - 0x1608]
mov dword [ebp - 0x160c], eax
cmp dword [ebp - 0x160c], 0
jne 0x6c95ce86
push edi
xor edi, 0x11150
call 0x6c95ce59
add byte [ecx + 0x3c], al
dec ebx
aaa
cmp al, byte [ebx + 0x4eb04c4]
aas
inc esp
inc ebx
dec edx
or edi, 0x1b11
pop edi
push esi
jmp 0x6c95ce71
add esi, 0x10b65
pop esi
mov ecx, dword [ebp - 0x510]
mov dword [ebp - 0x2d4], ecx
jmp 0x6c95ceee
push edx
push ebx
add esp, 4
and edx, 0xde53
or edx, 0x15d7a
pop edx
push eax
push ecx
add esp, 4
call 0x6c95cead
add byte [eax + 0x3b], dl
cmp ecx, dword [eax + 0x4b]
xor cl, byte [edx + 0x35]
xor edi, dword [edx]
add esp, 4
jmp 0x6c95ceb7
pop eax
mov edx, dword [ebp - 0x510]
mov eax, dword [edx]
mov dword [ebp - 0x510], eax
mov ecx, dword [ebp - 0x510]
cmp ecx, dword [ebp - 0xcb8]
je 0x6c95cee4
mov edx, dword [ebp - 0x510]
cmp dword [edx + 0x30], 0
jne 0x6c95ccaf
mov dword [ebp - 0x2d4], 0
Function at 0x6c95e3ad
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esp, 4
pop eax
mov edx, dword [ebp - 0x520]
mov dword [ebp - 0x2f4], edx
jmp 0x6c95e427
Function at 0x6c99a1a0
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
push ebx
sub esp, 0xc
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x6c99a224
mov dword [esp], ebx
call fcn.6c9a2480
test eax, eax
je 0x6c99a224
mov eax, dword [0x6ca3e6bc]
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [0x6ca3e6c0]
mov dword [esp + 4], eax
call edi
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x6c99a224
mov eax, dword [0x6ca3e6c0]
cmp dword [0x6ca3e6bc], esi
jae 0x6c99a226
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.6c99ed60
test eax, eax
je 0x6c99a224
mov dword [0x6ca3e6bc], esi
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [0x6ca3e6c0], eax
mov dword [esp + 4], eax
call edi
mov eax, dword [0x6ca3e6c0]
sub esp, 0xc
add esp, 0xc
pop ebx
pop esi
pop edi
ret
xor eax, eax
add esp, 0xc
pop ebx
pop esi
pop edi
ret
Function at 0x6c9df9e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 8
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
mov eax, dword [ebx + 0x34]
mov edx, dword [eax + 0x44]
test dh, 2
je 0x6c9dfad0
and edx, 0x173
jne 0x6c9dfa40
mov edx, dword [ebx + 4]
mov ecx, dword [esi + 4]
mov edx, dword [edx]
cmp edx, dword [ecx]
jne 0x6c9dfa40
test edx, edx
je 0x6c9dfab0
mov ecx, edx
shr ecx, 0x1c
cmp ecx, 1
jne 0x6c9dfab0
shr edx, 0x18
and edx, 0xf
sub edx, 1
cmp edx, 2
ja 0x6c9dfab0
nop
cmp esi, dword [eax]
je 0x6c9dfa80
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.6c9dcba0
test eax, eax
js 0x6c9dfae9
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebx
mov eax, dword [eax + 8]
add esp, 8
pop ebx
pop esi
pop edi
pop ebp
jmp eax
mov edx, dword [esi + 4]
mov edx, dword [edx + 4]
test edx, edx
je 0x6c9dfa92
mov ecx, dword [edx + 8]
cmp dword [eax + 0x50], ecx
jne 0x6c9dfa44
mov edx, dword [ebx + 4]
mov edx, dword [edx + 4]
test edx, edx
je 0x6c9dfa5b
mov ecx, dword [edx + 8]
cmp dword [eax + 0x54], ecx
jne 0x6c9dfa44
jmp 0x6c9dfa5b
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebx
add esp, 8
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.6c9de7a0
or dh, 2
mov dword [eax + 0x44], edx
mov dword [esp], eax
call fcn.6c9dcb40
mov eax, dword [ebx + 0x34]
mov edx, dword [eax + 0x44]
jmp 0x6c9dfa06
add esp, 8
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6c9f4560
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x10
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.6c960930
mov dword [esp], 1
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov edi, eax
call esi
sub esp, 4
test ax, ax
jns 0x6c9f45f5
mov dword [esp], 2
call esi
sub esp, 4
test ax, ax
jns 0x6c9f47b0
mov dword [esp], 4
call esi
sub esp, 4
test ax, ax
jns 0x6c9f4740
mov dword [esp], 5
call esi
sub esp, 4
test ax, ax
jns 0x6c9f46d0
mov dword [esp], 6
call esi
sub esp, 4
test ax, ax
jns 0x6c9f4660
mov dword [ebx + 0x24], 0
add esp, 0x10
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, byte [ebx + 0x38]
mov ebp, edi
and ebp, 1
test al, 1
je 0x6c9f462e
and eax, 0xfffffffe
mov byte [ebx + 0x38], al
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6ca00fb0
mov dword [esp + 4], 0
mov dword [esp], 0x6ca360b4
call fcn.6c942cc0
test eax, eax
je 0x6c9f4596
test ebp, ebp
je 0x6c9f4596
mov eax, dword [ebx]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.6c9603c0
jmp 0x6c9f4596
movzx eax, byte [ebx + 0x38]
and edi, 0x10
test al, 0x10
je 0x6c9f4697
and eax, 0xffffffef
mov byte [ebx + 0x38], al
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6ca00fb0
mov dword [esp + 4], 0
mov dword [esp], 0x6ca360b4
call fcn.6c942cc0
test eax, eax
je 0x6c9f45e6
test edi, edi
je 0x6c9f45e6
mov eax, dword [ebx]
mov dword [esp + 0xc], 5
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.6c9603c0
jmp 0x6c9f45e6
movzx eax, byte [ebx + 0x38]
mov ebp, edi
and ebp, 8
test al, 8
je 0x6c9f4709
and eax, 0xfffffff7
mov byte [ebx + 0x38], al
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6ca00fb0
mov dword [esp + 4], 0
mov dword [esp], 0x6ca360b4
call fcn.6c942cc0
test eax, eax
je 0x6c9f45d5
test ebp, ebp
je 0x6c9f45d5
mov eax, dword [ebx]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.6c9603c0
jmp 0x6c9f45d5
movzx eax, byte [ebx + 0x38]
mov ebp, edi
and ebp, 2
test al, 2
je 0x6c9f4779
and eax, 0xfffffffd
mov byte [ebx + 0x38], al
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6ca00fb0
mov dword [esp + 4], 0
mov dword [esp], 0x6ca360b4
call fcn.6c942cc0
test eax, eax
je 0x6c9f45c0
test ebp, ebp
je 0x6c9f45c0
mov eax, dword [ebx]
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.6c9603c0
jmp 0x6c9f45c0
movzx eax, byte [ebx + 0x38]
mov ebp, edi
and ebp, 4
test al, 4
je 0x6c9f47e9
and eax, 0xfffffffb
mov byte [ebx + 0x38], al
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6ca00fb0
mov dword [esp + 4], 0
mov dword [esp], 0x6ca360b4
call fcn.6c942cc0
test eax, eax
je 0x6c9f45ab
test ebp, ebp
je 0x6c9f45ab
mov eax, dword [ebx]
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.6c9603c0
jmp 0x6c9f45ab
Function at 0x6c9f82b0
Capabilities:
Log keystrokes

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, 1
sub esp, 0x80c
lea ebp, [esp + 0xc]
mov dword [esp], ebp
call fcn.6c95ee50
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
jmp 0x6c9f82de
add ebx, 1
cmp ebx, 0x80
je 0x6c9f833e
mov esi, dword [ebx*4 + 0x6ca36820]
test esi, esi
je 0x6c9f82d3
test byte [esp + esi*4 + 0xf], 0x40
jne 0x6c9f82d3
lea eax, [esi - 0x1e]
cmp eax, 9
jbe 0x6c9f82d3
mov dword [esp + 4], 1
mov dword [esp], ebx
call edi
sub esp, 8
test eax, eax
je 0x6c9f82d3
mov dword [esp + 4], 2
mov dword [esp], eax
call edi
sub esp, 8
and eax, 0x7fff
je 0x6c9f82d3
lea ecx, [eax - 0x41]
lea edx, [eax + 0x20]
cmp ecx, 0x1a
cmovb eax, edx
add ebx, 1
mov dword [esp + esi*4 + 0xc], eax
cmp ebx, 0x80
jne 0x6c9f82de
mov dword [esp + 4], ebp
mov dword [esp + 8], 0x200
mov dword [esp], 0
call fcn.6c95ee80
add esp, 0x80c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6ca0ab40
Capabilities:
Link many functions at runtime

Disassembly:
xor eax, eax
cmp byte [0x6ca3f660], 0
je 0x6ca0ab50
ret
push ebx
sub esp, 8
mov dword [esp], str.hid.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
sub esp, 4
mov dword [reloc.KERNEL32.dll_CreateEventW], eax
test eax, eax
je 0x6ca0ad18
mov dword [esp + 4], str.HidD_GetAttributes
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp], eax
call ebx
sub esp, 8
mov dword [reloc.KERNEL32.dll_GetConsoleMode], eax
test eax, eax
je 0x6ca0ad03
mov eax, dword [reloc.KERNEL32.dll_CreateEventW]
mov dword [esp + 4], str.HidD_GetSerialNumberString
mov dword [esp], eax
call ebx
sub esp, 8
mov dword [reloc.KERNEL32.dll_FreeLibrary], eax
test eax, eax
je 0x6ca0ad03
mov eax, dword [reloc.KERNEL32.dll_CreateEventW]
mov dword [esp + 4], str.HidD_GetManufacturerString
mov dword [esp], eax
call ebx
sub esp, 8
mov dword [reloc.KERNEL32.dll_FormatMessageW], eax
test eax, eax
je 0x6ca0ad03
mov eax, dword [reloc.KERNEL32.dll_CreateEventW]
mov dword [esp + 4], str.HidD_GetProductString
mov dword [esp], eax
call ebx
sub esp, 8
mov dword [reloc.KERNEL32.dll_EnterCriticalSection], eax
test eax, eax
je 0x6ca0ad03
mov eax, dword [reloc.KERNEL32.dll_CreateEventW]
mov dword [esp + 4], str.HidD_SetFeature
mov dword [esp], eax
call ebx
sub esp, 8
mov dword [reloc.KERNEL32.dll_DeviceIoControl], eax
test eax, eax
je 0x6ca0ad03
mov eax, dword [reloc.KERNEL32.dll_CreateEventW]
mov dword [esp + 4], str.HidD_GetFeature
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
je 0x6ca0ad03
mov eax, dword [reloc.KERNEL32.dll_CreateEventW]
mov dword [esp + 4], str.HidD_GetIndexedString
mov dword [esp], eax
call ebx
sub esp, 8
mov dword [reloc.KERNEL32.dll_DeleteCriticalSection], eax
test eax, eax
je 0x6ca0ad03
mov eax, dword [reloc.KERNEL32.dll_CreateEventW]
mov dword [esp + 4], str.HidD_GetPreparsedData
mov dword [esp], eax
call ebx
sub esp, 8
mov dword [reloc.KERNEL32.dll_CreateToolhelp32Snapshot], eax
test eax, eax
je 0x6ca0ad03
mov eax, dword [reloc.KERNEL32.dll_CreateEventW]
mov dword [esp + 4], str.HidD_FreePreparsedData
mov dword [esp], eax
call ebx
sub esp, 8
mov dword [reloc.KERNEL32.dll_CreateThread], eax
test eax, eax
je 0x6ca0ad03
mov eax, dword [reloc.KERNEL32.dll_CreateEventW]
mov dword [esp + 4], str.HidP_GetCaps
mov dword [esp], eax
call ebx
sub esp, 8
mov dword [reloc.KERNEL32.dll_CreateSemaphoreW], eax
test eax, eax
je 0x6ca0ad03
mov eax, dword [reloc.KERNEL32.dll_CreateEventW]
mov dword [esp + 4], str.HidD_SetNumInputBuffers
mov dword [esp], eax
call ebx
sub esp, 8
mov dword [reloc.KERNEL32.dll_CreateFileW], eax
test eax, eax
je 0x6ca0ad03
mov eax, dword [reloc.KERNEL32.dll_CreateEventW]
mov dword [esp + 4], str.HidD_SetOutputReport
mov dword [esp], eax
call ebx
sub esp, 8
mov dword [reloc.KERNEL32.dll_CreateFileA], eax
test eax, eax
je 0x6ca0ad03
mov byte [0x6ca3f660], 1
xor eax, eax
add esp, 8
pop ebx
ret
mov eax, dword [reloc.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x6ca0ad18
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
sub esp, 4
mov dword [reloc.KERNEL32.dll_CreateEventW], 0
mov eax, 0xffffffff
mov byte [0x6ca3f660], 0
jmp 0x6ca0acfe
Function at 0x6ca0b870
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x38
lea ebp, [esp + 0x24]
mov dword [esp + 8], 0x14
mov esi, dword [esp + 0x4c]
mov dword [esp + 4], 0
mov ebx, dword [esp + 0x54]
mov dword [esp], ebp
call fcn.6c9a2160
movzx edx, word [esi + 8]
mov edi, dword [esp + 0x50]
mov eax, ebx
cmp edx, ebx
ja 0x6ca0b960
mov edx, dword [esi]
cmp eax, 0x200
jbe 0x6ca0b8e0
mov eax, dword [esp + 0x50]
mov dword [esp + 8], ebx
mov dword [esp], edx
mov dword [esp + 4], eax
call dword [0x6ca3f668]
sub esp, 0xc
test al, al
mov eax, 0xffffffff
cmovne eax, ebx
add esp, 0x38
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
jne 0x6ca0b917
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x3e5
jne 0x6ca0b9a4
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
sub esp, 0x10
test eax, eax
je 0x6ca0ba30
cmp edi, dword [esp + 0x50]
je 0x6ca0b94f
mov dword [esp], edi
call fcn.6c99edc0
mov eax, dword [esp + 0x1c]
add esp, 0x38
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edx
call fcn.6c99ecd0
mov dword [esp + 8], ebx
mov edi, eax
mov eax, dword [esp + 0x50]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.6c9a2290
movzx eax, word [esi + 8]
mov dword [esp + 4], 0
sub eax, ebx
mov dword [esp + 8], eax
lea eax, [edi + ebx]
mov dword [esp], eax
call fcn.6c9a2160
movzx eax, word [esi + 8]
jmp 0x6ca0b8ad
call ebx
lea edx, [esp + 0x20]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
sub esp, 0x1c
test eax, eax
je 0x6ca0ba20
mov eax, dword [esp + 0x20]
movzx edx, word [eax]
test dx, dx
jne 0x6ca0b9ff
jmp 0x6ca0ba0a
add eax, 2
movzx edx, word [eax]
test dx, dx
je 0x6ca0ba0a
cmp dx, 0xd
jne 0x6ca0b9f4
xor edx, edx
mov word [eax], dx
mov eax, dword [esi + 0x10]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esp, 4
mov eax, dword [esp + 0x20]
mov dword [esi + 0x10], eax
mov dword [esp + 0x1c], 0xffffffff
jmp 0x6ca0b941
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x20]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
sub esp, 0x1c
test eax, eax
je 0x6ca0ba20
mov eax, dword [esp + 0x20]
movzx edx, word [eax]
test dx, dx
jne 0x6ca0ba93
jmp 0x6ca0ba0a
add eax, 2
movzx edx, word [eax]
test dx, dx
je 0x6ca0ba0a
cmp dx, 0xd
jne 0x6ca0ba84
jmp 0x6ca0ba05
Function at 0x6ca0fc10
Capabilities:
Create thread

Disassembly:
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
mov dword [esp], 8
call fcn.6c99ecd0
mov ecx, dword [ebx + 0x31c]
xor edx, edx
test ecx, ecx
setne dl
shl edx, 0x10
test eax, eax
je 0x6ca0fcc5
mov edi, dword [esp + 0x38]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x30]
mov dword [eax], edi
mov dword [esp + 0x18], 0
test esi, esi
je 0x6ca0fc92
lea edi, [esp + 0x18]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x6ca0fbd0
mov dword [esp + 4], ecx
mov dword [esp], 0
call esi
mov dword [ebx + 4], eax
mov edx, eax
xor eax, eax
test edx, edx
je 0x6ca0fcd3
add esp, 0x1c
pop ebx
pop esi
pop edi
ret
lea esi, [esp + 0x18]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x6ca0fb90
mov dword [esp + 4], ecx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
sub esp, 0x18
mov edx, eax
mov dword [ebx + 4], eax
jmp 0x6ca0fc85
mov dword [esp], 0
call fcn.6c942990
jmp 0x6ca0fc8b
mov dword [esp], str.Not_enough_resources_to_create_thread
call fcn.6c9427b0
jmp 0x6ca0fc8b

Function at 0x6ca0ff10
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push ebx
sub esp, 4
call sub.KERNEL32.dll_GetCurrentThreadId
mov edx, dword [0x6ca3ec00]
mov ebx, eax
test edx, edx
je 0x6c9a53b0
mov eax, dword [0x6ca3ec00]
mov dword [esp], eax
call fcn.6ca0f810
mov eax, dword [0x6ca3ebfc]
test eax, eax
je 0x6c9a538c
cmp ebx, dword [eax]
jne 0x6c9a5385
jmp 0x6c9a53a2
cmp dword [eax], ebx
je 0x6c9a53a2
mov eax, dword [eax + 8]
test eax, eax
jne 0x6c9a5381
xor ebx, ebx
mov eax, dword [0x6ca3ec00]
mov dword [esp], eax
call fcn.6ca0f880
add esp, 4
mov eax, ebx
pop ebx
ret
mov ebx, dword [eax + 4]
jmp 0x6c9a538e
mov dword [esp], 0x6ca3ebf4
call fcn.6c943fc0
mov eax, dword [0x6ca3ec00]
test eax, eax
je 0x6c9a53d3
mov dword [esp], 0x6ca3ebf4
call fcn.6c944020
jmp 0x6c9a5365
call fcn.6ca0f790
mov dword [0x6ca3ec00], eax
test eax, eax
jne 0x6c9a53c5
mov dword [esp], 0x6ca3ebf4
xor ebx, ebx
call fcn.6c944020
jmp 0x6c9a539b
sub esp, 4
cmp dword [0x6ca15000], 0xffffffff
mov eax, dword [reloc.KERNEL32.dll_GetOverlappedResult]
je 0x6ca0ff40
test eax, eax
jne 0x6ca0ff44
mov eax, dword [0x6ca15000]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
add esp, 4
ret
test eax, eax
je 0x6ca0ff50
add esp, 4
jmp 0x6c9a5350
mov dword [esp], reloc.KERNEL32.dll_GetModuleHandleW
call fcn.6c943fc0
cmp dword [0x6ca15000], 0xffffffff
je 0x6ca0ff80
mov dword [esp], reloc.KERNEL32.dll_GetModuleHandleW
call fcn.6c944020
mov eax, dword [reloc.KERNEL32.dll_GetOverlappedResult]
jmp 0x6ca0ff21
mov eax, dword [reloc.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x6ca0ff65
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x6ca0ff9b
mov dword [0x6ca15000], eax
jmp 0x6ca0ff65
mov dword [reloc.KERNEL32.dll_GetOverlappedResult], 1
jmp 0x6ca0ff65
Function at 0x6ca0ffb0
Capabilities:
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 4
mov esi, dword [esp + 0x10]
call sub.KERNEL32.dll_GetCurrentThreadId
mov ebx, eax
mov eax, dword [0x6ca3ec00]
mov dword [esp], eax
call fcn.6ca0f810
mov edx, dword [0x6ca3ebfc]
test edx, edx
je 0x6c9a543d
cmp ebx, dword [edx]
jne 0x6c9a5436
jmp 0x6c9a54af
cmp dword [eax], ebx
je 0x6c9a5462
mov edx, eax
mov eax, dword [edx + 8]
test eax, eax
jne 0x6c9a5430
mov dword [esp], 0xc
call fcn.6c99ecd0
test eax, eax
je 0x6c9a5490
mov edx, dword [0x6ca3ebfc]
mov dword [eax], ebx
mov dword [eax + 4], esi
mov dword [eax + 8], edx
mov dword [0x6ca3ebfc], eax
jmp 0x6c9a5469
test esi, esi
je 0x6c9a5480
mov dword [eax + 4], esi
mov eax, dword [0x6ca3ec00]
mov dword [esp], eax
call fcn.6ca0f880
add esp, 4
xor eax, eax
pop ebx
pop esi
ret
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov dword [esp], eax
call fcn.6c99edc0
jmp 0x6c9a5469
mov eax, dword [0x6ca3ec00]
mov dword [esp], eax
call fcn.6ca0f880
mov dword [esp + 0x10], 0
add esp, 4
pop ebx
pop esi
jmp fcn.6c942990
mov eax, edx
test esi, esi
jne 0x6c9a5466
mov edx, dword [edx + 8]
mov dword [0x6ca3ebfc], edx
jmp 0x6c9a5486
sub esp, 8
mov edx, dword [reloc.KERNEL32.dll_GetOverlappedResult]
mov eax, dword [esp + 0xc]
test edx, edx
jne 0x6ca0ffe0
mov dword [esp + 4], eax
mov eax, dword [0x6ca15000]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x6ca0fff0
xor eax, eax
add esp, 8
ret
add esp, 8
jmp 0x6c9a5400
mov dword [esp + 0xc], str.TlsSetValue___failed
add esp, 8
jmp fcn.6c9427b0