joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e9f00
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5575c0
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x607070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0045d950
test eax, eax
jne 0x4ea085
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4e9fa7
push 0xb0
push eax
lea eax, [ebp - 0xd8]
push eax
call fcn.00517950
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0xd8]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004ea0e0
lea ecx, [ebp - 0xd8]
call fcn.0045e7e0
cmp dword [esi + 4], 0
jne 0x4e9ff6
push 4
call fcn.004fef1a
sub esp, 0x14
mov dword [ebp - 0xdc], eax
mov ecx, esp
mov dword [eax], 0
mov dword [eax], 0
mov dword [esi + 4], eax
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x61a370
mov word [ecx], ax
call fcn.00433b80
mov ecx, dword [esi + 4]
call fcn.00443a70
mov eax, dword [esi + 4]
mov eax, dword [eax]
test eax, eax
je 0x4ea085
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4ea017
cmp eax, 0x80
jne 0x4ea085
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 2
je 0x4ea043
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
and eax, 0xfffffffd
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.0045eb00
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 2
jne 0x4ea07a
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
or eax, 2
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esi + 4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4ea09a
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004341f0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x18], 0
cmp eax, 0x10
jb 0x4ea0c3
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00433aa0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fef09
mov esp, ebp
pop ebp
ret 0x18
Function at 0x501ce5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x532bbe
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00532881

Function at 0x532bc9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00532a02

Function at 0x53a52c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00539e9a

Function at 0x53a537
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053a0d5
Function at 0x409280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x40928f
pop dword [ebp - 0x18]
mov eax, 0x94d5bbb6
sub eax, 0x94952927
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x5bfa4851
sub dword [ebp - 0x28], 0xda80306
mov dword [ebp - 0x24], 0x7f698606
add dword [ebp - 0x24], 0xb2c9c63f
mov dword [ebp - 0x20], 0xc0fe1063
sub dword [ebp - 0x20], 0x74b1cc35
mov dword [ebp - 0x1c], 0xa4799168
add dword [ebp - 0x1c], 0x5b866e98
lea eax, [ebp - 0x28]
push eax
mov eax, 0xb59a4193
sub eax, 0xb558f113
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xde969ed
add dword [ebp - 0x28], 0x6688ff69
mov dword [ebp - 0x24], 0x52dfde70
sub dword [ebp - 0x24], 0x11737cfb
mov dword [ebp - 0x20], 0x107a5757
add dword [ebp - 0x20], 0x52f51515
mov dword [ebp - 0x1c], 0x325c744e
sub dword [ebp - 0x1c], 0x325c744e
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0xb62ce605
sub eax, 0xb5eb95b9
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3eccd
push 0
call eax
mov ecx, 0x59de
xor ebx, ebx
add ebx, eax
mov esi, 0x41f400
add esi, dword [ebp - 0x18]
mov edi, 0x3796ae3d
add edi, 0xf9e645e8
mov dword [ebp - 4], 0xbfe5bc79
mov edx, dword [esi]
xor dword [ebp - 0xc], eax
add edx, edi
mov dword [ebp - 0x10], 0x3c469aab
mov dword [ebx], edx
sub dword [ebp - 8], 0xe14175d8
add ebx, 0xd49e8a44
add ebx, 0x2b6175c0
add esi, 0x8516055d
sub esi, 0x85160559
loop 0x4093a7
add eax, 0x84865e65
add eax, 0x7b7afbe6
xor ebx, ebx
add ebx, eax
add eax, 0x5801a4fa
sub eax, 0x5801a4f5
mov ecx, 0xfa140d29
add ecx, 0x62bf2d7
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dd1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405dab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x42211b
Capabilities:
Parse pe header

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

Function at 0x4347a0
Capabilities:
Parse pe header

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

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401059
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
test edi, edi
je 0x4010b9
mov eax, dword [edi + 0x3c]
mov esi, dword [eax + edi + 0x78]
and dword [ebp - 4], 0
add esi, edi
mov eax, dword [esi + 0x24]
mov ebx, dword [esi + 0x20]
add eax, edi
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x1c]
add eax, edi
add ebx, edi
cmp dword [esi + 0x18], 0
mov dword [ebp - 0xc], eax
jbe 0x4010b9
mov eax, dword [ebp - 4]
mov eax, dword [ebx + eax*4]
add eax, edi
xor ecx, ecx
cmp byte [eax], cl
je 0x4010a2
inc ecx
cmp byte [ecx + eax], 0
jne 0x40109b
push ecx
push eax
call section..text
cmp eax, dword [ebp + 8]
je 0x4010bf
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x18]
jb 0x40108d
xor eax, eax
pop esi
pop ebx
leave
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
movzx eax, word [eax + ecx*2]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax*4]
add eax, edi
jmp 0x4010bb

Function at 0x403d48
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x144
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push dword [ebp + 8]
mov dword [esp + 0x2c], ebx
call dword [0x405044]
mov edi, eax
cmp edi, 0xffffffff
je 0x403de1
mov esi, dword [0x40503c]
push ebx
lea eax, [esp + 0x18]
push eax
push 0x40
lea eax, [esp + 0x24]
push eax
push edi
call esi
mov eax, 0x5a4d
cmp word [esp + 0x18], ax
jne 0x403dd1
push ebx
push ebx
push dword [esp + 0x5c]
push edi
call dword [0x4050c0]
push ebx
lea eax, [esp + 0x18]
push eax
push 0xf8
lea eax, [esp + 0x64]
push eax
push edi
call esi
cmp dword [esp + 0x58], 0x4550
jne 0x403dd1
mov dword [esp + 0x10], 1
push edi
call dword [0x405088]
cmp dword [esp + 0x10], ebx
setne al
jmp 0x403de3
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
mov edx, dword [esp + 0x24]
mov ecx, dword [edx + 0x3c]
add ecx, edx
mov ebx, dword [ecx + 0x78]
test ebx, ebx
je 0x4041fd
add ebx, edx
mov ecx, dword [ecx + 0x7c]
test ecx, ecx
je 0x4041fd
mov esi, dword [ebx + 0x20]
add esi, edx
mov edi, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x24]
add ecx, edx
lodsd eax, dword [esi]
add eax, edx
push eax
call fcn.00404207
test eax, eax
je 0x4041fd
cmp eax, dword [esp + 0x28]
je 0x4041e5
add ecx, 2
dec edi
test edi, edi
jne 0x4041c8
jmp 0x4041fd
mov ecx, dword [ecx]
shl ecx, 0x10
shr ecx, 0x10
mov eax, dword [ebx + 0x1c]
add eax, dword [esp + 0x24]
mov eax, dword [eax + ecx*4]
add eax, dword [esp + 0x24]
jmp 0x4041ff
xor eax, eax
mov dword [esp + 0x1c], eax
popal
ret 8

Function at 0x404264
Capabilities:
Access peb ldr_data

Disassembly:
xor eax, eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
ret
Function at 0x425070
Capabilities:
Parse pe header

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

Function at 0x416830
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe000]
push edi
jmp 0x41684a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x416851
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x416840
mov eax, 1
add ebx, ebx
jne 0x416863
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x416858
jne 0x416874
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x416858
xor ecx, ecx
sub eax, 3
jb 0x416888
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4168fa
mov ebp, eax
add ebx, ebx
jne 0x416893
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4168a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4168c4
inc ecx
add ebx, ebx
jne 0x4168b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4168a5
jne 0x4168c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4168a5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4168e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4168d5
jmp 0x416846
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4168e4
add edi, ecx
jmp 0x416846
pop esi
lea edi, [esi + 0x14000]
mov eax, dword [edi]
or eax, eax
je 0x41694c
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x169f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x16a74]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x416901
mov ecx, edi
jns 0x416930
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x16a7c]
or eax, eax
je 0x416946
mov dword [ebx], eax
add ebx, 4
jmp 0x41691e
call dword [esi + 0x16a78]
mov ebp, dword [esi + 0x16a80]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x416980
sub esp, 0xffffff80
jmp 0x404843
Function at 0x5174d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section._____1
lea edi, [esi - 0xa9000]
push edi
jmp 0x5174ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5174f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5174e0
mov eax, 1
add ebx, ebx
jne 0x517503
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x517514
jne 0x517533
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x517533
dec eax
add ebx, ebx
jne 0x517520
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5174f8
add ebx, ebx
jne 0x51752f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x517585
xor ecx, ecx
sub eax, 3
jb 0x51754b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5175ba
sar eax, 1
mov ebp, eax
jmp 0x517556
add ebx, ebx
jne 0x517556
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x517524
inc ecx
add ebx, ebx
jne 0x517564
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x517524
add ebx, ebx
jne 0x517571
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x517566
jne 0x517582
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x517566
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5175a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x517596
jmp 0x5174e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5175a4
add edi, ecx
jmp 0x5174e6
pop esi
mov edi, esi
mov ecx, 0x495a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5175c2
cmp byte [edi], 0x27
jne 0x5175c2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5175c7
lea edi, [esi + 0x113000]
mov eax, dword [edi]
or eax, eax
je 0x51763f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x129040]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x129180]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5175f4
mov ecx, edi
jns 0x517623
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x129184]
or eax, eax
je 0x517639
mov dword [ebx], eax
add ebx, 4
jmp 0x517611
call dword [esi + 0x129194]
mov ebp, dword [esi + 0x129188]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x517673
sub esp, 0xffffff80
jmp 0x46340e
Function at 0x100014c0
Capabilities:
Allocate thread local storage

Disassembly:
push esi
push edi
push 0x10
push 1
xor edi, edi
call fcn.1021e288
mov esi, eax
add esp, 8
test esi, esi
jne 0x100014e4
mov ecx, dword [esp + 0xc]
pop edi
mov dword [ecx], esi
mov eax, 0xc
pop esi
ret
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x1000150c
push esi
mov edi, 0xb
call fcn.102142a5
mov edx, dword [esp + 0x10]
add esp, 4
xor eax, eax
mov dword [edx], eax
mov eax, edi
pop edi
pop esi
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10001529
mov dword [esi + 4], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 8], 0xffffffff
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
ret
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
mov dword [ecx], esi
pop esi
ret

Function at 0x10001750
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x103e97a0]
test eax, eax
push ebx
push ebp
push esi
push edi
mov edi, eax
je 0x10001799
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call sub.WS2_32.dll_WSAGetLastError
mov ebx, eax
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call sub.WS2_32.dll_WSASetLastError
test edi, edi
je 0x10001799
mov esi, dword [edi + 8]
mov ebp, dword [edi + 0xc]
pop edi
mov eax, esi
pop esi
mov edx, ebp
pop ebp
pop ebx
ret
call fcn.10001540
mov esi, eax
test esi, esi
mov ebp, edx
je 0x1000181a
mov edi, dword [esi + 0x80]
mov eax, 1
or edi, eax
mov dword [esi + 0x80], edi
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
lea ebx, [esi + 4]
push ebx
mov dword [esi], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x100017fe
push ebp
push esi
call fcn.10001280
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
xor edx, edx
pop ebx
ret
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esi + 0x2c], eax
mov edx, dword [0x103e97a0]
push esi
push edx
call fcn.10001d30
add esp, 8
pop edi
mov eax, esi
pop esi
mov edx, ebp
pop ebp
pop ebx
ret
Function at 0x10001d30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x103e97a0]
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
cmp ebp, eax
push esi
push edi
je 0x10001d60
call fcn.10001750
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edx
jne 0x10001dae
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 8
ret
test eax, eax
mov esi, eax
je 0x10001d91
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call sub.WS2_32.dll_WSAGetLastError
mov ebx, eax
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call sub.WS2_32.dll_WSASetLastError
test esi, esi
jne 0x10001da4
mov esi, dword [esp + 0x20]
test esi, esi
je 0x10001d53
mov ecx, dword [esi + 4]
mov edi, dword [esi]
mov dword [esp + 0x14], ecx
jmp 0x10001db2
mov edx, dword [esi + 0xc]
mov edi, dword [esi + 8]
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x20]
xor ebx, ebx
test ebp, ebp
je 0x10001e3a
test edi, edi
je 0x10001e26
mov eax, dword [ebp + 4]
test eax, eax
je 0x10001e26
test esi, esi
je 0x10001e26
lea eax, [ebp + 8]
push eax
call fcn.10001830
add esp, 4
test eax, eax
jne 0x10001e16
lea esi, [edi + 0x28]
push esi
call fcn.10001830
mov eax, dword [edi + 0x84]
add esp, 4
test eax, eax
je 0x10001dfd
cmp dword [eax + 4], ebp
je 0x10001e09
mov eax, dword [eax + 8]
test eax, eax
jne 0x10001df1
push ebp
push edi
call fcn.10001050
add esp, 8
mov ebx, eax
push esi
call fcn.10001990
mov esi, dword [esp + 0x24]
add esp, 4
lea eax, [ebp + 8]
push eax
call fcn.10001990
add esp, 4
test ebx, ebx
jne 0x10001e3a
mov eax, dword [ebp]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x10001e3a
mov ebx, 0xb
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret