joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dd681
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x60ce80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x128
xor edi, edi
push edi
push esi
call fcn.005785e0
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.0058045a
push eax
call fcn.0040f1a5
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x5c49c8]
je 0x4dd7df
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4dd7f3
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4dd7f3
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
je 0x4dd73d
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4dd731
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.004dd2cf
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x4dd738
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4dd73f
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.004dd98e
test eax, eax
je 0x4dd766
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.004dd057
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4dd76a
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.004dd98e
test eax, eax
je 0x4dd791
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.004dd057
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4dd795
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.004dd98e
test eax, eax
je 0x4dd7bd
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.004dd057
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x4dd7bf
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x4dd7d1
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x4dd7df
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00573f01
leave
ret 4
xor eax, eax
jmp 0x4dd7e2
Function at 0x4f1e19
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 0x4f1e46
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x4f1e5b
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4f1e5b
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.004202b9
jmp 0x4f1f2c
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004202b9
cmp eax, edi
jne 0x4f1f36
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 0x4f1ec8
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 0x4f1f0c
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x4f1f36
cmp eax, 0x205
je 0x4f1f36
cmp eax, 0x201
je 0x4f1f36
cmp eax, 0x204
je 0x4f1f36
cmp eax, 0x100
jne 0x4f1ef4
cmp dword [ebp - 0x18], 0x1b
je 0x4f1f36
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 0x4f1f2c
ja 0x4f1f25
cmp eax, dword [0x61560c]
jbe 0x4f1f2c
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x4f1e7d
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4f230e
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x4f2344
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.00408ae0
test eax, eax
je 0x4f232c
mov eax, dword [eax + 0x20]
push 1
push edi
push ebx
push esi
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
pop edi
sbb eax, eax
pop ebx
inc eax
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4f4cfc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x60c4e8], 0
push esi
push edi
je 0x4f4d84
cmp dword [0x60c6ec], 0xfffffffe
jne 0x4f4d70
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x4f4d84
mov edi, 0x61562c
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x615644], 0
jne 0x4f4d88
push 0
push 0
push 0x4f4d8e
call fcn.0058082d
add esp, 0xc
mov dword [0x615644], eax
test eax, eax
je 0x4f4d60
cmp eax, 0xffffffff
je 0x4f4d60
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x60c6ec], esi
jmp 0x4f4d67
and dword [0x615644], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4f4d84
mov eax, dword [ebp + 8]
mov dword [0x60c6ec], eax
cmp eax, 0xffffffff
jne 0x4f4d84
and dword [0x615644], 0
pop edi
pop esi
pop ebp
ret
call fcn.0041912f
int3
Function at 0x54f964
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.00416888
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 0x54f9a0
call fcn.0054fb81
mov dword [esi + 0xc], 1
jmp 0x54f9a5
call fcn.0054fb81
cmp dword [esi], 0
je 0x54f9f0
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 0x54f9cb
push edi
call fcn.00419987
lea ecx, [edi + 1]
push ecx
jmp 0x54f9da
push 0xff
call fcn.00406820
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004123c1
pop edi
jmp 0x54fa14
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 0x54fa14
push dword [esi]
push dword [ebp - 4]
call fcn.004b3123
pop esi
leave
ret 0xc

Function at 0x54fad8
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.0054fb81
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x54fb20
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00419987
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004123c1
jmp 0x54fb2b
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004b3123
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x554553
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x5545a0
push esi
mov ebx, 0x811c9dc5
xor edi, edi
call fcn.0057fe70
xor edx, edx
mov dword [ebp - 4], 0xa
pop ecx
mov ecx, eax
div dword [ebp - 4]
inc eax
test ecx, ecx
je 0x554597
mov edx, ecx
movsx ecx, byte [esi + edi]
add edi, eax
imul ebx, ebx, 0x1000193
xor ebx, ecx
cmp edi, edx
jb 0x554585
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
call fcn.0041912f
int3
Function at 0x557746
Capabilities:
Get file system object information

Disassembly:
push 0x398
mov eax, 0x5aed24
call fcn.005744f6
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3a0], edi
test ecx, ecx
je 0x5578d7
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x5578a9
sub eax, 1
je 0x5577c5
sub eax, 1
je 0x55779d
sub eax, 1
je 0x5577c5
push 0x5e6e08
mov ecx, edi
call fcn.0040ddd0
mov eax, edi
call fcn.005744a5
ret 0x10
push 0x408
push 0x160
lea eax, [ebp - 0x39c]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x557787
lea eax, [ebp - 0x28c]
push eax
jmp 0x55778c
lea eax, [ebp - 0x114]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x557787
push esi
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], esi
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x238], esi
push eax
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], esi
call fcn.004dd7f7
test eax, eax
je 0x557787
lea ecx, [ebp - 0x3a0]
call fcn.00406150
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x55785f
test byte [ebp - 0x21c], 0x18
jne 0x557881
mov eax, dword [ebx]
lea ecx, [ebp - 0x3a0]
push ecx
push dword [ebp - 0x220]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
push dword [ebp - 0x224]
call dword [0x5b1a70]
mov ecx, ebx
call esi
jmp 0x557881
mov eax, dword [ebx]
lea ecx, [ebp - 0x3a0]
push ecx
lea ecx, [ebp - 0x234]
push ecx
mov esi, dword [eax + 0x1a4]
mov ecx, esi
call dword [0x5b1a70]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x3a0]
add eax, 0xfffffff0
push eax
call fcn.0040f444
pop ecx
mov ecx, dword [ebp - 0x3a0]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.004066a0
jmp 0x557793
push 0x208
push 0x160
lea eax, [ebp - 0x39c]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x557787
lea eax, [ebp - 0x390]
jmp 0x5577c2
call fcn.0041912f
int3

Function at 0x557a4f
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.005704e7
call fcn.0044b942
cmp dword [eax + 0x14], 0
jne 0x557a6a
mov ecx, esi
pop esi
jmp fcn.00556d53
pop esi
ret
Function at 0x557c25
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x557d6b
mov ecx, 0x60cab8
call fcn.004b375b
mov esi, eax
test esi, esi
je 0x557d60
xor eax, eax
cmp word [esi + 8], ax
jne 0x557d2a
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x557ce6
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x557cac
push str.MS_UI_Gothic
call fcn.00557da9
pop ecx
test eax, eax
je 0x557cac
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 0x557cc7
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 0x557ce6
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 0x557cec
push ebx
push edi
push eax
call fcn.004d4e2d
add esp, 0xc
jmp 0x557cec
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.00419490
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 0x557d65
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.004b4caa
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x557d2d
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x557d3b
push edi
call fcn.0057fe70
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.00406430
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.0041912f
call fcn.00419149
int3
Function at 0x5648eb
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x5a37df
call fcn.005744c3
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x5649d1
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x5649d1
cmp esi, 0x43
je 0x56492d
cmp esi, 0x2d
jne 0x5649d1
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x5649d1
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.00406150
movzx eax, byte [edi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [edi + 0xe5]
push eax
movzx eax, byte [edi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.00406a80
mov esi, dword [ebp - 0x10]
add esp, 0x14
lea eax, [esi - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x5649bf
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x5649bf
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
call fcn.004066a0
push ebx
mov ecx, edi
call fcn.00417865
call fcn.00574491
ret 4

Function at 0x56f71a
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x60ce80]
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 0x56f784
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 0x56f769
lea eax, [ebp - 0x158]
push eax
jmp 0x56f76e
push 0x5ddd20
call fcn.0040ddd0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00573f01
leave
ret 8
call fcn.0041912f
int3

Function at 0x56fc69
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.004032b0
call fcn.0044b942
cmp dword [eax + 0x14], 0
jne 0x56fc84
mov ecx, esi
pop esi
jmp fcn.0056f4c4
pop esi
ret

Function at 0x57507f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x5750be
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5750be
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5750be
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x5750be
cmp dword [ecx + 0x74], 0xe
jbe 0x5750be
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x577095
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 0x5770b6
jl 0x5770ad
test edi, edi
jne 0x5770b6
xor eax, eax
xor edx, edx
jmp 0x577177
cmp dword [ebx + 0x38], 0
je 0x5770cb
push eax
push edi
push dword [ebp + 8]
call fcn.0057717d
jmp 0x577177
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x577112
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x577112
cmp eax, edi
jb 0x5770ec
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00578060
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 0x577118
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x57716c
mov ecx, ebx
call fcn.005768ad
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x577157
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0058903e
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 0x57716c
jmp 0x57712a
test edx, edx
je 0x57716c
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0058903e
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 0x589816
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00574670
mov eax, dword [0x60ce80]
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.00588e3e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x589858
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5899b4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00574c60
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 + 0x6168e8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0059534b
mov ecx, dword [esi*4 + 0x6168e8]
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 0x5899ad
cmp eax, dword [ecx + edi + 0x24]
jne 0x5899ad
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 0x5899ad
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0059534b
add esp, 0x14
test edx, edx
jl 0x5899ad
jg 0x589923
test eax, eax
jb 0x5899ad
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x5899ad
jl 0x58993d
cmp dword [ebp - 0x1008], eax
ja 0x5899ad
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x58995b
test ebx, ebx
je 0x589994
cmp ecx, edi
jae 0x589994
mov al, byte [ecx]
cmp al, 0xd
jne 0x589975
lea eax, [edi - 1]
cmp ecx, eax
jae 0x589981
cmp byte [ecx + 1], 0xa
jne 0x589981
inc ecx
jmp 0x589981
movzx eax, al
movsx eax, byte [eax + 0x60d318]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x58995b
cmp edx, ebx
jne 0x58995b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x5899b2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00573f01
leave
ret

Function at 0x590aac
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5e3048
push 0x5e3040
push str.FlsAlloc
push 0x1f
call fcn.005908d7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x590ae0
push dword [ebp + 8]
mov ecx, esi
call dword [0x5b1a70]
call esi
jmp 0x590ae6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x590b2a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5e3058
push 0x5e3050
push str.FlsGetValue
push 0x21
call fcn.005908d7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x590b61
push dword [ebp + 8]
mov ecx, esi
call dword [0x5b1a70]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x590b69
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5e3060
push 0x5e3058
push str.FlsSetValue
push 0x22
call fcn.005908d7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x590ba3
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5b1a70]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x594649
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 + 0x6168e8]
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 0x594689
cmp byte [ebx], 0xa
jne 0x594689
or byte [edi + eax + 0x28], 4
jmp 0x59468e
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 0x59478d
mov dl, byte [eax]
cmp dl, 0x1a
je 0x594770
inc eax
cmp dl, 0xd
je 0x5946ba
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x5946e0
cmp eax, ecx
jae 0x5946ee
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 0x5946a2
jmp 0x59478d
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 0x59476b
cmp dword [ebp - 0x10], 0
je 0x59476b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x6168e8]
test byte [eax + edi + 0x28], 0x48
je 0x594745
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x594730
mov byte [esi], dl
jmp 0x594741
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x6168e8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x59478d
cmp byte [ebp - 1], 0xa
jne 0x594754
cmp esi, ebx
jne 0x594754
mov byte [esi], 0xa
jmp 0x59478c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00595369
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x59478d
mov byte [esi], 0xd
jmp 0x59478c
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x6168e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x59478a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x59478d
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret