joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b92
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push dword [0x51efec]
call fcn.00417b88
mov esi, eax
or ebp, 0xffffffff
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, dword [esp + 0x28]
mov ecx, eax
movzx edx, word [ecx]
test dx, dx
je 0x403cc5
mov eax, dword [esi]
mov esi, edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0x20
push 0x22
pop edi
movzx eax, si
cmp si, word [esp + 0x18]
jne 0x403bf8
push 0x20
pop esi
add ecx, 2
movzx eax, word [ecx]
cmp ax, si
je 0x403bed
mov dword [esp + 0x10], 1
cmp ax, di
jne 0x403c32
add ecx, 2
mov edi, ecx
movzx eax, word [ecx]
mov esi, eax
test ax, ax
je 0x403c90
push 0x22
mov edx, eax
pop ebx
movzx esi, dx
cmp dx, bx
je 0x403c8c
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
mov esi, eax
test ax, ax
jne 0x403c19
jmp 0x403c8c
test ax, ax
je 0x403ca0
push 0x22
pop ebx
push 0x20
mov edi, ecx
movzx eax, ax
pop ebp
movzx esi, ax
cmp ax, bp
je 0x403c88
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
cmp ax, bx
jne 0x403c7d
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
je 0x403c7d
mov esi, eax
movzx edx, si
cmp si, bx
je 0x403c7d
add ecx, 2
movzx eax, word [ecx]
mov esi, eax
mov edx, eax
test ax, ax
jne 0x403c66
movzx eax, dx
movzx esi, dx
test dx, dx
jne 0x403c42
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
mov edx, ecx
test si, si
je 0x403c9a
add ecx, 2
mov eax, dword [esp + 0x10]
jmp 0x403ca4
xor eax, eax
xor edi, edi
cmp dword [esp + 0x1c], ebp
jne 0x403cae
test ebx, ebx
jne 0x403ccd
test eax, eax
je 0x403cb7
inc ebp
mov dword [esp + 0x14], ebp
movzx eax, word [ecx]
mov esi, eax
test ax, ax
jne 0x403bdd
test ebx, ebx
jne 0x403ce1
mov eax, ebp
jmp 0x403ce6
test edi, edi
je 0x403ce1
mov eax, dword [esp + 0x20]
sub edx, edi
sar edx, 1
mov dword [ebx], edx
inc dword [eax]
mov eax, edi
jmp 0x403ce6
and dword [ebx], 0
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x405903
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push ebp
push edi
xor edi, edi
mov ebp, edi
test eax, eax
je 0x40599e
cmp word [eax], di
je 0x40599e
push esi
push edi
push 0x80
push 3
push edi
push 1
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405999
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0x4e8c1c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x405991
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], ebx
jne 0x405982
push dword [esp + 0x1c]
push ebx
push edi
push dword [esp + 0x20]
call fcn.0041c29a
mov ebp, eax
push edi
push 0
push dword [0x4e8c1c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, ebp
pop esi
jmp 0x4059a0
xor eax, eax
pop edi
pop ebp
ret 0xc

Function at 0x405fc0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x405f13
push 0x10
push 0x2c
call fcn.00418ecb
push 0
push 0
push 8
mov dword [0x51f060], eax
call fcn.00417bf3
cmp word [0x51f058], 0
mov dword [0x51f068], eax
jne 0x406099
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
push str.ws2_32.dll
sbb eax, eax
inc eax
mov word [0x51f058], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x51f064], eax
test eax, eax
je 0x406099
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4c0548
push eax
call esi
push 0x4c0554
push dword [0x51f064]
mov dword [0x51f048], eax
call esi
push str.getnameinfo
push dword [0x51f064]
mov dword [0x51f04c], eax
call esi
push str.WSAStringToAddressA
push dword [0x51f064]
mov dword [0x51f050], eax
call esi
cmp dword [0x51f048], 0
mov dword [0x51f054], eax
pop esi
je 0x406099
cmp dword [0x51f04c], 0
je 0x406099
cmp dword [0x51f050], 0
je 0x406099
test eax, eax
je 0x406099
mov dword [0x51f05c], 1
add esp, 0x190
ret
Function at 0x4066bf
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
push dword [edi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0x30]
test esi, esi
jne 0x4066f7
push dword [edi]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov dword [esp + 0x10], 1
push dword [edi]
push esi
call fcn.00423bd2
test byte [edi + 0x14], 8
mov dword [esp + 0x14], eax
je 0x4067e8
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [edi], eax
jne 0x4067e8
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
sub ebp, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x406816
test ebp, ebp
jle 0x406816
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x406816
push ebp
push dword [esp + 0x30]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x30], eax
test eax, eax
je 0x4067df
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [edi + 0x10], 0
je 0x406789
push 4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [edi + 0x10]
push eax
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x40679e
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push 2
pop eax
add dword [esp + 0x18], eax
add dword [esp + 0x1c], eax
sub dword [esp + 0x20], eax
sub dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawFocusRect]
push 0xcc0020
xor eax, eax
push eax
push eax
push ebx
push ebp
push dword [esp + 0x40]
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [esp + 0x30]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x406816
cmp dword [edi + 0x10], ebx
je 0x406802
push 4
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [edi + 0x10]
push ebx
push ebx
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x406816
push ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
push dword [esp + 0x14]
push esi
call fcn.00423cdc
cmp dword [esp + 0x10], 0
je 0x406830
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x406848
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call edi
movzx esi, ax
push 2
shr esi, 0xf
call edi
bt ax, 0xf
jae 0x406869
or esi, 2
push 4
call edi
bt ax, 0xf
jae 0x406877
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x40687d
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_GetMessagePos]
mov edi, dword [esp + 0x1c]
mov esi, eax
push 0xfffffffffffffff4
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [edi]
mov ebp, eax
call fcn.00422b17
push eax
call fcn.00410798
push dword [0x51f12c]
mov dword [esp + 0x20], eax
call fcn.00422dd7
mov ebx, eax
movsx ecx, si
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ecx
push eax
push dword [edi]
shr esi, 0x10
movsx ecx, si
mov dword [esp + 0x1c], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call edi
movzx esi, ax
push 0x12
shr esi, 0xf
call edi
bt ax, 0xf
jae 0x4068f5
or esi, 2
push 0x11
call edi
bt ax, 0xf
jae 0x406903
or esi, 4
mov eax, dword [esp + 0x10]
mov dword [ebx], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 4], eax
call fcn.00406848
push 0x406838
push ebx
push dword [esp + 0x28]
mov dword [ebx + 8], eax
push dword [esp + 0x28]
mov eax, dword [esp + 0x34]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x14], eax
movzx eax, word [esp + 0x3c]
push ebp
push 0x332c
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x18], eax
call fcn.00423099
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x40ae5c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x51fbd0]
call fcn.00418de7
mov ebx, eax
test ebx, ebx
je 0x40aec0
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x40ae85
push dword [esp + 0xc]
push ebx
call eax
jmp 0x40aec0
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.00418c40
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 fcn.004187f8
pop ecx
sub edi, eax
push edi
call fcn.00418cd0
pop edi
pop esi
pop ebx
ret 8

Function at 0x40af03
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x51fbd4]
call fcn.00417b88
xor ebx, ebx
mov ebp, eax
cmp dword [0x51fca0], ebx
jne 0x40af97
mov esi, 0xa8
push esi
push ebx
push 0x51fbf8
call fcn.00401510
add esp, 0xc
mov dword [0x51fbfc], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x51fbf8], 0xa
mov dword [0x51fc00], 0x40b409
push 0x7f89
push ebx
mov dword [0x51fc70], 0x42633f
mov dword [0x51fc74], 0x426398
mov dword [0x51fc04], 0x40b3e9
mov dword [0x51fc88], 0x40b428
call esi
mov dword [0x51fca0], eax
test eax, eax
jne 0x40af97
push 0x7f00
push ebx
call esi
mov dword [0x51fca0], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00422a46
push ebx
push dword [0x4e8c20]
push 0xffffffffffffffff
push dword [ebp]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push 0x40010000
push dword [esp + 0x48]
push str.STATIC
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x40b063
push edi
push dword [esp + 0x14]
push dword [0x51fbd0]
call fcn.00418d53
mov edi, eax
push 8
or dword [edi + 0x10], 0xffffffff
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x14
push 0
mov dword [edi + 0x14], eax
push dword [0x4e8c1c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x51fbf8
push ebx
push edi
push dword [esp + 0x20]
mov dword [esi], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0xc], ecx
mov byte [esi + 0x10], 0
mov dword [edi + 0x1c], esi
call fcn.00422a9b
push 0x40b06b
push 0xfffffffffffffffc
push dword [edi]
mov ebx, eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 1
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0x20
Function at 0x40dfa8
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push 0
push 0
push 0x1304
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x40e01b
push ebp
mov ebp, dword [esp + 0x10]
mov ecx, ebp
and ecx, dword [esp + 0x14]
push esi
push edi
cmp ecx, 0xffffffff
jne 0x40dfd6
mov ebp, eax
push dword [ebx]
call fcn.0040e44a
push ebp
push dword [ebx]
mov edi, eax
call fcn.0040e423
add esp, 0xc
mov esi, eax
push 0
push ebp
push 0x130c
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
push dword [ebx]
call fcn.0040e46a
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x410390
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
lea eax, [ebp - 0x40]
push 0x40
push 0
push eax
call fcn.00401510
add esp, 0xc
cmp dword [ebp + 8], 6
jne 0x4103c1
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x60]
jmp 0x41044d
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x410427
mov eax, dword [ebp + 8]
sub eax, 0
je 0x41041f
sub eax, 1
je 0x410417
sub eax, 1
je 0x41040f
sub eax, 1
je 0x410407
sub eax, 1
je 0x4103ff
sub eax, 1
jne 0x410427
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
jmp 0x41044f
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
jmp 0x41044f
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x41044f
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
jmp 0x41044f
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
jmp 0x41044f
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
jmp 0x41044f
cmp dword [ebp + 8], 7
jne 0x41044b
push 0x2c
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.KERNEL32.dll_K32GetProcessMemoryInfo
test eax, eax
je 0x41044b
mov eax, dword [ebp - 0x68]
jmp 0x41044d
xor eax, eax
xor edx, edx
leave
ret 4
Function at 0x410453
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebp
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x114
push eax
mov esi, 0xc8
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4105d7
mov eax, dword [esp + 0x1c]
sub eax, 1
je 0x4105ba
sub eax, 1
jne 0x4105d7
lea eax, [esp + 0x120]
xor edi, edi
push eax
call fcn.004105e3
pop ecx
test eax, eax
je 0x4104c7
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x128]
mov ebp, dword [esp + 0x12c]
cmp byte [esp + 0x23a], 1
jmp 0x4104f8
lea eax, [esp + 0x23c]
mov dword [esp + 0x23c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4105d7
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp byte [esp + 0x356], 1
jne 0x4104fd
xor edi, edi
inc edi
sub ecx, 3
je 0x4105b6
sub ecx, 1
je 0x4105b2
sub ecx, 1
je 0x41058d
sub ecx, 1
je 0x41053d
sub ecx, 4
jne 0x4105d7
test eax, eax
jne 0x4105d7
cmp ebp, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x4105d7
sub eax, 0
je 0x41057f
sub eax, 1
je 0x410571
sub eax, 1
je 0x410563
sub eax, 1
jne 0x4105d7
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x4105d7
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x4105d7
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x4105d7
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x4105d7
sub eax, 0
je 0x4105ae
sub eax, 1
je 0x4105aa
sub eax, 1
jne 0x4105d7
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x4105d7
push 0x3c
jmp 0x4105d6
push 0x32
jmp 0x4105d6
push 0x14
jmp 0x4105d6
push 5
jmp 0x4105d6
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4105d4
cmp eax, 0xa
je 0x4105d0
cmp eax, 0x5a
jne 0x4105d7
push 0x28
jmp 0x4105d6
push 0x1e
jmp 0x4105d6
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x34c
ret
Function at 0x4108f7
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x520d30]
call fcn.00418de7
mov esi, eax
test esi, esi
je 0x4109d1
cmp dword [ebp + 0xc], 0
je 0x410943
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x410934
cmp dword [esi + 0x1c], 0
jne 0x410934
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4109d1
test byte [ebp + 0x10], 3
je 0x41095e
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.00426d55
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x410983
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x410997
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x4109b4
test ebx, ebx
je 0x4109a8
push 8
jmp 0x4109ba
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x4109c7
test ebx, ebx
je 0x4109bd
push 3
pop ecx
jmp 0x4109c7
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x411931
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x4119a9
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.00418bf2
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.004187f8
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x41198a
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x411987
cmp ecx, 0x5c
je 0x411987
cmp ecx, 0x2f
jne 0x411994
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x411974
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4119ab
xor eax, eax
leave
ret 4

Function at 0x4119af
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x4119d8
test byte [esp + 8], 2
je 0x4119cc
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4119da
xor eax, eax
ret 8
Function at 0x411a1d
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x520458]
push esi
test eax, eax
jne 0x411a42
push 0x4119eb
push 0x10
push 0x258
call fcn.00418ecb
mov dword [0x520458], eax
push dword [esp + 0xc]
push eax
call fcn.00418d53
mov esi, eax
test esi, esi
je 0x411b43
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x411a64
mov edi, 0x4cd1c4
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x411a74
xor eax, eax
cmp word [ebx], ax
jne 0x411a79
mov ebx, 0x4cd10c
push edi
call fcn.004187f8
push ebx
mov dword [esp + 0x24], eax
call fcn.004187f8
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x4e8c1c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x411b2a
push edi
push eax
call fcn.004187d6
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x411ada
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x411ade
push 0x4cc188
push edi
call fcn.004187a5
pop ecx
pop ecx
jmp 0x411ade
mov edi, dword [esp + 0x18]
push ebx
push edi
call fcn.004187a5
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x411b02
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x411b18
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x411b16
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x4e8c1c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x411b41
cmp dword [esp + 0x14], 0xffffffff
je 0x411b35
mov esi, dword [esp + 0x14]
push esi
push dword [0x520458]
call fcn.00418e7c
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x411b4a
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 0x411c92
xor ecx, ecx
cmp word [eax], cx
je 0x411c92
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00418bf2
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call fcn.004187f8
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x411ba3
cmp eax, 3
jne 0x411bdd
cmp word [esp + 0xa], 0x3a
jne 0x411bdd
cmp eax, 2
jne 0x411bc1
lea eax, [esp + 8]
push 0x4cc188
push eax
call fcn.004187a5
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x411c92
push 0xfffffffffffffffe
pop edi
jmp 0x411c92
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x411bf2
cmp ax, bx
jne 0x411bfc
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x411be5
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x411c3b
test byte [esp + 0x21c], 0x10
je 0x411c22
push 0xfffffffffffffffe
pop edi
jmp 0x411c32
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x411c90
cmp word [esp + 0x10], bp
jne 0x411c49
cmp word [esp + 0x12], bp
je 0x411c68
cmp word [esp + 0x10], bx
jne 0x411c57
cmp word [esp + 0x12], bx
je 0x411c68
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x411c90
cmp word [esp + 0x12], ax
jne 0x411c90
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x411c7d
test al, 0x10
je 0x411c90
jmp 0x411c8d
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x411c90
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 0x412030
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 0x41206c
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