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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x4a3333
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x4a3339
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
leave
ret
lea ecx, [esi + 0xc]
call fcn.004124a0
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
push eax
call fcn.004b498f
int3

Function at 0x4a3614
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x4a3625
xor eax, eax
jmp 0x4a3641
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4a3646
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
lea ecx, [esi + 0xc]
call fcn.004124a0
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
push eax
call fcn.004b498f
int3

Function at 0x4a36e4
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
push 0
push dword [ebp + 0xc]
mov eax, dword [edi]
push dword [ebp + 8]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x6216c4]
mov ecx, edi
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
je 0x4a3717
pop edi
pop esi
pop ebp
ret 8
lea ecx, [edi + 0xc]
call fcn.004124a0
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
push eax
call fcn.004b498f
int3

Function at 0x4a37f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x4a381b
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x4a3821
cmp dword [ebp - 4], esi
jne 0x4a3838
pop edi
pop esi
leave
ret 8
lea ecx, [edi + 0xc]
call fcn.004124a0
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
push eax
call fcn.004b498f
lea ecx, [edi + 0xc]
call fcn.004124a0
push eax
push 0xffffffffffffffff
push 0xd
call fcn.004b45e5
int3
Function at 0x4b2f16
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 0x4b2f6c
push 5
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4b2f45
call fcn.004998b6
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov esi, eax
test esi, esi
jne 0x4b2f5a
call fcn.004998b6
push esi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
jne 0x4b2f6c
call fcn.004998b6
call fcn.0049b3b0
cmp dword [eax + 0x3c], 0
je 0x4b2f81
push esi
mov ecx, ebx
call fcn.004b263c
mov esi, eax
push dword [ebp + 0xc]
push esi
call fcn.004b3169
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4b2faa
push ecx
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4b2fb6
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 0x4b4fe5
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x69f000]
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.005d5480
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.005e8b63
push eax
call fcn.00410390
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x62b5f4]
je 0x4b5143
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 0x4b5157
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
je 0x4b5157
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 0x4b50a1
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4b5095
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.004b4d96
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x4b509c
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4b50a3
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.004b5296
test eax, eax
je 0x4b50ca
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.004b4c1d
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4b50ce
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.004b5296
test eax, eax
je 0x4b50f5
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.004b4c1d
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4b50f9
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.004b5296
test eax, eax
je 0x4b5121
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.004b4c1d
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x4b5123
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x4b5135
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x4b5143
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.005d077b
leave
ret 4
xor eax, eax
jmp 0x4b5146
Function at 0x4bdc48
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.00497d2d
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 0x4bdc84
call fcn.004bde65
mov dword [esi + 0xc], 1
jmp 0x4bdc89
call fcn.004bde65
cmp dword [esi], 0
je 0x4bdcd4
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 0x4bdcaf
push edi
call fcn.00492d06
lea ecx, [edi + 1]
push ecx
jmp 0x4bdcbe
push 0xff
call fcn.00412740
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0048a2f5
pop edi
jmp 0x4bdcf8
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 0x4bdcf8
push dword [esi]
push dword [ebp - 4]
call fcn.0049f40d
pop esi
leave
ret 0xc

Function at 0x4bddbc
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.004bde65
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4bde04
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00492d06
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0048a2f5
jmp 0x4bde0f
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0049f40d
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4c06f4
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x4c083a
mov ecx, 0x69e540
call fcn.0049dab8
mov esi, eax
test esi, esi
je 0x4c082f
xor eax, eax
cmp word [esi + 8], ax
jne 0x4c07f9
push str.comctl32.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x4c07b5
call dword [sym.imp.KERNEL32.DLL_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x4c077b
push 0x62e8f8
call fcn.004c0878
pop ecx
test eax, eax
je 0x4c077b
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 0x4c0796
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 0x4c07b5
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 0x4c07bb
push ebx
push edi
push eax
call fcn.004a4173
add esp, 0xc
jmp 0x4c07bb
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.0049894c
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 0x4c0834
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.0049d0b4
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x4c07fc
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x4c080a
push edi
call fcn.005e8c90
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.00412830
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.00487817
call fcn.00487831
int3

Function at 0x4d1433
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x69f000]
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 0x4d149d
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 0x4d1482
lea eax, [ebp - 0x2ac]
push eax
jmp 0x4d1487
push 0x632410
call fcn.00412230
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.005d077b
leave
ret 8
call fcn.00487817
int3
Function at 0x4dbee3
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 0x4dbefc
call fcn.0049b3b0
mov esi, dword [eax + 0xc]
push 0x63394c
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov edi, eax
test edi, edi
je 0x4dbf3e
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x4dbf3e
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4dbf3e
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004dbf47
jmp 0x4dbf40
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x574aad
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 0x574ada
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x574aef
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x574aef
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.00492cb8
jmp 0x574bc0
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.00492cb8
cmp eax, edi
jne 0x574bca
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 0x574b5c
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 0x574ba0
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x574bca
cmp eax, 0x205
je 0x574bca
cmp eax, 0x201
je 0x574bca
cmp eax, 0x204
je 0x574bca
cmp eax, 0x100
jne 0x574b88
cmp dword [ebp - 0x18], 0x1b
je 0x574bca
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 0x574bc0
ja 0x574bb9
cmp eax, dword [0x6a8670]
jbe 0x574bc0
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x574b11
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x57516d
Capabilities:
Get file system object information

Disassembly:
push 0x4cc
mov eax, 0x61c25e
call fcn.005d1261
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00488a0e
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x6653c0
call fcn.00488bb0
cmp eax, 0xffffffff
jne 0x575248
push 0
push 0x66376c
lea ecx, [ebp - 0x4d0]
call fcn.00488bb0
cmp eax, 0xffffffff
jne 0x575248
push 0
push 0x663434
lea ecx, [ebp - 0x4d0]
call fcn.00488bb0
cmp eax, 0xffffffff
jne 0x575248
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00488a0e
add eax, 0x10
pop ecx
mov dword [ebp - 0x4d8], eax
xor edx, edx
mov byte [ebp - 4], 1
push edx
lea ecx, [ebp - 0x218]
push ecx
push 0x104
push edx
push eax
lea edi, [eax - 0x10]
push edx
mov dword [ebp - 0x4d4], edi
call dword [sym.imp.KERNEL32.DLL_SearchPathW]
test eax, eax
jne 0x575217
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x6216c4]
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x4d4]
mov edi, eax
call fcn.004104b0
jmp 0x575281
lea eax, [ebp - 0x218]
push eax
call fcn.005e8c90
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.00412830
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.004104b0
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x57526e
mov edi, dword [ebp - 0x4cc]
jmp 0x575281
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x6216c4]
mov ecx, ebx
call edi
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.004104b0
mov eax, edi
call fcn.005d1210
ret
Function at 0x58ee4a
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.005ebe6b
pop ecx
test eax, eax
jne 0x58ee8c
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.0046f7d0
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x58ee52
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 0x5d194c
Capabilities:
Parse pe header

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

Function at 0x5df010
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.005d11a0
mov eax, dword [0x69f000]
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.005eba10
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x5df052
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5df1ae
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.005d1560
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 + 0x6a9298]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.005f53d8
mov ecx, dword [esi*4 + 0x6a9298]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x5df1a7
cmp eax, dword [edi + ecx + 0x24]
jne 0x5df1a7
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x5df1a7
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005f53d8
add esp, 0x14
test edx, edx
jl 0x5df1a7
jg 0x5df11d
test eax, eax
jb 0x5df1a7
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x5df1a7
jl 0x5df137
cmp dword [ebp - 0x1008], eax
ja 0x5df1a7
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x5df155
test ebx, ebx
je 0x5df18e
cmp ecx, edi
jae 0x5df18e
mov al, byte [ecx]
cmp al, 0xd
jne 0x5df16f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x5df17b
cmp byte [ecx + 1], 0xa
jne 0x5df17b
inc ecx
jmp 0x5df17b
movzx eax, al
movsx eax, byte [eax + 0x69f2c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x5df155
cmp edx, ebx
jne 0x5df155
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x5df1ac
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.005d077b
leave
ret
Function at 0x5dfc5c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x69f000]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x656574
push esi
call fcn.005ea049
pop ecx
pop ecx
test eax, eax
jne 0x5dfc8a
xor al, al
jmp 0x5dfd07
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.005df99f
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x5dfcc4
push dword [ebp - 0x210]
call fcn.005d8486
xor al, al
jmp 0x5dfd05
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x5dfcca
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x5dfcea
push edx
call fcn.005dfb92
pop ecx
test al, al
je 0x5dfcb5
push esi
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 1
jbe 0x5dfcf8
mov bl, 1
push dword [ebp - 0x210]
call fcn.005d8486
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005d077b
leave
ret
Function at 0x5f3d7e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005f3bef

Function at 0x5f425a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x658b54
push 0x658b4c
push str.FlsAlloc
push 0x1e
call fcn.005f4087
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5f428e
push dword [ebp + 8]
mov ecx, esi
call dword [0x6216c4]
call esi
jmp 0x5f4294
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5f42d8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x658b64
push 0x658b5c
push str.FlsGetValue
push 0x20
call fcn.005f4087
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5f430f
push dword [ebp + 8]
mov ecx, esi
call dword [0x6216c4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.DLL_TlsGetValue]

Function at 0x5f4876
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x6a9298]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5f48b6
cmp byte [ebx], 0xa
jne 0x5f48b6
or byte [eax + edi + 0x28], 4
jmp 0x5f48bb
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x5f49b9
mov al, byte [edx]
cmp al, 0x1a
je 0x5f499b
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x5f48ea
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x5f490f
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x5f4919
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x5f48cc
jmp 0x5f49b9
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x5f4996
cmp dword [ebp - 0xc], 0
je 0x5f4996
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x6a9298]
test byte [eax + edi + 0x28], 0x48
je 0x5f4970
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5f495b
mov byte [esi], dl
jmp 0x5f496c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x6a9298]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5f49b9
cmp byte [ebp - 1], 0xa
jne 0x5f497f
cmp esi, ebx
jne 0x5f497f
mov byte [esi], 0xa
jmp 0x5f49b8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005f53f6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5f49b9
mov byte [esi], 0xd
jmp 0x5f49b8
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x6a9298]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5f49b5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5f49b9
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret