joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473780
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x12c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4739be
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebx + 0x1d4], 0
jne 0x4737cf
push 1
mov ecx, 0x4739d0
mov edx, 0x4739e0
mov eax, dword [0x48c398]
mov eax, dword [eax]
call fcn.00435974
jmp 0x4739a5
cmp dword [ebx + 0x1d8], 0
jne 0x4737f5
push 1
mov ecx, 0x4739d0
mov edx, 0x4739f4
mov eax, dword [0x48c398]
mov eax, dword [eax]
call fcn.00435974
jmp 0x4739a5
mov word [ebx + 0x30], 2
lea eax, [ebp - 0x24]
mov edx, dword [ebx + 0x1d4]
call fcn.0040870c
mov esi, 0x473a0c
push esi
lea eax, [ebp - 0x24]
push eax
call sub.wsock32.dll_getservbyname
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x473846
lea edx, [ebp - 0x12c]
lea eax, [ebp - 0x24]
call fcn.00408830
mov eax, dword [ebp - 0x12c]
call fcn.00408284
push eax
call sub.wsock32.dll_htons
mov word [ebx + 0x32], ax
jmp 0x47384e
mov ax, word [edi + 8]
mov word [ebx + 0x32], ax
lea eax, [ebp - 0x125]
mov edx, dword [ebx + 0x1d8]
call fcn.0040870c
lea eax, [ebp - 0x125]
push eax
call sub.wsock32.dll_inet_addr
mov edi, eax
mov dword [ebx + 0x34], edi
inc edi
jne 0x4738c7
lea eax, [ebp - 0x125]
push eax
call sub.wsock32.dll_gethostbyname
mov edi, eax
mov dword [ebx + 0x28], edi
test edi, edi
jne 0x4738b6
lea eax, [ebp - 0x125]
mov edx, 0x473a18
call fcn.0040870c
push 1
mov ecx, 0x4739d0
lea edx, [ebp - 0x125]
mov eax, dword [0x48c398]
mov eax, dword [eax]
call fcn.00435974
jmp 0x4739a5
mov eax, dword [ebx + 0x28]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebx + 0x34], eax
push esi
call sub.wsock32.dll_getprotobyname
mov edi, eax
mov dword [ebx + 0x2c], edi
movsx eax, word [edi + 8]
push eax
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 0x1dc], esi
test esi, esi
jge 0x473902
mov edx, 0x473a3c
mov eax, ebx
call fcn.00473e38
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4739a5
cmp dword [ebx + 0x1e4], 1
jne 0x473938
push 0x31
push 0x401
mov eax, dword [ebx + 0x228]
push eax
push esi
call sub.wsock32.dll_WSAAsyncSelect
mov esi, eax
test esi, esi
je 0x47394a
mov edx, 0x473a58
mov eax, ebx
call fcn.00473e38
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4739a5
lea eax, [ebx + 0x1e4]
push eax
push 0x8004667e
push esi
call sub.wsock32.dll_ioctlsocket
cmp dword [ebx + 0x1e4], 0
jne 0x47395a
mov eax, ebx
call fcn.00474f58
push 0x10
lea eax, [ebx + 0x30]
push eax
mov eax, dword [ebx + 0x1dc]
push eax
call sub.wsock32.dll_connect
mov esi, eax
mov dword [ebp - 4], esi
cmp dword [ebx + 0x1e4], 0
jne 0x473981
mov eax, ebx
call fcn.00474f88
test esi, esi
je 0x4739a5
call sub.wsock32.dll_WSAGetLastError
mov esi, eax
cmp esi, 0x2733
je 0x4739a5
mov edx, 0x473a70
mov eax, ebx
call fcn.00473e38
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4739c5
lea eax, [ebp - 0x12c]
call fcn.00403a2c
ret
Function at 0x473a7c
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x24], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x473bf5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 0x1d4], 0
jne 0x473ac0
push 1
mov ecx, 0x473c04
mov edx, 0x473c14
mov eax, dword [0x48c398]
mov eax, dword [eax]
call fcn.00435974
jmp 0x473bdf
mov word [ebx + 0x30], 2
xor eax, eax
mov dword [ebx + 0x34], eax
mov esi, 0x473c28
lea eax, [ebp - 0x20]
mov edx, dword [ebx + 0x1d4]
call fcn.0040870c
push esi
lea eax, [ebp - 0x20]
push eax
call sub.wsock32.dll_getservbyname
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x473b10
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x20]
call fcn.00408830
mov eax, dword [ebp - 0x24]
call fcn.00408284
push eax
call sub.wsock32.dll_htons
mov word [ebx + 0x32], ax
jmp 0x473b18
mov ax, word [edi + 8]
mov word [ebx + 0x32], ax
push esi
call sub.wsock32.dll_getprotobyname
mov edi, eax
mov dword [ebx + 0x2c], edi
movsx eax, word [edi + 8]
push eax
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 0x1e0], esi
test esi, esi
jge 0x473b4e
mov edx, 0x473c34
mov eax, ebx
call fcn.00473e38
jmp 0x473bdf
push 0x10
lea eax, [ebx + 0x30]
push eax
mov eax, dword [ebx + 0x1e0]
push eax
call sub.wsock32.dll_bind
test eax, eax
je 0x473b72
mov edx, 0x473c44
mov eax, ebx
call fcn.00473e38
jmp 0x473bdf
push 5
mov eax, dword [ebx + 0x1e0]
push eax
call sub.wsock32.dll_listen
test eax, eax
je 0x473b92
mov edx, 0x473c54
mov eax, ebx
call fcn.00473e38
jmp 0x473bdf
cmp dword [ebx + 0x1e4], 1
jne 0x473bc7
push 0x29
push 0x401
mov eax, dword [ebx + 0x228]
push eax
mov eax, dword [ebx + 0x1e0]
push eax
call sub.wsock32.dll_WSAAsyncSelect
test eax, eax
je 0x473bdf
mov edx, 0x473c64
mov eax, ebx
call fcn.00473e38
jmp 0x473bdf
lea eax, [ebx + 0x1e4]
push eax
push 0x8004667e
mov eax, dword [ebx + 0x1e0]
push eax
call sub.wsock32.dll_ioctlsocket
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473bfc
lea eax, [ebp - 0x24]
call fcn.00403a2c
ret

Function at 0x473d7c
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
cmp dword [ebx + 0x1e4], 1
jne 0x473da6
push 0
push 0x401
mov eax, dword [ebx + 0x228]
push eax
mov eax, dword [ebx + 0x1dc]
push eax
call sub.wsock32.dll_WSAAsyncSelect
call sub.wsock32.dll_WSAIsBlocking
test eax, eax
je 0x473db4
call sub.wsock32.dll_WSACancelBlockingCall
push 2
mov eax, dword [ebx + 0x1dc]
push eax
call sub.wsock32.dll_shutdown
mov word [ebp - 4], 1
mov word [ebp - 2], 0
push 4
lea eax, [ebp - 4]
push eax
push 0x80
push 0xffff
mov eax, dword [ebx + 0x1dc]
push eax
call sub.wsock32.dll_setsockopt
mov eax, dword [ebx + 0x1dc]
push eax
call sub.wsock32.dll_closesocket
test eax, eax
je 0x473e06
mov edx, 0x473e1c
mov eax, ebx
call fcn.00473e38
mov dword [ebx + 0x1dc], 0xffffffff
pop ebx
pop ecx
pop ebp
ret
Function at 0x475d70
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
mov edi, dword [ebx + 0x2c]
cmp edi, 0xffffffff
je 0x475dad
push 0
lea eax, [esp + 8]
push eax
push 1
lea eax, [esp + 0xc]
push eax
push edi
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x475da3
mov al, byte [esp]
xor edx, edx
mov dword [esi], edx
jmp 0x475db5
mov al, 0x3f
mov dword [esi], 4
jmp 0x475db5
mov al, 0x3f
mov dword [esi], 1
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x47e17c
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47e353
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x334]
call fcn.004416cc
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00403a80
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x330]
call fcn.004416cc
mov edx, dword [ebp - 4]
lea eax, [esi + 4]
call fcn.00403a80
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x32c]
call fcn.004416cc
mov edx, dword [ebp - 4]
lea eax, [esi + 8]
call fcn.00403a80
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x300]
call fcn.004416cc
mov edx, dword [ebp - 4]
lea eax, [esi + 0xc]
call fcn.00403a80
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x304]
call fcn.004416cc
mov edx, dword [ebp - 4]
lea eax, [esi + 0x10]
call fcn.00403a80
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x308]
call fcn.004416cc
mov edx, dword [ebp - 4]
lea eax, [esi + 0x14]
call fcn.00403a80
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x348]
call fcn.004416cc
mov edx, dword [ebp - 4]
lea eax, [esi + 0x18]
call fcn.00403a80
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x34c]
call fcn.004416cc
mov edx, dword [ebp - 4]
lea eax, [esi + 0x1c]
call fcn.00403a80
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x30c]
call fcn.004416cc
mov edx, dword [ebp - 4]
lea eax, [esi + 0x20]
call fcn.00403a80
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x310]
call fcn.004416cc
mov edx, dword [ebp - 4]
lea eax, [esi + 0x24]
call fcn.00403a80
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x328]
call fcn.004416cc
mov edx, dword [ebp - 4]
lea eax, [esi + 0x28]
call fcn.00403a80
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x324]
call fcn.004416cc
mov edx, dword [ebp - 4]
lea eax, [esi + 0x2c]
call fcn.00403a80
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x33c]
call fcn.004416cc
mov edx, dword [ebp - 4]
lea eax, [esi + 0x30]
call fcn.00403a80
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x314]
call fcn.004416cc
mov edx, dword [ebp - 4]
lea eax, [esi + 0x34]
call fcn.00403a80
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x318]
call fcn.004416cc
mov edx, dword [ebp - 4]
lea eax, [esi + 0x38]
call fcn.00403a80
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x31c]
call fcn.004416cc
mov edx, dword [ebp - 4]
lea eax, [esi + 0x3c]
call fcn.00403a80
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x320]
call fcn.004416cc
mov edx, dword [ebp - 4]
lea eax, [esi + 0x40]
call fcn.00403a80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e35a
lea eax, [ebp - 4]
call fcn.00403a2c
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402fd7
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x40302c
push dword [esp + 0x10]
push 0x402f56
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x40fc40]
test esi, esi
je 0x403085
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x403024
cmp byte [esi + 0x10], 0
je 0x403024
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 0x403000
jmp 0x403085
mov esi, dword [0x40fc40]
test esi, esi
je 0x403085
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 0x40307e
cmp byte [esi + 0x11], 0
je 0x40305a
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x403071
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 0x40fc40
call fcn.0040c1d4
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x403039
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x4040ce
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x414090]
call fcn.0040ba6a
mov ebx, eax
test ebx, ebx
je 0x404132
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x4040f7
push dword [esp + 0xc]
push ebx
call eax
jmp 0x404132
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.0040c4a0
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.0040c520
pop edi
pop esi
pop ebx
ret 8

Function at 0x4052fa
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov ebx, eax
test ebx, ebx
je 0x405374
push 9
call esi
test al, al
jns 0x405374
push 0x11
call esi
test al, al
js 0x405374
push 0x10
call esi
test al, al
js 0x405374
push 0x12
call esi
test al, al
js 0x405374
push 5
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.DLL_GetClassNameW]
push 4
lea eax, [ebp - 0x10]
push str.Rich
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x405374
push eax
push eax
push 0x44e
push ebx
call dword [sym.imp.USER32.DLL_SendMessageW]
test eax, 0x800
jne 0x405374
xor eax, eax
jmp 0x4053f5
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40539c
push 0x11
call esi
test al, al
js 0x405394
push 0x10
call esi
test al, al
js 0x405394
push 0x12
call esi
test al, al
jns 0x40539c
push 1
push edi
call fcn.004053fd
mov esi, dword [sym.imp.USER32.DLL_GetPropW]
test ebx, ebx
je 0x4053b2
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x4053f2
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x4053f2
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x4053f2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x4053f2
lea eax, [esi - 1]
push eax
push dword [0x41409c]
call fcn.0040ba6a
test eax, eax
je 0x4053f2
mov eax, dword [eax + 8]
jmp 0x4053f4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405e21
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x40fd3c], eax
test eax, eax
je 0x405e4f
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x40fd38], eax
lea eax, [ebp - 0x114]
mov dword [0x40fd40], 1
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x405eb1
cmp dword [ebp - 0x104], 1
jne 0x405e86
and dword [0x40fd40], 0
jmp 0x405ec9
cmp dword [ebp - 0x104], 2
jne 0x405eb1
cmp dword [ebp - 0x110], 5
jb 0x405e7d
jne 0x405eb1
mov eax, dword [ebp - 0x10c]
neg eax
sbb eax, eax
and eax, dword [0x40fd40]
mov dword [0x40fd40], eax
jmp 0x405eb6
mov eax, dword [0x40fd40]
test eax, eax
je 0x405ec9
call fcn.00405bbb
neg eax
sbb eax, eax
and dword [0x40fd40], eax
mov esp, ebp
pop ebp
ret

Function at 0x4073f0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x407422
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40741d
cmp dword [esp + 0xc], esi
je 0x407439
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret

Function at 0x4099f0
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 0x409a2c
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 0x409c80
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x409d74
cmp word [edx], 0
je 0x409d74
mov ecx, dword [esp + 0x10]
push esi
cmp ecx, 0x19
jne 0x409d0d
mov esi, dword [esp + 0xc]
mov ecx, edx
push edi
cmp dword [esi + 4], 0
lea edi, [ecx + 2]
je 0x409ce0
jmp 0x409cc0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409cc0
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.00409db0
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409ce0
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 + 0x10]
setne al
push ecx
dec eax
and eax, 0xfde9
push edx
push eax
call fcn.00409ec0
mov esi, eax
test esi, esi
je 0x409d6b
mov eax, dword [esp + 0xc]
cmp dword [eax + 4], 0
je 0x409d48
push dword [esp + 0x10]
push esi
push eax
call fcn.00409db0
mov dword [esp + 4], eax
jmp 0x409d5c
push 0
lea ecx, [esp + 8]
push ecx
push dword [esp + 0x18]
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push 0
push dword [0x40f9c4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc

Function at 0x409db0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 0
cmp dword [esi + 0x1c], 0
jne 0x409eb7
cmp dword [esi + 0x14], 1
jne 0x409dfb
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
push 1
neg eax
cdq
push ecx
push eax
push dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [esp + 0x20]
cmp eax, edi
jle 0x409e78
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x409e63
dec eax
je 0x409e4c
sub eax, 2
je 0x409e37
push edi
push dword [esp + 0x20]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov ax, word [eax]
mov word [ecx], ax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov al, byte [eax]
mov byte [ecx], al
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
push esi
call fcn.004099f0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x409ea5
push 0
lea eax, [esp + 0xc]
push eax
push edi
push dword [esp + 0x28]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0xc
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
push edi
push dword [esp + 0x20]
add ecx, eax
jmp 0x409e21
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
Function at 0x4019d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f29a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5c0078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.0041e46f
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x401a90
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.00525675
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x5be084
push eax
call fcn.005276a4
push edi
push esi
call fcn.0041e7e5
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004351b3
mov esp, ebp
pop ebp
ret 4

Function at 0x406090
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f3c6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5c0078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004353e8
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0041e6e2
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409f90
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x550146
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5c0078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov edx, dword [ebp + 8]
lea eax, [esi + 0x30]
mov dword [esi + 4], 0xffffffff
xorps xmm0, xmm0
movups xmmword [esi + 8], xmm0
mov dword [ebp - 0x18], esi
movups xmmword [esi + 0x18], xmm0
movq qword [esi + 0x28], xmm0
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x409ff4
mov eax, dword [eax]
mov byte [eax], 0
lea eax, [esi + 0x4c]
mov dword [ebp - 4], 0
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x40a019
mov ecx, dword [eax]
jmp 0x40a01b
mov ecx, eax
add eax, 0x24
mov byte [ecx], 0
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x40a037
mov eax, dword [eax]
mov byte [eax], 0
push edx
push 4
push esi
mov byte [ebp - 4], 1
call fcn.0052fd8a
add esp, 0xc
mov ecx, esi
call fcn.0040a0c0
mov ecx, esi
call fcn.0040a230
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ecx, esi
mov dword [esi + 0x48], eax
call fcn.0040a2d0
mov al, byte [esi]
push 0
push 0x80
push 3
push 0
push 3
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x18]
push 0xc0000000
push eax
mov dword [ebp - 0x18], 0x5c2e5c5c
mov word [ebp - 0x13], 0x3a
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 4], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004351b3
mov esp, ebp
pop ebp
ret 4