joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10034390
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push edi
mov edi, edx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], edi
mov eax, dword [ebx + 0xc8]
shr eax, 3
cmp dword [ebx + 0xd0], 0
mov dword [ebp - 8], eax
je 0x100343c5
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
xor edx, edx
test ecx, ecx
je 0x100345b0
push esi
sub ecx, edx
cmp dword [ebx + 0xcc], 0
mov dword [ebp - 0x10], ecx
jne 0x10034550
cmp ecx, eax
jb 0x10034550
mov ecx, eax
shr ecx, 3
and eax, 7
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], ecx
lea edx, [ecx - 1]
lea eax, [ecx*8]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x20], eax
mov ecx, edx
mov esi, edi
mov dword [ebp - 0xc], ecx
mov eax, ebx
test ecx, ecx
js 0x1003450a
nop dword [eax]
mov ebx, dword [esi]
lea eax, [eax + 8]
mov edx, ebx
shr edx, 1
xor edx, ebx
and edx, 0x22222222
lea ecx, [edx + edx]
xor ecx, edx
xor ebx, ecx
mov edx, ebx
shr edx, 2
xor edx, ebx
and edx, 0xc0c0c0c
lea ecx, [edx*4]
xor ecx, edx
xor ebx, ecx
mov edx, ebx
shr edx, 4
xor edx, ebx
and edx, 0xf000f0
mov ecx, edx
shl ecx, 4
xor ecx, edx
xor ebx, ecx
mov edx, ebx
shr edx, 8
xor edx, ebx
and edx, 0xff00
mov ecx, edx
shl ecx, 8
xor ecx, edx
mov edx, dword [esi + 4]
xor ebx, ecx
add esi, 8
mov ecx, edx
mov dword [ebp - 0x14], esi
shr ecx, 1
xor ecx, edx
and ecx, 0x22222222
lea esi, [ecx + ecx]
xor esi, edx
xor esi, ecx
mov ecx, esi
shr ecx, 2
xor ecx, esi
and ecx, 0xc0c0c0c
lea edx, [ecx*4]
xor edx, esi
xor edx, ecx
mov ecx, edx
shr ecx, 4
xor ecx, edx
and ecx, 0xf000f0
mov esi, ecx
shl esi, 4
xor esi, edx
xor esi, ecx
mov ecx, esi
shr ecx, 8
xor ecx, esi
and ecx, 0xff00
mov edi, ecx
shl edi, 8
xor edi, esi
mov esi, dword [ebp - 0x14]
xor edi, ecx
movzx ecx, bx
mov edx, edi
shr ebx, 0x10
shl edx, 0x10
and edi, 0xffff0000
or edx, ecx
or edi, ebx
xor dword [eax - 8], edx
xor dword [eax - 4], edi
sub dword [ebp - 0xc], 1
jns 0x10034420
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 4]
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov ecx, ebx
mov edx, dword [ebp - 0x24]
add eax, edi
push 0
push eax
call fcn.10034880
add esp, 0xc
mov edx, 0x18
mov ecx, ebx
call fcn.10034dd0
mov eax, dword [ebp - 8]
add edi, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x28]
sub ecx, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], ecx
cmp ecx, eax
jae 0x10034408
mov edx, dword [ebp + 8]
sub edx, ecx
jmp 0x100345a4
mov esi, eax
mov eax, dword [ebx + 0xcc]
sub esi, eax
cmp ecx, esi
cmovbe esi, ecx
mov ecx, ebx
add edx, esi
mov dword [ebp - 0x10], edx
mov edx, edi
push esi
push eax
call fcn.100349a0
add dword [ebx + 0xcc], esi
add edi, esi
mov eax, dword [ebp - 8]
add esp, 8
mov dword [ebp - 4], edi
cmp dword [ebx + 0xcc], eax
jne 0x100345a1
mov edx, 0x18
mov ecx, ebx
call fcn.10034dd0
mov eax, dword [ebp - 8]
mov dword [ebx + 0xcc], 0
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
cmp edx, ecx
jb 0x100343d0
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100349a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, edx
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 4], ebx
push esi
push edi
test edx, edx
jne 0x10034ae5
mov eax, dword [ebp + 0xc]
mov esi, ebx
mov edx, eax
shr edx, 3
mov dword [ebp - 0x10], edx
lea edi, [edx - 1]
mov dword [ebp + 8], edi
test edi, edi
js 0x10034acc
mov ebx, ecx
nop dword [eax]
mov edi, dword [esi]
lea ebx, [ebx + 8]
mov ecx, edi
shr ecx, 1
xor ecx, edi
and ecx, 0x22222222
lea eax, [ecx + ecx]
xor eax, ecx
xor edi, eax
mov ecx, edi
shr ecx, 2
xor ecx, edi
and ecx, 0xc0c0c0c
lea eax, [ecx*4]
xor eax, ecx
xor edi, eax
mov ecx, edi
shr ecx, 4
xor ecx, edi
and ecx, 0xf000f0
mov eax, ecx
shl eax, 4
xor eax, ecx
xor edi, eax
mov ecx, edi
shr ecx, 8
xor ecx, edi
and ecx, 0xff00
mov eax, ecx
shl eax, 8
xor eax, ecx
mov ecx, dword [esi + 4]
xor edi, eax
add esi, 8
mov eax, ecx
mov dword [ebp - 0xc], esi
shr eax, 1
xor eax, ecx
and eax, 0x22222222
lea edx, [eax + eax]
xor edx, ecx
xor edx, eax
mov eax, edx
shr eax, 2
xor eax, edx
and eax, 0xc0c0c0c
lea ecx, [eax*4]
xor ecx, edx
xor ecx, eax
mov eax, ecx
shr eax, 4
xor eax, ecx
and eax, 0xf000f0
mov edx, eax
shl edx, 4
xor edx, ecx
xor edx, eax
mov eax, edx
shr eax, 8
xor eax, edx
and eax, 0xff00
mov esi, eax
shl esi, 8
xor esi, edx
xor esi, eax
movzx eax, di
mov ecx, esi
shr edi, 0x10
shl ecx, 0x10
and esi, 0xffff0000
or ecx, eax
or esi, edi
xor dword [ebx - 8], ecx
xor dword [ebx - 4], esi
sub dword [ebp + 8], 1
mov esi, dword [ebp - 0xc]
jns 0x100349e0
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
and eax, 7
push eax
lea eax, [ebx + edx*8]
push 0
push eax
call fcn.10034880
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
mov ebx, edx
shr ebx, 3
and edx, 7
test esi, esi
je 0x10034b1e
mov eax, 8
mov edi, esi
sub eax, edx
cmp eax, esi
cmovbe edi, eax
push edi
push edx
push dword [ebp - 4]
mov edx, ebx
call fcn.10034880
add dword [ebp - 4], edi
add esp, 0xc
mov ecx, dword [ebp - 8]
inc ebx
xor edx, edx
sub esi, edi
jne 0x10034af4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10034c40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, edx
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 4], ebx
push esi
push edi
test edx, edx
jne 0x10034d7d
mov eax, dword [ebp + 0xc]
mov edi, eax
shr edi, 3
mov dword [ebp - 0x14], edi
lea edx, [edi - 1]
mov dword [ebp + 8], edx
test edx, edx
js 0x10034d62
mov edi, ecx
mov ecx, dword [edi + 4]
lea edi, [edi + 8]
mov esi, dword [edi - 8]
lea ebx, [ebx + 8]
mov edx, ecx
movzx eax, si
and ecx, 0xffff0000
shl edx, 0x10
or edx, eax
shr esi, 0x10
or esi, ecx
mov ecx, edx
shr ecx, 8
xor ecx, edx
and ecx, 0xff00
mov eax, ecx
shl eax, 8
xor eax, ecx
xor edx, eax
mov ecx, edx
shr ecx, 4
xor ecx, edx
and ecx, 0xf000f0
mov eax, ecx
shl eax, 4
xor eax, ecx
xor edx, eax
mov ecx, edx
shr ecx, 2
xor ecx, edx
and ecx, 0xc0c0c0c
lea eax, [ecx*4]
xor eax, ecx
xor edx, eax
mov ecx, edx
shr ecx, 1
xor ecx, edx
and ecx, 0x22222222
lea eax, [ecx + ecx]
xor eax, ecx
mov ecx, esi
shr ecx, 8
xor edx, eax
xor ecx, esi
mov dword [ebx - 8], edx
and ecx, 0xff00
mov eax, ecx
shl eax, 8
xor eax, ecx
xor esi, eax
mov ecx, esi
shr ecx, 4
xor ecx, esi
and ecx, 0xf000f0
mov eax, ecx
shl eax, 4
xor eax, ecx
xor esi, eax
mov ecx, esi
shr ecx, 2
xor ecx, esi
and ecx, 0xc0c0c0c
lea eax, [ecx*4]
xor eax, ecx
xor esi, eax
mov ecx, esi
shr ecx, 1
xor ecx, esi
and ecx, 0x22222222
lea eax, [ecx + ecx]
xor eax, ecx
xor eax, esi
sub dword [ebp + 8], 1
mov dword [ebx - 4], eax
jns 0x10034c77
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 7
mov edx, edi
push eax
lea eax, [ebx + edi*8]
push 0
push eax
call fcn.10034b30
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
mov ebx, edx
shr ebx, 3
and edx, 7
test esi, esi
je 0x10034dba
nop dword [eax]
mov eax, 8
mov edi, esi
sub eax, edx
cmp eax, esi
cmovbe edi, eax
push edi
push edx
push dword [ebp - 4]
mov edx, ebx
call fcn.10034b30
add dword [ebp - 4], edi
add esp, 0xc
mov ecx, dword [ebp - 8]
inc ebx
xor edx, edx
sub esi, edi
jne 0x10034d90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10069780
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x103d1598], 0
mov eax, edx
push ebx
mov dword [ebp - 4], eax
mov ebx, ecx
jne 0x1006980d
cmp dword [0x103fb11c], 0
push edi
mov dword [0x103d1598], 1
jne 0x100697ad
xor edi, edi
jmp 0x100697cf
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x103fb124]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
pop esi
test eax, eax
je 0x100697f0
push edi
xor edx, edx
mov ecx, ebx
call fcn.1023e560
add esp, 4
mov dword [0x103d1598], 0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x10069802
push 1
mov edx, edi
mov ecx, ebx
call fcn.1023e3f0
add esp, 4
mov dword [0x103d1598], 0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1007f700
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], eax
xor esi, esi
mov eax, dword [ebp + 8]
push edi
mov edi, edx
cmp eax, dword [ebp - 4]
jne 0x1007f720
mov esi, ecx
mov byte [ebp + 0xf], 0
jmp 0x1007f726
mov esi, edi
mov byte [ebp + 0xf], 1
xor edx, edx
cmp dword [ebp - 4], edx
jle 0x1007f74c
nop dword [eax]
movzx eax, byte [edx + edi]
lea esi, [esi + 1]
movzx ecx, byte [esi - 1]
inc edx
xor ecx, eax
movzx eax, byte [ebp + 0xf]
or al, cl
mov byte [ebp + 0xf], al
cmp edx, dword [ebp - 4]
jl 0x1007f730
mov cl, byte [ebp + 0xf]
xor eax, eax
test cl, cl
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10082960
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x103b1004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, edx
push edi
mov dword [ebp - 0x220], ebx
push dword [ebx + 0x20]
push 0x1036c100
push str.os.chdir
call sym.python310.dll_PySys_Audit
add esp, 0xc
test eax, eax
jns 0x100829aa
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1024a596
mov esp, ebp
pop ebp
ret
mov edi, dword [0x103fb118]
xor eax, eax
mov dword [ebp - 0x21c], edi
mov ecx, 0x103fb118
xchg dword [ecx], eax
test edi, edi
je 0x10082b46
mov edx, dword [edi + 8]
mov ecx, 0x103fb0c0
add edx, 0x2c
push edi
call fcn.101c8c00
add esp, 4
mov dword [ebp - 0xc], 0x78003d
lea esi, [ebp - 0x218]
mov dword [ebp - 8], 0x3a
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x10082a04
lea ebx, [eax + 1]
jmp 0x10082adf
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x218]
push eax
push 0x104
call ebx
mov edi, eax
test edi, edi
jne 0x10082a26
lea ebx, [eax + 1]
jmp 0x10082ad9
cmp edi, 0x104
jbe 0x10082a7c
lea eax, [edi + edi]
cmp eax, 0x7fffffff
ja 0x10082a6d
push eax
push dword [0x103cc53c]
call dword [0x103cc540]
mov esi, eax
add esp, 8
test esi, esi
je 0x10082a6d
push esi
push edi
call ebx
mov edi, eax
test edi, edi
jne 0x10082a7c
push esi
push dword [0x103cc53c]
call dword [0x103cc54c]
add esp, 8
lea ebx, [edi + 1]
jmp 0x10082ad9
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, 1
jmp 0x10082ad9
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
push 2
push 0x1036fa80
push esi
call ebx
add esp, 0xc
test eax, eax
je 0x10082ab8
push 2
push 0x1036fa88
push esi
call ebx
add esp, 0xc
test eax, eax
je 0x10082ab8
mov ax, word [esi]
mov word [ebp - 0xa], ax
lea eax, [ebp - 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov edi, eax
lea eax, [ebp - 0x218]
cmp esi, eax
je 0x10082ad2
push esi
push dword [0x103cc53c]
call dword [0x103cc54c]
add esp, 8
xor ebx, ebx
test edi, edi
sete bl
mov edi, dword [ebp - 0x21c]
mov ecx, edi
call fcn.101c8d20
mov eax, dword [edi + 8]
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 0x118]
add ecx, 0x118
xchg dword [ecx], edi
test ebx, ebx
je 0x10082b2a
mov eax, dword [ebp - 0x220]
push 0
push dword [eax + 0x20]
push 0
push dword [sym.python310.dll_PyExc_OSError]
call sym.python310.dll_PyErr_SetExcFromWindowsErrWithFilenameObjects
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1024a596
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, sym.python310.dll__Py_NoneStruct
inc dword [sym.python310.dll__Py_NoneStruct]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1024a596
mov esp, ebp
pop ebp
ret
push 0x10389b20
call sym.python310.dll__Py_FatalError_TstateNULL
int3
Function at 0x10083510
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x103b1004]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
push ebx
push esi
cmp eax, 0xffffff9c
mov ebx, edx
push edi
cmove eax, ecx
mov dword [ebp - 0x284], ebx
push eax
push dword [ebx + 0x20]
push 0x103657e0
push str.os.remove
call sym.python310.dll_PySys_Audit
add esp, 0x10
test eax, eax
jns 0x10083567
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1024a596
mov esp, ebp
pop ebp
ret
mov esi, dword [0x103fb118]
xor eax, eax
mov ecx, 0x103fb118
xchg dword [ecx], eax
test esi, esi
je 0x1008368b
mov edx, dword [esi + 8]
mov ecx, 0x103fb0c0
add edx, 0x2c
push esi
call fcn.101c8c00
add esp, 4
push 0x101b5380
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__set_thread_local_invalid_parameter_handler]
mov edi, dword [ebx + 0x10]
add esp, 4
mov dword [ebp - 0x280], eax
lea eax, [ebp - 0x2c]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1008360e
mov eax, dword [ebp - 0x2c]
test al, 0x10
je 0x1008360e
test eax, 0x400
je 0x1008360e
lea eax, [ebp - 0x27c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x1008360e
mov ecx, dword [ebp - 0x258]
cmp ecx, 0xa000000c
je 0x100835f5
cmp ecx, 0xa0000003
je 0x100835f5
xor ebx, ebx
jmp 0x100835fa
mov ebx, 1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x1008360e
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x10083615
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x280]
mov edi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__set_thread_local_invalid_parameter_handler]
add esp, 4
mov ecx, esi
call fcn.101c8d20
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 0x118]
add ecx, 0x118
xchg dword [ecx], esi
test edi, edi
jne 0x1008366f
mov eax, dword [ebp - 0x284]
push edi
push dword [eax + 0x20]
push edi
push dword [sym.python310.dll_PyExc_OSError]
call sym.python310.dll_PyErr_SetExcFromWindowsErrWithFilenameObjects
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1024a596
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov eax, sym.python310.dll__Py_NoneStruct
inc dword [sym.python310.dll__Py_NoneStruct]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1024a596
mov esp, ebp
pop ebp
ret
push 0x10389b20
call sym.python310.dll__Py_FatalError_TstateNULL
int3
Function at 0x10085640
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov ecx, dword [0x103fb118]
xor eax, eax
push ebx
push esi
push edi
mov edi, edx
mov dword [esp + 0xc], ecx
xor ebx, ebx
mov edx, 0x103fb118
xchg dword [edx], eax
test ecx, ecx
je 0x1008581d
mov edx, dword [ecx + 8]
push ecx
add edx, 0x2c
mov ecx, 0x103fb0c0
call fcn.101c8c00
add esp, 4
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
call fcn.101c8d20
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 8]
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 0x118]
add ecx, 0x118
xchg dword [ecx], edx
test esi, esi
jne 0x100857ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x10b
jne 0x1008574e
mov ecx, dword [edi + 0x1c]
lea eax, [ecx + 1]
cmp eax, 0x3fffffff
ja 0x10085811
lea ecx, [ecx*2 + 2]
cmp ecx, 0x7fffffff
ja 0x10085811
push ecx
push dword [0x103cc55c]
call dword [0x103cc560]
mov esi, eax
add esp, 8
test esi, esi
je 0x10085811
push dword [edi + 0x10]
mov eax, dword [edi + 0x1c]
inc eax
push eax
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
push 0x104
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
add esp, 8
cmp eax, 0x104
jne 0x10085768
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push esi
push dword [0x103cc55c]
mov ebx, eax
call dword [0x103cc56c]
add esp, 8
push 0
push 0
push ebx
push dword [sym.python310.dll_PyExc_OSError]
call sym.python310.dll_PyErr_SetExcFromWindowsErrWithFilenameObjects
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add eax, eax
lea ecx, [eax + esi]
je 0x10085784
nop
movzx eax, word [ecx]
cmp eax, 0x5c
je 0x10085784
cmp eax, 0x2f
je 0x10085784
sub ecx, 2
cmp ecx, esi
jne 0x10085770
xor eax, eax
mov word [ecx], ax
call sym.python310.dll_PyEval_SaveThread
mov edi, eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov dword [esp + 0xc], eax
test edi, edi
je 0x10085827
mov ecx, edi
call fcn.101c8d20
mov eax, dword [edi + 8]
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 0x118]
add ecx, 0x118
xchg dword [ecx], edi
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push esi
push dword [0x103cc55c]
mov ebx, eax
call dword [0x103cc56c]
add esp, 8
cmp dword [esp + 0xc], 0
je 0x1008574e
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x24]
push dword [esp + 0x24]
push str._LL_
call sym.python310.dll__Py_BuildValue_SizeT
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call sym.python310.dll_PyErr_NoMemory
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10389b20
call sym.python310.dll__Py_FatalError_TstateNULL
push 0x10389b34
call sym.python310.dll__Py_FatalError_TstateNULL
int3
Function at 0x1009a730
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov eax, ecx
push esi
mov esi, 1
mov dword [esp + 0x10], eax
push edi
mov edx, esi
lea eax, [eax*8 + 0x103d15d8]
xchg dword [eax], edx
mov eax, esi
mov ecx, 0x103d1690
xchg dword [ecx], eax
mov ebx, dword [0x103fb020]
mov eax, esi
mov dword [esp + 0x1c], ebx
mov ecx, dword [ebx + 8]
add ecx, 0xc0
xchg dword [ecx], eax
lea eax, [ebx + 0x30]
xchg dword [eax], esi
mov eax, dword [0x103cafd4]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x1009a86f
cmp dword [0x103cafdc], 0
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x13], cl
je 0x1009a7e2
push 0
push 1
lea ecx, [esp + 0x1b]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1009a86f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x103cafd8], 0
jne 0x1009a7cc
cmp eax, 0x2733
je 0x1009a86f
push eax
push 0x1009a6c0
push ebx
call sym.python310.dll__PyEval_AddPendingCall
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x101b5380
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__set_thread_local_invalid_parameter_handler]
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
add esp, 4
mov dword [esp + 0x14], eax
nop word [eax + eax]
call esi
push 1
mov dword [eax], 0
lea eax, [esp + 0x17]
push eax
push dword [esp + 0x20]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
add esp, 0xc
mov ebx, eax
call esi
mov edi, dword [eax]
test ebx, ebx
jns 0x1009a82b
cmp edi, 4
je 0x1009a800
push dword [esp + 0x14]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__set_thread_local_invalid_parameter_handler]
add esp, 4
test ebx, ebx
jns 0x1009a86f
call esi
mov dword [eax], edi
cmp dword [0x103cafd8], 0
jne 0x1009a85a
call esi
cmp dword [eax], 0x8c
je 0x1009a86f
call esi
cmp dword [eax], 0xb
je 0x1009a86f
call esi
push dword [eax]
push 0x1009a630
push dword [esp + 0x24]
call sym.python310.dll__PyEval_AddPendingCall
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1009e7d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x103fb11c], 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x1009e8df
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x103fb124]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x1009e8df
mov edi, dword [edi + 0xc]
test edi, edi
je 0x1009e8df
inc dword [edi]
nop dword [eax + eax]
movzx eax, word [ebx + 4]
cmp eax, dword [0x103be314]
jge 0x1009e8a8
inc eax
lea esi, [ebx + eax*8]
mov eax, dword [0x103d17e0]
mov dword [esi], eax
mov eax, dword [edi + 0x38]
mov dword [ebp - 4], esi
test eax, eax
jne 0x1009e852
mov eax, dword [edi + 0x34]
add eax, eax
push eax
push dword [edi + 0x10]
call sym.python310.dll_PyCode_Addr2Line
add esp, 8
xor ecx, ecx
test eax, eax
cmovns ecx, eax
mov dword [esi + 4], ecx
mov ecx, dword [edi + 0x10]
cmp dword [ecx], 0
mov esi, dword [ecx + 0x40]
jne 0x1009e873
mov eax, dword [ecx + 4]
push ecx
mov eax, dword [eax + 0x18]
call eax
add esp, 4
test esi, esi
je 0x1009e8a4
mov eax, dword [esi + 4]
test dword [eax + 0x54], 0x10000000
je 0x1009e8a4
test byte [esi + 0x10], 0x80
je 0x1009e8a4
mov eax, dword [0x103d17b4]
push esi
push eax
mov eax, dword [eax + 0xc]
call eax
add esp, 8
test eax, eax
je 0x1009e8e6
mov esi, dword [eax + 8]
mov eax, dword [ebp - 4]
mov dword [eax], esi
inc word [ebx + 4]
movzx eax, word [ebx + 6]
mov ecx, 0xffff
cmp ax, cx
jae 0x1009e8bb
inc eax
mov word [ebx + 6], ax
mov esi, dword [edi + 0xc]
test esi, esi
je 0x1009e8c4
inc dword [esi]
add dword [edi], 0xffffffff
jne 0x1009e8d5
mov eax, dword [edi + 4]
push edi
mov eax, dword [eax + 0x18]
call eax
add esp, 4
mov edi, esi
test esi, esi
jne 0x1009e820
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc dword [esi]
push 0
push esi
push dword [0x103d17b4]
call sym.python310.dll__Py_hashtable_set
add esp, 0xc
test eax, eax
jns 0x1009e89f
add dword [esi], 0xffffffff
jne 0x1009e8a4
mov eax, dword [esi + 4]
push esi
mov eax, dword [eax + 0x18]
call eax
add esp, 4
jmp 0x1009e8a4
Function at 0x1009f140
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], ecx
push edi
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x103d17c0]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x1009f1a8
cmp dword [ebp - 4], 0
mov ecx, dword [ebx]
je 0x1009f190
push dword [ebp + 0xc]
mov eax, dword [ebx + 8]
push dword [ebp + 8]
push ecx
call eax
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
imul eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebx + 4]
push ecx
call eax
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push sym.python310.dll__Py_TrueStruct
push dword [0x103d17c0]
call ebx
call sym.python310.dll_PyGILState_Ensure
push dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov edi, eax
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.1009ec60
push edi
mov esi, eax
call sym.python310.dll_PyGILState_Release
add esp, 0xc
push 0
push dword [0x103d17c0]
call ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret