joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49e810
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x603742
call fcn.005d5546
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x49e907
cmp edi, dword [ebx + 0xc]
jge 0x49e907
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x49e867
cmp edi, dword [esi + 8]
jl 0x49e8f5
cmp dword [ebp + 0xc], 0
je 0x49e8f5
xor edi, edi
jmp 0x49e899
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.0049e2bb
mov esi, eax
test esi, esi
je 0x49e881
mov dword [esi], vtable.CThreadData.0
jmp 0x49e883
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [esi + eax], ecx
mov dword [ebx + 0x14], esi
push 4
push dword [ebx + 0xc]
call fcn.0043c300
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x49e8b5
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x49e8c1
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x49e92e
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push edi
push eax
call fcn.005d7470
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x49e907
cmp edi, dword [esi + 8]
jge 0x49e907
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.005d54ab
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00486c30
int3
Function at 0x4a41d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], ebx
test byte [edi + 4], 1
mov esi, dword [edi + 0xc]
jne 0x4a4226
push 5
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4a41ff
call fcn.0048a38a
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4a4214
call fcn.0048a38a
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4a4226
call fcn.0048a38a
call fcn.00488503
cmp dword [eax + 0x3c], 0
je 0x4a423b
push esi
mov ecx, ebx
call fcn.004a3881
mov esi, eax
push dword [ebp + 0xc]
push esi
call fcn.004a4432
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4a4264
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4a4270
mov esi, ebx
mov dword [eax + 0x88], ebx
or dword [edi + 4], 1
mov dword [edi + 0xc], esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4a59f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.004929bb
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4a5a2c
call fcn.004a5c0d
mov dword [esi + 0xc], 1
jmp 0x4a5a31
call fcn.004a5c0d
cmp dword [esi], 0
je 0x4a5a7c
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x4a5a57
push edi
call fcn.00485e94
lea ecx, [edi + 1]
push ecx
jmp 0x4a5a66
push 0xff
call fcn.00403640
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00403540
pop edi
jmp 0x4a5aa0
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x4a5aa0
push dword [esi]
push dword [ebp - 4]
call fcn.0049fbab
pop esi
leave
ret 0xc

Function at 0x4a5b64
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004a5c0d
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4a5bac
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00485e94
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00403540
jmp 0x4a5bb7
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0049fbab
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4b467a
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x4b47c0
mov ecx, 0x69e3bc
call fcn.0049e660
mov esi, eax
test esi, esi
je 0x4b47b5
xor eax, eax
cmp word [esi + 8], ax
jne 0x4b477f
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x4b473b
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x4b4701
push str.MS_UI_Gothic
call fcn.004b4806
pop ecx
test eax, eax
je 0x4b4701
mov eax, edi
neg eax
push 0xfc11
sbb eax, eax
and eax, 0xe
add eax, 0x3ee
push eax
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x4b471c
neg edi
push 5
sbb edi, edi
and edi, 0xe
add edi, 0x3ee
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4b473b
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test eax, eax
je 0x4b4741
push ebx
push edi
push eax
call fcn.004a4b6b
add esp, 0xc
jmp 0x4b4741
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 1
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.0043c300
pop ecx
pop ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x4b47ba
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.00487b32
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x4b4782
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x4b4790
push edi
call fcn.005eb990
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.004038a0
movzx ecx, word [esi + 8]
mov edx, 0xffff
xor eax, eax
mov word [ebx], cx
pop edi
cmp cx, dx
pop esi
setne al
pop ebx
pop ebp
ret 0xc
call fcn.00486c16
call fcn.00486c30
int3

Function at 0x4c4b80
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x69ee98]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x168], esi
test eax, eax
je 0x4c4bea
push 0x208
push 0x160
lea ecx, [ebp - 0x164]
push ecx
push 0
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, esi
test eax, eax
je 0x4c4bcf
lea eax, [ebp - 0x158]
push eax
jmp 0x4c4bd4
push 0x648dd0
call fcn.00403450
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.005d4ba5
leave
ret 8
call fcn.00486c16
int3
Function at 0x4cdbf3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x4cdc0c
call fcn.00488503
mov esi, dword [eax + 0xc]
push 0x64a07c
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x4cdc4e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4cdc4e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4cdc4e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004cdc57
jmp 0x4cdc50
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x5717f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
push 1
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x57181d
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x571832
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x571832
or dword [esi + 0x3c], 2
or dword [esi + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], edx
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0048d47c
jmp 0x571903
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0048d47c
cmp eax, edi
jne 0x57190d
push 1
push 0x209
push 0x200
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x57189f
push 1
push 0x109
push 0x100
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x5718e3
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x57190d
cmp eax, 0x205
je 0x57190d
cmp eax, 0x201
je 0x57190d
cmp eax, 0x204
je 0x57190d
cmp eax, 0x100
jne 0x5718cb
cmp dword [ebp - 0x18], 0x1b
je 0x57190d
push dword [ebp - 8]
lea eax, [esi + 0x24]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, ebx
sbb edx, dword [ebp - 4]
test edx, edx
jb 0x571903
ja 0x5718fc
cmp eax, dword [0x6a86a0]
jbe 0x571903
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x571854
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x571f11
Capabilities:
Get file system object information

Disassembly:
push 0x274
mov eax, 0x60da6b
call fcn.005d5510
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00403750
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x278], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x278]
push 0
push 0x67474c
call fcn.00417bf0
cmp eax, 0xffffffff
jne 0x571fec
push 0
push 0x64a038
lea ecx, [ebp - 0x278]
call fcn.00417bf0
cmp eax, 0xffffffff
jne 0x571fec
push 0
push 0x6425f0
lea ecx, [ebp - 0x278]
call fcn.00417bf0
cmp eax, 0xffffffff
jne 0x571fec
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00403750
add eax, 0x10
pop ecx
mov dword [ebp - 0x280], eax
xor edx, edx
mov byte [ebp - 4], 1
push edx
lea ecx, [ebp - 0x114]
push ecx
push 0x104
push edx
push eax
lea edi, [eax - 0x10]
push edx
mov dword [ebp - 0x27c], edi
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x571fbb
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x613aec]
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x27c]
mov edi, eax
call fcn.00402d90
jmp 0x572025
lea eax, [ebp - 0x114]
push eax
call fcn.005eb990
pop ecx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x278]
call fcn.004038a0
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.00402d90
mov esi, dword [ebp - 0x278]
push 0x105
push 0x160
lea eax, [ebp - 0x274]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x572012
mov edi, dword [ebp - 0x274]
jmp 0x572025
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x613aec]
mov ecx, ebx
call edi
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.00402d90
mov eax, edi
call fcn.005d54bf
ret
Function at 0x58c653
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.005e101c
pop ecx
test eax, eax
jne 0x58c695
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00488118
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x58c65b
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret

Function at 0x5d5b65
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x5d5ba4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5d5ba4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5d5ba4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x5d5ba4
cmp dword [ecx + 0x74], 0xe
jbe 0x5d5ba4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x5e3dbc
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x69ee98]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x66c100
push esi
call fcn.005f574c
pop ecx
pop ecx
test eax, eax
jne 0x5e3dea
xor al, al
jmp 0x5e3e67
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.005e3afd
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x5e3e24
push dword [ebp - 0x210]
call fcn.005dafbf
xor al, al
jmp 0x5e3e65
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x5e3e2a
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x5e3e4a
push edx
call fcn.005e3cf3
pop ecx
test al, al
je 0x5e3e15
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x5e3e58
mov bl, 1
push dword [ebp - 0x210]
call fcn.005dafbf
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005d4ba5
leave
ret
Function at 0x5ed13a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.005d5690
mov eax, dword [0x69ee98]
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.005eccf5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x5ed17c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5ed2d8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.005d57d0
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 + 0x6a9258]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.005f4e78
mov ecx, dword [esi*4 + 0x6a9258]
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 0x5ed2d1
cmp eax, dword [ecx + edi + 0x24]
jne 0x5ed2d1
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 0x5ed2d1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005f4e78
add esp, 0x14
test edx, edx
jl 0x5ed2d1
jg 0x5ed247
test eax, eax
jb 0x5ed2d1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x5ed2d1
jl 0x5ed261
cmp dword [ebp - 0x1008], eax
ja 0x5ed2d1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x5ed27f
test ebx, ebx
je 0x5ed2b8
cmp ecx, edi
jae 0x5ed2b8
mov al, byte [ecx]
cmp al, 0xd
jne 0x5ed299
lea eax, [edi - 1]
cmp ecx, eax
jae 0x5ed2a5
cmp byte [ecx + 1], 0xa
jne 0x5ed2a5
inc ecx
jmp 0x5ed2a5
movzx eax, al
movsx eax, byte [eax + 0x69f2d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x5ed27f
cmp edx, ebx
jne 0x5ed27f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x5ed2d6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.005d4ba5
leave
ret

Function at 0x5f2c68
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x66e328
push 0x66e320
push str.FlsAlloc
push 0x1f
call fcn.005f2ae7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5f2c9c
push dword [ebp + 8]
mov ecx, esi
call dword [0x613aec]
call esi
jmp 0x5f2ca2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5f2ce6
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x66e338
push 0x66e330
push str.FlsGetValue
push 0x21
call fcn.005f2ae7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5f2d1d
push dword [ebp + 8]
mov ecx, esi
call dword [0x613aec]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x5f2d25
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x66e340
push 0x66e338
push str.FlsSetValue
push 0x22
call fcn.005f2ae7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5f2d5f
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x613aec]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x5f4310
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 + 0x6a9258]
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 0x5f4350
cmp byte [ebx], 0xa
jne 0x5f4350
or byte [edi + eax + 0x28], 4
jmp 0x5f4355
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 0x5f4454
mov dl, byte [eax]
cmp dl, 0x1a
je 0x5f4437
inc eax
cmp dl, 0xd
je 0x5f4381
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x5f43a7
cmp eax, ecx
jae 0x5f43b5
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 0x5f4369
jmp 0x5f4454
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 0x5f4432
cmp dword [ebp - 0x10], 0
je 0x5f4432
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x6a9258]
test byte [eax + edi + 0x28], 0x48
je 0x5f440c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5f43f7
mov byte [esi], dl
jmp 0x5f4408
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x6a9258]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5f4454
cmp byte [ebp - 1], 0xa
jne 0x5f441b
cmp esi, ebx
jne 0x5f441b
mov byte [esi], 0xa
jmp 0x5f4453
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005f4e96
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5f4454
mov byte [esi], 0xd
jmp 0x5f4453
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x6a9258]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5f4451
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5f4454
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5f445d
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 + 0x6a9258]
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 0x5f44a3
cmp word [ebx], dx
jne 0x5f44a3
or byte [eax + edi + 0x28], 4
jmp 0x5f44a8
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 0x5f460b
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 0x5f45eb
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x5f44e9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x5f451f
cmp eax, edx
jae 0x5f452d
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 0x5f44c4
jmp 0x5f460b
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 0x5f45e6
cmp dword [ebp - 0x18], 0
je 0x5f45e6
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x6a9258]
test byte [eax + edi + 0x28], 0x48
je 0x5f45bc
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 0x5f4580
mov word [esi], cx
jmp 0x5f45b7
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x6a9258]
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 + 0x6a9258]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x6a9258]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x5f460b
pop eax
cmp word [ebp - 4], ax
jne 0x5f45cc
cmp esi, ebx
jne 0x5f45cc
mov word [esi], ax
jmp 0x5f4608
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005f4e96
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x5f460b
push 0xd
pop eax
jmp 0x5f45c7
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x6a9258]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x5f4605
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x5f460b
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret