joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5050ad
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 0x505103
push 5
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x5050dc
call fcn.00481390
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x5050f1
call fcn.00481390
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x505103
call fcn.00481390
call fcn.0048244e
cmp dword [eax + 0x3c], 0
je 0x505118
push esi
mov ecx, ebx
call fcn.005047d3
mov esi, eax
push dword [ebp + 0xc]
push esi
call fcn.005052fe
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x505141
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x50514d
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 0x50d3c5
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.0047ff3d
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x50d401
call fcn.0050d5e2
mov dword [esi + 0xc], 1
jmp 0x50d406
call fcn.0050d5e2
cmp dword [esi], 0
je 0x50d451
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x50d42c
push edi
call fcn.00469089
lea ecx, [edi + 1]
push ecx
jmp 0x50d43b
push 0xff
call fcn.00402180
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004690ac
pop edi
jmp 0x50d475
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x50d475
push dword [esi]
push dword [ebp - 4]
call fcn.00488fa5
pop esi
leave
ret 0xc

Function at 0x50d539
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.0050d5e2
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x50d581
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00469089
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004690ac
jmp 0x50d58c
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00488fa5
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x50de61
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x660ff8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x230
xor edi, edi
push edi
push esi
call fcn.005b4d50
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.005c3889
push eax
call fcn.00403358
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x605168]
je 0x50dfbf
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 0x50dfd3
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x50dfd3
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 0x50df1d
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x50df11
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.0050dc12
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x50df18
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x50df1f
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.0050e112
test eax, eax
je 0x50df46
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.004846b0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x50df4a
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.0050e112
test eax, eax
je 0x50df71
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.004846b0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x50df75
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.0050e112
test eax, eax
je 0x50df9d
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.004846b0
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x50df9f
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x50dfb1
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x50dfbf
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.005b0d47
leave
ret 4
xor eax, eax
jmp 0x50dfc2
Function at 0x50e596
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push esi
push edi
mov esi, ecx
jne 0x50e5a7
xor eax, eax
jmp 0x50e5ed
cmp dword [ebp + 8], 0
je 0x50e5f3
push dword [esi + 0x14]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.005c8a61
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x50e5d3
push dword [esi + 0x14]
call fcn.005c84a6
pop ecx
test eax, eax
je 0x50e5f8
push dword [esi + 0x14]
call fcn.005c84d2
pop ecx
test eax, eax
je 0x50e5eb
push dword [esi + 0x14]
call fcn.0050e318
pop ecx
jmp 0x50e5f8
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
call fcn.004675f1
lea ecx, [esi + 0xc]
call fcn.00404af7
mov esi, eax
call fcn.005b808a
push esi
push dword [eax]
push 1
call fcn.0050f1bc
int3

Function at 0x534e5e
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 0x534e8b
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x534ea0
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x534ea0
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.0047afa3
jmp 0x534f71
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0047afa3
cmp eax, edi
jne 0x534f7b
push 1
push 0x209
push 0x200
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x534f0d
push 1
push 0x109
push 0x100
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x534f51
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x534f7b
cmp eax, 0x205
je 0x534f7b
cmp eax, 0x201
je 0x534f7b
cmp eax, 0x204
je 0x534f7b
cmp eax, 0x100
jne 0x534f39
cmp dword [ebp - 0x18], 0x1b
je 0x534f7b
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 0x534f71
ja 0x534f6a
cmp eax, dword [0x66a64c]
jbe 0x534f71
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x534ec2
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x535f74
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x535faa
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.00467cc3
test eax, eax
je 0x535f92
mov eax, dword [eax + 0x20]
push 1
push edi
push ebx
push esi
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
pop edi
sbb eax, eax
pop ebx
inc eax
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x53d327
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x66082c], 0
push esi
push edi
je 0x53d3ae
cmp dword [0x660978], 0xfffffffe
jne 0x53d39b
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x53d3ae
mov edi, 0x66a67c
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x66a694], 0
jne 0x53d3b2
push 0
push 0
push 0x53d3b8
call fcn.005c3f34
add esp, 0xc
mov dword [0x66a694], eax
test eax, eax
je 0x53d38b
cmp eax, 0xffffffff
je 0x53d38b
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x660978], esi
jmp 0x53d392
and dword [0x66a694], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x53d3ae
mov eax, dword [ebp + 8]
mov dword [0x660978], eax
inc eax
neg eax
sbb eax, eax
and dword [0x66a694], eax
pop edi
pop esi
pop ebp
ret
call fcn.004675f1
int3

Function at 0x57388d
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x5ea0a5
call fcn.005b146f
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x573979
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x573979
cmp esi, 0x43
je 0x5738cf
cmp esi, 0x2d
jne 0x573979
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x573979
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.004024ae
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 0x616a80
push eax
call fcn.00404ae3
mov esi, dword [ebp - 0x10]
add esp, 0x14
lea eax, [esi - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
lea eax, [eax*2 + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x573967
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x573967
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
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.0040248c
push ebx
mov ecx, edi
call fcn.0047873a
call fcn.005b143d
ret 4
Function at 0x5778aa
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x5779f0
mov ecx, 0x660bd0
call fcn.00487977
mov esi, eax
test esi, esi
je 0x5779e5
xor eax, eax
cmp word [esi + 8], ax
jne 0x5779af
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x57796b
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x577931
push 0x617958
call fcn.00577a2e
pop ecx
test eax, eax
je 0x577931
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 0x57794c
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 0x57796b
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 0x577971
push ebx
push edi
push eax
call fcn.00505d52
add esp, 0xc
jmp 0x577971
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 2
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.004622e0
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 0x5779ea
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.00486f78
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x5779b2
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x5779c0
push edi
call fcn.005bc57a
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.00402234
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.004675f1
call fcn.0046760b
int3
Function at 0x578de4
Capabilities:
Get file system object information

Disassembly:
push 0x6f8
mov eax, 0x5f25b0
call fcn.005b14a2
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x700], edi
test ecx, ecx
je 0x578f75
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x578f47
sub eax, 1
je 0x578e63
sub eax, 1
je 0x578e3b
sub eax, 1
je 0x578e63
push 0x62bf34
mov ecx, edi
call fcn.00403118
mov eax, edi
call fcn.005b1451
ret 0x10
push 0x408
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x578e25
lea eax, [ebp - 0x4e8]
push eax
jmp 0x578e2a
lea eax, [ebp - 0x218]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x578e25
push esi
lea eax, [ebp - 0x448]
mov dword [ebp - 0x448], esi
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x444], esi
push eax
mov dword [ebp - 0x440], esi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x434], esi
call fcn.0050dfd7
test eax, eax
je 0x578e25
lea ecx, [ebp - 0x700]
call fcn.004024ae
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x578efd
test byte [ebp - 0x428], 0x18
jne 0x578f1f
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
push dword [ebp - 0x42c]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
push dword [ebp - 0x430]
call dword [0x5f7a84]
mov ecx, ebx
call esi
jmp 0x578f1f
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
lea ecx, [ebp - 0x440]
push ecx
mov esi, dword [eax + 0x1a4]
mov ecx, esi
call dword [0x5f7a84]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x700]
add eax, 0xfffffff0
push eax
call fcn.0040238e
pop ecx
mov ecx, dword [ebp - 0x700]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.0040248c
jmp 0x578e31
push 0x208
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x578e25
lea eax, [ebp - 0x6f0]
jmp 0x578e60
call fcn.004675f1
int3

Function at 0x5790ed
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.005ac38c
call fcn.004824a2
cmp dword [eax + 0x14], 0
jne 0x579108
mov ecx, esi
pop esi
jmp fcn.005783f1
pop esi
ret

Function at 0x585b67
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x660ff8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2bc], esi
test eax, eax
je 0x585bd1
push 0x208
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
push 0
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, esi
test eax, eax
je 0x585bb6
lea eax, [ebp - 0x2ac]
push eax
jmp 0x585bbb
push 0x619bf0
call fcn.00403118
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.005b0d47
leave
ret 8
call fcn.004675f1
int3

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

Disassembly:
push esi
mov esi, ecx
call fcn.00402050
call fcn.004824a2
cmp dword [eax + 0x14], 0
jne 0x5860d1
mov ecx, esi
pop esi
jmp fcn.00585911
pop esi
ret
Function at 0x58a145
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.005c9cea
pop ecx
test eax, eax
jne 0x58a187
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.004778ab
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x58a14d
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret
Function at 0x5b1bb5
Capabilities:
Parse pe header

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

Function at 0x5c925c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.005b15f0
mov eax, dword [0x660ff8]
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.005c8861
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x5c929e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5c93fa
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.005b1620
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 + 0x66b388]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.005d3ef5
mov ecx, dword [esi*4 + 0x66b388]
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 0x5c93f3
cmp eax, dword [ecx + edi + 0x24]
jne 0x5c93f3
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 0x5c93f3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005d3ef5
add esp, 0x14
test edx, edx
jl 0x5c93f3
jg 0x5c9369
test eax, eax
jb 0x5c93f3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x5c93f3
jl 0x5c9383
cmp dword [ebp - 0x1008], eax
ja 0x5c93f3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x5c93a1
test ebx, ebx
je 0x5c93da
cmp ecx, edi
jae 0x5c93da
mov al, byte [ecx]
cmp al, 0xd
jne 0x5c93bb
lea eax, [edi - 1]
cmp ecx, eax
jae 0x5c93c7
cmp byte [ecx + 1], 0xa
jne 0x5c93c7
inc ecx
jmp 0x5c93c7
movzx eax, al
movsx eax, byte [eax + 0x661440]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x5c93a1
cmp edx, ebx
jne 0x5c93a1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x5c93f8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.005b0d47
leave
ret

Function at 0x5cfefa
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x628868
push 0x628860
push str.FlsAlloc
push 0x1f
call fcn.005cfd25
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5cff2e
push dword [ebp + 8]
mov ecx, esi
call dword [0x5f7a84]
call esi
jmp 0x5cff34
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x5cff78
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x628878
push 0x628870
push str.FlsGetValue
push 0x21
call fcn.005cfd25
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5cffaf
push dword [ebp + 8]
mov ecx, esi
call dword [0x5f7a84]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x5cffb7
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x628880
push 0x628878
push str.FlsSetValue
push 0x22
call fcn.005cfd25
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5cfff1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5f7a84]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x5d3019
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 + 0x66b388]
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 0x5d3059
cmp byte [ebx], 0xa
jne 0x5d3059
or byte [edi + eax + 0x28], 4
jmp 0x5d305e
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 0x5d315d
mov dl, byte [eax]
cmp dl, 0x1a
je 0x5d3140
inc eax
cmp dl, 0xd
je 0x5d308a
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x5d30b0
cmp eax, ecx
jae 0x5d30be
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 0x5d3072
jmp 0x5d315d
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 0x5d313b
cmp dword [ebp - 0x10], 0
je 0x5d313b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x66b388]
test byte [eax + edi + 0x28], 0x48
je 0x5d3115
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5d3100
mov byte [esi], dl
jmp 0x5d3111
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x66b388]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5d315d
cmp byte [ebp - 1], 0xa
jne 0x5d3124
cmp esi, ebx
jne 0x5d3124
mov byte [esi], 0xa
jmp 0x5d315c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005d3f13
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5d315d
mov byte [esi], 0xd
jmp 0x5d315c
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x66b388]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5d315a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5d315d
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret