joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1050f330
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, 0x1000
push edi
push 0
mov ecx, dword [esi + 0x1018]
sub eax, ecx
push eax
lea eax, [esi + 0x18]
add eax, ecx
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jle 0x1050f370
cdq
add dword [esi + 0x1038], eax
adc dword [esi + 0x103c], edx
add dword [esi + 0x1018], edi
nop
push esi
call fcn.1050f720
add esp, 4
test eax, eax
jne 0x1050f370
test edi, edi
jg 0x1050f3a0
jns 0x1050f390
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1050f3a0
push 1
push esi
call fcn.1050eb90
add esp, 8
xor eax, eax
pop edi
pop esi
ret
pop edi
mov eax, 1
pop esi
ret

Function at 0x1050f3b0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x11c
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x128]
push esi
push edi
mov edi, dword [esp + 0x138]
mov ebx, dword [ebp + 0x1018]
lea esi, [ebp + 0x18]
cmp edi, ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], eax
cmovl ebx, edi
push ebx
push esi
push eax
mov dword [esp + 0x24], ebx
call fcn.105137c0
sub dword [ebp + 0x1018], ebx
lea eax, [ebp + 0x18]
push dword [ebp + 0x1018]
add eax, ebx
push eax
push esi
call fcn.105137c0
add esp, 0x18
cmp edi, ebx
jle 0x1050f4e8
mov ecx, dword [ebp + 8]
sub edi, ebx
xor ebp, ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], ecx
test edi, edi
jle 0x1050f4c9
mov ebx, dword [sym.imp.WS2_32.dll_select]
nop
push 0
mov eax, edi
sub eax, ebp
push eax
mov eax, dword [esp + 0x1c]
add eax, ebp
add eax, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
lea eax, [esi + ebp]
cmovle eax, ebp
mov ebp, eax
cmp esi, 0xffffffff
jne 0x1050f4b8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1050f4cb
mov edi, dword [esp + 0x10]
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], 1
call fcn.105283a5
inc edi
mov dword [eax], 0
push 0
push 0
push 0
lea eax, [esp + 0x30]
push eax
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x1050f4b4
call fcn.105283a5
cmp dword [eax], 4
je 0x1050f493
jmp 0x1050f4cb
mov edi, dword [esp + 0x1c]
test esi, esi
jle 0x1050f4cf
cmp ebp, edi
jge 0x1050f4c9
mov ecx, dword [esp + 0x10]
jmp 0x1050f440
mov esi, edi
test esi, esi
jg 0x1050f4e1
push 1
push dword [esp + 0x24]
call fcn.1050eb90
add esp, 8
mov eax, esi
jmp 0x1050f4ea
mov edi, dword [esp + 0x138]
mov eax, edi
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x11c
ret
Function at 0x105107e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x94
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x9c]
lea ecx, [esp + 0x88]
push ebx
mov ebx, dword [esp + 0xa8]
push ebp
mov ebp, dword [esp + 0xa8]
push esi
push ecx
push eax
call fcn.10510920
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0xa0]
push eax
call fcn.10510e70
add esp, 0x10
xor esi, esi
test ebx, ebx
jle 0x105108f4
push edi
nop word [eax + eax]
mov eax, ebx
mov edi, 8
sub eax, esi
cmp eax, edi
cmovl edi, eax
xor eax, eax
test edi, edi
jle 0x105108a5
test esi, esi
jne 0x10510874
push edi
push dword [esp + 0xac]
lea eax, [esp + 0x98]
push eax
call fcn.105137c0
add esp, 0xc
mov eax, edi
jmp 0x105108a0
mov ebx, dword [esp + 0xa8]
lea edx, [ebp - 8]
xor eax, eax
add edx, esi
add ebx, esi
mov cl, byte [ebx + eax]
lea edx, [edx + 1]
xor cl, byte [edx - 1]
mov byte [esp + eax + 0x90], cl
inc eax
cmp eax, edi
jl 0x10510884
mov ebx, dword [esp + 0xb4]
cmp eax, 8
jge 0x105108cd
lea ecx, [eax + ebp]
lea edx, [ecx - 8]
add edx, esi
nop dword [eax]
test esi, esi
jne 0x105108bd
cmp eax, 8
jae 0x1051090c
xor cl, cl
jmp 0x105108bf
mov cl, byte [edx]
mov byte [esp + eax + 0x90], cl
inc edx
inc eax
cmp eax, 8
jl 0x105108b0
push 1
lea eax, [esp + 0x14]
push eax
lea eax, [esi + ebp]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.10510ab0
add esi, 8
add esp, 0x10
cmp esi, ebx
jl 0x10510840
pop edi
mov ecx, dword [esp + 0x9c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x94
ret
call fcn.10512b17
int3
Function at 0x105285d0
Capabilities:
Parse pe header

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

Function at 0x10528af9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10512080
mov eax, dword [0x10a78b80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.105291d6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10528b3b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10528c97
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10511aa0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x10b47da0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10530010
mov ecx, dword [esi*4 + 0x10b47da0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x10528c90
cmp eax, dword [ecx + edi + 0x24]
jne 0x10528c90
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10528c90
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10530010
add esp, 0x14
test edx, edx
jl 0x10528c90
jg 0x10528c06
test eax, eax
jb 0x10528c90
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10528c90
jl 0x10528c20
cmp dword [ebp - 0x1008], eax
ja 0x10528c90
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10528c3e
test ebx, ebx
je 0x10528c77
cmp ecx, edi
jae 0x10528c77
mov al, byte [ecx]
cmp al, 0xd
jne 0x10528c58
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10528c64
cmp byte [ecx + 1], 0xa
jne 0x10528c64
inc ecx
jmp 0x10528c64
movzx eax, al
movsx eax, byte [eax + 0x10a78df0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10528c3e
cmp edx, ebx
jne 0x10528c3e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10528c95
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.105116c0
leave
ret
Function at 0x1052df45
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10a57af4
push 0x10a57aec
push str.FlsAlloc
push 0x1f
call fcn.1052ddc4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1052df79
push dword [ebp + 8]
mov ecx, esi
call dword [0x1057e260]
call esi
jmp 0x1052df7f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1052dfc5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10a57b04
push 0x10a57afc
push str.FlsGetValue
push 0x21
call fcn.1052ddc4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1052dffc
push dword [ebp + 8]
mov ecx, esi
call dword [0x1057e260]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1052e004
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10a57b0c
push 0x10a57b04
push str.FlsSetValue
push 0x22
call fcn.1052ddc4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1052e03e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1057e260]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x1052e046
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10a57a30
push 0x10a57a28
push str.GetTempPath2W
push 5
call fcn.1052ddc4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1052e080
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1057e260]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetTempPathW]
Function at 0x10530570
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10b47da0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x105305b0
cmp byte [ebx], 0xa
jne 0x105305b0
or byte [edi + eax + 0x28], 4
jmp 0x105305b5
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x105306b4
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10530697
inc eax
cmp dl, 0xd
je 0x105305e1
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10530607
cmp eax, ecx
jae 0x10530615
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x105305c9
jmp 0x105306b4
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10530692
cmp dword [ebp - 0x10], 0
je 0x10530692
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10b47da0]
test byte [eax + edi + 0x28], 0x48
je 0x1053066c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10530657
mov byte [esi], dl
jmp 0x10530668
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10b47da0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x105306b4
cmp byte [ebp - 1], 0xa
jne 0x1053067b
cmp esi, ebx
jne 0x1053067b
mov byte [esi], 0xa
jmp 0x105306b3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1053002e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x105306b4
mov byte [esi], 0xd
jmp 0x105306b3
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10b47da0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x105306b1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x105306b4
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x105306bd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10b47da0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10530703
cmp word [ebx], dx
jne 0x10530703
or byte [eax + edi + 0x28], 4
jmp 0x10530708
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1053086b
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1053084b
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10530749
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1053077f
cmp eax, edx
jae 0x1053078d
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10530724
jmp 0x1053086b
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10530846
cmp dword [ebp - 0x18], 0
je 0x10530846
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10b47da0]
test byte [eax + edi + 0x28], 0x48
je 0x1053081c
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x105307e0
mov word [esi], cx
jmp 0x10530817
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10b47da0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10b47da0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10b47da0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1053086b
pop eax
cmp word [ebp - 4], ax
jne 0x1053082c
cmp esi, ebx
jne 0x1053082c
mov word [esi], ax
jmp 0x10530868
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1053002e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1053086b
push 0xd
pop eax
jmp 0x10530827
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10b47da0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10530865
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1053086b
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x105333fd
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 0x1053349a
push ebx
push esi
call fcn.105333c6
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.105318ae
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10533447
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10533499
push edi
push eax
call fcn.1052c467
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10533467
call fcn.1052ba48
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10533498
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.105318ae
add esp, 0x20
test eax, eax
jne 0x10533486
push edi
call fcn.1052ba48
jmp 0x1053348e
push ebx
call fcn.1052ba48
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 0x10535d7a
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10535cf6
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10535ee9
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10535ee9
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10535e9e
jg 0x10535dd6
test eax, eax
je 0x10535e94
push 1
push 0x1000
call fcn.1052d99f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10535df9
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10535e8b
push 0x8000
push ebx
call fcn.10535c27
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10535e22
jg 0x10535e1d
cmp ecx, 0x1000
jb 0x10535e22
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1052b221
add esp, 0x10
cmp eax, 0xffffffff
je 0x10535e67
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10535e1d
jl 0x10535e4e
test ecx, ecx
jne 0x10535e0f
push dword [ebp - 0xc]
push ebx
call fcn.10535c27
push esi
call fcn.1052ba48
add esp, 0xc
xor ebx, ebx
jmp 0x10535ef7
cmp byte [edi + 0x24], 0
je 0x10535e7e
cmp dword [edi + 0x20], 5
jne 0x10535e7e
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10535e89
mov ebx, dword [edi + 0x18]
jmp 0x10535e8b
xor ebx, ebx
push esi
call fcn.1052ba48
pop ecx
jmp 0x10535ef7
test ecx, ecx
jg 0x10535e60
jl 0x10535e9e
test eax, eax
jae 0x10535e60
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1053002e
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10535ebe
cmp byte [edi + 0x1c], 0
je 0x10535e60
jmp 0x10535eef
push ebx
call fcn.1053206e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10535e60
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10535ef7
cmp byte [edi + 0x1c], 0
je 0x10535ef4
mov ebx, dword [edi + 0x18]
jmp 0x10535ef7
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1053002e
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1053ca70
Capabilities:
Allocate thread local storage
Get common file path

Disassembly:
sub esp, 0x404
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x400], eax
cmp dword [0x10b48494], 0
push esi
push edi
je 0x1053ca99
mov esi, 1
jmp 0x1053cbe0
xorps xmm0, xmm0
mov dword [0x10a7962c], 1
push 0x10
push 1
mov dword [0x10a79630], 1
mov dword [0x10b48498], 0
mov dword [0x10b4849c], 0
mov dword [0x10b484a0], 0
mov dword [0x10b484a4], 0
mov dword [0x10b484b0], 0
mov dword [0x10b484b4], 0
movlpd qword [0x10b484a8], xmm0
mov dword [0x10b48490], 0
mov dword [0x10b484b8], 0
mov dword [0x10b484bc], 0
mov dword [0x10b484c4], 0
mov dword [0x10b484c8], 0
mov dword [0x10b484cc], 0
mov dword [0x10b484c0], 0
mov dword [0x10b48494], 1
call fcn.1052130d
mov esi, eax
add esp, 8
test esi, esi
jne 0x1053cb63
mov dword [0x10b48498], esi
call fcn.1053c470
jmp 0x1053cbda
mov edi, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call edi
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x1053cb8c
push esi
call fcn.1051f7a2
add esp, 4
mov dword [0x10b48498], 0
call fcn.1053c470
jmp 0x1053cbda
push 0x10
push 1
mov dword [0x10b48498], esi
call fcn.1052130d
mov esi, eax
add esp, 8
test esi, esi
jne 0x1053cbb1
mov dword [0x10b4849c], esi
call fcn.1053c470
jmp 0x1053cbda
call edi
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x1053cbd4
push esi
call fcn.1051f7a2
add esp, 4
mov dword [0x10b4849c], 0
call fcn.1053c470
jmp 0x1053cbda
mov dword [0x10b4849c], esi
mov esi, dword [0x10b48494]
push 0x400
lea eax, [esp + 0xc]
mov dword [0x10b484b4], 1
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1053cc2d
push 0xc
push str.QUSEREX.DLL
lea eax, [esp + 0x10]
push 0x400
push eax
call fcn.1057c076
add esp, 0x10
test eax, eax
jne 0x1053cc2d
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x10b484d0], eax
jmp 0x1053cc32
mov eax, dword [0x10b484d0]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1053cc53
push str.QueueUserAPCEx
push eax
call edi
mov ecx, eax
mov eax, dword [0x10b484d0]
mov dword [0x10b48490], ecx
jmp 0x1053cc59
mov ecx, dword [0x10b48490]
test ecx, ecx
jne 0x1053cc6e
mov dword [0x10b48490], 0x1053be90
test eax, eax
je 0x1053ccbf
push eax
jmp 0x1053ccb9
push str.QueueUserAPCEx_Init
push eax
call edi
test eax, eax
je 0x1053cca9
call eax
test eax, eax
je 0x1053cca9
cmp dword [0x10b484d0], 0
mov eax, esi
je 0x1053cccb
or dword [0x10b484b4], 2
pop edi
pop esi
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.105116c0
add esp, 0x404
ret
push dword [0x10b484d0]
mov dword [0x10b48490], 0x1053be90
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
mov dword [0x10b484d0], 0
mov ecx, dword [esp + 0x408]
pop edi
pop esi
xor ecx, esp
call fcn.105116c0
add esp, 0x404
ret
Function at 0x1053ccf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0x18
cmp dword [0x10b48494], 0
je 0x1053ce13
push edi
mov edi, dword [0x10b48498]
test edi, edi
je 0x1053ce09
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [edi]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
je 0x1053cdfd
push ebp
push dword [ebx + 0x10]
lea ebp, [ebx + 0xc]
push dword [ebp]
mov dword [esp + 0x1c], ebp
call fcn.1053bef0
lea eax, [esp + 0x20]
push eax
lea eax, [ebx + 0x20]
push eax
call fcn.1053c190
lea eax, [esp + 0x28]
mov dword [ebx + 0x18], 7
push eax
call fcn.1053c220
lea eax, [ebx + 0x7c]
add esp, 0x14
mov dword [esp + 0x10], eax
mov eax, dword [eax]
test eax, eax
je 0x1053cdc6
mov edi, dword [eax]
mov ecx, dword [edi + 0x18]
mov esi, dword [edi + 0xc]
mov dword [edi + 0xc], ebx
mov ebp, dword [ecx + 0xc]
test ebp, ebp
je 0x1053cd8c
mov eax, dword [ecx + 8]
mov dword [ebp + 8], eax
mov edx, dword [ecx + 8]
test edx, edx
je 0x1053cd99
mov eax, dword [ecx + 0xc]
mov dword [edx + 0xc], eax
cmp dword [esi + 0x7c], ecx
jne 0x1053cda4
mov eax, dword [ecx + 0xc]
mov dword [esi + 0x7c], eax
mov eax, dword [edi + 0x18]
or ecx, 0xffffffff
add eax, 4
xchg dword [eax], ecx
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
test eax, eax
jne 0x1053cd74
mov ebp, dword [esp + 0x14]
cmp dword [ebx + 0x84], 1
jne 0x1053cdf0
push dword [ebp + 4]
push dword [ebp]
call fcn.1053c580
mov eax, dword [0x10b48498]
add esp, 8
test eax, eax
je 0x1053cdf0
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop ebp
pop esi
pop ebx
mov eax, 1
pop edi
add esp, 0x18
ret
pop esi
pop ebx
mov eax, 1
pop edi
add esp, 0x18
ret
mov eax, 1
pop edi
add esp, 0x18
ret
mov eax, 1
add esp, 0x18
ret