joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f88d
Capabilities:
Get disk information

Disassembly:
push ebx
push edi
mov edx, 8
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40f894
call fcn.00428a90
push dword [esp + 0x30]
call fcn.00415400
mov edx, dword [esp + 0x2c]
lea ecx, [esp]
call fcn.00415060
mov dword [esp + 4], 0
mov edx, 0x42c02e
lea ecx, [esp + 8]
call fcn.00415068
push edx
call fcn.004288b0
pop edx
push eax
push edx
call fcn.004288b0
pop edx
push eax
push 0x104
call fcn.00426280
lea eax, [esp + 0x10]
push eax
call fcn.004288f0
mov edx, 0x42c02e
lea ecx, [esp + 0x10]
call fcn.00415068
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
push 0
call sub.KERNEL32.dll_SetLastError
add dword [esp + 0x1c], 0x6400
push edx
call fcn.004288b0
pop edx
push eax
push edx
call fcn.004288b0
pop edx
push eax
push dword [esp + 0x24]
call fcn.00426280
lea eax, [esp + 0x14]
push eax
call fcn.004288f0
push dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push eax
push 0
call sub.KERNEL32.dll_QueryDosDeviceW
mov dword [esp + 0x18], eax
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14]
cmp ebx, 0x7a
je 0x40f91b
mov ebx, dword [esp + 4]
mov edi, dword [esp + 0x18]
add edi, edi
cmp ebx, edi
jge 0x40fa5f
push edx
call fcn.004288b0
pop edx
push eax
push edx
call fcn.004288b0
pop edx
push eax
mov eax, dword [esp + 0x18]
mov ebx, eax
add ebx, dword [esp + 0xc]
push ebx
call fcn.004279c0
lea eax, [esp + 0x10]
push eax
call fcn.004288f0
push 1
push dword [esp + 4]
push dword [esp + 0x14]
call fcn.00426790
and eax, eax
je 0x40fa42
push edx
call fcn.004288b0
pop edx
push eax
push edx
call fcn.004288b0
pop edx
push eax
push edx
call fcn.004288b0
pop edx
push eax
push 1
mov eax, 0x42c02e
push eax
push dword [esp + 0x14]
push dword [esp + 0x24]
call fcn.00426c20
call fcn.004153e2
add dword [esp], edx
call fcn.0040f1ce
call fcn.00415400
and eax, eax
je 0x40fa42
mov edx, dword [esp + 8]
push edx
call fcn.004288b0
pop edx
push eax
push edx
call fcn.00428980
mov edx, 0x42f9b6
push edx
call fcn.00428980
mov edx, dword [esp + 0x10]
push edx
call fcn.00428980
lea eax, [esp + 0xc]
push eax
call fcn.004288f0
mov ebx, dword [esp + 4]
push dword [esp + 0xc]
call fcn.00426390
mov edi, eax
inc edi
add edi, edi
add ebx, edi
mov dword [esp + 4], ebx
jmp 0x40f979
push dword [esp + 8]
call fcn.00426390
mov ebx, eax
cmp ebx, 2
jle 0x40fac1
push edx
call fcn.004288b0
pop edx
push eax
push edx
call fcn.004288b0
pop edx
push eax
mov eax, 0x42c04e
push eax
push dword [esp + 0x14]
call fcn.00426870
lea eax, [esp + 0xc]
push eax
call fcn.004288f0
push edx
call fcn.004288b0
pop edx
push eax
push edx
call fcn.004288b0
pop edx
push eax
mov eax, 0x42c04a
push eax
push dword [esp + 0x14]
call fcn.00426870
lea eax, [esp + 0xc]
push eax
call fcn.004288f0
mov edx, dword [esp + 8]
push edx
call fcn.004288b0
pop edx
push eax
push edx
call fcn.00428980
pop eax
push eax
call fcn.004153d0
pop edx
add eax, edx
jmp 0x40fae9
push dword [esp + 8]
call fcn.00428b20
push dword [esp]
call fcn.00428b20
push dword [esp + 0x10]
call fcn.00428b20
push dword [esp + 0xc]
call fcn.00428b20
add esp, 0x20
pop edi
pop ebx
ret 4
Function at 0x4122b3
Capabilities:
Get storage device properties

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4122b9
call fcn.00428a90
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00415060
mov byte [esp + 0x18], 0
push 0
push 3
push 0
push dword [esp + 0xc]
call fcn.00403dc8
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14]
cmp ebx, 0xffffffff
je 0x412339
push 0
lea eax, [esp + 0x14]
push eax
push 0x428
push dword [esp + 0x34]
push 0xc
lea eax, [esp + 0x18]
push eax
push 0x2d1400
push dword [esp + 0x30]
call sub.KERNEL32.dll_DeviceIoControl
mov byte [esp + 0x18], al
push dword [esp + 0x14]
call sub.KERNEL32.dll_CloseHandle
movsx eax, byte [esp + 0x18]
movsx eax, al
jmp 0x412345
push dword [esp]
call fcn.00428b20
add esp, 0x1c
pop ebx
ret 8
Function at 0x415971
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 0x415a09
push edi
push 0x43301c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x432654]
test edi, edi
je 0x4159dd
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4159d6
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x432654
call fcn.004287bb
pop ecx
pop ecx
jmp 0x4159d8
mov edi, dword [edi]
test edi, edi
jne 0x4159ad
pop ebx
mov eax, dword [0x4303ac]
mov esi, eax
inc eax
push 0x10
push 0x432654
mov dword [0x4303ac], eax
call fcn.004287fb
pop ecx
pop ecx
push 0x43301c
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 0x416b50
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x416ba5
push dword [esp + 0x10]
push 0x416acf
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x432874]
test esi, esi
je 0x416bfe
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x416b9d
cmp byte [esi + 0x10], 0
je 0x416b9d
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 0x416b79
jmp 0x416bfe
mov esi, dword [0x432874]
test esi, esi
je 0x416bfe
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 0x416bf7
cmp byte [esi + 0x11], 0
je 0x416bd3
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x416bea
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 0x432874
call fcn.004287bb
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x416bb2
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x4173be
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x433048]
call fcn.00427e88
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 0x4174be
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x417414
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x41740c
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x417454
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x417496
push 0x22
pop edx
cmp cx, dx
je 0x417446
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x417436
xor ecx, ecx
cmp word [eax], cx
je 0x417496
mov ecx, eax
add eax, 2
jmp 0x417498
test dx, dx
je 0x41749e
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x417446
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x41748c
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x417496
cmp cx, dx
je 0x417489
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x417479
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x41745e
jmp 0x417446
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x4174a0
xor edx, edx
cmp dword [ebp], ebx
jne 0x4174a9
test edi, edi
jne 0x4174c6
test edx, edx
je 0x4174ae
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x417402
test edi, edi
jne 0x4174d7
mov eax, ebx
jmp 0x4174db
test esi, esi
je 0x4174d7
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x4174db
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x417e7a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x433068]
call fcn.00427e88
mov edi, dword [eax + 0x24]
test edi, edi
je 0x417f38
cmp dword [edi + 8], 1
je 0x417f38
mov edi, dword [edi + 0xc]
test edi, edi
je 0x417f38
mov al, byte [edi]
cmp al, 0x20
je 0x417eb3
cmp al, 9
jne 0x417eb6
inc edi
jmp 0x417ea9
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push edi
push eax
push 0xfde9
call esi
push dword [esp + 0x14]
mov ebx, eax
lea ecx, [ebx - 1]
push ecx
call fcn.00428d00
push ebx
mov ebp, eax
push ebp
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
test ebx, ebx
jle 0x417f07
push 9
pop edx
lea eax, [ebp - 2]
lea eax, [eax + ebx*2]
movzx ecx, word [eax]
push 0x20
pop esi
cmp cx, si
je 0x417f23
cmp cx, dx
je 0x417f23
pop edi
pop esi
pop ebp
pop ebx
ret 4
movzx ecx, word [eax]
cmp cx, si
je 0x417f1b
cmp cx, dx
jne 0x417f27
xor ecx, ecx
mov word [eax], cx
sub eax, 2
cmp eax, ebp
jae 0x417f0e
push ebp
call sub.MSVCRT.dll_wcslen
pop ecx
sub ebx, eax
push ebx
call fcn.00428de0
jmp 0x417f07
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.00428fe0
Function at 0x418c76
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x4330a0]
call fcn.00427ff9
mov ebx, eax
test ebx, ebx
je 0x418cda
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x418c9f
push dword [esp + 0xc]
push ebx
call eax
jmp 0x418cda
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.00428d00
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.00428de0
pop edi
pop esi
pop ebx
ret 8

Function at 0x41e1a7
Capabilities:
Check os version

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
xor ebx, ebx
mov esi, 0xc8
and dword [esp + 0x10], ebx
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41e31d
mov eax, dword [esp + 0x24]
dec eax
je 0x41e300
dec eax
jne 0x41e31d
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.0041e160
pop ecx
test eax, eax
je 0x41e25e
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x41e221
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x41e2fc
dec ebx
je 0x41e2f8
dec ebx
je 0x41e2d7
dec ebx
je 0x41e291
sub ebx, 4
jne 0x41e31d
test edi, edi
jne 0x41e31d
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x41e31d
lea eax, [esp + 0x244]
mov dword [esp + 0x244], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x41e221
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x41e21c
sub edi, 0
je 0x41e2c9
dec edi
je 0x41e2bb
dec edi
je 0x41e2ad
dec edi
jne 0x41e31d
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x41e31d
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x41e31d
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x41e31d
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x41e31d
sub edi, 0
je 0x41e2f4
dec edi
je 0x41e2f0
dec edi
jne 0x41e31d
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x41e31d
push 0x3c
jmp 0x41e31c
push 0x32
jmp 0x41e31c
push 0x14
jmp 0x41e31c
push 5
jmp 0x41e31c
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41e31a
cmp eax, 0xa
je 0x41e316
cmp eax, 0x5a
jne 0x41e31d
push 0x28
jmp 0x41e31c
push 0x1e
jmp 0x41e31c
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x41eb89
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x4330b0]
call fcn.00427ff9
mov esi, eax
test esi, esi
je 0x41ec63
cmp dword [ebp + 0xc], 0
je 0x41ebd5
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x41ebc6
cmp dword [esi + 0x1c], 0
jne 0x41ebc6
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x41ec63
test byte [ebp + 0x10], 3
je 0x41ebf0
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.0041fd86
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x41ec15
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 0x41ec29
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 0x41ec46
test ebx, ebx
je 0x41ec3a
push 8
jmp 0x41ec4c
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x41ec59
test ebx, ebx
je 0x41ec4f
push 3
pop ecx
jmp 0x41ec59
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 0x41fa92
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x41fb2a
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x41fb27
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x41fb27
lea eax, [esi - 1]
push eax
push dword [0x4330b0]
call fcn.00427ff9
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x41fb29
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x41fb1e
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x41fc11
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x41fb04
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x41fbd0
push eax
call esi
test al, al
jns 0x41fbd0
push 0x11
call esi
test al, al
js 0x41fbd0
push 0x10
call esi
test al, al
js 0x41fbd0
push 0x12
call esi
test al, al
js 0x41fbd0
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x41fbd0
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x41fba4
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x41fbbb
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x41fc1b
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x41fc1b
test ebp, ebp
je 0x41fbf4
push 0x11
call esi
test al, al
js 0x41fbec
push 0x10
call esi
test al, al
js 0x41fbec
push 0x12
call esi
test al, al
jns 0x41fbf4
push 1
push ebp
call fcn.0041fc27
test ebx, ebx
je 0x41fc08
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x41fc1b
test edi, edi
je 0x41fc1b
mov eax, dword [edi + 8]
jmp 0x41fc1d
and dword [esp + 0x14], 0
jmp 0x41fb29
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x4201e8
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 0x420330
xor ecx, ecx
cmp word [eax], cx
je 0x420330
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 0x420241
cmp eax, 3
jne 0x42027b
cmp word [esp + 0xa], 0x3a
jne 0x42027b
cmp eax, 2
jne 0x42025f
lea eax, [esp + 8]
push 0x42b4c0
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 0x420330
push 0xfffffffffffffffe
pop edi
jmp 0x420330
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x420290
cmp ax, bx
jne 0x42029a
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x420283
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x4202d9
test byte [esp + 0x21c], 0x10
je 0x4202c0
push 0xfffffffffffffffe
pop edi
jmp 0x4202d0
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x42032e
cmp word [esp + 0x10], bp
jne 0x4202e7
cmp word [esp + 0x12], bp
je 0x420306
cmp word [esp + 0x10], bx
jne 0x4202f5
cmp word [esp + 0x12], bx
je 0x420306
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x42032e
cmp word [esp + 0x12], ax
jne 0x42032e
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x42031b
test al, 0x10
je 0x42032e
jmp 0x42032b
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x42032e
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 0x42033f
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x420368
test byte [esp + 8], 2
je 0x42035c
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 0x42036a
xor eax, eax
ret 8
Function at 0x42042f
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x432f14]
push esi
test eax, eax
jne 0x420440
push fcn.00420548
push 0x10
push 0x258
call fcn.004280cc
mov dword [0x432f14], eax
push dword [esp + 0xc]
push eax
call fcn.00428038
mov esi, eax
test esi, esi
je 0x420541
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x420462
mov edi, 0x42b054
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x420472
xor eax, eax
cmp word [ebx], ax
jne 0x420477
mov ebx, 0x42b4c4
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x432438]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x420528
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x4204d8
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x4204dc
push 0x42b4c0
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x4204dc
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
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 0x420500
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x420516
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x420514
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x432438]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x42053f
cmp dword [esp + 0x14], 0xffffffff
je 0x420533
mov esi, dword [esp + 0x14]
push esi
push dword [0x432f14]
call fcn.00427faa
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x420a2e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x420aa6
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 0x420a87
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x420a84
cmp ecx, 0x5c
je 0x420a84
cmp ecx, 0x2f
jne 0x420a91
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x420a71
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x420aa8
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x420aae
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x420ace
cmp dword [esp + 8], 0
je 0x420ace
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x420ad0
xor eax, eax
ret 8

Function at 0x420c10
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 0x420c4c
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 0x420fa0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x420f98
cmp word [edx], 0
je 0x420f98
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x420ebe
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x420f1d
cmp dword [esi + 4], 0
mov ecx, edx
lea edi, [ecx + 2]
je 0x420ef0
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420ed0
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.00420fd0
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420ef0
sub ecx, edi
lea eax, [esp + 8]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
cmp ecx, 2
lea ecx, [esp + 0x14]
setne al
push ecx
dec eax
and eax, 0xfde9
push edx
push eax
call fcn.004210e0
mov edi, eax
test edi, edi
je 0x420f13
cmp dword [esi + 4], 0
je 0x420f6b
push dword [esp + 0x14]
push edi
push esi
call fcn.00420fd0
push edi
push 0
push dword [0x432438]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0x432438]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc
push dword [esp + 4]
push dword [0x4330c8]
call fcn.00427ff9
test eax, eax
je 0x420fbc
mov dword [esp + 4], eax
jmp 0x420e90
xor eax, eax
ret 0xc