joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405980
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43db82
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x45506c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x44dcdc
mov dword [edi + 0x10], 0x44dc74
mov dword [edi + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.00402b70
push ecx
lea ebx, [edi + 0x18]
mov dword [esi + 0x3c], 0
mov ecx, esi
mov dword [esi + 0x38], ebx
call fcn.004069c0
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x405a38
mov eax, dword [esi + 0xc]
mov ecx, esi
or eax, 4
push 0
push eax
call fcn.00402af0
lea edx, [edi + 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov dword [edx + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx - 4], eax
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + edi - 4], eax
mov dword [ebp - 4], 5
mov eax, dword [edi]
push 8
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ebx
lea eax, [ecx - 0x68]
mov dword [ecx + edi - 4], eax
mov dword [ebx], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040da71
mov esi, eax
xorps xmm0, xmm0
add esp, 4
movq qword [esi], xmm0
push 1
mov byte [ebp - 4], 6
call fcn.0040c06a
mov dword [esi + 4], eax
lea ecx, [ebx + 8]
lea eax, [ebx + 4]
mov dword [ebx + 0x34], esi
mov dword [ebx + 0xc], eax
add esp, 4
lea eax, [ebx + 0x14]
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x18]
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x24]
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov dword [ecx], 0
mov eax, dword [ebx + 0x20]
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0x1c]
mov dword [eax], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov eax, edi
mov dword [ebx], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40a432
Capabilities:
Receive http response

Disassembly:
push 0x44
mov eax, 0x43e04c
call fcn.0040e3b7
mov esi, ecx
mov dword [ebp - 0x4c], esi
xor ebx, ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], ebx
call fcn.0040aaa7
test al, al
je 0x40a5fd
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.0040a9c6
test al, al
jne 0x40a493
mov dword [ebp - 0x34], 4
lea eax, [ebp - 0x34]
push 0x453620
jmp 0x40a60c
mov ecx, esi
call fcn.0040aa3b
mov dword [esi + 4], eax
cmp eax, 0x194
jne 0x40a4b8
mov dword [ebp - 0x38], 5
lea eax, [ebp - 0x38]
push 0x453620
jmp 0x40a60c
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x40a4dd
mov dword [ebp - 0x3c], 4
lea eax, [ebp - 0x3c]
push 0x453620
jmp 0x40a60c
cmp dword [ebp - 0x20], 0x800000
jbe 0x40a4fa
mov dword [ebp - 0x40], 0xc
lea eax, [ebp - 0x40]
push 0x453620
jmp 0x40a60c
push dword [ebp - 0x20]
call fcn.00428669
mov dword [ebp - 0x1c], eax
mov dword [esp], 0x1000
call fcn.00428669
mov edi, eax
mov eax, dword [ebp - 0x18]
pop ecx
mov dword [ebp - 0x28], edi
cmp eax, 0x1000
jbe 0x40a539
push edi
call fcn.0042864e
push dword [ebp - 0x18]
call fcn.00428669
mov edi, eax
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
mov dword [ebp - 0x28], edi
lea ecx, [ebp - 0x24]
push ecx
push eax
push edi
push dword [esi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x40a560
mov dword [ebp - 0x44], 8
lea eax, [ebp - 0x44]
push 0x453620
jmp 0x40a60c
push dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
add eax, ebx
push edi
push eax
call fcn.00424d50
add ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x18]
add esp, 0xc
mov dword [ebp - 0x2c], ebx
push eax
push dword [esi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x40a59a
mov dword [ebp - 0x48], 8
lea eax, [ebp - 0x48]
push 0x453620
jmp 0x40a60c
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40a51a
mov byte [ebp + 0xb], 1
jmp 0x40a5c9
test edi, edi
je 0x40a5d4
push edi
call fcn.0042864e
pop ecx
cmp byte [ebp + 0xb], 0
je 0x40a5e9
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
jmp 0x40a5f2
push dword [ebp - 0x1c]
call fcn.0042864e
pop ecx
mov al, byte [ebp + 0xb]
call fcn.0040e326
ret 0xc
mov dword [ebp - 0x30], 1
lea eax, [ebp - 0x30]
push 0x453620
push eax
call fcn.00424ce3
int3
Function at 0x40a691
Capabilities:
Receive http response

Disassembly:
push 0x98
mov eax, 0x43e0f5
call fcn.0040e380
mov edi, ecx
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x94], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0xa0], ecx
xor ecx, ecx
mov ebx, ecx
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], cl
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x58]
push eax
call fcn.00405870
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0040a06f
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.00401e00
mov eax, dword [ebp - 0xa0]
test eax, eax
jne 0x40a711
xor ecx, ecx
jmp 0x40a74f
push eax
lea ecx, [ebp - 0x88]
call fcn.00405870
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
mov edx, eax
mov dword [ebp - 0x98], 1
call fcn.0040a06f
mov ecx, eax
push 3
mov dword [ebp - 4], 5
cmp dword [ecx + 0x14], 8
pop ebx
mov dword [ebp - 0x98], ebx
jb 0x40a74f
mov ecx, dword [ecx]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push ecx
push dword [ebp - 0x94]
cmovae eax, dword [ebp - 0x40]
mov ecx, edi
push dword [ebp + 0x10]
push eax
call fcn.0040aaa7
neg al
sbb al, al
inc al
mov byte [ebp - 0x89], al
test bl, 2
je 0x40a788
lea ecx, [ebp - 0x70]
and ebx, 0xfffffffd
call fcn.004056b0
mov dword [ebp - 4], 3
test bl, 1
je 0x40a79f
lea ecx, [ebp - 0x88]
call fcn.00401e00
cmp byte [ebp - 0x89], 0
je 0x40a7ca
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00401e50
lea ecx, [ebp - 0x40]
call fcn.004056b0
lea ecx, [ebp - 0x28]
call fcn.00401e00
mov eax, esi
jmp 0x40a893
mov ecx, edi
call fcn.0040aa3b
mov dword [edi + 4], eax
cmp eax, 0x194
je 0x40a89b
push 0x1000
call fcn.00428669
pop ecx
mov esi, eax
xor bl, bl
jmp 0x40a841
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x40a857
cmp eax, 0x1000
jbe 0x40a81c
push esi
call fcn.0042864e
push dword [ebp - 0x90]
call fcn.00428669
pop ecx
mov esi, eax
mov eax, dword [ebp - 0x90]
pop ecx
lea ecx, [ebp - 0x9c]
push ecx
push eax
push esi
push dword [edi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x40a859
push dword [ebp - 0x9c]
lea ecx, [ebp - 0x28]
push esi
call fcn.00406920
lea eax, [ebp - 0x90]
push eax
push dword [edi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x40a7f0
jmp 0x40a859
mov bl, 1
push esi
call fcn.0042864e
pop ecx
test bl, bl
jne 0x40a86e
push 0
lea ecx, [ebp - 0x28]
call fcn.00409d30
mov ecx, dword [ebp - 0xa4]
lea eax, [ebp - 0x28]
push eax
call fcn.00401e50
lea ecx, [ebp - 0x40]
call fcn.004056b0
lea ecx, [ebp - 0x28]
call fcn.00401e00
mov eax, dword [ebp - 0xa4]
call fcn.0040e33b
ret 0x14
push 0x453620
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 5
push eax
call fcn.00424ce3
int3
Function at 0x40aaa7
Capabilities:
Prepare http request
Receive http response

Disassembly:
push 0x44
mov eax, 0x43e15a
call fcn.0040e380
mov esi, ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
call fcn.0040a1bc
mov ecx, esi
call fcn.0040a17c
test al, al
je 0x40abf2
push 7
xor ebx, ebx
xor eax, eax
pop ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ecx
mov word [ebp - 0x44], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
lea edx, [ebp - 0x44]
call fcn.00409edc
mov eax, 0x1bb
pop ecx
pop ecx
cmp word [ebp - 0x48], ax
jne 0x40ab1d
mov byte [esi + 8], 1
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push ebx
push dword [ebp - 0x48]
cmovae eax, dword [ebp - 0x44]
push eax
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edx, eax
mov dword [esi + 0x10], edx
test edx, edx
jne 0x40ab4e
mov dword [esi + 0x84], 2
jmp 0x40abe0
xor ecx, ecx
mov eax, 0x800000
cmp byte [esi + 8], cl
cmovne ecx, eax
cmp dword [ebp - 0x18], 8
push ecx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
mov ecx, str.POST
cmovae eax, dword [ebp - 0x2c]
cmp dword [ebp + 0xc], 0
push eax
mov eax, 0x44def8
cmovne eax, ecx
push eax
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0x14], eax
test eax, eax
je 0x40abd2
cmp byte [esi + 8], 0
je 0x40aba7
push 4
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], 0x3301
push ecx
push 0x1f
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push dword [ebp - 0x4c]
mov ecx, esi
push dword [ebp - 0x50]
call fcn.0040abfa
test al, al
jne 0x40abc4
mov dword [esi + 0x84], 3
jmp 0x40abe0
push ebx
push dword [esi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x40abde
mov dword [esi + 0x84], 1
jmp 0x40abe0
mov bl, 1
lea ecx, [ebp - 0x2c]
call fcn.004056b0
lea ecx, [ebp - 0x44]
call fcn.004056b0
mov al, bl
call fcn.0040e33b
ret 0x10
Function at 0x788075f1
Capabilities:
Get thread local storage value

Disassembly:
shr eax, 3
jmp 0x78807630
mov edi, edi
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 4]
mov ebx, dword [esi]
cmp ebx, 0xffffffff
je 0x78809ea5
test bl, 4
je 0x78809ea5
test bl, 1
jne 0x78807fa5
push dword [0x78918190]
call dword [sym.imp.kernel32.dll_TlsGetValue]
push eax
push ebx
mov ecx, edi
call fcn.788d29c1
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
ret
add ebx, 8
mov dword [esi], ebx
mov eax, ebx
jmp 0x788075ec
push eax
mov ecx, edi
call fcn.788d29c1
cmp eax, 0xffffffff
jne 0x788075ec
push esi
call fcn.788d29c1
jmp 0x78809e94

Function at 0x78809964
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x7891e1e4]
jne 0x788b001d
test ecx, 0xffff0000
jne 0x788b001d
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x320
push edi
mov dword [0x7892cdd8], eax
mov dword [0x7892cdd4], ecx
mov dword [0x7892cdd0], edx
mov dword [0x7892cdcc], ebx
mov dword [0x7892cdc8], esi
mov dword [0x7892cdc4], edi
mov word [0x7892cdf0], ss
mov word [0x7892cde4], cs
mov word [0x7892cdc0], ds
mov word [0x7892cdbc], es
mov word [0x7892cdb8], fs
mov word [0x7892cdb4], gs
pushfd
pop dword [0x7892cde8]
mov eax, dword [ebp + 4]
lea ecx, [ebp + 4]
add ecx, 4
mov dword [0x7892cdec], ecx
mov dword [0x7892cde0], eax
mov dword [0x7892cd28], 0x10001
lea ecx, [ebp + 4]
mov ecx, dword [ecx - 4]
mov dword [0x7892cce4], eax
mov eax, dword [0x7891e1e4]
mov dword [ebp - 4], eax
mov eax, dword [0x789245f8]
xor edi, edi
inc edi
mov dword [ebp - 4], eax
push 0
mov dword [0x7892cddc], ecx
mov dword [0x7892ccd8], 0xc0000409
mov dword [0x7892ccdc], edi
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x788b0100
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
push 0xc0000409
mov dword [ebp - 0x320], edi
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
pop edi
leave
ret

Function at 0x7880f880
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebx
push edi
mov edi, ecx
lea ecx, [edi + 4]
mov ebx, dword [ecx]
cmp ebx, 0xffffffff
je 0x7880f988
test bl, 4
je 0x7880f988
sub ebx, 8
test ebx, 1
je 0x7888fa46
mov eax, ebx
shr eax, 3
jne 0x7880f9e2
push esi
push dword [0x78918190]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
cmp byte [esi + 0x1c], 0
je 0x78811148
cmp byte [esi + 0x1d], 0
je 0x7880f8e6
push ebx
mov ecx, edi
call fcn.788d29c1
test eax, eax
jne 0x78811148
mov eax, dword [esi + 0x48]
cmp eax, 0x200
jae 0x78811148
inc eax
mov dword [esi + 0x48], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x38]
dec dword [esi + 0x48]
mov eax, dword [edi]
mov ecx, edi
mov dword [edi + 4], 7
call dword [eax + 0x18]
xor eax, eax
pop esi
pop edi
pop ebx
ret
push ecx
call fcn.788d29c1
push eax
mov ecx, edi
call fcn.788d29c1
jmp 0x7880f913
mov dword [ecx], ebx
jmp 0x7880f913
push esi
and ebx, 2
push ebx
mov ecx, edi
call fcn.788d29c1
jmp 0x7880f910
and dword [0], 0
xor eax, eax
jmp 0x7880f913
Function at 0x7880fb38
Capabilities:
Get thread local storage value

Disassembly:
call fcn.788072a6
test eax, eax
jne fcn.788075f1
push esi
lea esi, [ecx + 4]
push esi
call fcn.788d29c1
add eax, 8
mov dword [esi], eax
shr eax, 3
pop esi
ret

Function at 0x7881069d
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push esi
lea esi, [ecx + 4]
cmp dword [esi], 8
jb 0x788a3720
mov eax, dword [esi]
test al, 4
je 0x7881072a
add eax, 0xfffffff8
mov dword [esi], eax
shr eax, 3
pop esi
ret
push 0xfffffffffffffff8
push esi
call dword [0x7891e1e0]
sub eax, 8
jmp 0x788106b7
push 0x788a3738
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
and dword [0], 0
jmp 0x788106ac

Function at 0x78810c6f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov ecx, edi
call fcn.788de13e
mov dword [edi], 0x78810dac
pop edi
mov dword [esi], 0x78810d70
mov dword [esi + 8], 0x78810d60
mov dword [esi + 0x10], 0x78810d5c
mov dword [esi + 0x1c], 0x78810d20
mov dword [esi + 0x20], 0x78810d00
mov dword [esi + 0x24], 0x78810cec
mov dword [esi + 0x28], 0x78810cd4
mov dword [esi + 0x2c], 0x78810cc8
mov dword [esi + 0x50], 1
mov eax, esi
pop esi
ret

Function at 0x78811159
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push esi
push dword [0x78918190]
mov esi, ecx
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov eax, dword [eax + 0x28]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
or eax, 8
mov dword [esi + 4], eax
mov eax, esi
pop esi
ret

Function at 0x78811dd0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
push ebx
lea ecx, [esi + 0x3c]
call fcn.788d29c1
push ebx
lea ecx, [esi + 0x40]
call fcn.788d29c1
push ebx
lea ecx, [esi + 0x44]
call fcn.788d29c1
push ebx
lea ecx, [esi + 0x4c]
call fcn.788d29c1
push ebx
lea ecx, [esi + 0x50]
call fcn.788d29c1
push ebx
lea ecx, [esi + 0x54]
call fcn.788d29c1
mov ecx, dword [esi + 0x58]
cmp ecx, ebx
jne 0x788a7350
push ebx
lea ecx, [esi + 0x5c]
mov dword [esi + 0x58], ebx
call fcn.788d29c1
push ebx
lea ecx, [esi + 0x48]
call fcn.788d29c1
push ebx
lea ecx, [esi + 0x60]
call fcn.788d29c1
push ebx
lea ecx, [esi + 0x64]
call fcn.788d29c1
push ebx
lea ecx, [esi + 0x38]
call fcn.788d29c1
push ebx
lea ecx, [esi + 0x70]
call fcn.788d29c1
push ebx
lea ecx, [esi + 0x68]
call fcn.788d29c1
lea ecx, [esi + 0xc]
call fcn.78811db7
lea ecx, [esi + 0x1c]
call fcn.78811db7
mov byte [esi + 0x2c], bl
mov byte [esi + 0x2f], bl
mov byte [esi + 0x2d], bl
mov dword [esi + 0x6c], ebx
push dword [0x78918190]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
mov ecx, dword [edi + 0x50]
cmp ecx, ebx
je 0x78811e96
cmp dword [ecx + 0x10], esi
je 0x78862aa1
pop edi
pop esi
pop ebx
ret
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x50], ebx
jmp 0x78811e96
push 1
call fcn.788d29c1
jmp 0x78811e1a
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.788d29c1
mov dword [ebp - 4], ebx
push dword [ebp - 0x28]
mov ecx, dword [0x7891e294]
call fcn.788d29c1
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.788d29c1
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.788d29c1
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.788d29c1
mov dword [ebp - 0x24], eax
push 0x18
call fcn.788d29c1
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.788d29c1
mov edi, eax
mov dword [ebp - 0x20], edi
push dword [ebp - 0x28]
mov ecx, dword [0x7891e294]
call fcn.788d29c1
mov dword [ebp - 0x1c], 2
push edi
push dword [ebp - 0x24]
mov ecx, dword [0x7891e29c]
call fcn.788d29c1
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.788d29c1
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.788d29c1
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.788d29c1
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.788d29c1
mov dword [ebp - 0x24], eax
push 0x1c
call fcn.788d29c1
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
push dword [ebp - 0x24]
push esi
push edi
mov ecx, eax
call fcn.788d29c1
mov edi, eax
mov dword [ebp - 0x28], edi
push dword [ebp - 0x20]
mov ecx, dword [0x7891e290]
call fcn.788d29c1
mov dword [ebp - 0x1c], 2
push edi
push dword [ebp - 0x24]
mov ecx, dword [0x7891e2a0]
call fcn.788d29c1
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.788d29c1
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.788d29c1
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.788d29c1
push esi
call fcn.788d29c1
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