joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003e9fc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x101e2a54]
call fcn.1004f6ff
mov esi, eax
test esi, esi
je 0x1003ead8
cmp dword [ebp + 0xc], 0
je 0x1003ea48
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x1003ea39
cmp dword [esi + 0x1c], 0
jne 0x1003ea39
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x1003ead8
test byte [ebp + 0x10], 3
push ebx
push 4
pop ebx
je 0x1003ea66
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.1003f6ac
cmp dword [esi + 0x3c], 0xffffffff
je 0x1003ea8a
xor eax, eax
cmp dword [esi + 0x3c], 0x1000000
sete al
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x1003eaa2
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
mov eax, dword [ebp + 8]
test dword [ebp + 0x10], 0x2000000
je 0x1003eabd
test eax, eax
je 0x1003eab3
push 8
jmp 0x1003eac3
push 7
test ecx, ecx
pop eax
cmovne ebx, eax
jmp 0x1003eace
test eax, eax
je 0x1003eac6
push 3
pop ebx
jmp 0x1003eace
xor ebx, ebx
test ecx, ecx
setne bl
inc ebx
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x1003eb9a
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 0x1003ec30
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x1003ec2d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x1003ec2d
lea eax, [esi - 1]
push eax
push dword [0x101e2a54]
call fcn.1004f6ff
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x1003ec2f
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x1003ec1d
mov edx, 0xfa01
cmp word [ecx], dx
je 0x1003ec28
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x1003ec0d
jmp 0x1003ec2d
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x1003ecd6
push eax
call esi
test al, al
jns 0x1003ecd6
push 0x11
call esi
test al, al
js 0x1003ecd6
push 0x10
call esi
test al, al
js 0x1003ecd6
push 0x12
call esi
test al, al
js 0x1003ecd6
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x1003ecd6
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.1001dfb6
add esp, 0xc
test eax, eax
je 0x1003ecaa
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.1001dfb6
add esp, 0xc
test eax, eax
jne 0x1003ecc1
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x1003ed17
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.10172bb3
pop ecx
pop ecx
test eax, eax
je 0x1003ed17
test ebp, ebp
je 0x1003ecfa
push 0x11
call esi
test al, al
js 0x1003ecf2
push 0x10
call esi
test al, al
js 0x1003ecf2
push 0x12
call esi
test al, al
jns 0x1003ecfa
push 1
push ebp
call fcn.1003ed23
test ebx, ebx
je 0x1003ed0e
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x1003ed17
test edi, edi
je 0x1003ed17
mov eax, dword [edi + 8]
jmp 0x1003ed19
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x1003fc95
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x1003fd3e
cmp dword [ebp + 0x10], esi
je 0x1003fd3e
push edi
push dword [ebp + 8]
push dword [0x101e2a8c]
call fcn.1004f6ff
mov edi, eax
test edi, edi
je 0x1003fd3d
or dword [edi + 0x28], 0xffffffff
or dword [edi + 0x2c], 0xffffffff
cmp dword [ebp + 0x14], esi
je 0x1003fd2c
push 0xc
push esi
push dword [0x101df4f0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 0x10]
mov dword [ebp + 8], eax
mov dword [eax], edi
add eax, 4
push eax
call fcn.1004fd60
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
lea eax, [edi + 8]
push eax
call fcn.1004fd60
lea eax, [ebp + 0x10]
push eax
push esi
push edi
push 0x1003fed6
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1003fd23
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
jmp 0x1003fd3d
push edi
call fcn.1003fc6f
pop ecx
jmp 0x1003fd3d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.1003fd45
add esp, 0xc
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x10
Function at 0x1003fd45
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1048
call fcn.101591a0
push ebx
push ebp
push esi
push edi
push dword [esp + 0x1060]
xor edi, edi
mov ebx, edi
call fcn.10158e50
mov esi, dword [esp + 0x105c]
mov ebp, eax
push 0x101a5e68
push str.TYPE
push esi
mov dword [esp + 0x1c], ebp
call fcn.10040ce8
test eax, eax
je 0x1003feb1
push 0x101a5e74
push esi
call fcn.10040beb
test eax, eax
je 0x1003feb1
lea eax, [esp + 0x20]
push eax
push esi
call fcn.10040e5d
test eax, eax
je 0x1003feb1
push ebp
push str.RETR
push esi
call fcn.10040ce8
test eax, eax
je 0x1003fe9c
push str.125_150
push esi
call fcn.10040beb
test eax, eax
je 0x1003fe9c
cmp dword [esi + 0x1c], edi
jne 0x1003fded
lea eax, [esp + 0x20]
push eax
push esi
call fcn.10040de0
test eax, eax
je 0x1003fe9c
lea eax, [esp + 0x20]
xor ebx, ebx
push eax
inc ebx
push esi
mov dword [esp + 0x20], ebx
call fcn.10040fde
test eax, eax
je 0x1003fe9c
push edi
push pe_nt_image_headers32
push 2
push edi
push ebx
push 0xc0000000
push dword [esp + 0x107c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
test ebp, ebp
je 0x1003fe98
push 0x1000
lea eax, [esp + 0x5c]
mov dword [esi + 0x28], edi
push eax
lea eax, [esp + 0x28]
mov dword [esi + 0x2c], edi
push eax
mov dword [esi + 0x30], edi
call fcn.10040bff
mov dword [esp + 0x14], eax
test eax, eax
je 0x1003fe8f
mov ebx, eax
cmp dword [esi + 0x30], edi
jne 0x1003fe8b
push edi
lea eax, [esp + 0x20]
push eax
push ebx
lea eax, [esp + 0x64]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, ebx
cdq
add dword [esi + 0x28], eax
lea eax, [esp + 0x58]
push 0x1000
adc dword [esi + 0x2c], edx
push eax
lea eax, [esp + 0x28]
push eax
call fcn.10040bff
mov ebx, eax
test ebx, ebx
jne 0x1003fe50
mov ebx, dword [esp + 0x18]
push ebp
mov edi, ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push esi
call fcn.10040fbc
test ebx, ebx
je 0x1003feb1
push esi
call fcn.10040cbb
push ebp
call fcn.10158e40
test edi, edi
je 0x1003febf
push 0xfffffffffffffffd
jmp 0x1003fec1
push 0xfffffffffffffffe
pop eax
mov dword [esi + 0x28], eax
mov eax, edi
or dword [esi + 0x2c], 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1048
ret
Function at 0x1004062f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x100406d8
cmp dword [ebp + 0xc], esi
je 0x100406d8
push edi
push dword [ebp + 8]
push dword [0x101e2a8c]
call fcn.1004f6ff
mov edi, eax
test edi, edi
je 0x100406d7
or dword [edi + 0x28], 0xffffffff
or dword [edi + 0x2c], 0xffffffff
cmp dword [ebp + 0x14], esi
je 0x100406c6
push 0xc
push esi
push dword [0x101df4f0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
mov dword [eax], edi
add eax, 4
push eax
call fcn.1004fd60
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
lea eax, [edi + 8]
push eax
call fcn.1004fd60
lea eax, [ebp + 0x10]
push eax
push esi
push edi
push 0x10040851
push 0x4000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x100406bd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
jmp 0x100406d7
push edi
call fcn.10040609
pop ecx
jmp 0x100406d7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.100406df
add esp, 0xc
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x10
Function at 0x100406df
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1040
call fcn.101591a0
push ebx
push ebp
push esi
push edi
push dword [esp + 0x105c]
xor edi, edi
mov dword [esp + 0x18], edi
call fcn.10158e50
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push SysReAllocStringLen
push dword [esp + 0x1070]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [esp + 0x1054]
mov ebx, eax
test ebx, ebx
je 0x1004082c
push 0x101a5e68
push str.TYPE
push esi
call fcn.10040ce8
test eax, eax
je 0x10040825
push 0x101a5e74
push esi
call fcn.10040beb
test eax, eax
je 0x10040825
lea eax, [esp + 0x18]
push eax
push esi
call fcn.10040e5d
test eax, eax
je 0x10040825
push ebp
push str.STOR
push esi
call fcn.10040ce8
test eax, eax
je 0x1004080d
push str.125_150
push esi
call fcn.10040beb
test eax, eax
je 0x1004080d
cmp dword [esi + 0x1c], edi
jne 0x100407a4
lea eax, [esp + 0x18]
push eax
push esi
call fcn.10040de0
test eax, eax
je 0x1004080d
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 1
push eax
push esi
call fcn.10040fde
test eax, eax
je 0x1004080d
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
push edi
lea eax, [esp + 0x14]
push eax
push 0x1000
lea eax, [esp + 0x5c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x10], edi
jle 0x1004080a
push dword [esp + 0x10]
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.10040d23
test eax, eax
je 0x1004080d
mov eax, dword [esp + 0x10]
cdq
add dword [esi + 0x28], eax
adc dword [esi + 0x2c], edx
cmp dword [esi + 0x30], edi
je 0x100407c4
jmp 0x1004080d
xor edi, edi
inc edi
lea eax, [esp + 0x18]
push eax
push esi
call fcn.10040fbc
cmp dword [esp + 0x14], 0
je 0x10040825
push esi
call fcn.10040cbb
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.10158e40
test edi, edi
je 0x1004083a
push 0xfffffffffffffffd
jmp 0x1004083c
push 0xfffffffffffffffe
pop eax
mov dword [esi + 0x28], eax
mov eax, edi
or dword [esi + 0x2c], 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1040
ret
Function at 0x10040e5d
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc28
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ebx
cmp dword [esi + 0x1c], ebx
je 0x10040f40
push section..rdata
push 0x101a5f30
push esi
call fcn.10040ce8
push 0x400
lea eax, [ebp - 0x428]
push eax
push 0x101a5f38
push esi
call fcn.10040c15
test eax, eax
je 0x10040fb3
mov cl, byte [ebp - 0x425]
lea esi, [ebp - 0x425]
test cl, cl
je 0x10040fb3
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x10040ee5
mov eax, esi
cmp cl, 0x39
jg 0x10040ed2
inc esi
mov cl, byte [esi]
cmp cl, 0x30
jge 0x10040ec5
push eax
mov byte [esi], bl
call fcn.100224f9
mov dword [ebp + edi*4 - 0x18], eax
inc edi
pop ecx
cmp edi, 6
je 0x10040ef5
inc esi
mov cl, byte [esi]
test cl, cl
jne 0x10040ebc
cmp edi, 6
jne 0x10040fb3
push dword [ebp - 0xc]
lea eax, [ebp - 0xc28]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0x101a5f3c
push eax
call fcn.1003d7d0
mov eax, dword [ebp - 8]
add esp, 0x18
shl eax, 8
add eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0xc28]
push eax
call fcn.10041682
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
test eax, eax
je 0x10040fb3
xor ebx, ebx
mov dword [ecx + 0x20], 5
inc ebx
jmp 0x10040fb3
push ebx
push 0xffffffffffffffff
call fcn.10041bd5
mov dword [esi + 8], eax
test eax, eax
je 0x10040fb3
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0x10
push ecx
lea ecx, [ebp - 0x28]
push ecx
push dword [eax]
call dword [sym.imp.WS2_32.dll_getsockname]
push dword [ebp - 0x26]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
movzx eax, cl
push eax
shr ecx, 8
lea eax, [ebp - 0x428]
push ecx
push str.127_0_0_1__d__d
push eax
call fcn.100334fa
add esp, 0x10
lea eax, [ebp - 0x428]
push eax
push 0x101a5f64
push esi
call fcn.10040ce8
push 0x101a5e74
push esi
call fcn.10040beb
xor ecx, ecx
inc ecx
test eax, eax
cmovne ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8

Function at 0x10041108
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push fcn.1004105b
push 0x10
push 0x2c
call fcn.1004f7d1
push 0
push 0
push 8
mov dword [0x101e117c], eax
call fcn.1004f132
cmp word [0x101e1174], 0
mov dword [0x101e2a94], eax
jne 0x100411e8
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 [0x101e1174], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x101e1180], eax
test eax, eax
je 0x100411e8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x101a5f94
push eax
call esi
push 0x101a5fa0
push dword [0x101e1180]
mov dword [0x101e1164], eax
call esi
push str.getnameinfo
push dword [0x101e1180]
mov dword [0x101e1168], eax
call esi
push str.WSAStringToAddressA
push dword [0x101e1180]
mov dword [0x101e116c], eax
call esi
cmp dword [0x101e1164], 0
mov ecx, eax
mov dword [0x101e1170], ecx
pop esi
je 0x100411e8
cmp dword [0x101e1168], 0
je 0x100411e8
cmp dword [0x101e116c], 0
je 0x100411e8
mov eax, dword [0x101e1178]
xor edx, edx
inc edx
test ecx, ecx
cmovne eax, edx
mov dword [0x101e1178], eax
add esp, 0x190
ret
Function at 0x100416b9
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ebx
cmp dword [esi], 1
jne 0x100416df
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
jmp 0x1004171b
cmp dword [esi + 0x2c], ebx
je 0x1004171b
mov edi, dword [ebp + 0x10]
cmp edi, dword [esi + 0x30]
cmovg edi, dword [esi + 0x30]
push edi
push dword [esi + 0x34]
push dword [ebp + 0xc]
call fcn.10025090
sub dword [esi + 0x30], edi
add esp, 0xc
add dword [esi + 0x34], edi
cmp dword [esi + 0x30], ebx
jne 0x1004171b
push dword [esi + 0x2c]
push ebx
push dword [0x101df4f0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0x2c], ebx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x10041aba
Capabilities:
Set socket configuration

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
push edi
push esi
push dword [0x101e117c]
call fcn.1004f73d
mov edi, eax
test edi, edi
je 0x10041bcc
cmp dword [esp + 0x18], 0xffff
push ebp
ja 0x10041bb9
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
and edx, 0x10000000
push 0x17
pop eax
and ecx, 0xefffffff
mov dword [esp + 0x18], edx
test edx, edx
push 2
cmove ecx, dword [esp + 0x24]
pop ebp
cmove eax, ebp
xor edx, edx
inc edx
test ecx, ecx
push ebx
cmove ecx, edx
push ecx
push eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.WS2_32.dll_socket]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x10041bb9
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push eax
push 0x8004667e
push ebp
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jle 0x10041bb2
push dword [esp + 0x1c]
lea eax, [edi + 4]
push dword [esp + 0x28]
push eax
push eax
xor eax, eax
cmp dword [esp + 0x28], eax
push ebp
setne al
push eax
call fcn.10041be7
test eax, eax
je 0x10041bb2
mov eax, dword [esp + 0x20]
cmp eax, 1
jne 0x10041b92
push 0x64
push ebp
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
push 1
pop eax
cmove ebx, eax
test ebx, ebx
je 0x10041bb2
mov eax, dword [esp + 0x20]
mov word [edi + 0x20], ax
mov ebx, edi
xor eax, eax
mov dword [edi], ebp
cmp dword [esp + 0x18], eax
setne al
cmp esi, 0xffffffff
mov word [edi + 0x22], ax
cmove esi, edi
mov dword [edi + 0x24], esi
jmp 0x10041bcb
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, 0xffffffff
cmove esi, edi
push esi
push dword [0x101e117c]
call fcn.1004f6b0
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret 0x10

Function at 0x10041c97
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
cmp eax, 0xffffffff
jne 0x10041cba
lea eax, [ebp + 0xc]
push eax
push 0x4004667f
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10041d03
push 2
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x10041cf9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2745
je 0x10041cf4
cmp eax, 0x2746
je 0x10041cf4
cmp eax, 0x2749
je 0x10041cf4
cmp eax, 0x274a
jne 0x10041d03
push 0xfffffffffffffffe
pop esi
jmp 0x10041d03
push 0xfffffffffffffffe
test eax, eax
mov esi, eax
pop ecx
cmove esi, ecx
mov eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x10041e11
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 0x10041f7a
mov eax, dword [esp + 0x1c]
sub eax, 1
je 0x10041f5d
sub eax, 1
jne 0x10041f7a
lea eax, [esp + 0x120]
xor edi, edi
push eax
call fcn.10041dca
pop ecx
test eax, eax
je 0x10041e88
cmp byte [esp + 0x23a], 1
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x128]
mov ebp, dword [esp + 0x12c]
jne 0x10041ebe
inc edi
jmp 0x10041ebe
lea eax, [esp + 0x23c]
mov dword [esp + 0x23c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10041f7a
mov ecx, dword [esp + 0x10]
xor edx, edx
mov eax, dword [esp + 0x14]
inc edx
cmp byte [esp + 0x356], dl
cmove edi, edx
sub ecx, 3
je 0x10041f59
sub ecx, 1
je 0x10041f55
sub ecx, 1
je 0x10041f37
sub ecx, 1
je 0x10041efb
sub ecx, 4
jne 0x10041f7a
test eax, eax
jne 0x10041f7a
cmp ebp, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x10041f7a
sub eax, 0
je 0x10041f2a
sub eax, 1
je 0x10041f1d
sub eax, 1
je 0x10041f16
sub eax, 1
jne 0x10041f7a
push 0x69
pop esi
push 0x64
jmp 0x10041f2f
push 0x5a
pop esi
push 0x5f
jmp 0x10041f22
push 0x50
pop esi
push 0x55
test edi, edi
pop eax
cmove esi, eax
jmp 0x10041f7a
push 0x4b
pop esi
push 0x46
test edi, edi
pop eax
cmovne esi, eax
jmp 0x10041f7a
sub eax, 0
je 0x10041f51
sub eax, 1
je 0x10041f4d
sub eax, 1
jne 0x10041f7a
push 0x41
pop esi
push 0x3c
jmp 0x10041f2f
push 0x3c
jmp 0x10041f79
push 0x32
jmp 0x10041f79
push 0x14
jmp 0x10041f79
push 5
jmp 0x10041f79
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10041f77
cmp eax, 0xa
je 0x10041f73
cmp eax, 0x5a
jne 0x10041f7a
push 0x28
jmp 0x10041f79
push 0x1e
jmp 0x10041f79
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x34c
ret
Function at 0x10041f96
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 0x100420de
xor ecx, ecx
cmp word [eax], cx
je 0x100420de
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call fcn.1016fbc8
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call fcn.1001c895
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x10041fef
cmp eax, 3
jne 0x10042029
cmp word [esp + 0xa], 0x3a
jne 0x10042029
cmp eax, 2
jne 0x1004200d
lea eax, [esp + 8]
push 0x1019e2d4
push eax
call fcn.1016fc08
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x100420de
push 0xfffffffffffffffe
pop edi
jmp 0x100420de
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x1004203e
cmp ax, bx
jne 0x10042048
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x10042031
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x10042087
test byte [esp + 0x21c], 0x10
je 0x1004206e
push 0xfffffffffffffffe
pop edi
jmp 0x1004207e
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x100420dc
cmp word [esp + 0x10], bp
jne 0x10042095
cmp word [esp + 0x12], bp
je 0x100420b4
cmp word [esp + 0x10], bx
jne 0x100420a3
cmp word [esp + 0x12], bx
je 0x100420b4
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x100420dc
cmp word [esp + 0x12], ax
jne 0x100420dc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x100420c9
test al, 0x10
je 0x100420dc
jmp 0x100420d9
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x100420dc
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 0x10042132
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x1004215b
test byte [esp + 8], 2
je 0x1004214f
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 0x1004215d
xor eax, eax
ret 8

Function at 0x100421d1
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x100421f1
cmp dword [esp + 8], 0
je 0x100421f1
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x100421f3
xor eax, eax
ret 8
Function at 0x10042270
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x10042289
push dword [0x101e2a9c]
call fcn.1004f1ea
pop edi
ret 4
push esi
push edi
push dword [0x101e2a9c]
call fcn.1004f6ff
mov esi, eax
test esi, esi
je 0x100422f3
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x100422df
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x100422ce
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
push dword [esi + 4]
push 0
push dword [0x101df4f0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0x101e2a9c]
call fcn.1004f6b0
pop esi
pop edi
ret 4

Function at 0x10042300
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 0x1004233c
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 0x100428c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x101e2a9c]
call fcn.1004f6ff
mov esi, eax
test esi, esi
je 0x1004293f
cmp dword [esi + 4], 0
je 0x10042910
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.10042ad0
test eax, eax
je 0x10042904
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 0x1004294a
cmp dword [esp + 8], 0
je 0x1004294a
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 0x100429c0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x10042a25
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x10042a1d
push dword [esp + 0x10]
push dword [0x101e2a9c]
call fcn.1004f6ff
test eax, eax
je 0x10042a13
cmp dword [eax + 4], 0
je 0x10042a02
push edi
push esi
push eax
call fcn.10042c10
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