joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404e90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a4e4
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5340e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], 0
mov dword [edi], 0x52a744
mov dword [edi + 0x58], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x50], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ebp - 0x18], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.004024b0
mov eax, dword [esi + 0x30]
lea ebx, [edi + 4]
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], 0
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 2
push eax
call fcn.004073d0
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x30]
mov ecx, eax
call edx
movzx ecx, ax
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x404f81
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x404f81
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
cmp dword [esi + 0x38], 0
mov eax, dword [ebp - 0x1c]
mov word [esi + 0x40], ax
jne 0x404f9e
mov eax, dword [esi + 0xc]
mov ecx, esi
push 0
or eax, 4
push eax
call fcn.00402430
mov dword [ebp - 4], 3
mov eax, dword [edi]
push 8
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + edi - 4], eax
mov dword [ebx], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004e5493
mov esi, eax
xorps xmm0, xmm0
add esp, 4
movq qword [esi], xmm0
push 1
mov byte [ebp - 4], 4
call fcn.004e337d
mov dword [esi + 4], eax
add esp, 4
lea eax, [edi + 4]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
lea edi, [eax + 0x14]
mov dword [eax + 0x1c], edi
lea ecx, [eax + 0x18]
mov dword [eax + 0x20], ecx
lea edx, [eax + 0x24]
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx + 0x34], eax
mov ebx, dword [ebp - 0x1c]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x14]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov dword [eax + 4], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [eax + 0x3c], 0
mov dword [eax + 0x40], 4
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 0x4069b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a760
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5340e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004e5493
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004e337d
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
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 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 0x40b0c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a760
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5340e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004e5493
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004e337d
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
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 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 0x41d600
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c2b5
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5340e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
push 0x40
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x34], esi
call fcn.00403fd0
movups xmm0, xmmword [0x50e2e8]
mov edi, eax
mov dword [ebp - 0x18], 0x37
mov eax, 0x3f
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x14], eax
movups xmmword [edi], xmm0
movups xmm0, xmmword [0x50e2f8]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [0x50e308]
movups xmmword [edi + 0x20], xmm0
mov eax, dword [0x50e318]
mov dword [edi + 0x30], eax
mov ax, word [0x50e31c]
mov word [edi + 0x34], ax
mov al, byte [0x50e31e]
mov byte [edi + 0x36], al
mov byte [edi + 0x37], 0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movq qword [esi + 4], xmm0
mov dword [esi], vtable.CryptoPP::Exception.0
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], 0
push 0x40
mov byte [ebp - 4], 1
mov dword [esi + 0x10], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call fcn.00403fd0
mov dword [esi + 0x10], eax
mov ecx, 0x3f
movups xmm0, xmmword [edi]
inc ecx
push ecx
movups xmmword [eax], xmm0
push edi
movups xmm0, xmmword [edi + 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [edi + 0x20]
movups xmmword [eax + 0x20], xmm0
movq xmm0, qword [edi + 0x30]
movq qword [eax + 0x30], xmm0
mov dword [esi + 0x20], 0x37
mov dword [esi + 0x24], 0x3f
mov esi, dword [ebp - 0x2c]
mov dword [esi], vtable.CryptoPP::NotImplemented.0
call fcn.004e54c3
add esp, 8
mov dword [esi], vtable.CryptoPP::InputRejecting_class_CryptoPP::BufferedTransformation_::InputRejected.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e56df
mov esp, ebp
pop ebp
ret
Function at 0x4735e0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x44]
mov eax, dword [edi + 0x34]
mov ebx, dword [edi + 0x38]
movzx ecx, byte [edi + 9]
mov dword [esp + 0x10], ebx
mov edx, dword [eax + 0x28]
mov eax, dword [eax]
lea ebp, [edx + ebx]
mov eax, dword [eax + 0xe0]
mov dword [esp + 0x1c], eax
lea eax, [ebx + ecx]
movzx ecx, byte [eax + 5]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x30], eax
add ebp, esi
movzx eax, byte [eax + 6]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x2c], ebp
mov ebp, dword [edi + 0x40]
xor edi, edi
cmp ecx, edx
cmovbe edi, ecx
sub edx, edi
mov dword [esp + 0x3c], edi
push edx
lea eax, [edi + ebx]
push eax
mov eax, dword [esp + 0x24]
add eax, edi
push eax
call fcn.004e73f0
mov ecx, dword [esp + 0x44]
add esp, 0xc
xor eax, eax
add ecx, 0x28
nop
cmp dword [ecx], esi
jg 0x47366d
inc eax
add ecx, 4
cmp eax, 6
jl 0x473660
mov ecx, dword [esp + 0x38]
lea eax, [eax + 4]
mov ebx, dword [ecx + eax*4]
lea edi, [ecx + eax*4]
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
movzx ecx, word [ecx + esi*2]
cmp eax, dword [esp + 0x24]
jb 0x4736c4
cmp eax, edx
jae 0x4736c4
mov edx, ecx
lea ecx, [edx + eax]
cmp ecx, dword [esp + 0x14]
ja 0x47373d
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x10]
add eax, ecx
jmp 0x4736d1
mov edx, ecx
lea ecx, [edx + eax]
cmp ecx, ebx
jbe 0x4736d1
cmp eax, ebx
jb 0x473749
mov ecx, dword [esp + 0x20]
sub ecx, edx
mov ebx, ecx
mov dword [esp + 0x20], ecx
sub ebx, dword [esp + 0x10]
sar ebx, 8
mov byte [ebp], bl
mov dword [esp + 0x28], ebx
mov bl, cl
sub bl, byte [esp + 0x10]
mov byte [ebp + 1], bl
add ebp, 2
mov byte [esp + 0x3c], bl
mov ebx, dword [esp + 0x28]
cmp ecx, ebp
jb 0x473795
push edx
push eax
push ecx
call fcn.004e73f0
inc esi
add esp, 0xc
cmp esi, dword [esp + 0x2c]
jge 0x473755
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
cmp dword [edi + 0x18], esi
jg 0x473692
mov ebx, dword [edi + 4]
add edi, 4
mov dword [esp + 0x18], ebx
jmp 0x473692
push 0x51e124
push 0x12f4d
jmp 0x47379f
push 0x51e124
push 0x12f52
jmp 0x47379f
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
pop edi
pop esi
mov word [edx + 0x18], ax
mov byte [edx + 0xc], 0
mov word [ecx + 1], 0
movzx eax, byte [edx + 0x19]
mov byte [ecx + 3], al
movzx eax, byte [edx + 0x18]
mov byte [ecx + 4], al
mov al, byte [esp + 0x34]
mov byte [ecx + 5], bl
mov byte [ecx + 6], al
xor eax, eax
pop ebp
mov byte [ecx + 7], 0
pop ebx
add esp, 0x24
ret
push 0x51e124
push 0x12f58
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00444580
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x4750a0
Capabilities:
Reference sql statements

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push edi
push dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
mov byte [edi + 0x10], 1
push ebx
push ebx
push str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
push edi
call fcn.0049c010
add esp, 0x1c
cmp dword [esp + 0x14], 0
jne 0x4750e8
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push ebx
push str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
push edi
call fcn.0049c010
add esp, 0x14
pop edi
pop ebx
ret
Function at 0x490a10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
mov edx, dword [esp + 0x14]
push ebp
push esi
xor esi, esi
xor ebp, ebp
cmp dword [eax + 0x14], esi
jle 0x490ace
push ebx
push edi
nop dword [eax]
mov eax, dword [eax + 0x10]
mov ebx, esi
xor ebx, 1
cmp esi, 2
cmovge ebx, esi
mov ecx, ebx
add ecx, ecx
mov edi, dword [eax + ecx*8 + 0xc]
mov dword [esp + 0x10], edi
test edx, edx
je 0x490a95
mov eax, dword [eax + ecx*8]
mov edi, edx
sub edi, eax
movzx edx, byte [eax]
movzx ecx, byte [edi + eax]
cmp edx, ecx
jne 0x490a67
test edx, edx
je 0x490a95
inc eax
jmp 0x490a55
movzx ecx, byte [ecx + 0x512ea8]
movzx edx, byte [edx + 0x512ea8]
sub edx, ecx
jne 0x490a7c
inc eax
jmp 0x490a55
test ebx, ebx
jne 0x490ab2
push dword [esp + 0x24]
push str.main
call fcn.004abf20
add esp, 8
test eax, eax
jne 0x490ab2
mov eax, dword [esp + 0x10]
push 0
push dword [esp + 0x24]
add eax, 0x18
push eax
call fcn.00459820
add esp, 0xc
mov ebp, dword [eax + 8]
test ebp, ebp
jne 0x490ac4
mov eax, dword [esp + 0x1c]
inc esi
mov edx, dword [esp + 0x24]
cmp esi, dword [eax + 0x14]
jl 0x490a30
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
Function at 0x4cfbd0
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0
push 0x14
mov dword [edi], 0
call fcn.0049b7f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4cfbf4
pop edi
lea eax, [esi + 7]
pop esi
ret
cmp byte [0x5320f4], 0
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
je 0x4cfc42
mov eax, dword [0x5321f0]
test eax, eax
je 0x4cfc1e
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x4cfc42
lea eax, [esi + 4]
mov dword [esi + 8], ebp
push eax
push 0
push esi
push 0x4ac610
push 0
push 0
mov dword [esi + 0xc], ebx
call fcn.004f28dc
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x4cfc4f
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x4cfc67
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov dword [esi + 4], eax
call ebp
add esp, 4
mov dword [esi + 0x10], eax
pop ebp
pop ebx
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
ret
Function at 0x4d3bd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
mov eax, dword [0x5340e4]
xor eax, esp
mov dword [esp + 0x6c], eax
mov eax, dword [0x5321f0]
push ebp
mov ebp, dword [esp + 0x7c]
push esi
push edi
mov edi, dword [esp + 0x80]
test eax, eax
je 0x4d3c2e
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x4d3c2e
mov dword [esp + 0x74], eax
lea eax, [esp + 0x6c]
push eax
push 3
push 0
push 0xc0000006
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
call dword [sym.imp.KERNEL32.dll_RaiseException]
cmp byte [edi + 0x2b], 2
mov eax, dword [edi + 0x20]
mov esi, dword [eax]
movups xmm0, xmmword [esi]
movups xmmword [esp + 0xc], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [esp + 0x1c], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [esp + 0x2c], xmm0
je 0x4d3c61
mov eax, dword [edi + 4]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x3c]
call eax
add esp, 4
movups xmm0, xmmword [esi + 0x30]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x3c]
movups xmmword [esp + 0x3c], xmm0
movups xmm0, xmmword [esi + 0x40]
movups xmmword [esp + 0x4c], xmm0
movups xmm0, xmmword [esi + 0x50]
mov esi, 0x2c
movups xmmword [esp + 0x5c], xmm0
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4d3d68
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4d3c90
cmp byte [esp + 0x18], 0
je 0x4d3d68
lea eax, [esp + 0x6c]
push eax
push 0
push 0x28
lea eax, [esp + 0x18]
push eax
push 1
call fcn.004d2170
mov eax, dword [esp + 0x80]
add esp, 0x14
cmp eax, dword [esp + 0x34]
jne 0x4d3d68
mov eax, dword [esp + 0x70]
cmp eax, dword [esp + 0x38]
jne 0x4d3d68
push ebx
lea ecx, [edi + 0x34]
mov esi, 0x2c
lea edx, [esp + 0x10]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4d3d1a
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4d3cf4
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.004e56df
add esp, 0x70
ret
movups xmm0, xmmword [esp + 0x10]
mov dword [ebp], 1
pop ebx
movups xmmword [edi + 0x34], xmm0
movups xmm0, xmmword [esp + 0x1c]
movups xmmword [edi + 0x44], xmm0
movups xmm0, xmmword [esp + 0x2c]
movups xmmword [edi + 0x54], xmm0
movzx ecx, word [edi + 0x42]
mov eax, ecx
and ecx, 0xfe00
and eax, 1
shl eax, 0x10
add eax, ecx
mov dword [edi + 0x24], eax
xor eax, eax
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.004e56df
add esp, 0x70
ret
mov ecx, dword [esp + 0x78]
mov eax, 1
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004e56df
add esp, 0x70
ret
Function at 0x4fc884
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x526a24
push 0x526a1c
push str.FlsAlloc
push 0x1e
call fcn.004fc6b1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4fc8b8
push dword [ebp + 8]
mov ecx, esi
call dword [0x50d254]
call esi
jmp 0x4fc8be
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4fc902
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x526a34
push 0x526a2c
push str.FlsGetValue
push 0x20
call fcn.004fc6b1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4fc939
push dword [ebp + 8]
mov ecx, esi
call dword [0x50d254]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4fe215
Capabilities:
Read file on windows

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

Function at 0x4fe220
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004fe046
Function at 0x4ff88b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004e6770
mov eax, dword [0x5340e4]
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.004fa092
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4ff8cd
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4ffa29
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004e64e0
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 + 0x537c58]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004ffcb1
mov ecx, dword [esi*4 + 0x537c58]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4ffa22
cmp eax, dword [edi + ecx + 0x24]
jne 0x4ffa22
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ffa22
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004ffcb1
add esp, 0x14
test edx, edx
jl 0x4ffa22
jg 0x4ff998
test eax, eax
jb 0x4ffa22
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4ffa22
jl 0x4ff9b2
cmp dword [ebp - 0x1008], eax
ja 0x4ffa22
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4ff9d0
test ebx, ebx
je 0x4ffa09
cmp ecx, edi
jae 0x4ffa09
mov al, byte [ecx]
cmp al, 0xd
jne 0x4ff9ea
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4ff9f6
cmp byte [ecx + 1], 0xa
jne 0x4ff9f6
inc ecx
jmp 0x4ff9f6
movzx eax, al
movsx eax, byte [eax + 0x534a50]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4ff9d0
cmp edx, ebx
jne 0x4ff9d0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4ffa27
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004e56df
leave
ret
Function at 0x50216a
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 0x502207
push ebx
push esi
call fcn.00502133
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.004fc12f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5021b4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x502206
push edi
push eax
call fcn.004f91ec
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5021d4
call fcn.004f8d34
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x502205
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004fc12f
add esp, 0x20
test eax, eax
jne 0x5021f3
push edi
call fcn.004f8d34
jmp 0x5021fb
push ebx
call fcn.004f8d34
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 0x50220a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x50221b
pop esi
ret
push ebx
push edi
push esi
call fcn.00502133
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004f91ec
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x502243
push ebx
push esi
push edi
call fcn.004e73f0
add esp, 0xc
push 0
call fcn.004f8d34
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x50298f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005024b6
Function at 0x507d11
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 + 0x537c58]
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 0x507d51
cmp byte [ebx], 0xa
jne 0x507d51
or byte [eax + edi + 0x28], 4
jmp 0x507d56
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x507e54
mov al, byte [edx]
cmp al, 0x1a
je 0x507e36
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x507d85
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x507daa
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x507db4
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 0x507d67
jmp 0x507e54
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 0x507e31
cmp dword [ebp - 0xc], 0
je 0x507e31
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x537c58]
test byte [eax + edi + 0x28], 0x48
je 0x507e0b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x507df6
mov byte [esi], dl
jmp 0x507e07
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x537c58]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x507e54
cmp byte [ebp - 1], 0xa
jne 0x507e1a
cmp esi, ebx
jne 0x507e1a
mov byte [esi], 0xa
jmp 0x507e53
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004ffccf
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x507e54
mov byte [esi], 0xd
jmp 0x507e53
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x537c58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x507e50
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x507e54
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret