joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003d210
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x1003d21f
pop dword [ebp - 0x38]
mov eax, 0x8f394921
add eax, 0x80ca88fe
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xb4b27928
add dword [ebp - 0x48], 0x999fcc23
mov dword [ebp - 0x44], 0xaebe18a8
add dword [ebp - 0x44], 0x8375339d
mov dword [ebp - 0x40], 0x6735249f
sub dword [ebp - 0x40], 0x1ae8e071
mov dword [ebp - 0x3c], 0x8f682af7
sub dword [ebp - 0x3c], 0x8f682af7
lea eax, [ebp - 0x48]
push eax
mov eax, 0x3800666
add eax, 0xc83faae
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x90cfc845
sub dword [ebp - 0x48], 0x1c5d5eef
mov dword [ebp - 0x44], 0x72be9fe3
sub dword [ebp - 0x44], 0x31523e6e
mov dword [ebp - 0x40], 0x8f256fe1
sub dword [ebp - 0x40], 0x2bb60375
mov dword [ebp - 0x3c], 0x94ce20fd
sub dword [ebp - 0x3c], 0x94ce20fd
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x2bf69d32
sub eax, 0x1bf29bda
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x3d7c2
push 0
call eax
mov ecx, 0x5111
xor edi, edi
add edi, eax
mov edx, 0x10094a00
add edx, dword [ebp - 0x38]
mov esi, 0xfb526023
add esi, 0xba4871e1
add dword [ebp - 0x30], 0x8859ca70
mov ebx, dword [edx]
sub dword [ebp - 0x34], ebx
xor ebx, esi
sub dword [ebp - 0x14], 0x896575fa
mov dword [edi], ebx
sub dword [ebp - 0x1c], 0x48f96b18
add edi, 0xa074d2ca
add edi, 0x5f8b2d3a
add edx, 4
loop 0x1003d337
add eax, 0x3782a290
add eax, 0xc87e9487
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x7ac8559b
sub ecx, 0x6ac8559b
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x1003dfd1
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi + 0x50]
cmp eax, dword [esi + 0x54]
jae 0x1003dfe8
mov bl, byte [eax]
inc eax
mov dword [esi + 0x50], eax
jmp 0x1003e054
cmp dword [esi + 0x4c], 0
jl 0x1003e052
mov edi, dword [esi + 0x58]
push 0xfa0
push edi
push dword [esi + 0x4c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x1003e020
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 4
je 0x1003dff1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 0xb
je 0x1003dff1
cmp ebx, 1
jge 0x1003e02d
or dword [esi + 0x4c], 0xffffffff
xor bl, bl
jmp 0x1003e072
lea eax, [edi + 1]
mov dword [esi + 0x50], eax
lea eax, [ebx + edi]
mov dword [esi + 0x54], eax
mov bl, byte [edi]
test bl, bl
jne 0x1003e054
push esi
call fcn.1003f085
mov eax, dword [esi + 0x50]
or dword [esi + 0x4c], 0xffffffff
pop ecx
mov dword [esi + 0x54], eax
jmp 0x1003e054
xor bl, bl
cmp bl, 0xa
jne 0x1003e068
mov eax, dword [esp + 0x18]
and dword [eax], 0
mov eax, dword [esp + 0x14]
inc dword [eax]
jmp 0x1003e072
test bl, bl
je 0x1003e072
mov ecx, dword [esp + 0x18]
inc dword [ecx]
pop edi
pop esi
mov al, bl
pop ebx
ret
Function at 0x40dc75
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
call fcn.0043c181
push 1
push dword [edi + 0x64]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push dword [edi + 0x68]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push dword [edi + 0x58]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
ret
Function at 0x43b694
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x20
mov eax, 0x46c396
call fcn.0044e5c9
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov edi, dword [ebp + 0x10]
and dword [ebp - 4], 0
push 8
pop esi
cmp dword [edi + 0x14], esi
jb 0x43b6b8
mov eax, dword [edi]
jmp 0x43b6ba
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43b71f
cmp dword [edi + 0x14], esi
jb 0x43b6ce
mov eax, dword [edi]
jmp 0x43b6d0
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x43b71f
lea ecx, [ebp - 0x18]
call fcn.00426e9b
mov byte [ebp - 4], 1
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
cmp dword [edi + 0x14], esi
jb 0x43b6fa
mov edi, dword [edi]
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0xc]
push dword [ebp - 0x14]
push edi
push str.Failed_to_delete_fileName__S_:__S
push eax
call fcn.00408e53
add esp, 0x10
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0040e9e9
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x14], esi
jb 0x43b72b
mov eax, dword [edi]
jmp 0x43b72d
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43b792
cmp dword [edi + 0x14], esi
jb 0x43b741
mov eax, dword [edi]
jmp 0x43b743
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x43b792
lea ecx, [ebp - 0x14]
call fcn.00426e9b
mov byte [ebp - 4], 2
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
cmp dword [edi + 0x14], esi
jb 0x43b76d
mov edi, dword [edi]
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0xc]
push dword [ebp - 0x18]
push edi
push str.Failed_to_delete_path__S_:__S
push eax
call fcn.00408e53
add esp, 0x10
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0040e9e9
xor edx, edx
cmp byte [ebx + 4], dl
push 0
sete dl
push 0
push str.SoftwareRobloxRegETags
lea ecx, [ebp - 0x28]
add edx, 0x80000001
call fcn.00426fc0
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [eax + 0x14], esi
jb 0x43b7be
mov eax, dword [eax]
push 1
push 0x477da8
push eax
lea ecx, [ebp - 0x28]
call fcn.0040c605
cmp dword [ebp - 0x28], 0
je 0x43b7dd
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0044e52e
ret 0xc

Function at 0x43c181
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push edi
mov edi, ecx
push 0
push dword [edi + 0x48]
mov byte [edi + 0x30], 1
call esi
push 0
push dword [edi + 0x40]
call esi
push 0
push dword [edi + 0x44]
call esi
push 0x43c003
push 0x12c
push 1
push dword [edi + 0x58]
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
ret
Function at 0x298072e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x29876b48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x29807306
xor eax, eax
jmp 0x298073c1
mov eax, dword [esi + 0x20]
cmp dword [eax], 0
je 0x29807328
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, dword [eax]
cmp dword [eax], edx
jae 0x29807328
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
mov byte [eax], bl
mov eax, ebx
jmp 0x298073c1
cmp dword [esi + 0x4c], 0
je 0x298073bf
call fcn.29806a7d
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x29807352
push dword [esi + 0x4c]
push eax
call fcn.2983f41f
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x298073bf
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x298073bf
cmp eax, 1
jle 0x2980738d
cmp eax, 3
jne 0x298073bf
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x29807344
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x30], eax
je 0x298073b1
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x30], eax
jne 0x298073bf
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x34], eax
mov eax, ebx
jne 0x298073c1
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.29801cc0
leave
ret 4
Function at 0x29826d7d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x29854690
call fcn.2985114e
mov edx, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [ebp + 8]
mov esi, ebx
mov dword [ebp - 0x42c], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test eax, eax
je 0x29826f9e
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
inc eax
push 2
push eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
call fcn.2983f41f
add esp, 0x10
test eax, eax
js 0x29826f98
mov edi, dword [ebp - 0x420]
cmp edi, 0x400
jg 0x29826e21
push edi
call fcn.29827ddd
pop ecx
test al, al
je 0x29826e21
mov eax, edi
call fcn.29851670
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x29826e33
push edi
lea ecx, [ebp - 0x424]
call fcn.2983f41f
mov esi, dword [ebp - 0x424]
push 3
push edi
push dword [ebp - 0x41c]
push eax
call fcn.2983f41f
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x29826f98
push 0x60
push ebx
push eax
call fcn.29828150
mov edi, eax
mov dword [ebp - 0x420], edi
test edi, edi
jne 0x29826e8b
push 2
push ebx
push dword [ebp - 0x41c]
call fcn.29828150
mov edi, eax
mov dword [ebp - 0x420], eax
test edi, edi
jne 0x29826e8b
call fcn.29825061
mov ebx, eax
jmp 0x29826f67
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x29826eb2
call fcn.29825061
jmp 0x29826f5a
push eax
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x29826ea8
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x41c], eax
lea ecx, [eax + 1]
cmp ecx, eax
jae 0x29826ee5
mov ebx, 0x8007000e
jmp 0x29826f5c
push ecx
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.2983f41f
jmp 0x29826f0b
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x29826ede
mov eax, dword [ebp - 0x41c]
push eax
push dword [ebp - 0x428]
push eax
push dword [ebp - 0x418]
call fcn.2983f41f
mov eax, dword [ebp - 0x418]
add esp, 0x10
mov ecx, dword [ebp - 0x41c]
push dword [ebp + 0x14]
mov byte [eax + ecx], bl
lea ecx, [ebp - 0x434]
push dword [ebp - 0x418]
call fcn.2983f41f
mov ebx, eax
test edi, edi
je 0x29826f67
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x29826f80
lea ecx, [ebp - 0x418]
call fcn.29825bb4
or dword [ebp - 4], 0xffffffff
jmp 0x29826f90
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x29826f86
mov eax, ebx
jmp 0x29826fcc
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x29826fb3
lea ecx, [ebp - 0x418]
call fcn.29825bb4
or dword [ebp - 4], 0xffffffff
jmp 0x29826fc3
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x29826fb9
mov eax, 0x8007000e
lea esp, [ebp - 0x444]
call fcn.29851106
ret 0x10
Function at 0x2983f41f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x2983f42e
pop dword [ebp - 0x44]
mov eax, 0xcc99b739
add eax, 0x5cea3cf5
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x461e67c8
sub dword [ebp - 0x54], 0xf7cc227d
mov dword [ebp - 0x50], 0xfa181597
add dword [ebp - 0x50], 0x381b36ae
mov dword [ebp - 0x4c], 0x81c3f329
add dword [ebp - 0x4c], 0xca885105
mov dword [ebp - 0x48], 0xd6d0f54e
add dword [ebp - 0x48], 0x292f0ab2
lea eax, [ebp - 0x54]
push eax
mov eax, 0x48ac8d17
add eax, 0xe0d8e3a9
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x4f3ac8ac
add dword [ebp - 0x54], 0x2537a0aa
mov dword [ebp - 0x50], 0xe514d3ac
add dword [ebp - 0x50], 0x5c578dc9
mov dword [ebp - 0x4c], 0xe2c106ac
add dword [ebp - 0x4c], 0x80ae65c0
mov dword [ebp - 0x48], 0x544e0ea0
add dword [ebp - 0x48], 0xabb1f160
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x53fc510f
sub eax, 0x2a76e057
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x48667
push 0
call eax
mov ecx, 0x49c0
xor ebx, ebx
add ebx, eax
mov edx, 0xa5af6952
sub edx, 0x7c260552
add edx, dword [ebp - 0x44]
mov edi, 0x64bee412
add edi, 0xb9a2d0ba
sub dword [ebp - 0x1c], ebx
mov esi, dword [edx]
xor dword [ebp - 0x1c], 0xbad5c074
xor esi, edi
mov dword [ebx], esi
add ebx, 0xa9768093
add ebx, 0x56897f71
add edx, 0x590c135c
sub edx, 0x590c1358
loop 0x2983f54c
add eax, 0xa1b4dcf
add eax, 0xf5e5cc04
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x29800000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x410d0
Capabilities:
Parse pe header

Disassembly:
sub esp, 8
mov eax, dword [0x6f078]
push ebx
mov ebx, 0x40000
push esi
mov ecx, dword [eax + 4]
push edi
mov eax, dword [ecx + 0x6f08c]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + 0x6f08c], eax
mov ecx, 0x6f078
movzx eax, word [ebx]
push eax
call fcn.00042160
mov edi, eax
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + edi + 0x30]
mov esi, dword [ecx + 4]
mov ecx, esi
mov dword [esp + 0x10], esi
mov edx, dword [esi]
call dword [edx + 4]
lea eax, [esp + 0xc]
push eax
call fcn.000416a0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [esp + 0xc], al
test esi, esi
je 0x41153
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x41153
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [esp + 0xc]
mov ecx, edi
call fcn.00043e10
mov ecx, edi
call fcn.00043a40
pop edi
mov eax, 0x5a4d
cmp word [ebx], ax
pop esi
pop ebx
je 0x41179
or eax, 0xffffffff
add esp, 8
ret
mov ecx, dword [0x4003c]
xor eax, eax
cmp dword [ecx + 0x40000], 0x4550
sete al
add esp, 8
ret

Function at 0x45c7a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x45c9b
jl 0x45c92
test edi, edi
jne 0x45c9b
xor eax, eax
xor edx, edx
jmp 0x45d5c
cmp dword [ebx + 0x38], 0
je 0x45cb0
push eax
push edi
push dword [ebp + 8]
call fcn.00045d62
jmp 0x45d5c
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x45cf7
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x45cf7
cmp eax, edi
jb 0x45cd1
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00047750
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x45cfd
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x45d51
mov ecx, ebx
call fcn.0004544f
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x45d3c
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0004e399
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x45d51
jmp 0x45d0f
test edx, edx
je 0x45d51
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0004e399
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x46f0a
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x671b8
push 0x671b0
push str.FlsAlloc
push 0x1f
call fcn.00054f98
mov esi, eax
add esp, 0x10
test esi, esi
je 0x55161
push dword [ebp + 8]
mov ecx, esi
call dword [0x63130]
call esi
jmp 0x55167
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x551ab
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x671c8
push 0x671c0
push str.FlsGetValue
push 0x21
call fcn.00054f98
mov esi, eax
add esp, 0x10
test esi, esi
je 0x551e2
push dword [ebp + 8]
mov ecx, esi
call dword [0x63130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x551ea
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x671d0
push 0x671c8
push str.FlsSetValue
push 0x22
call fcn.00054f98
mov esi, eax
add esp, 0x10
test esi, esi
je 0x55224
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x63130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x57691
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00047260
mov eax, dword [0x6e040]
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.00053ee5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x576d3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5782f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00061a00
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 + 0x6f930]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0005868e
mov ecx, dword [esi*4 + 0x6f930]
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 0x57828
cmp eax, dword [ecx + edi + 0x24]
jne 0x57828
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 0x57828
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0005868e
add esp, 0x14
test edx, edx
jl 0x57828
jg 0x5779e
test eax, eax
jb 0x57828
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x57828
jl 0x577b8
cmp dword [ebp - 0x1008], eax
ja 0x57828
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x577d6
test ebx, ebx
je 0x5780f
cmp ecx, edi
jae 0x5780f
mov al, byte [ecx]
cmp al, 0xd
jne 0x577f0
lea eax, [edi - 1]
cmp ecx, eax
jae 0x577fc
cmp byte [ecx + 1], 0xa
jne 0x577fc
inc ecx
jmp 0x577fc
movzx eax, al
movsx eax, byte [eax + 0x6e300]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x577d6
cmp edx, ebx
jne 0x577d6
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x5782d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00046942
leave
ret
Function at 0x57b26
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 + 0x6f930]
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 0x57b66
cmp byte [ebx], 0xa
jne 0x57b66
or byte [edi + eax + 0x28], 4
jmp 0x57b6b
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 0x57c6a
mov dl, byte [eax]
cmp dl, 0x1a
je 0x57c4d
inc eax
cmp dl, 0xd
je 0x57b97
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x57bbd
cmp eax, ecx
jae 0x57bcb
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 0x57b7f
jmp 0x57c6a
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 0x57c48
cmp dword [ebp - 0x10], 0
je 0x57c48
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x6f930]
test byte [eax + edi + 0x28], 0x48
je 0x57c22
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x57c0d
mov byte [esi], dl
jmp 0x57c1e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x6f930]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x57c6a
cmp byte [ebp - 1], 0xa
jne 0x57c31
cmp esi, ebx
jne 0x57c31
mov byte [esi], 0xa
jmp 0x57c69
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.000586ac
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x57c6a
mov byte [esi], 0xd
jmp 0x57c69
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x6f930]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x57c67
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x57c6a
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x57c73
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x6f930]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x57cb9
cmp word [ebx], dx
jne 0x57cb9
or byte [eax + edi + 0x28], 4
jmp 0x57cbe
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x57e21
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x57e01
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x57cff
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x57d35
cmp eax, edx
jae 0x57d43
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x57cda
jmp 0x57e21
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x57dfc
cmp dword [ebp - 0x18], 0
je 0x57dfc
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x6f930]
test byte [eax + edi + 0x28], 0x48
je 0x57dd2
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x57d96
mov word [esi], cx
jmp 0x57dcd
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x6f930]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x6f930]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x6f930]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x57e21
pop eax
cmp word [ebp - 4], ax
jne 0x57de2
cmp esi, ebx
jne 0x57de2
mov word [esi], ax
jmp 0x57e1e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.000586ac
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x57e21
push 0xd
pop eax
jmp 0x57ddd
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x6f930]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x57e1b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x57e21
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret