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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x47ab58]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41eb0e
cmp byte [ebx], 0xa
jne 0x41eb0e
or byte [eax + edi + 0x28], 4
jmp 0x41eb13
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41ec11
mov al, byte [edx]
cmp al, 0x1a
je 0x41ebf3
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41eb42
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41eb67
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41eb71
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41eb24
jmp 0x41ec11
push 0
lea eax, [ebp - 0xc]
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 0x41ebee
cmp dword [ebp - 0xc], 0
je 0x41ebee
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47ab58]
test byte [eax + edi + 0x28], 0x48
je 0x41ebc8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ebb3
mov byte [esi], dl
jmp 0x41ebc4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47ab58]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ec11
cmp byte [ebp - 1], 0xa
jne 0x41ebd7
cmp esi, ebx
jne 0x41ebd7
mov byte [esi], 0xa
jmp 0x41ec10
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041877e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ec11
mov byte [esi], 0xd
jmp 0x41ec10
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47ab58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ec0d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ec11
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ec1a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47ab58]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ec5d
cmp word [esi], dx
jne 0x41ec5d
or byte [edi + eax + 0x28], 4
jmp 0x41ec62
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41edb5
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41ed95
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41eca4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ecda
cmp eax, edx
jae 0x41ece6
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41ec7c
jmp 0x41edb5
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ed91
cmp dword [ebp - 0x14], 0
je 0x41ed91
mov eax, dword [ebx*4 + 0x47ab58]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41ed69
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41ed32
mov word [esi], cx
jmp 0x41ed65
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47ab58]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47ab58]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47ab58]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41edb5
pop ebx
cmp word [ebp - 4], bx
jne 0x41ed7a
cmp esi, dword [ebp + 0xc]
jne 0x41ed7a
mov word [esi], bx
jmp 0x41edb2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041877e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41edb5
push 0xd
jmp 0x41edae
mov ecx, dword [ebx*4 + 0x47ab58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41edac
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41edb5
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x404f10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c3a9b
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4eb6b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 0x68], edi
xor ecx, ecx
push edi
mov word [ebp - 0x2c], cx
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
call fcn.00416830
mov dword [ebp - 4], 1
cmp dword [ebp - 0x1c], edi
jne 0x404fb6
lea ecx, [ebp - 0x48]
call fcn.00477320
mov byte [ebp - 4], 2
mov edi, eax
lea esi, [ebp - 0x2c]
call fcn.004165a0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], 8
jb 0x404fa0
mov edx, dword [ebp - 0x48]
push edx
call fcn.0049ca60
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
xor edi, edi
push 1
mov eax, 0x4cdc90
lea ecx, [ebp - 0x2c]
call fcn.00416700
push edi
mov esi, eax
push ebx
or eax, 0xffffffff
call fcn.00416610
cmp dword [ebp - 0x1c], edi
je 0x405021
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x404fe2
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x405021
xor ecx, ecx
push edi
lea edx, [ebp - 0x2c]
mov word [ebp - 0x48], cx
push edx
or eax, 0xffffffff
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
call fcn.00416830
lea edi, [ebp - 0x48]
mov byte [ebp - 4], 3
mov ebx, 1
jmp 0x40504d
xor eax, eax
mov word [ebp - 0x64], ax
push edi
mov eax, 0x4cdc04
lea esi, [ebp - 0x64]
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], edi
call fcn.00419690
mov edi, esi
mov dword [ebp - 4], 4
mov ebx, 2
mov dword [ebp - 0x68], ebx
mov esi, dword [ebp - 0x6c]
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
call fcn.004165a0
or ebx, 4
mov dword [ebp - 0x68], ebx
mov dword [ebp - 4], 3
test bl, 2
je 0x4050aa
and ebx, 0xfffffffd
mov dword [ebp - 0x68], ebx
cmp dword [ebp - 0x50], 8
jb 0x405095
mov edx, dword [ebp - 0x64]
push edx
call fcn.0049ca60
add esp, 4
xor esi, esi
mov edi, 7
xor eax, eax
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], esi
mov word [ebp - 0x64], ax
jmp 0x4050b1
mov edi, 7
xor esi, esi
mov dword [ebp - 4], 1
test bl, 1
je 0x4050e1
and ebx, 0xfffffffe
mov dword [ebp - 0x68], ebx
cmp dword [ebp - 0x34], 8
jb 0x4050d5
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0049ca60
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], dx
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 8
jb 0x4050f7
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0049ca60
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], cx
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049ca6b
mov esp, ebp
pop ebp
ret 8
Function at 0x416bc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4beb18
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4eb6b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x416ced
cmp byte [edi + 0x49], bl
je 0x416ced
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x416c7f
mov ecx, 0xf
mov dword [ebp - 0x18], ecx
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x416c34
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x416c4c
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x416c83
dec eax
je 0x416c87
sub eax, 2
je 0x416cde
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00411a90
xor al, al
jmp 0x416cef
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x416c97
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x416cc0
cmp ebx, 0x10
jae 0x416ca6
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0049db56
add esp, 0x10
cmp esi, eax
jne 0x416c70
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x416cde
test esi, esi
jne 0x416c40
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.004160d0
jmp 0x416c3a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00411a90
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049ca6b
mov esp, ebp
pop ebp
ret
Function at 0x419490
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bdfa3
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4eb6b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0049c71d
mov dword [ebp - 4], 0
push 4
call fcn.0049d231
mov edi, eax
add esp, 4
test edi, edi
je 0x419518
call fcn.0049bce2
mov dword [edi], eax
call fcn.0049baa1
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0049b9d6
mov byte [ebp - 4], 1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x41950a
inc eax
mov dword [ebx + 4], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0049b9fe
jmp 0x41951a
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419590
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bdf73
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4eb6b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0049c71d
mov dword [ebp - 4], 0
push 4
call fcn.0049d231
mov edi, eax
add esp, 4
test edi, edi
je 0x419614
call fcn.0049bce2
mov dword [edi], eax
call fcn.0049baa1
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0049b9d6
mov byte [ebp - 4], 1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x419606
inc eax
mov dword [ebx + 4], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0049b9fe
jmp 0x419616
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41f110
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c18f2
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4eb6b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
lea eax, [edi + 0x68]
mov dword [edi], 0x4cecc8
mov dword [ebp - 0x14], eax
mov dword [eax], vtable.std::ios_base.0
mov dword [ebp - 4], ebx
mov dword [eax], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov eax, 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [edi + ecx], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov edx, dword [edi]
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov esi, dword [edx + 4]
add esi, edi
mov ecx, esi
call fcn.00402310
lea eax, [edi + 0x10]
push 0x20
mov ecx, esi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ebx
call fcn.0041b660
mov byte [esi + 0x40], al
cmp dword [esi + 0x38], ebx
jne 0x41f1b2
mov eax, dword [esi + 0xc]
or eax, 4
or eax, 4
push ebx
push eax
mov ecx, esi
call fcn.004021a0
mov dword [ebp - 4], 4
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea esi, [edi + 0x10]
mov dword [edi + ecx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.00419490
mov byte [ebp - 4], 5
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], bl
mov byte [esi + 0x49], bl
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x54], ebx
mov edx, dword [0x4eff9c]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ebx
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42e670
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
cmp dword [0x4f0394], 0
push ebx
push esi
mov ebx, 1
jne 0x42e6aa
add dword [0x4f0390], ebx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
sub dword [0x4f0390], ebx
mov dword [0x4f0030], eax
cmp eax, 0xffffffff
je 0x42e6ba
mov dword [0x4f0394], ebx
jmp 0x42e6af
mov eax, dword [0x4f0030]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x42e6bf
mov eax, 0x4d5704
cmp byte [eax + 4], 0
je 0x42e6f5
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
test esi, esi
je 0x42e6f5
nop
cmp esi, dword [ebp + 0xc]
je 0x42e6ee
test edi, edi
je 0x42e6de
cmp dword [esi + 0x14], edi
jne 0x42e6ee
cmp byte [esi + 0x41], bl
jne 0x42e6ee
mov eax, esi
call fcn.0042e5e0
test eax, eax
jne 0x42e6f7
mov esi, dword [esi + 4]
test esi, esi
jne 0x42e6d0
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42e760
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4f0394], 0
push esi
mov esi, dword [edi + 4]
jne 0x42e7a1
inc dword [0x4f0390]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4f0030], eax
cmp eax, 0xffffffff
jne 0x42e78e
dec dword [0x4f0390]
jmp 0x42e7b1
mov ecx, 1
sub dword [0x4f0390], ecx
mov dword [0x4f0394], ecx
jmp 0x42e7a6
mov eax, dword [0x4f0030]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x42e7b6
mov eax, 0x4d5704
cmp byte [eax + 4], 0
je 0x42e7d8
mov eax, dword [edi]
test eax, eax
je 0x42e7dd
test dword [eax + 8], 0x4000
je 0x42e7dd
cmp bl, 2
je 0x42e7dd
mov ecx, dword [ebp + 8]
cmp ecx, 1
je 0x42e7e0
xor eax, eax
pop esi
pop ebp
ret
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x42e7d8
cmp dword [eax], edi
je 0x42e7fa
cmp dword [eax + 4], ecx
jne 0x42e7fa
cmp byte [eax + 8], bl
jne 0x42e804
cmp bl, 1
jne 0x42e804
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x42e7e7
pop esi
pop ebp
ret
mov eax, 6
pop esi
pop ebp
ret
Function at 0x42e810
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4f0394], 0
push edi
mov edi, dword [esi + 4]
jne 0x42e851
inc dword [0x4f0390]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4f0030], eax
cmp eax, 0xffffffff
jne 0x42e83e
dec dword [0x4f0390]
jmp 0x42e861
mov ecx, 1
sub dword [0x4f0390], ecx
mov dword [0x4f0394], ecx
jmp 0x42e856
mov eax, dword [0x4f0030]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x42e866
mov eax, 0x4d5704
cmp byte [eax + 4], 0
je 0x42e906
mov eax, dword [esi]
test eax, eax
je 0x42e88a
test dword [eax + 8], 0x4000
je 0x42e88a
cmp byte [ebp + 8], 1
jne 0x42e88a
cmp ebx, 1
jne 0x42e906
mov eax, dword [edi + 0x40]
test eax, eax
je 0x42e8a1
cmp dword [eax + 4], ebx
jne 0x42e89a
cmp dword [eax], esi
je 0x42e8fb
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x42e891
xor eax, eax
cmp dword [0x4f0384], eax
je 0x42e8b3
cmp dword [0x4f0390], eax
jg 0x42e8e1
push 0x10
call fcn.0049d400
add esp, 4
test eax, eax
jne 0x42e8d4
mov ecx, 1
add dword [0x4f0390], ecx
mov dword [0x4f0384], ecx
jmp 0x42e8e1
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
test eax, eax
jne 0x42e8ed
mov eax, 7
pop edi
pop ebp
ret
mov dword [eax + 4], ebx
mov dword [eax], esi
mov ecx, dword [edi + 0x40]
mov dword [eax + 0xc], ecx
mov dword [edi + 0x40], eax
mov cl, byte [ebp + 8]
cmp cl, byte [eax + 8]
jbe 0x42e906
mov byte [eax + 8], cl
xor eax, eax
pop edi
pop ebp
ret
Function at 0x42fa50
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 4]
push edi
mov edi, dword [ebx + 4]
test edi, edi
je 0x42fa7a
mov eax, edi
mov edi, dword [edi + 4]
cmp dword [eax], esi
jne 0x42fa76
mov esi, eax
call fcn.00430d40
mov esi, dword [ebp + 8]
test edi, edi
jne 0x42fa63
push esi
call fcn.004309d0
add esp, 4
push esi
call fcn.0049cbfd
add esp, 4
dec dword [ebx + 0x30]
jne 0x42fb3a
cmp dword [0x4f0394], 0
jne 0x42fac7
mov esi, 1
add dword [0x4f0390], esi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
sub dword [0x4f0390], esi
mov dword [0x4f0030], eax
cmp eax, 0xffffffff
je 0x42fad9
mov dword [0x4f0394], esi
jmp 0x42facc
mov eax, dword [0x4f0030]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test eax, eax
jne 0x42fade
mov ecx, 0x4d5704
mov eax, dword [ecx + 8]
cmp eax, ebx
jne 0x42faed
mov eax, dword [ebx + 0x44]
mov dword [ecx + 8], eax
jmp 0x42fb06
test eax, eax
je 0x42fb06
mov ecx, dword [eax + 0x44]
cmp ecx, ebx
je 0x42fb00
mov eax, ecx
test eax, eax
jne 0x42faf1
jmp 0x42fb06
mov ecx, dword [ebx + 0x44]
mov dword [eax + 0x44], ecx
mov esi, dword [ebx]
call fcn.0044ecc0
mov ecx, dword [ebx + 0x3c]
test ecx, ecx
je 0x42fb21
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x42fb21
push eax
call ecx
add esp, 4
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x42fb31
push eax
call fcn.0049cbfd
add esp, 4
push ebx
call fcn.0049cbfd
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x435060
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4f0394], 0
push ebx
push esi
mov esi, eax
mov ebx, dword [esi + 4]
jne 0x4350a5
inc dword [0x4f0390]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4f0030], eax
cmp eax, 0xffffffff
jne 0x435092
dec dword [0x4f0390]
jmp 0x4350b5
mov ecx, 1
sub dword [0x4f0390], ecx
mov dword [0x4f0394], ecx
jmp 0x4350aa
mov eax, dword [0x4f0030]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4350ba
mov eax, 0x4d5704
cmp byte [eax + 4], 0
je 0x4350de
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x4350de
cmp dword [eax], esi
je 0x4350d7
cmp dword [eax + 4], 1
jne 0x4350d7
cmp byte [eax + 8], 1
jne 0x435137
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4350c7
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx]
push 1
call fcn.0044f090
add esp, 8
test eax, eax
jne 0x435131
mov edx, dword [ebp - 4]
movzx ecx, byte [edx + edi*4 + 0x24]
movzx eax, byte [edx + edi*4 + 0x25]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + edi*4 + 0x26]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + edi*4 + 0x27]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
call fcn.0044f550
push 1
mov ebx, 1
call fcn.0042e810
add esp, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 6
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4361f0
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
cmp dword [0x4f0394], 0
push ebx
push esi
mov esi, dword [edi + 4]
mov ebx, 1
jne 0x436227
add dword [0x4f0390], ebx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
sub dword [0x4f0390], ebx
mov dword [0x4f0030], eax
cmp eax, 0xffffffff
je 0x436237
mov dword [0x4f0394], ebx
jmp 0x43622c
mov eax, dword [0x4f0030]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x43623c
mov eax, 0x4d5704
cmp byte [eax + 4], 0
je 0x436265
mov eax, dword [esi + 0x40]
test eax, eax
je 0x436265
lea esp, [esp]
cmp dword [eax], edi
je 0x43625e
cmp dword [eax + 4], ebx
jne 0x43625e
cmp byte [eax + 8], bl
jne 0x436273
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x436250
xor eax, eax
xor ecx, ecx
test eax, eax
setne cl
pop esi
pop ebx
mov eax, ecx
ret
mov eax, 6
xor ecx, ecx
test eax, eax
setne cl
pop esi
pop ebx
mov eax, ecx
ret