joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59d218
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x59d3e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 1
mov eax, dword [0x5fe374]
cmp dword [eax], 2
je 0x59d3c4
xor eax, eax
push ebp
push 0x59d3ba
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x444c24]
call fcn.00444d90
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x59d3a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000001
mov eax, dword [ebp - 0xc]
call fcn.00444e30
xor ecx, ecx
mov edx, 0x59d400
mov eax, dword [ebp - 0xc]
call fcn.00444e98
test al, al
je 0x59d393
mov edx, 0x59d420
mov eax, dword [ebp - 0xc]
call fcn.004454bc
test eax, eax
je 0x59d393
push 0xff
lea eax, [ebp - 0x115]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
lea edx, [ebp - 0x11c]
lea eax, [ebp - 0x115]
call fcn.0040b9d8
mov eax, dword [ebp - 0x11c]
lea ecx, [ebp - 0x10]
mov edx, 0x59d440
call fcn.00445dd0
mov eax, dword [ebp - 0x10]
call fcn.00405538
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x59d393
xor eax, eax
push ebp
push 0x59d38c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x59d450
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov ebx, eax
mov eax, dword [0x5fdeb8]
cmp byte [eax], 3
jne 0x59d342
mov eax, dword [0x5fddc0]
mov eax, dword [eax]
cmp byte [eax + 0x484], 0
je 0x59d342
push 0xffffffffffffffff
call sub.user32.dll_ShowCursor
mov eax, dword [0x5fddc0]
mov eax, dword [eax]
call fcn.00457974
push eax
call ebx
mov byte [ebp - 1], al
mov eax, dword [0x5fdeb8]
cmp byte [eax], 3
jne 0x59d375
mov eax, dword [0x5fddc0]
mov eax, dword [eax]
cmp byte [eax + 0x484], 0
je 0x59d375
push 0
call sub.user32.dll_ShowCursor
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59d393
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FreeLibrary
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59d3b0
mov eax, dword [ebp - 0xc]
call fcn.0040411c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59d3ec
lea eax, [ebp - 0x11c]
call fcn.0040504c
lea eax, [ebp - 0x10]
call fcn.0040504c
ret
Function at 0x5be318
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, eax
push 1
push 0x5be368
push 0x5be368
mov eax, ebx
call fcn.00405538
push eax
push 0x5be36c
mov eax, dword [0x5fe0a0]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
jbe 0x5be352
xor eax, eax
call fcn.005e5a00
pop ebx
ret
mov eax, dword [0x5fddc0]
mov eax, dword [eax]
mov eax, dword [eax + 0x400]
call fcn.005e5a00
pop ebx
ret

Function at 0x5e259c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040504c
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x5e2630
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x5e262b
xor eax, eax
push ebp
push 0x5e2624
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x104
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10d]
push eax
push 0
push 0
push 0x5e266c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x5e260d
mov edx, ebx
lea eax, [ebp - 0x10d]
call fcn.0040b9d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e262b
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5e2670
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffc0
mov edi, edx
mov esi, eax
xor ebx, ebx
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x3c
call fcn.004038a8
mov dword [esp + 4], 0x3c
mov dword [esp + 8], 0x40
mov eax, dword [0x5fe0a0]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [esp + 0xc], eax
mov eax, esi
call fcn.00405538
mov dword [esp + 0x14], eax
mov eax, edi
call fcn.00405538
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x20], eax
lea eax, [esp + 4]
push eax
call sub.shell32.dll_ShellExecuteExA
test eax, eax
je 0x5e270b
mov eax, dword [0x5fe0a0]
mov eax, dword [eax]
call fcn.00470d04
push esp
mov eax, dword [esp + 0x40]
push eax
call sub.KERNEL32.DLL_GetExitCodeProcess
cmp dword [esp], 0x103
jne 0x5e2704
mov eax, dword [0x5fe0a0]
mov eax, dword [eax]
cmp byte [eax + 0x9c], 0
je 0x5e26d4
cmp dword [esp], 0
sete bl
mov eax, ebx
add esp, 0x40
pop edi
pop esi
pop ebx
ret
Function at 0x5e2cac
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x5e2d7c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, 0x5e2d94
call fcn.004050a0
xor ebx, ebx
lea eax, [ebp - 4]
xor edx, edx
mov dl, bl
add edx, 0x41
call fcn.00405234
lea eax, [ebp - 4]
mov edx, 0x5e2da4
call fcn.00405340
mov eax, dword [ebp - 4]
call fcn.00405538
push eax
call sub.KERNEL32.DLL_GetDriveTypeA
xor edx, edx
push edx
push eax
mov eax, edi
cdq
cmp edx, dword [esp + 4]
jne 0x5e2d14
cmp eax, dword [esp]
pop edx
pop eax
jne 0x5e2d4e
lea eax, [ebp - 8]
xor edx, edx
mov dl, bl
add edx, 0x41
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 8]
lea eax, [ebp - 0xc]
call fcn.0040371c
mov edx, 0x5e2da8
lea eax, [ebp - 0xc]
mov cl, 2
call fcn.004036ec
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.004052c0
jmp 0x5e2d4f
inc ebx
cmp bl, 0x19
ja 0x5e2d66
mov eax, dword [esi]
mov edx, 0x5e2d94
call fcn.00405484
je 0x5e2cda
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e2d83
lea eax, [ebp - 4]
call fcn.0040504c
ret

Function at 0x5e2dac
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0040504c
push 1
call sub.user32.dll_IsClipboardFormatAvailable
test eax, eax
je 0x5e2eb0
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x5e2eb0
xor eax, eax
push ebp
push 0x5e2ea9
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.user32.dll_GetClipboardData
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x5e2e96
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5e2e8f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalSize
mov edx, 0x7fffffff
call fcn.00445b64
mov esi, eax
mov eax, esi
call fcn.00402ca8
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5e2e71
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov ecx, esi
call fcn.00402f58
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0040b9d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e2e78
mov eax, dword [ebp - 4]
call fcn.00402cd8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e2eb0
call sub.user32.dll_CloseClipboard
ret
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5e2fe4
Capabilities:
Get session user name

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, eax
mov dword [esp], 0x104
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x5e3011
mov edx, ebx
lea eax, [esp + 4]
call fcn.0040b9d8
jmp 0x5e3022
mov esi, dword [0x5fde74]
mov esi, dword [esi]
mov edx, ebx
mov eax, 0xe4
call esi
add esp, 0x10c
pop esi
pop ebx
ret
Function at 0x5e302c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x10c], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x5e3167
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040504c
mov eax, dword [0x5fe17c]
cmp dword [eax], 0
je 0x5e30b0
lea eax, [ebp - 0x105]
push eax
push 0
push 0
push esi
push 0
mov eax, dword [0x5fe17c]
mov eax, dword [eax]
call eax
test eax, eax
jne 0x5e3149
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x105]
call fcn.0040b9d8
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0040fd60
jmp 0x5e3149
sub esi, 5
je 0x5e30c5
sub esi, 0x1f
je 0x5e30d3
dec esi
je 0x5e3108
dec esi
je 0x5e313d
jmp 0x5e3149
mov eax, ebx
mov edx, 0x5e317c
call fcn.004050a0
jmp 0x5e3149
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
test eax, eax
jbe 0x5e3149
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x105]
call fcn.0040b9d8
mov eax, dword [ebp - 0x110]
mov edx, ebx
call fcn.0040fd60
jmp 0x5e3149
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
test eax, eax
jbe 0x5e3149
lea edx, [ebp - 0x114]
lea eax, [ebp - 0x105]
call fcn.0040b9d8
mov eax, dword [ebp - 0x114]
mov edx, ebx
call fcn.0040fd60
jmp 0x5e3149
mov eax, ebx
mov edx, 0x5e3198
call fcn.004050a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e316e
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.00405070
ret

Function at 0x5e31c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5e3237
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
jbe 0x5e3217
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x105]
call fcn.0040b9d8
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0040fd4c
jmp 0x5e321e
mov eax, ebx
call fcn.0040504c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e323e
lea eax, [ebp - 0x10c]
call fcn.0040504c
ret

Function at 0x5e3244
Capabilities:
Get disk information

Disassembly:
add esp, 0xfffffff4
push 0
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x5e3278
call sub.KERNEL32.DLL_GetVolumeInformationA
test eax, eax
je 0x5e3271
mov eax, dword [esp]
jmp 0x5e3273
xor eax, eax
add esp, 0xc
ret
Function at 0x5e5ad4
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5e5c07
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5fe0a0]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x5e5bf1
xor eax, eax
push ebp
push 0x5e5bea
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.user32.dll_EmptyClipboard
test ebx, ebx
jbe 0x5e5bd7
lea eax, [ebp - 0xc]
mov ecx, 0x5e5c20
mov edx, ebx
call fcn.00405384
mov eax, dword [ebp - 0xc]
call fcn.00405338
push eax
push 0x2002
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5e5bbf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5e5bae
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.00405338
push eax
lea eax, [ebp - 0xc]
call fcn.00405590
mov edx, dword [ebp - 8]
pop ecx
call fcn.00402f58
mov eax, dword [ebp - 4]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e5bb5
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e5bf1
call sub.user32.dll_CloseClipboard
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e5c0e
lea eax, [ebp - 0xc]
call fcn.0040504c
ret
Function at 0x401890
Capabilities:
Create tcp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x45901c]
xor eax, esp
mov dword [esp + 0x198], eax
push esi
lea eax, [esp + 8]
mov esi, ecx
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4018d6
xor eax, eax
pop esi
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.004087d4
mov esp, ebp
pop ebp
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [esp + 0x19c]
mov dword [esi], eax
mov eax, 1
pop esi
xor ecx, esp
call fcn.004087d4
mov esp, ebp
pop ebp
ret

Function at 0x401900
Capabilities:
Create tcp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x45901c]
xor eax, esp
mov dword [esp + 0x198], eax
push esi
mov esi, ecx
lea eax, [esp + 8]
push eax
push 0x202
mov word [esi + 0x1c], 0x100
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x401945
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
mov ecx, dword [esp + 0x19c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004087d4
mov esp, ebp
pop ebp
ret

Function at 0x4019f0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x45901c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, 2
push esi
mov esi, dword [ebp + 8]
push edi
push ebx
mov edi, ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x401a51
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004087d4
mov esp, ebp
pop ebp
ret 8
mov ecx, edi
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi + 3], al
test al, al
jne 0x401a55
mov ecx, dword [ebp - 4]
mov eax, 1
mov dword [edi + 0x18], ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004087d4
mov esp, ebp
pop ebp
ret 8
Function at 0x404ee0
Capabilities:
Get local ipv4 addresses
Get socket information
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45901c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x20], edx
push ebx
push esi
push edi
lea ebx, [eax + 0x84]
mov dword [ebp - 0x18], eax
mov ecx, ebx
call fcn.004047e0
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0
call edi
xor ebx, ebx
mov ecx, 2
mov esi, eax
mul ecx
seto bl
neg ebx
or ebx, eax
push ebx
call fcn.00408c97
add esp, 4
push ebx
mov ebx, eax
push 0
push ebx
call fcn.00420ae0
add esp, 0xc
xor eax, eax
mov word [ebx], ax
mov eax, dword [ebp - 0x18]
add eax, 0x84
push esi
push ebx
push 0xffffffffffffffff
push eax
push 0
push 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call esi
push 0
push 0
push eax
mov eax, dword [ebp - 0x18]
add eax, 0x84
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call esi
push ebx
call fcn.00408c92
add esp, 4
mov dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x1c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x14], xmm0
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push dword [eax]
call dword [sym.imp.WS2_32.dll_getsockname]
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ebx, dword [ebp - 0x18]
mov edx, ebx
sub edx, eax
nop word [eax + eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x404fd0
push dword [ebp - 0x12]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push 0x452310
push str.nickname
mov dword [ebx + 0x80], eax
call fcn.0042a00b
mov edi, eax
add esp, 8
test edi, edi
jne 0x405021
push str.___No_nickname_file_n
push 1
call fcn.0042a0ea
add esp, 4
push eax
call fcn.00403270
add esp, 8
jmp 0x405065
push 2
push 0
push edi
call fcn.0042b364
add esp, 0xc
push edi
call fcn.0042b082
add esp, 4
mov esi, eax
push edi
call fcn.0042b37f
add esp, 4
mov eax, 0x80
cmp esi, eax
cmovg esi, eax
lea eax, [ebx + 0x104]
push edi
push esi
push 1
push eax
call fcn.0042b64d
push edi
call fcn.0042a573
add esp, 0x14
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
mov dword [ebx + 0x184], eax
xor ecx, ebp
pop ebx
call fcn.004087d4
mov esp, ebp
pop ebp
ret
Function at 0x40b561
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x434aa8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043491e
Function at 0x40bb91
Capabilities:
Get session user name

Disassembly:
push ebx
push edi
push esi
sub esp, 0x220
mov esi, ecx
mov eax, esp
lea ebx, [esp + 0x20]
jmp 0x40bbac
mov dword [eax], 0x100
jmp 0x40bbb9
push eax
push ebx
push 2
call sub.Secur32.dll_GetUserNameExW
test al, 1
je 0x40bc32
jmp 0x40bbd0
mov eax, dword [esp]
lea edi, [esp + 4]
mov edx, esi
jmp 0x40bbe0
mov ecx, edi
push eax
push ebx
push 0x100
call fcn.0040bd60
add esp, 0xc
jmp 0x40bbfa
mov eax, dword [edi]
lea ecx, [esp + 0xc]
mov dword [ecx], esi
mov dword [ecx + 4], eax
and dword [ecx + 8], 0
mov dword [ecx + 0xc], 1
mov byte [ecx + 0x10], 0x5c
jmp 0x40bc17
call fcn.0041f494
mov ecx, eax
mov eax, edx
test ecx, ecx
push 6
pop edx
cmovne edx, eax
mov eax, 0x405aa4
cmovne eax, ecx
jmp 0x40bc3a
push 6
pop edx
mov eax, 0x405aa4
jmp 0x40bc3e
add esp, 0x220
pop esi
pop edi
pop ebx
ret

Function at 0x40bc48
Capabilities:
Get session user name

Disassembly:
push ebx
push edi
push esi
sub esp, 0x224
mov esi, ecx
mov eax, esp
lea ebx, [esp + 0x22]
jmp 0x40bc5b
mov dword [eax], 0x100
jmp 0x40bc63
push eax
push ebx
push 2
call sub.Secur32.dll_GetUserNameExW
test al, 1
je 0x40bcd7
jmp 0x40bc73
mov eax, dword [esp]
lea edi, [esp + 4]
mov edx, esi
jmp 0x40bc7f
mov ecx, edi
push eax
push ebx
push 0x100
call fcn.0040bd60
add esp, 0xc
jmp 0x40bc92
mov eax, dword [edi]
lea edi, [esp + 0xc]
mov dword [edi], esi
mov ecx, edi
mov dword [edi + 4], eax
and dword [edi + 8], 0
mov dword [edi + 0xc], 1
mov byte [edi + 0x10], 0x5c
jmp 0x40bcb2
call fcn.0041f494
mov ecx, edi
jmp 0x40bcbc
call fcn.0041f494
mov ecx, eax
mov eax, edx
test ecx, ecx
push 6
pop edx
cmovne edx, eax
mov eax, 0x405aa4
cmovne eax, ecx
jmp 0x40bcdf
push 6
pop edx
mov eax, 0x405aa4
jmp 0x40bce1
add esp, 0x224
pop esi
pop edi
pop ebx
ret
Function at 0x412dbd
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
jmp 0x412dd2
mov eax, dword [edx]
mov edi, ecx
jmp 0x412ddd
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push 0x12
push 0x68
push ecx
push edx
push eax
call sub.ntdll.dll_NtQueryInformationFile
test eax, eax
je 0x412e0b
cmp eax, 0xc0000022
je 0x412f35
cmp eax, 0x80000005
jne 0x412f49
jmp 0x412e12
and word [edi + 0x48], 0
xor eax, eax
cmp byte [esp + 0x55], 0
movsd xmm0, qword [esp + 0x58]
movsd xmm1, qword [esp + 0x48]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
sete al
movsd qword [edi], xmm0
movsd qword [edi + 8], xmm1
lea eax, [eax + eax*2 + 2]
and al, 0xf
mov byte [edi + 0x40], al
mov eax, 0x2ac18000
add ecx, eax
mov eax, 0xfe624e21
adc esi, eax
mov eax, esi
sar eax, 0x1f
push 0x64
pop edx
imul edx
mov dword [esp + 8], eax
mov ebx, edx
mov eax, ecx
push 0x64
pop ecx
mul ecx
mov dword [esp + 4], eax
mov eax, esi
mov dword [esp + 0xc], edx
mov esi, dword [esp + 0x2c]
mul ecx
mov ecx, dword [esp + 4]
add eax, dword [esp + 0xc]
mov dword [edi + 0x10], ecx
mov ecx, dword [esp + 0x28]
adc edx, dword [esp + 8]
mov dword [edi + 0x14], eax
mov eax, 0x2ac18000
adc ebx, 0
add ecx, eax
mov eax, 0xfe624e21
mov dword [edi + 0x18], edx
adc esi, eax
mov dword [edi + 0x1c], ebx
mov eax, esi
sar eax, 0x1f
push 0x64
pop edx
imul edx
mov dword [esp + 8], eax
mov ebx, edx
mov eax, ecx
push 0x64
pop ecx
mul ecx
mov dword [esp + 4], eax
mov ecx, edx
mov eax, esi
push 0x64
pop edx
mul edx
mov esi, 0x2ac18000
add eax, ecx
mov ecx, dword [esp + 4]
adc edx, dword [esp + 8]
mov dword [edi + 0x24], eax
mov eax, 0xfe624e21
mov dword [edi + 0x20], ecx
adc ebx, 0
add esi, dword [esp + 0x18]
mov dword [edi + 0x28], edx
mov dword [edi + 0x2c], ebx
adc eax, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
sar eax, 0x1f
push 0x64
pop ecx
imul ecx
mov dword [esp + 8], eax
mov eax, esi
mov ebx, edx
mul ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc]
mov esi, edx
mul ecx
mov ecx, dword [esp + 4]
add eax, esi
adc edx, dword [esp + 8]
mov dword [edi + 0x34], eax
mov dword [edi + 0x30], ecx
adc ebx, 0
mov dword [edi + 0x38], edx
mov dword [edi + 0x3c], ebx
jmp 0x412f57
jmp 0x412f3d
push 0x14
pop ecx
mov esi, 0x405b98
rep movsd dword es:[edi], dword [esi]
jmp 0x412f57
jmp 0x412f51
mov word [edi + 0x48], 0xe
jmp 0x412f5d
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41473e
Capabilities:
Get file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
lea eax, [edx + 0x10]
mov dword [esp], ecx
jmp 0x414754
mov ebx, dword [edx + 4]
mov edi, edx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [edx + 8]
cmp ebx, eax
mov esi, ebx
jmp 0x41476f
jb 0x4147d0
jmp 0x41477b
mov eax, dword [edi]
movzx ecx, byte [edi + 0x410]
jmp 0x41478c
push ecx
push 0
push 0
push 3
push 0x400
push dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0
push eax
call sub.ntdll.dll_NtQueryDirectoryFile
mov byte [edi + 0x410], 0
mov esi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41486f
jmp 0x4147c5
and dword [edi + 4], 0
test esi, esi
mov dword [edi + 8], eax
jne 0x414849
lea ebp, [edi + esi + 0x6e]
mov dword [esp + 0xc], eax
jmp 0x4147dd
mov eax, dword [ebp - 0x5e]
mov ecx, ebp
lea ebx, [eax + esi]
test eax, eax
mov eax, 0x400
cmove ebx, eax
mov dword [edi + 4], ebx
mov edi, dword [ebp - 0x22]
jmp 0x4147fd
shr edi, 1
mov edx, edi
push 1
push 0x40602c
call fcn.00413ab2
pop ecx
pop edx
test al, 1
jne 0x414832
jmp 0x41481c
mov ecx, ebp
mov edx, edi
push 2
push 0x40602e
call fcn.00413ab2
pop ecx
pop edx
test al, 1
je 0x414890
jmp 0x41483c
mov edi, dword [esp + 4]
mov eax, dword [esp + 0xc]
jmp 0x414764
cmp esi, 0xc0000022
jne 0x4148f5
jmp 0x41485d
push 5
pop ecx
mov edi, dword [esp]
mov esi, 0x406018
rep movsd dword es:[edi], dword [esi]
jmp 0x414901
jmp 0x414878
mov eax, dword [esp]
and dword [eax + 4], 0
and dword [eax], 0
and dword [eax + 0xc], 0
and dword [eax + 8], 0
and dword [eax + 0x10], 0
jmp 0x414901
mov ebx, dword [esp + 4]
jmp 0x41489a
jmp 0x41489e
lea ecx, [esp + 0x18]
lea esi, [ebx + esi + 0x10]
add ebx, 0x411
mov edx, ebx
push edi
push ebp
push 0x2fd
call fcn.0040bd60
add esp, 0xc
jmp 0x4148c0
mov ecx, dword [esi + 0x38]
lea eax, [esp + 0x18]
mov eax, dword [eax]
bt ecx, 0xa
setae dl
or dl, 4
test cl, 0x10
movzx edx, dl
push 2
pop ecx
mov esi, dword [esp]
cmove ecx, edx
and word [esi + 0x10], 0
mov byte [esi + 0xc], 1
mov dword [esi], ebx
mov dword [esi + 4], eax
mov byte [esi + 8], cl
jmp 0x414901
jmp 0x4148f8
mov eax, dword [esp]
mov word [eax + 0x10], 0xe
jmp 0x414906
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret