joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4079b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
xor eax, eax
push ebp
push 0x407a40
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.00403224
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0xc]
mov eax, 0x40a200
mov edx, 0x32
call fcn.00407888
mov eax, dword [ebp - 0xc]
call fcn.0040354c
push eax
push 0x80000001
call sub.advapi32.dll_RegCloseKey
test eax, eax
jne 0x407a25
mov eax, dword [ebp - 8]
call fcn.00403388
inc eax
push eax
mov eax, dword [ebp - 8]
call fcn.0040354c
push eax
push 1
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegOpenKeyExA
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407a47
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403248
ret

Function at 0x407a4c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x407b2e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x2001f
push 0
push 0x407b40
push 0
mov eax, edi
call fcn.0040354c
push eax
push esi
call sub.advapi32.dll_RegSetValueExA
test eax, eax
jne 0x407b18
mov eax, ebx
call fcn.00404af0
cmp eax, 0x100
jne 0x407adc
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.004042a4
mov eax, dword [ebp - 0x10]
call fcn.00403388
push eax
mov eax, dword [ebp - 0x10]
call fcn.0040354c
push eax
push 3
push 0
mov eax, dword [ebp - 4]
call fcn.0040354c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
mov eax, ebx
call fcn.00404af0
cmp eax, 5
jne 0x407b0f
mov eax, ebx
call fcn.004041ec
fstp qword [ebp - 0x18]
wait
push 8
lea eax, [ebp - 0x18]
push eax
push 3
push 0
mov eax, dword [ebp - 4]
call fcn.0040354c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407b35
lea eax, [ebp - 0x10]
call fcn.00403224
ret

Function at 0x407b44
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebp, eax
mov bl, 0x75
mov eax, dword [ebp]
call fcn.00403388
mov edi, eax
test edi, edi
jle 0x407b80
mov esi, 1
mov eax, ebp
call fcn.00403558
mov edx, dword [ebp]
mov dl, byte [edx + esi - 1]
xor dl, bl
mov byte [eax + esi - 1], dl
mov eax, ebx
call fcn.00407904
mov ebx, eax
inc esi
dec edi
jne 0x407b5f
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x407cf4
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
dec ebx
test ebx, ebx
jl 0x407d0f
inc ebx
xor esi, esi
xor byte [edi + esi], al
call fcn.00407904
inc esi
dec ebx
jne 0x407d03
and eax, 0xff
pop edi
pop esi
pop ebx
ret
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x42165e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x42166d
pop dword [ebp - 0xc]
mov eax, 0x51a86528
add eax, 0xae99b145
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xd69098b
add dword [ebp - 0x1c], 0x40e93bc0
mov dword [ebp - 0x18], 0xc1b979a2
sub dword [ebp - 0x18], 0x8f862d5d
mov dword [ebp - 0x14], 0xde38751e
add dword [ebp - 0x14], 0x6e13cf10
mov dword [ebp - 0x10], 0x6eed1aad
sub dword [ebp - 0x10], 0x6eed1aad
lea eax, [ebp - 0x1c]
push eax
mov eax, 0xf7c861a5
add eax, 0x879cecf
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x46a76428
sub dword [ebp - 0x1c], 0xd234fad2
mov dword [ebp - 0x18], 0x3c7d7020
add dword [ebp - 0x18], 0x4eef155
mov dword [ebp - 0x14], 0xf9b46a7
add dword [ebp - 0x14], 0x53d425c5
mov dword [ebp - 0x10], 0x8d07f00d
sub dword [ebp - 0x10], 0x8d07f00d
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x4a2a3a66
sub eax, 0x49e80942
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3e449
push 0
call eax
mov ecx, 0x7af01c7f
sub ecx, 0x7aefd264
mov edx, eax
mov esi, 0x27c22e29
add esi, 0xd88115d7
add esi, dword [ebp - 0xc]
mov ebx, 0x1f782ad0
add ebx, 0x6166a312
mov edi, dword [esi]
sub dword [ebp - 8], 0x3bbd2c4e
xor edi, ebx
xor dword [ebp - 4], 0x76d90901
mov dword [edx], edi
sub dword [ebp - 4], 0xbac3d6eb
add edx, 4
add esi, 4
loop 0x42178f
add eax, 0xfdeb4c86
add eax, 0x215ceb9
mov ebx, eax
add eax, 0xdfa8ed13
sub eax, 0xdfa8ed0e
mov ecx, 0x400000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x407fad
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
mov edx, 0x19
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x407fb4
call fcn.0041d970
mov edx, dword [esp + 0x70]
lea ecx, [esp]
call fcn.00409000
lea eax, [esp + 4]
lea eax, [esp + 0x48]
lea ebp, [esp + 4]
mov dword [ebp], 0x44
mov dword [ebp + 0x2c], 1
mov ebx, dword [esp + 0x74]
and ebx, 2
and ebx, ebx
je 0x408003
lea ebp, [esp + 4]
mov word [ebp + 0x30], 0
jmp 0x40800d
lea ebp, [esp + 4]
mov word [ebp + 0x30], 1
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x20]
push 0
call sub.KERNEL32.dll_CreateProcessW
mov dword [esp + 0x58], eax
cmp dword [esp + 0x58], 0
je 0x408096
mov ebx, dword [esp + 0x74]
and ebx, 1
and ebx, ebx
je 0x40808d
lea ebp, [esp + 0x48]
push dword [ebp + 4]
pop eax
mov dword [esp + 0x5c], eax
push 1
call fcn.0040f2c8
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x60]
call sub.KERNEL32.dll_GetExitCodeThread
mov ebx, dword [esp + 0x60]
cmp ebx, 0x103
je 0x40808b
jmp 0x40808d
jmp 0x408065
lea ebp, [esp + 0x48]
mov eax, dword [ebp]
jmp 0x408098
xor eax, eax
push dword [esp]
call fcn.0041d9d0
add esp, 0x64
pop ebx
pop ebp
ret 8

Function at 0x409cdb
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 0x409d73
push edi
push 0x2d8bf60
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x2d8b3a0]
test edi, edi
je 0x409d47
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x409d40
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x2d8b3a0
call fcn.0041d6db
pop ecx
pop ecx
jmp 0x409d42
mov edi, dword [edi]
test edi, edi
jne 0x409d17
pop ebx
mov eax, dword [0x2d88080]
mov esi, eax
inc eax
push 0x10
push 0x2d8b3a0
mov dword [0x2d88080], eax
call fcn.0041d71b
pop ecx
pop ecx
push 0x2d8bf60
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 0x40a06e
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x40a0c3
push dword [esp + 0x10]
push 0x409fed
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x2d8b3a8]
test esi, esi
je 0x40a11c
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x40a0bb
cmp byte [esi + 0x10], 0
je 0x40a0bb
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 0x40a097
jmp 0x40a11c
mov esi, dword [0x2d8b3a8]
test esi, esi
je 0x40a11c
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 0x40a115
cmp byte [esi + 0x11], 0
je 0x40a0f1
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x40a108
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 0x2d8b3a8
call fcn.0041d6db
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x40a0d0
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x40b3d4
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x40b323
push 0x10
push 0x2c
call fcn.0041d07f
push 0
push 0
push 8
mov dword [0x2d8b3bc], eax
call fcn.0041cea6
cmp word [0x2d8b3b4], 0
mov dword [0x2d8bfac], eax
jne 0x40b4b9
push edi
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x40b42c
mov word [0x2d8b3b4], di
jmp 0x40b434
xor eax, eax
mov word [0x2d8b3b4], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x2d8b3d0], eax
test eax, eax
je 0x40b4b8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x2d8b3d0]
mov dword [0x2d8b3c0], eax
call esi
push str.getnameinfo
push dword [0x2d8b3d0]
mov dword [0x2d8b3c4], eax
call esi
push str.WSAStringToAddressA
push dword [0x2d8b3d0]
mov dword [0x2d8b3c8], eax
call esi
cmp dword [0x2d8b3c0], 0
mov dword [0x2d8b3cc], eax
pop esi
je 0x40b4b8
cmp dword [0x2d8b3c4], 0
je 0x40b4b8
cmp dword [0x2d8b3c8], 0
je 0x40b4b8
test eax, eax
je 0x40b4b8
mov dword [0x2d8b3b8], edi
pop edi
add esp, 0x190
ret

Function at 0x40bc10
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x2d8b3d4], 0
jne 0x40bc1e
call fcn.0040bbb0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x2d8b3d8]
call esi
test eax, eax
jne 0x40bc41
call fcn.0040bbb0
push dword [0x2d8b3d8]
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 0x40bc50
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 0x40bcb0
mov ebx, 0x10
test edi, edi
jns 0x40bcb9
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x40bc82
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x40f145
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 0x40f2bb
mov eax, dword [esp + 0x24]
dec eax
je 0x40f29e
dec eax
jne 0x40f2bb
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.0040f0fe
pop ecx
test eax, eax
je 0x40f1fc
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x40f1bf
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x40f29a
dec ebx
je 0x40f296
dec ebx
je 0x40f275
dec ebx
je 0x40f22f
sub ebx, 4
jne 0x40f2bb
test edi, edi
jne 0x40f2bb
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x40f2bb
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 0x40f1bf
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x40f1ba
sub edi, 0
je 0x40f267
dec edi
je 0x40f259
dec edi
je 0x40f24b
dec edi
jne 0x40f2bb
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x40f2bb
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x40f2bb
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x40f2bb
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x40f2bb
sub edi, 0
je 0x40f292
dec edi
je 0x40f28e
dec edi
jne 0x40f2bb
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x40f2bb
push 0x3c
jmp 0x40f2ba
push 0x32
jmp 0x40f2ba
push 0x14
jmp 0x40f2ba
push 5
jmp 0x40f2ba
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40f2b8
cmp eax, 0xa
je 0x40f2b4
cmp eax, 0x5a
jne 0x40f2bb
push 0x28
jmp 0x40f2ba
push 0x1e
jmp 0x40f2ba
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x41050b
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 0x4105a3
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4105a0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x4105a0
lea eax, [esi - 1]
push eax
push dword [0x2d8bfe4]
call fcn.0041cfac
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x4105a2
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x410597
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x41068a
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x41057d
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x410649
push eax
call esi
test al, al
jns 0x410649
push 0x11
call esi
test al, al
js 0x410649
push 0x10
call esi
test al, al
js 0x410649
push 0x12
call esi
test al, al
js 0x410649
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x410649
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x41061d
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x410634
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x410694
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x410694
test ebp, ebp
je 0x41066d
push 0x11
call esi
test al, al
js 0x410665
push 0x10
call esi
test al, al
js 0x410665
push 0x12
call esi
test al, al
jns 0x41066d
push 1
push ebp
call fcn.004106a0
test ebx, ebx
je 0x410681
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x410694
test edi, edi
je 0x410694
mov eax, dword [edi + 8]
jmp 0x410696
and dword [esp + 0x14], 0
jmp 0x4105a2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x410a1b
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 0x410b63
xor ecx, ecx
cmp word [eax], cx
je 0x410b63
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 0x410a74
cmp eax, 3
jne 0x410aae
cmp word [esp + 0xa], 0x3a
jne 0x410aae
cmp eax, 2
jne 0x410a92
lea eax, [esp + 8]
push 0x45e4e8
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 0x410b63
push 0xfffffffffffffffe
pop edi
jmp 0x410b63
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x410ac3
cmp ax, bx
jne 0x410acd
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x410ab6
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x410b0c
test byte [esp + 0x21c], 0x10
je 0x410af3
push 0xfffffffffffffffe
pop edi
jmp 0x410b03
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x410b61
cmp word [esp + 0x10], bp
jne 0x410b1a
cmp word [esp + 0x12], bp
je 0x410b39
cmp word [esp + 0x10], bx
jne 0x410b28
cmp word [esp + 0x12], bx
je 0x410b39
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x410b61
cmp word [esp + 0x12], ax
jne 0x410b61
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x410b4e
test al, 0x10
je 0x410b61
jmp 0x410b5e
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x410b61
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 0x410be5
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x410cba
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 0x410cb9
push esi
mov esi, dword [ebp + 0x10]
push esi
call fcn.00413613
push esi
mov word [ebp - 0x20], ax
call fcn.00413639
push esi
mov word [ebp - 0x1e], ax
call fcn.0041365b
push esi
mov word [ebp - 0x1c], ax
call fcn.0041367c
push esi
mov word [ebp - 0x1a], ax
call fcn.0041369d
push esi
mov word [ebp - 0x18], ax
call fcn.004136be
push esi
mov word [ebp - 0x16], ax
call fcn.004136df
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 0x410c98
lea eax, [ebp - 8]
jmp 0x410ca6
cmp dword [ebp + 0xc], 2
jne 0x410ca3
lea ecx, [ebp - 8]
jmp 0x410ca6
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 0x410d92
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x410e0a
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 0x410deb
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x410de8
cmp ecx, 0x5c
je 0x410de8
cmp ecx, 0x2f
jne 0x410df5
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x410dd5
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x410e0c
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x411480
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 0x4114bc
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 0x4119b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x2d8bffc]
call fcn.0041cfac
mov esi, eax
test esi, esi
je 0x411a2f
cmp dword [esi + 4], 0
je 0x411a00
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.00411ee0
test eax, eax
je 0x4119f4
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 0x411a3a
cmp dword [esp + 8], 0
je 0x411a3a
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 0x411da0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x411ea8
cmp word [edx], 0
je 0x411ea8
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x411dce
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x411e2d
cmp dword [esi + 4], 0
mov ecx, edx
lea edi, [ecx + 2]
je 0x411e00
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411de0
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.004124b0
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411e00
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.004125c0
mov edi, eax
test edi, edi
je 0x411e23
cmp dword [esi + 4], 0
je 0x411e7b
push dword [esp + 0x14]
push edi
push esi
call fcn.004124b0
push edi
push 0
push dword [0x2d8ae4c]
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 [0x2d8ae4c]
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
Function at 0x411ee0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0
jne 0x411f01
push esi
call fcn.00411480
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 0x411f75
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x411f62
dec ecx
je 0x411f4d
sub ecx, 2
je 0x411f3a
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 0x411fba
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 0x411fdb
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