joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp fcn.00401219

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x6b570a19
nop
nop
nop
test eax, eax
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
mov eax, section..text
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x5f0f207f
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4019f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov dword [ebp - 8], 0x215
mov dword [ebp - 0x220], 0x3000
mov dword [ebp - 4], 0x40
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [0x427998], eax
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [0x427998]
mov edx, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [0x427970], edx
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x427974], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x220]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x214]
push ecx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esp, ebp
pop ebp
ret
Function at 0x4091e0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov esi, edx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov dword [esp], ecx
push ebp
push ebx
call fcn.0040a2d0
add esp, 8
mov ecx, ebp
mov edx, edi
call fcn.00409630
test al, al
je 0x409261
mov ecx, ebp
mov edx, edi
call fcn.0040a0a0
mov ecx, ebx
mov edx, ebp
call fcn.00409630
test al, al
je 0x409261
mov ecx, ebx
mov edx, ebp
call fcn.0040a0a0
mov ecx, esi
mov edx, ebx
call fcn.00409630
test al, al
je 0x409261
mov ecx, esi
mov edx, ebx
call fcn.0040a0a0
mov ecx, dword [esp]
mov edx, esi
call fcn.00409630
test al, al
je 0x409261
mov ecx, dword [esp]
mov edx, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.0040a0a0
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x409270
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, edx
mov ebp, ecx
mov edi, dword [esp + 0x14]
call fcn.00409630
mov ebx, eax
mov ecx, esi
mov edx, edi
call fcn.00409630
test bl, bl
je 0x4092b0
mov ecx, ebp
test al, al
jne 0x4092ac
mov edx, esi
call fcn.0040a0a0
mov ecx, esi
mov edx, edi
call fcn.00409630
test al, al
je 0x4092d7
mov ecx, esi
mov edx, edi
jmp 0x4092ce
test al, al
je 0x4092d7
mov ecx, esi
mov edx, edi
call fcn.0040a0a0
mov ecx, ebp
mov edx, esi
call fcn.00409630
test al, al
je 0x4092d7
mov ecx, ebp
mov edx, esi
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.0040a0a0
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40a2d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, edx
mov edi, ecx
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
push ebx
call fcn.00409270
add esp, 4
mov ecx, ebx
mov edx, ebp
call fcn.00409630
test al, al
je 0x40a32f
mov ecx, ebx
mov edx, ebp
call fcn.0040a0a0
mov ecx, esi
mov edx, ebx
call fcn.00409630
test al, al
je 0x40a32f
mov ecx, esi
mov edx, ebx
call fcn.0040a0a0
mov ecx, edi
mov edx, esi
call fcn.00409630
test al, al
je 0x40a32f
mov ecx, edi
mov edx, esi
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.0040a0a0
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40ba00
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov esi, edx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov dword [esp], ecx
push ebp
push ebx
call fcn.0040be50
add esp, 8
mov ecx, edi
mov edx, ebp
call fcn.00409630
test al, al
je 0x40ba81
mov ecx, ebp
mov edx, edi
call fcn.0040a0a0
mov ecx, ebp
mov edx, ebx
call fcn.00409630
test al, al
je 0x40ba81
mov ecx, ebx
mov edx, ebp
call fcn.0040a0a0
mov ecx, ebx
mov edx, esi
call fcn.00409630
test al, al
je 0x40ba81
mov ecx, esi
mov edx, ebx
call fcn.0040a0a0
mov ecx, esi
mov edx, dword [esp]
call fcn.00409630
test al, al
je 0x40ba81
mov ecx, dword [esp]
mov edx, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.0040a0a0
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40ba90
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, edx
mov ebp, ecx
mov edi, dword [esp + 0x14]
mov ecx, edx
mov edx, ebp
call fcn.00409630
mov ebx, eax
mov ecx, edi
mov edx, esi
call fcn.00409630
test bl, bl
je 0x40bad4
mov ecx, ebp
test al, al
jne 0x40bad0
mov edx, esi
call fcn.0040a0a0
mov ecx, edi
mov edx, esi
call fcn.00409630
test al, al
je 0x40bafb
mov ecx, esi
mov edx, edi
jmp 0x40baf2
test al, al
je 0x40bafb
mov ecx, esi
mov edx, edi
call fcn.0040a0a0
mov ecx, esi
mov edx, ebp
call fcn.00409630
test al, al
je 0x40bafb
mov ecx, ebp
mov edx, esi
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.0040a0a0
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40be50
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, edx
mov edi, ecx
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
push ebx
call fcn.0040ba90
add esp, 4
mov ecx, ebp
mov edx, ebx
call fcn.00409630
test al, al
je 0x40beaf
mov ecx, ebx
mov edx, ebp
call fcn.0040a0a0
mov ecx, ebx
mov edx, esi
call fcn.00409630
test al, al
je 0x40beaf
mov ecx, esi
mov edx, ebx
call fcn.0040a0a0
mov ecx, esi
mov edx, edi
call fcn.00409630
test al, al
je 0x40beaf
mov ecx, edi
mov edx, esi
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.0040a0a0
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x417990
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
cmp eax, 3
ja case.default.0x4179a1
jmp dword [eax*4 + 0x42086c]
cmp dword [0x4250ac], 0
je 0x417aa3
push 0x4250b0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4250c8]
test edi, edi
je 0x417a98
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4179eb
mov edi, dword [edi + 8]
test edi, edi
je 0x417a98
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x4179e0
test esi, esi
je 0x4179e0
mov ecx, dword [edi + 4]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x4179e0
cmp dword [0x4250ac], 0
jne 0x417a20
push 0x4250b0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4250ac], 1
jmp case.default.0x4179a1
call fcn.004172a0
jmp case.default.0x4179a1
cmp dword [0x4250ac], 0
je case.default.0x4179a1
push 0x4250b0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4250c8]
test edi, edi
je 0x417af3
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x417a77
mov edi, dword [edi + 8]
test edi, edi
je 0x417af3
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x417a70
test esi, esi
je 0x417a70
mov ecx, dword [edi + 4]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x417a70
push 0x4250b0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x4250ac]
cmp eax, 1
jne case.default.0x4179a1
mov eax, dword [0x4250c8]
test eax, eax
je 0x417ad2
nop word cs:[eax + eax]
mov esi, dword [eax + 8]
push eax
call sub.msvcrt.dll_free
add esp, 4
mov eax, esi
test esi, esi
jne 0x417ac0
mov dword [0x4250c8], 0
mov dword [0x4250ac], 0
push 0x4250b0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp case.default.0x4179a1
push 0x4250b0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x417c30
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push edi
push esi
mov esi, dword [0x41e004]
movzx ecx, word [esi]
xor eax, eax
cmp ecx, 0x5a4d
jne 0x417c96
mov ecx, dword [esi + 0x3c]
cmp dword [esi + ecx], 0x4550
jne 0x417c96
add esi, ecx
movzx ecx, word [esi + 0x18]
cmp ecx, 0x10b
jne 0x417c96
movzx ecx, word [esi + 6]
test ecx, ecx
je 0x417c96
mov edx, dword [esp + 0xc]
sub edx, dword [0x41e004]
movzx edi, word [esi + 0x14]
add esi, edi
add esi, 0x18
jmp 0x417c86
add esi, 0x28
dec ecx
je 0x417c96
mov edi, dword [esi + 0xc]
cmp edi, edx
ja 0x417c80
add edi, dword [esi + 8]
cmp edi, edx
jbe 0x417c80
mov eax, esi
pop esi
pop edi
ret
Function at 0x402df0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x402e22
jl 0x402e15
test ecx, ecx
jne 0x402e22
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x402ee2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00405240
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x402e8e
jg 0x402e4d
test esi, esi
je 0x402e8e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x402e65
mov eax, dword [esp + 0x10]
jl 0x402e5f
cmp eax, esi
jae 0x402e65
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.00409c40
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x402eaf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x402ecb
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x402e34
jl 0x402ecb
test ecx, ecx
jne 0x402e34
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x402f26
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x402f26
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.00409c40
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x402f97
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x402f4c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x402f82
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00410972
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x402f97
cmp edi, eax
ja 0x402f60
test edi, edi
je 0x402f97
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00410972
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405110
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425db0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x432064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
push 8
mov dword [ebp - 0x14], edi
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004087c5
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00407d84
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.00405e20
mov eax, dword [ebp - 0x10]
lea ebx, [edi + 4]
mov dword [edi + 0xc], ebx
lea esi, [edi + 8]
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
lea ecx, [eax + 0x18]
mov byte [edi + 0x48], 0
lea edx, [eax + 0x24]
mov byte [edi + 0x3d], 0
mov dword [edi + 0x10], esi
add edi, 0x14
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov dword [eax + 0x4c], 0
mov ecx, dword [0x433e74]
mov edx, dword [0x433e78]
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
mov dword [eax + 0x38], 0
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 0x409425
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x409464
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x409464
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x409464
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x409464
cmp dword [ecx + 0x74], 0xe
jbe 0x409464
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x418262
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42af48
push 0x42af40
push str.FlsAlloc
push 0x1f
call fcn.004180cd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418296
push dword [ebp + 8]
mov ecx, esi
call dword [0x427134]
call esi
jmp 0x41829c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4182e0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42af58
push 0x42af50
push str.FlsGetValue
push 0x21
call fcn.004180cd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418317
push dword [ebp + 8]
mov ecx, esi
call dword [0x427134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41831f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42af60
push 0x42af58
push str.FlsSetValue
push 0x22
call fcn.004180cd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418359
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x427134]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x418a5e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00409590
mov eax, dword [0x432064]
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.00415152
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x418aa0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x418bfc
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00425400
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 + 0x433a50]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041a390
mov ecx, dword [esi*4 + 0x433a50]
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 0x418bf5
cmp eax, dword [ecx + edi + 0x24]
jne 0x418bf5
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 0x418bf5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a390
add esp, 0x14
test edx, edx
jl 0x418bf5
jg 0x418b6b
test eax, eax
jb 0x418bf5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x418bf5
jl 0x418b85
cmp dword [ebp - 0x1008], eax
ja 0x418bf5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x418ba3
test ebx, ebx
je 0x418bdc
cmp ecx, edi
jae 0x418bdc
mov al, byte [ecx]
cmp al, 0xd
jne 0x418bbd
lea eax, [edi - 1]
cmp ecx, eax
jae 0x418bc9
cmp byte [ecx + 1], 0xa
jne 0x418bc9
inc ecx
jmp 0x418bc9
movzx eax, al
movsx eax, byte [eax + 0x4322e0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x418ba3
cmp edx, ebx
jne 0x418ba3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x418bfa
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004087b2
leave
ret
Function at 0x419828
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 + 0x433a50]
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 0x419868
cmp byte [ebx], 0xa
jne 0x419868
or byte [edi + eax + 0x28], 4
jmp 0x41986d
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 0x41996c
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41994f
inc eax
cmp dl, 0xd
je 0x419899
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4198bf
cmp eax, ecx
jae 0x4198cd
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 0x419881
jmp 0x41996c
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 0x41994a
cmp dword [ebp - 0x10], 0
je 0x41994a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x433a50]
test byte [eax + edi + 0x28], 0x48
je 0x419924
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41990f
mov byte [esi], dl
jmp 0x419920
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x433a50]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41996c
cmp byte [ebp - 1], 0xa
jne 0x419933
cmp esi, ebx
jne 0x419933
mov byte [esi], 0xa
jmp 0x41996b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041a3ae
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41996c
mov byte [esi], 0xd
jmp 0x41996b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x433a50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419969
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41996c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret