joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42cd00
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push 0x1000
push 0
push dword [0x8dfe04]
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ecx, eax
mov dword [esp + 8], ecx
test ecx, ecx
je 0x42cead
mov ax, word [esp]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], 0x1000
mov dword [esp + 0x1c], 0x7ff
cmp ebp, 0xffffffff
je 0x42cd54
test ebp, ebp
je 0x42ce0d
dec ebp
cmp dword [ebx + 4], 0
je 0x42cd6d
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.0042ca50
mov dword [esp + 0x14], eax
jmp 0x42cd87
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [esp + 0x14]
cmp eax, 2
mov ax, word [esp + 0x10]
jne 0x42ce0d
test ax, ax
je 0x42cda1
mov word [edi], ax
add edi, 2
mov ax, word [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov esi, edi
mov edx, dword [esp + 0x1c]
sub esi, ecx
sar esi, 1
cmp esi, edx
jle 0x42cde8
mov eax, dword [esp + 0x20]
add edx, 0x800
add eax, 0x1000
mov dword [esp + 0x1c], edx
push eax
push ecx
push 8
push dword [0x8dfe04]
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.DLL_HeapReAlloc]
mov ecx, eax
mov ax, word [esp + 0x10]
mov dword [esp + 0x18], ecx
lea edi, [ecx + esi*2]
test ax, ax
je 0x42ce0d
cmp dword [esp + 0x30], 0
jne 0x42cd46
cmp ax, 0xd
je 0x42ce14
cmp ax, 0xa
jne 0x42cd46
sub edi, 2
jmp 0x42ce8c
cmp dword [esp + 0x30], 0
jne 0x42ce8c
cmp ax, 0xa
jne 0x42ce1f
sub edi, 2
jmp 0x42ce8c
cmp ax, 0xd
jne 0x42ce8c
sub edi, 2
cmp dword [ebx + 4], 0
je 0x42ce41
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.0042ca50
mov dword [esp + 0x14], eax
jmp 0x42ce57
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp word [esp + 0x10], 0xa
je 0x42ce8c
cmp dword [ebx + 4], 0
je 0x42ce6b
add dword [ebx + 0xc], 2
jmp 0x42ce8c
push 1
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0xfffffffe
push eax
push 0xfffffffffffffffe
push dword [ebx]
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov eax, dword [esp + 0x38]
mov ecx, edi
sub ecx, dword [esp + 0x18]
sar ecx, 1
mov dword [eax], ecx
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
xor eax, eax
add esp, 0x18
ret 0x10
Function at 0x42cec0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x8dfe04]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x42d010
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 3]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, edx
cmp edi, 0xffffffff
je 0x42cf0c
test edi, edi
je 0x42cf7d
dec edi
push esi
push ebp
call fcn.0042d130
mov dword [esp + 0x20], eax
test eax, eax
jne 0x42cf1f
xor cl, cl
jmp 0x42cf21
mov cl, byte [esi]
mov edx, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 0x14]
mov ebx, esi
sub ebx, edx
mov byte [esp + 0x13], cl
add eax, 0xfffffffb
cmp ebx, eax
jle 0x42cf64
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x8dfe04]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.DLL_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [ebx + edx]
mov eax, dword [esp + 0x2c]
test cl, cl
je 0x42cf7d
test eax, eax
jne 0x42cf02
cmp cl, 0xd
je 0x42cf81
cmp cl, 0xa
jne 0x42cf02
dec esi
jmp 0x42cff3
test eax, eax
jne 0x42cff3
cmp cl, 0xa
jne 0x42cf89
dec esi
jmp 0x42cff3
cmp cl, 0xd
jne 0x42cff3
dec esi
cmp dword [ebp + 4], 0
je 0x42cfa8
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.0042ca50
mov dword [esp + 0x20], eax
jmp 0x42cfbf
push 0
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x42cff3
cmp dword [ebp + 4], 0
je 0x42cfd1
inc dword [ebp + 0xc]
jmp 0x42cff3
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebp]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x42d020
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x42d128
cmp word [edx], 0
je 0x42d128
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x42d04e
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x42d0ad
cmp dword [esi + 4], 0
mov ecx, edx
lea edi, [ecx + 2]
je 0x42d080
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42d060
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.0042c940
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42d080
sub ecx, edi
lea eax, [esp + 8]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
cmp ecx, 2
lea ecx, [esp + 0x14]
setne al
push ecx
dec eax
and eax, 0xfde9
push edx
push eax
call fcn.0042d240
mov edi, eax
test edi, edi
je 0x42d0a3
cmp dword [esi + 4], 0
je 0x42d0fb
push dword [esp + 0x14]
push edi
push esi
call fcn.0042c940
push edi
push 0
push dword [0x8dfe04]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
push 0
push dword [0x8dfe04]
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc

Function at 0x42d130
Capabilities:
Read file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [edi + 4], 0
je 0x42d157
push 1
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0042ca50
mov dword [esp + 4], eax
jmp 0x42d171
push 0
lea eax, [esp + 8]
push eax
push 1
lea eax, [esp + 0x18]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [esp + 4]
cmp eax, 1
je 0x42d17d
xor eax, eax
pop edi
pop ecx
ret 8
mov cl, byte [esp + 0xc]
test cl, cl
js 0x42d199
mov eax, dword [esp + 0x10]
pop edi
mov byte [eax], cl
mov byte [eax + 1], 0
mov eax, 1
pop ecx
ret 8
mov al, cl
and al, 0xe0
push esi
cmp al, 0xc0
jne 0x42d1a9
mov esi, 2
jmp 0x42d1c5
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x42d1b8
mov esi, 3
jmp 0x42d1c5
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x42d222
mov esi, 4
mov edx, dword [esp + 0x14]
mov byte [edx], cl
cmp dword [edi + 4], 0
je 0x42d1f4
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push edi
call fcn.0042ca50
mov edx, eax
lea ecx, [esi - 1]
xor eax, eax
cmp edx, ecx
setne al
dec eax
and eax, esi
pop esi
pop edi
pop ecx
ret 8
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edx, dword [esp + 8]
lea ecx, [esi - 1]
xor eax, eax
cmp edx, ecx
setne al
dec eax
and eax, esi
pop esi
pop edi
pop ecx
ret 8
mov eax, dword [esp + 0x14]
pop esi
pop edi
mov word [eax], 0x3f
mov eax, 1
pop ecx
ret 8
Function at 0x42f049
Capabilities:
Set thread local storage value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push edi
mov edi, ebx
test esi, esi
je 0x42f0a6
push esi
call dword [esi + 0x58]
mov ecx, dword [esi + 0x80]
mov edi, eax
mov dword [esi + 0x94], ecx
mov ecx, dword [esi + 0x84]
mov dword [esi + 0x98], ecx
test edi, edi
jne 0x42f0a6
mov eax, dword [esi + 0x70]
test eax, eax
je 0x42f085
push ebx
push esi
call eax
push esi
push ebx
push dword [0x8dfe04]
call dword [sym.imp.KERNEL32.DLL_HeapFree]
push ebx
push dword [0x8e15c8]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov dword [0x8e15cc], ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x42f0c5
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x8e15c8]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 0x18]
cmp eax, dword [esi + 0xac]
je 0x42f0ed
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
push dword [ebp + 0x14]
mov eax, dword [esi + 0x90]
push dword [ebp + 0x10]
add eax, dword [ebp + 0xc]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [ebp + 8]
push eax
push esi
call dword [esi + 4]
pop esi
pop ebp
ret 0x14

Function at 0x42f110
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [0x8e15c8]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov ebx, eax
mov ecx, dword [ebx + 0x74]
cmp ecx, 2
je 0x42f13d
cmp ecx, 3
je 0x42f13d
cmp ecx, 8
je 0x42f13d
cmp ecx, 0xc
jne 0x42f225
fldz
fld dword [ebp + 8]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x42f14f
fstp st(0)
jmp 0x42f15e
fstp st(1)
fld1
fcom st(1)
fnstsw ax
test ah, 5
jp 0x42f166
fstp st(1)
fstp dword [ebp + 8]
fld dword [ebp + 8]
jmp 0x42f168
fstp st(0)
push esi
mov esi, dword [ebx + 0xbc]
push edi
xor edi, edi
jmp 0x42f192
fld dword [esi + 4]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x42f1e3
fld dword [esi + 4]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x42f1b9
mov edi, esi
mov esi, dword [esi]
test esi, esi
jne 0x42f174
fstp st(0)
push 0x18
push 0
push dword [0x8dfe04]
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov edx, eax
test edx, edx
je 0x42f223
and dword [edx], 0
test edi, edi
je 0x42f1ed
mov dword [edi], edx
jmp 0x42f1f3
push 0x18
push 0
push dword [0x8dfe04]
fstp st(0)
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov edx, eax
test edx, edx
je 0x42f198
mov dword [edx], esi
test edi, edi
je 0x42f1db
mov dword [edi], edx
jmp 0x42f1e7
mov dword [ebx + 0xbc], edx
jmp 0x42f1e7
fstp st(0)
mov edx, esi
test edx, edx
jne 0x42f1f3
jmp 0x42f198
mov dword [ebx + 0xbc], edx
mov ecx, dword [ebp + 0xc]
mov esi, 0xff
fld dword [ebp + 8]
movzx eax, cl
mov dword [edx + 8], eax
mov eax, ecx
sar eax, 8
and eax, esi
mov dword [edx + 0xc], eax
mov eax, ecx
sar eax, 0x10
and eax, esi
sar ecx, 0x18
and ecx, esi
mov dword [edx + 0x10], eax
fstp dword [edx + 4]
mov dword [edx + 0x14], ecx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x42f475
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x8e15c8]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, dword [esp + 0x14]
mov edi, eax
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, dword [edi + 0x8c]
add esi, edx
mov ecx, dword [edi + 0x90]
add ebx, edx
mov edx, dword [esp + 0x20]
add ebp, ecx
mov eax, dword [edi + 0x74]
add edx, ecx
mov dword [esp + 0x20], edx
cmp eax, 2
je 0x42f4ca
cmp eax, 3
je 0x42f4ca
cmp eax, 8
je 0x42f4ca
cmp eax, 0xc
jne 0x42f697
mov dword [edi + 0x124], edx
mov eax, ebx
sub edx, ebp
mov dword [edi + 0x118], esi
sub eax, esi
mov dword [edi + 0x11c], ebp
mov ecx, edx
mov dword [esp + 0x14], eax
imul ecx, edx
imul eax, eax
mov dword [edi + 0x120], ebx
mov dword [esp + 0x1c], edx
add ecx, eax
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
push ecx
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp]
call fcn.0042f69e
mov eax, dword [esp + 0x24]
fstp dword [edi + 0x128]
pop ecx
cmp ebp, eax
jne 0x42f544
cmp esi, ebx
jg 0x42f535
mov dword [edi + 0xb4], 0x42f371
jmp 0x42f697
mov dword [edi + 0xb4], 0x42f3b2
jmp 0x42f697
cmp esi, ebx
jne 0x42f56a
cmp ebp, eax
jg 0x42f55b
mov dword [edi + 0xb4], 0x42f3f3
jmp 0x42f697
mov dword [edi + 0xb4], 0x42f434
jmp 0x42f697
push dword [esp + 0x1c]
call sub.MSVCRT.dll_abs
push dword [esp + 0x18]
mov esi, eax
call sub.MSVCRT.dll_abs
xor edx, edx
pop ecx
inc edx
pop ecx
cmp eax, esi
jl 0x42f590
and dword [edi + 0x130], 0
jmp 0x42f5de
mov eax, dword [edi + 0x11c]
xor dword [edi + 0x118], eax
mov eax, dword [edi + 0x118]
xor dword [edi + 0x11c], eax
mov eax, dword [edi + 0x11c]
xor dword [edi + 0x118], eax
mov eax, dword [edi + 0x124]
xor dword [edi + 0x120], eax
mov eax, dword [edi + 0x120]
xor dword [edi + 0x124], eax
mov eax, dword [edi + 0x124]
xor dword [edi + 0x120], eax
mov dword [edi + 0x130], edx
mov ecx, dword [edi + 0x118]
mov eax, dword [edi + 0x120]
cmp ecx, eax
jge 0x42f5f7
and dword [edi + 0x12c], 0
jmp 0x42f63b
xor eax, ecx
mov dword [edi + 0x12c], edx
xor dword [edi + 0x120], eax
mov dword [edi + 0x118], eax
mov eax, dword [edi + 0x120]
xor dword [edi + 0x118], eax
mov eax, dword [edi + 0x124]
xor dword [edi + 0x11c], eax
mov eax, dword [edi + 0x11c]
xor dword [edi + 0x124], eax
mov eax, dword [edi + 0x124]
xor dword [edi + 0x11c], eax
mov eax, dword [edi + 0x124]
sub eax, dword [edi + 0x11c]
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
mov eax, dword [edi + 0x120]
sub eax, dword [edi + 0x118]
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fstp dword [esp + 0x20]
fdiv dword [esp + 0x20]
mov dword [edi + 0xb4], 0x42f25c
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fst dword [edi + 0x134]
fdivr qword [0x463ad8]
fstp dword [edi + 0x138]
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x42f6b8
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x8e15c8]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov ebp, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
add eax, dword [esi + 0x90]
add ebp, dword [esi + 0x8c]
mov dword [esp + 0x18], eax
test edi, edi
jns 0x42f6ee
add ebp, edi
neg edi
mov ebx, dword [esp + 0x20]
test ebx, ebx
jns 0x42f6fe
add eax, ebx
neg ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
add eax, eax
cmp eax, edi
jle 0x42f713
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x28]
add ecx, ecx
cmp ecx, ebx
jle 0x42f728
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0xa4]
cmp eax, dword [esi + 0xac]
je 0x42f741
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
push dword [esp + 0x28]
push dword [esp + 0x28]
push ebx
push edi
push dword [esp + 0x28]
push ebp
push esi
call dword [esi + 8]
pop edi
pop esi
pop ebp
pop ebx
ret 0x18

Function at 0x42f75b
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0x8e15c8]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
mov eax, dword [esi + 0xa4]
cmp eax, dword [esi + 0xac]
je 0x42f783
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
push dword [esp + 0x14]
mov eax, dword [esi + 0x90]
push dword [esp + 0x14]
add eax, dword [esp + 0x14]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [esp + 0x14]
push eax
push esi
call dword [esi + 4]
pop esi
ret 0x10

Function at 0x42f819
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x8e15c8]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov edx, eax
mov ecx, dword [edx + 0x74]
cmp ecx, 2
je 0x42f83e
cmp ecx, 3
je 0x42f83e
cmp ecx, 8
je 0x42f83e
cmp ecx, 0xc
jne 0x42f84c
mov eax, dword [esp + 4]
test eax, eax
je 0x42f84c
mov dword [edx + 0xb8], eax
ret 4

Function at 0x42f84f
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x8e15c8]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov ecx, dword [eax + 0x90]
add ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [eax + 0x8c]
add ecx, dword [esp + 0xc]
push ecx
push dword [esp + 0xc]
push eax
call dword [eax + 0x24]
ret 0xc
Function at 0x42f87c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x8e15c8]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov ebp, dword [esp + 0x14]
mov edi, eax
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
add eax, dword [edi + 0x90]
add ebp, dword [edi + 0x8c]
mov dword [esp + 0x18], eax
test esi, esi
jns 0x42f8b2
add ebp, esi
neg esi
mov ebx, dword [esp + 0x20]
test ebx, ebx
jns 0x42f8c2
add eax, ebx
neg ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
add eax, eax
cmp eax, esi
jle 0x42f8d7
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x28]
add ecx, ecx
cmp ecx, ebx
jle 0x42f8ec
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
cmp eax, dword [edi + 0xac]
je 0x42f903
push eax
push edi
mov dword [edi + 0xac], eax
call dword [edi + 0x40]
push dword [esp + 0x28]
push dword [esp + 0x28]
push ebx
push esi
push dword [esp + 0x28]
push ebp
push edi
call dword [edi + 8]
pop edi
pop esi
pop ebp
pop ebx
ret 0x1c

Function at 0x4309cc
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x10c
push 8
push dword [0x8dfe04]
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
push esi
push dword [0x8e15c8]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov dword [0x8e15cc], esi
mov eax, esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 1
mov dword [esi + 0x78], 7
mov dword [esi], 0x42fa78
mov dword [esi + 4], 0x42fa98
mov dword [esi + 8], 0x4307c8
mov dword [esi + 0xc], 0x42fb30
mov dword [esi + 0x10], 0x430046
mov dword [esi + 0x14], 0x42ffd8
mov dword [esi + 0x18], 0x430016
mov dword [esi + 0x1c], 0x43002e
mov dword [esi + 0x20], fcn.004300a2
mov dword [esi + 0x24], 0x42fea7
mov dword [esi + 0x28], fcn.0042fcfc
mov dword [esi + 0x2c], 0x42fc13
mov dword [esi + 0x30], 0x42ff6e
mov dword [esi + 0x34], 0x42fec3
mov dword [esi + 0x38], 0x43011f
mov dword [esi + 0x3c], 0x430230
mov dword [esi + 0x40], 0x4302d4
mov dword [esi + 0x44], 0x43036b
mov dword [esi + 0x48], 0x430469
mov dword [esi + 0x4c], 0x43064a
mov dword [esi + 0x50], 0x4304ba
mov dword [esi + 0x54], 0x43070c
mov dword [esi + 0x58], 0x430807
mov dword [esi + 0x5c], 0x4308c2
mov dword [esi + 0x60], 0x43093a
mov dword [esi + 0x64], 0x430980
pop esi
ret
Function at 0x432e97
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push 0x463af0
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov dword [0x8e0ec4], eax
test eax, eax
je 0x432ec5
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x8e0ec0], eax
lea eax, [ebp - 0x114]
mov dword [0x8e0ec8], 1
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x432f27
cmp dword [ebp - 0x104], 1
jne 0x432efc
and dword [0x8e0ec8], 0
jmp 0x432f3f
cmp dword [ebp - 0x104], 2
jne 0x432f27
cmp dword [ebp - 0x110], 5
jb 0x432ef3
jne 0x432f27
mov eax, dword [ebp - 0x10c]
neg eax
sbb eax, eax
and eax, dword [0x8e0ec8]
mov dword [0x8e0ec8], eax
jmp 0x432f2c
mov eax, dword [0x8e0ec8]
test eax, eax
je 0x432f3f
call fcn.0043269d
neg eax
sbb eax, eax
and dword [0x8e0ec8], eax
mov esp, ebp
pop ebp
ret

Function at 0x433fa0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x433fd2
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x433fcd
cmp dword [esp + 0xc], esi
je 0x433fe9
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret

Function at 0x439a76
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x8e1140]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x439ad7
push esi
push dword [0x8e113c]
push 8
push dword [0x8dfe04]
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov edi, eax
push edi
push dword [0x8e1140]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov esi, dword [0x8e1138]
jmp 0x439ac7
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x439ac5
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x439ab5
push edi
push 0x439a14
call fcn.0045689b
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4
Function at 0x439ae1
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ecx, esi
push edi
and ecx, 3
je 0x439af7
push 4
pop eax
sub eax, ecx
add esi, eax
mov eax, dword [0x8e113c]
mov ebx, dword [sym.imp.KERNEL32.DLL_TlsSetValue]
test eax, eax
jne 0x439b2e
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
push esi
push 8
push dword [0x8dfe04]
mov dword [0x8e1140], eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
push eax
push dword [0x8e1140]
call ebx
mov eax, dword [0x8e113c]
mov edi, eax
add eax, esi
push eax
push dword [0x8e1140]
mov dword [0x8e113c], eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
push eax
push 8
push dword [0x8dfe04]
call dword [sym.imp.KERNEL32.DLL_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x8e1140]
call ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test esi, esi
jne 0x439b6e
test ebx, ebx
je 0x439b8f
push 0x14
push 0x8e1138
call fcn.0043a356
pop ecx
pop ecx
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
test esi, esi
je 0x439b8f
lea ecx, [edi + ebp]
push ecx
call esi
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x43a9d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x8dd1a0]
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x19c]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 8]
mov dword [eax + edx*4 + 0xc], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x19c]
add eax, 1
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x19c], eax
mov esp, ebp
pop ebp
ret

Function at 0x43aa20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [0x8dd1a0]
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x19c]
sub edx, 1
mov eax, dword [ebp - 4]
mov dword [eax + 0x19c], edx
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x19c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + edx*4 + 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x43aa80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x8dd1a0]
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x19c]
sub edx, 1
mov eax, dword [ebp - 4]
mov dword [eax + 0x19c], edx
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x19c]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + edx*4 + 0xc]
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov esp, ebp
pop ebp
ret