joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b0f1
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x40b189
push edi
push 0x4c1e04
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edi, dword [0x4c06d0]
test edi, edi
je 0x40b15d
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x40b156
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x4c06d0
call fcn.00422469
pop ecx
pop ecx
jmp 0x40b158
mov edi, dword [edi]
test edi, edi
jne 0x40b12d
pop ebx
mov eax, dword [0x4bcdec]
mov esi, eax
inc eax
push 0x10
push 0x4c06d0
mov dword [0x4bcdec], eax
call fcn.004224a9
pop ecx
pop ecx
push 0x4c1e04
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x40b2c4
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x40b319
push dword [esp + 0x10]
push 0x40b243
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x4c06d4]
test esi, esi
je 0x40b372
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x40b311
cmp byte [esi + 0x10], 0
je 0x40b311
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x40b2ed
jmp 0x40b372
mov esi, dword [0x4c06d4]
test esi, esi
je 0x40b372
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x40b36b
cmp byte [esi + 0x11], 0
je 0x40b347
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x40b35e
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push ebp
push 0x4c06d4
call fcn.00422469
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x40b326
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x40b415
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x4c1e28]
call fcn.00421b2b
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x40b515
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x40b46b
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x40b463
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x40b4ab
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x40b4ed
push 0x22
pop edx
cmp cx, dx
je 0x40b49d
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x40b48d
xor ecx, ecx
cmp word [eax], cx
je 0x40b4ed
mov ecx, eax
add eax, 2
jmp 0x40b4ef
test dx, dx
je 0x40b4f5
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x40b49d
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x40b4e3
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x40b4ed
cmp cx, dx
je 0x40b4e0
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x40b4d0
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x40b4b5
jmp 0x40b49d
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x40b4f7
xor edx, edx
cmp dword [ebp], ebx
jne 0x40b500
test edi, edi
jne 0x40b51d
test edx, edx
je 0x40b505
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x40b459
test edi, edi
jne 0x40b52e
mov eax, ebx
jmp 0x40b532
test esi, esi
je 0x40b52e
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x40b532
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x40bb8d
Capabilities:
Read file on windows

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x40bbe1
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push 0
push eax
mov eax, dword [esp + 0x20]
sub eax, esi
push eax
lea eax, [esi + ebp]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x40bbcf
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
je 0x40bbdb
add esi, dword [esp + 0x10]
cmp esi, dword [esp + 0x18]
jl 0x40bba0
jmp 0x40bbdf
add esi, dword [esp + 0x10]
pop ebp
pop ebx
mov eax, esi
pop esi
ret 0xc

Function at 0x40bd7d
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebx, eax
cmp dword [esp + 0x24], 0x18
je 0x40be2c
cmp dword [esp + 0x24], 2
je 0x40be2c
push 0x2000
push edi
push dword [0x4c0108]
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ebp, dword [sym.imp.KERNEL32.DLL_ReadFile]
mov esi, eax
jmp 0x40bdff
cmp dword [esp + 0x18], 2
jne 0x40be17
test ebx, ebx
jne 0x40bde8
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x4c0108]
call dword [sym.imp.KERNEL32.DLL_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x40be17
cmp ax, 0xd
je 0x40bdff
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call ebp
test eax, eax
jne 0x40bdbf
push dword [esp + 0x28]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.00452af0
jmp 0x40beb2
push eax
push 0
push dword [0x4c0108]
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ebp, dword [sym.imp.KERNEL32.DLL_ReadFile]
mov esi, eax
jmp 0x40be7e
cmp dword [esp + 0x18], 1
jne 0x40be96
test ebx, ebx
jne 0x40be6d
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x4c0108]
call dword [sym.imp.KERNEL32.DLL_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x40be96
cmp al, 0xd
je 0x40be7e
mov byte [esi + edi], al
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call ebp
test eax, eax
jne 0x40be45
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x28]
mov byte [esi + edi], 0
push esi
jne 0x40bead
call fcn.00452b40
jmp 0x40beb2
call fcn.00452cf0
push esi
push 0
push dword [0x4c0108]
call dword [sym.imp.KERNEL32.DLL_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x40d0c0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x4c0700], 0
jne 0x40d0ce
call fcn.0040d060
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_TlsGetValue]
push edi
push dword [0x4c0704]
call esi
test eax, eax
jne 0x40d0f1
call fcn.0040d060
push dword [0x4c0704]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x40d100
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x40d160
mov ebx, 0x10
test edi, edi
jns 0x40d169
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x40d132
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x40e334
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x4c1df4]
call fcn.00421d3a
mov ebx, eax
test ebx, ebx
je 0x40e398
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x40e35d
push dword [esp + 0xc]
push ebx
call eax
jmp 0x40e398
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.004229e0
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.DLL_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.00422ac0
pop edi
pop esi
pop ebx
ret 8
Function at 0x4121f9
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x4c1e64]
call fcn.00421b2b
xor ebp, ebp
mov esi, eax
cmp dword [0x4c1048], ebp
jne 0x4122d5
xor ebx, ebx
inc ebx
mov dword [0x4c1048], ebx
call fcn.0041428d
mov edi, 0xa4
push edi
push ebp
push 0x4c1050
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x4c1050], 0x13
lea eax, [esp + 0x10]
mov dword [0x4c1054], edi
mov dword [0x4c1060], 0x412144
mov dword [0x4c1064], 0x41248f
push eax
mov dword [0x4c10b8], 0x41211f
mov dword [0x4c10bc], 0x4123da
mov dword [0x4c105c], 0x4120fa
mov dword [0x4c10e0], 0x41215f
mov dword [0x4c10f4], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x4122d5
cmp dword [esp + 0x20], ebx
je 0x4122bd
cmp dword [esp + 0x20], 2
jne 0x4122d5
cmp dword [esp + 0x14], 5
jae 0x4122c5
mov dword [0x4c10f4], ebp
jmp 0x4122d5
jne 0x4122d5
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x4c10f4], eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
call fcn.00418de9
mov eax, dword [esp + 0x140]
push ebp
push dword [0x4c010c]
or eax, 0x50010000
push 0xffffffffffffffff
push dword [esi]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push eax
push ebp
push str.BUTTON
push ebp
call dword [sym.imp.USER32.DLL_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x4123ab
push dword [esp + 0x128]
push dword [0x4c1df4]
call fcn.00421d79
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x41237a
push edi
call fcn.0041c6ea
test eax, eax
je 0x41237a
push ebp
push ebp
push edi
call fcn.0041c334
mov dword [esi + 0x18], eax
jmp 0x41237d
mov dword [esi + 0x18], ebp
push 0x411e49
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.DLL_SetWindowLongW]
push 0x4c1050
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x4c104c], eax
call fcn.00413974
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
lea eax, [ebp - 0x208]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
mov eax, dword [ebp + 8]
or eax, 0x4000
push eax
push 0x2b4
lea eax, [ebp - 0x4bc]
push eax
push 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHELL32.DLL_SHGetFileInfoW]
mov esp, ebp
pop ebp
ret 4
Function at 0x414aea
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x4c1298], 0
jne 0x414bbb
push ebx
push ebp
push esi
xor ebp, ebp
inc ebp
push 0x4c1e84
mov dword [0x4c1298], ebp
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov eax, 0x640
push eax
push 8
push dword [0x4c0108]
mov dword [0x4c175c], eax
mov dword [0x4c129c], 0x1f4
call esi
mov dword [0x4c176c], eax
mov eax, dword [0x4c129c]
add eax, eax
push eax
push 8
push dword [0x4c0108]
call esi
xor ebx, ebx
mov dword [0x4c1768], eax
push 0x4c1778
mov dword [0x4c1760], ebx
mov dword [0x4c1764], ebp
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.DLL_CreateEventW]
push ebx
push ebx
push ebp
push ebx
call esi
push ebx
push ebx
push ebp
push ebx
mov dword [0x4c1790], eax
call esi
mov dword [0x4c1794], eax
cmp dword [0x4c1790], ebx
je 0x414bb2
test eax, eax
je 0x414bb2
lea eax, [esp + 0xc]
mov dword [0x4c1770], ebx
push eax
push ebx
push ebx
push 0x4145ed
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x4c1774], eax
jmp 0x414bb8
mov dword [0x4c1770], ebp
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x414ed8
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x114
push eax
mov esi, 0xc8
xor ebx, ebx
xor edi, edi
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x415030
mov eax, dword [esp + 0x20]
dec eax
je 0x415013
dec eax
jne 0x415030
lea eax, [esp + 0x124]
xor ebp, ebp
push eax
call fcn.00414e91
pop ecx
test eax, eax
je 0x414f44
mov ebx, dword [esp + 0x128]
mov edi, dword [esp + 0x12c]
cmp byte [esp + 0x23e], 1
jmp 0x414f71
lea eax, [esp + 0x240]
mov dword [esp + 0x240], 0x11c
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x414f76
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x35a], 1
jne 0x414f76
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x41500f
dec ebx
je 0x41500b
dec ebx
je 0x414fea
dec ebx
je 0x414fa4
sub ebx, 4
jne 0x415030
test edi, edi
jne 0x415030
push 0x6e
jmp 0x41502f
sub edi, 0
je 0x414fdc
dec edi
je 0x414fce
dec edi
je 0x414fc0
dec edi
jne 0x415030
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x415030
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x415030
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x415030
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x415030
sub edi, 0
je 0x415007
dec edi
je 0x415003
dec edi
jne 0x415030
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x415030
push 0x3c
jmp 0x41502f
push 0x32
jmp 0x41502f
push 0x14
jmp 0x41502f
push 5
jmp 0x41502f
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41502d
cmp eax, 0xa
je 0x415029
cmp eax, 0x5a
jne 0x415030
push 0x28
jmp 0x41502f
push 0x1e
jmp 0x41502f
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret
Function at 0x416169
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov ebx, eax
test ebx, ebx
je 0x4161e3
push 9
call esi
test al, al
jns 0x4161e3
push 0x11
call esi
test al, al
js 0x4161e3
push 0x10
call esi
test al, al
js 0x4161e3
push 0x12
call esi
test al, al
js 0x4161e3
push 5
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.DLL_GetClassNameW]
push 4
lea eax, [ebp - 0x10]
push str.Rich
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x4161e3
push eax
push eax
push 0x44e
push ebx
call dword [sym.imp.USER32.DLL_SendMessageW]
test eax, 0x800
jne 0x4161e3
xor eax, eax
jmp 0x416264
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x41620b
push 0x11
call esi
test al, al
js 0x416203
push 0x10
call esi
test al, al
js 0x416203
push 0x12
call esi
test al, al
jns 0x41620b
push 1
push edi
call fcn.0041626c
mov esi, dword [sym.imp.USER32.DLL_GetPropW]
test ebx, ebx
je 0x416221
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x416261
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x416261
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x416261
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x416261
lea eax, [esi - 1]
push eax
push dword [0x4c1df8]
call fcn.00421d3a
test eax, eax
je 0x416261
mov eax, dword [eax + 8]
jmp 0x416263
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4163cb
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x416513
xor ecx, ecx
cmp word [eax], cx
je 0x416513
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x416424
cmp eax, 3
jne 0x41645e
cmp word [esp + 0xa], 0x3a
jne 0x41645e
cmp eax, 2
jne 0x416442
lea eax, [esp + 8]
push 0x460118
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 1
jbe 0x416513
push 0xfffffffffffffffe
pop edi
jmp 0x416513
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x416473
cmp ax, bx
jne 0x41647d
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x416466
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, esi
je 0x4164bc
test byte [esp + 0x21c], 0x10
je 0x4164a3
push 0xfffffffffffffffe
pop edi
jmp 0x4164b3
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
jmp 0x416511
cmp word [esp + 0x10], bp
jne 0x4164ca
cmp word [esp + 0x12], bp
je 0x4164e9
cmp word [esp + 0x10], bx
jne 0x4164d8
cmp word [esp + 0x12], bx
je 0x4164e9
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x416511
cmp word [esp + 0x12], ax
jne 0x416511
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, esi
je 0x4164fe
test al, 0x10
je 0x416511
jmp 0x41650e
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 1
jbe 0x416511
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x416585
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x4165ae
test byte [esp + 8], 2
je 0x4165a2
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x4165b0
xor eax, eax
ret 8

Function at 0x41671f
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x416797
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x416778
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x416775
cmp ecx, 0x5c
je 0x416775
cmp ecx, 0x2f
jne 0x416782
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x416762
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
jmp 0x416799
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x41679f
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x416874
push ebx
push edi
push pe_nt_image_headers32
push 3
push edi
push 3
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x416873
push esi
mov esi, dword [ebp + 0x10]
push esi
call fcn.00418ebc
push esi
mov word [ebp - 0x20], ax
call fcn.00418ee4
push esi
mov word [ebp - 0x1e], ax
call fcn.00418f07
push esi
mov word [ebp - 0x1c], ax
call fcn.00418f29
push esi
mov word [ebp - 0x1a], ax
call fcn.00418f4b
push esi
mov word [ebp - 0x18], ax
call fcn.00418f6d
push esi
mov word [ebp - 0x16], ax
call fcn.00418f8f
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_SystemTimeToFileTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_LocalFileTimeToFileTime]
cmp dword [ebp + 0xc], 1
mov eax, edi
mov ecx, edi
pop esi
jne 0x416852
lea eax, [ebp - 8]
jmp 0x416860
cmp dword [ebp + 0xc], 2
jne 0x41685d
lea ecx, [ebp - 8]
jmp 0x416860
lea edi, [ebp - 8]
push ecx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x416eb0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x416eec
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x417390
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x4c1eb0]
call fcn.00421d3a
mov esi, eax
test esi, esi
je 0x41740f
cmp dword [esi + 4], 0
je 0x4173e0
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.00417900
test eax, eax
je 0x4173d4
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x41741a
cmp dword [esp + 8], 0
je 0x41741a
push 1
push 0
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4

Function at 0x417560
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x4175c5
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4175bd
push dword [esp + 0x10]
push dword [0x4c1eb0]
call fcn.00421d3a
test eax, eax
je 0x4175b3
cmp dword [eax + 4], 0
je 0x4175a2
push edi
push esi
push eax
call fcn.00417ed0
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc
Function at 0x417900
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0
jne 0x417921
push esi
call fcn.00416eb0
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
cmp ebx, edi
jl 0x417995
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x417982
dec ecx
je 0x41796d
sub ecx, 2
je 0x41795a
push edi
push eax
push dword [esp + 0x1c]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x14]
mov word [eax], cx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esp + 0x14]
mov dl, byte [eax]
mov eax, edi
mov byte [ecx], dl
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
push ebp
mov ebp, dword [esp + 0x18]
sub eax, ebx
add eax, dword [esi + 4]
push ebx
push eax
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
push 0
cmp edi, eax
jl 0x4179da
lea eax, [esp + 0x18]
push eax
push edi
push ebp
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
add eax, ebx
pop esi
pop ebx
ret 0xc
lea ecx, [esp + 0x18]
push ecx
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp edi, eax
jle 0x4179fb
mov edi, eax
push edi
push dword [esi + 4]
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
lea eax, [ebx + edi]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret 0xc