joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40288c
Capabilities:
Copy file
Create process on windows
Move file

Disassembly:
mov eax, 0x405d2c
call fcn.004057f0
push ecx
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
push esi
push edi
mov edi, ecx
jne 0x4028d0
inc dword [0x40a884]
cmp dword [0x40a884], 0xa
jge 0x4028be
call fcn.00402a05
cmp dword [0x40a884], 0xa
jne 0x4029f4
mov ecx, edi
call fcn.0040269f
jmp 0x4029f4
push 0x40a400
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
je 0x402961
push 0x40a2f4
lea eax, [ebp + 0xc]
push 0x40a7d0
push eax
call sub.MFC42.DLL_operator
push dword [ebp + 0xc]
mov esi, dword [0x407074]
mov dword [ebp - 4], ebx
push dword [0x40a7d0]
call esi
push dword [0x40a7d0]
push dword [ebp + 0x10]
call esi
test eax, eax
je 0x40294a
push 5
push ebx
push dword [ebp + 0xc]
push dword [0x40a7d0]
push 0x40a410
push ebx
call dword [0x40740c]
mov ecx, edi
call fcn.0040367f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
jmp 0x4029f4
push dword [0x40a7d0]
push dword [ebp + 0xc]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0x40a7cc
push eax
call sub.MFC42.DLL_operator
push ebx
push dword [eax]
push dword [ebp + 0x10]
call dword [0x407078]
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
inc dword [0x40a880]
mov esi, 0x40a08c
push esi
push dword [ebp + 8]
call dword [0x4073b4]
pop ecx
test eax, eax
pop ecx
jne 0x4029ad
push esi
call fcn.00401a75
pop ecx
mov dword [0x40a7e8], eax
mov eax, dword [0x40a860]
mov ecx, dword [0x40a88c]
mov edx, dword [eax + 8]
cmp edx, ecx
je 0x4029ce
mov eax, edx
mov edx, dword [eax]
cmp edx, ecx
jne 0x4029bf
mov dword [0x40a860], eax
jmp 0x4029ed
mov ecx, dword [eax + 4]
cmp eax, dword [ecx + 8]
jne 0x4029e2
mov eax, ecx
mov dword [0x40a860], eax
mov ecx, dword [ecx + 4]
jmp 0x4029d1
cmp dword [eax + 8], ecx
je 0x4029ed
mov dword [0x40a860], ecx
mov ecx, edi
call fcn.00402a05
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x402a89
Capabilities:
Create process on windows
Delete file

Disassembly:
mov eax, 0x405d40
call fcn.004057f0
mov eax, 0x13f0
call fcn.00405820
push ebx
push esi
push edi
mov esi, 0x40a08c
mov edi, 0x40a7cc
push esi
lea eax, [ebp - 0x10]
push edi
mov dword [ebp - 0x14], ecx
push eax
call sub.MFC42.DLL_operator
mov eax, dword [0x40a3b8]
xor ebx, ebx
cmp eax, 0xffffffff
mov dword [ebp - 4], ebx
je 0x402c51
cmp dword [0x40a880], eax
jl 0x402c51
push esi
call fcn.00401a75
cmp eax, dword [0x40a7e8]
pop ecx
je 0x402b09
push esi
lea eax, [ebp - 0x20]
push edi
push eax
call sub.MFC42.DLL_operator
push dword [eax]
call dword [0x40708c]
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x14]
call fcn.004035f1
push 0x44
lea eax, [ebp - 0x74]
pop esi
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0x74], esi
push ebx
push ebx
push 0x147
push dword [eax + 0x84]
call dword [0x40744c]
mov esi, eax
call fcn.00405036
mov ecx, esi
mov dword [ebp - 0x18], ebx
shl ecx, 3
mov dword [ebp - 0x1c], ebx
mov esi, dword [ecx + 0x40a800]
mov edi, dword [ecx + 0x40a804]
sub esi, eax
sub edi, edx
call fcn.0040486d
cmp eax, ebx
je 0x402b85
movzx edx, byte [eax + 2]
xor ecx, ecx
mov ch, byte [eax]
mov cl, byte [eax + 1]
shl ecx, 8
or ecx, edx
mov dword [ebp - 0x18], ecx
xor ecx, ecx
mov ch, byte [eax + 3]
mov cl, byte [eax + 4]
movzx eax, byte [eax + 5]
shl ecx, 8
or ecx, eax
mov dword [ebp - 0x1c], ecx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x13fc]
push dword [ebp - 0x18]
push edi
push esi
push dword [0x40a878]
push 0x40a44c
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x1c
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x13fc]
push dword [0x40a7cc]
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push dword [ebp - 0x10]
call dword [0x407030]
test eax, eax
je 0x402c79
mov esi, dword [ebp - 0x14]
push 2
mov byte [0x40a888], 1
push dword [esi + 0x20]
call dword [0x40741c]
mov ecx, dword [0x40a780]
push ebx
call sub.MFC42.DLL_CWnd::ShowWindow
push ebx
mov ecx, esi
call sub.MFC42.DLL_CWnd::ShowWindow
push 0xffffffffffffffff
push dword [ebp - 0x30]
call dword [0x407050]
push dword [ebp - 0x2c]
mov edi, dword [0x4070a0]
call edi
push dword [ebp - 0x30]
call edi
mov ecx, dword [0x40a780]
push 5
mov byte [0x40a888], bl
call sub.MFC42.DLL_CWnd::ShowWindow
push 5
mov ecx, esi
call sub.MFC42.DLL_CWnd::ShowWindow
push ebx
push ebx
push ebx
push ebx
push dword [0x40a7dc]
lea ecx, [esi + 0xa4]
call fcn.004052a9
mov ecx, esi
call fcn.00402a05
jmp 0x402c79
cmp byte [0x40a889], bl
je 0x402c79
push dword [ebp - 0x10]
call fcn.00405172
test al, al
pop ecx
jne 0x402c79
mov ecx, dword [ebp - 0x14]
push ebx
push 0x40a444
push 0x40a424
call sub.MFC42.DLL_CWnd::MessageBoxA
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x404cc3
Capabilities:
Get common file path
Get disk information

Disassembly:
mov eax, 0x40600b
call fcn.004057f0
sub esp, 0x514
and dword [ebp - 0x1c], 0
push ebx
push esi
mov esi, 0x104
push edi
lea eax, [ebp - 0x138]
push esi
push eax
call dword [0x407040]
mov al, byte [ebp - 0x138]
and byte [ebp - 0x520], 0
mov byte [ebp - 0x30], al
mov ecx, 0xf9
xor eax, eax
lea edi, [ebp - 0x51f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
stosb byte es:[edi], al
pop ebx
lea eax, [ebp - 0x520]
push eax
push esi
mov dword [ebp - 0x18], ebx
call dword [0x40703c]
push 0x14
lea esi, [ebp - 0x520]
pop edi
mov al, byte [esi]
test al, al
je 0x404d63
cmp al, byte [ebp - 0x138]
je 0x404d63
push esi
call dword [0x407038]
cmp eax, 3
jne 0x404d63
push esi
call fcn.00404ed2
pop ecx
mov cl, byte [esi]
movsx edx, cl
mov dword [edx*4 + 0x40cfa8], eax
mov eax, dword [ebp - 0x18]
inc dword [ebp - 0x18]
mov byte [ebp + eax - 0x30], cl
add esi, 4
dec edi
jne 0x404d2c
push 0x404eb3
push ebx
push dword [ebp - 0x18]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.MSVCRT.dll_qsort]
add esp, 0x10
mov edi, 0x40a7d4
mov esi, 0x40a614
lea eax, [ebp - 0x24]
push edi
push esi
push eax
call sub.MFC42.DLL_operator_2
push 0x40a608
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
push eax
call sub.MFC42.DLL_operator
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
cmp byte [0x40a7d8], 0
je 0x404dfe
push edi
lea eax, [ebp - 0x20]
push esi
push eax
call sub.MFC42.DLL_operator_2
push 0x40a5f8
push eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 4
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
mov edi, dword [ebp - 0x18]
xor esi, esi
test edi, edi
jle 0x404e4e
mov al, byte [ebp + esi - 0x30]
lea ecx, [ebp - 0x10]
push eax
push 0
call sub.MFC42.DLL_CString::SetAt
lea eax, [ebp - 0x10]
push 0x40a34c
push eax
lea eax, [ebp - 0x20]
push eax
call sub.MFC42.DLL_operator
push dword [eax]
mov byte [ebp - 4], 6
call fcn.00405172
pop ecx
mov byte [ebp - 0x11], al
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
cmp byte [ebp - 0x11], 0
jne 0x404ea2
inc esi
cmp esi, edi
jl 0x404e07
xor esi, esi
test edi, edi
jle 0x404e75
mov al, byte [ebp + esi - 0x30]
lea ecx, [ebp - 0x10]
push eax
push 0
call sub.MFC42.DLL_CString::SetAt
push dword [ebp - 0x10]
call fcn.0040510c
test al, al
pop ecx
jne 0x404e75
inc esi
cmp esi, edi
jl 0x404e54
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0040542e
mov dword [ebp - 0x1c], ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0040542e
mov dword [ebp - 0x1c], ebx
jmp 0x404e84
Function at 0x4050bb
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x108], edi
jle 0x4050ea
push esi
call dword [0x40708c]
test eax, eax
jne 0x4050f4
push 0x3e8
call dword [0x407060]
inc edi
cmp edi, dword [esi + 0x108]
jl 0x4050cb
push esi
call sub.MFC42.DLL_operatordelete
pop ecx
pop edi
pop esi
ret
cmp byte [esi + 0x104], 0
je 0x4050f1
push 0
push esi
push 1
push 4
call dword [0x407414]
jmp 0x4050f1

Function at 0x40510c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.00405810
mov esi, dword [sym.imp.MSVCRT.dll_strchr]
lea eax, [ebp - 0x104]
push 0x5c
push eax
call esi
inc eax
push 0x5c
push eax
call esi
add esp, 0x18
mov edi, eax
test edi, edi
je 0x405165
and byte [edi], 0
lea eax, [ebp - 0x104]
push 0
push eax
call dword [0x407064]
mov byte [edi], 0x5c
inc edi
push 0x5c
push edi
call esi
pop ecx
pop ecx
jmp 0x405140
push dword [ebp + 8]
call fcn.00405172
pop ecx
pop edi
pop esi
leave
ret

Function at 0x405172
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [0x407068]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret

Function at 0x405187
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [0x4073e0]
push esi
push edi
push 0x40a40c
push dword [esp + 0x18]
call ebp
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x4051f2
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call edi
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov ebx, eax
call edi
push ebx
call dword [sym.imp.MSVCRT.dll_malloc]
push esi
mov edi, eax
push 1
push ebx
push edi
call dword [0x4073bc]
push esi
mov esi, dword [0x4073c8]
call esi
push 0x40a620
push dword [esp + 0x50]
call ebp
mov ebp, eax
add esp, 0x3c
test ebp, ebp
jne 0x4051f6
xor al, al
jmp 0x405210
push ebp
push 1
push ebx
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebp
call esi
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x18
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x403ab0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x478c58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
mov dword [esp + 8], esi
call fcn.0040e690
push 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x3c], 0
call fcn.0040e690
mov eax, dword [esp + 0x40]
push 0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 1
call fcn.0040ee60
push 0
push str.Software
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 2
call fcn.0040efa0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 1
call fcn.0040e6b0
mov edx, dword [esp + 0x44]
push edx
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.0040ef20
lea ecx, [esp + 8]
mov byte [esp + 0x38], 0
call fcn.0040e6b0
mov ecx, dword [esp + 0x30]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8

Function at 0x4042a0
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x478f38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0
push 0x10
mov dword [esp + 0x18], 0
call fcn.00459034
add esp, 4
lea ecx, [esp + 4]
push ecx
push eax
mov dword [esi], eax
mov dword [esp + 0xc], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
mov eax, esi
jne 0x4042f8
mov edx, dword [esi]
mov byte [edx], 0
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x408c00
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x398
mov al, byte [0x4a6d08]
test al, al
push esi
push edi
jne 0x408c6b
lea eax, [esp + 0x210]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x408c64
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x483df8
lea ecx, [esp + 0x114]
call fcn.0044ba90
mov ecx, 0x41
lea esi, [esp + 0x10c]
lea edi, [esp + 8]
rep movsd dword es:[edi], dword [esi]
push 0x499810
lea ecx, [esp + 0xc]
push ecx
call fcn.00459658
mov byte [0x4a6d08], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408fc0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20c
push ebx
push esi
push edi
mov edi, eax
movzx ecx, word [edi]
mov eax, ecx
sub eax, 2
je 0x408ffc
sub eax, 0x15
je 0x408ff5
push ecx
push str.__trying_family__d
push 0x4a6d0c
call fcn.00402ee0
add esp, 0xc
jmp 0x40900e
push str.__trying_IPv6
jmp 0x409001
push str.__trying_IPv4
push 0x4a6d0c
call fcn.00402ee0
add esp, 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
movzx edx, word [edi]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
test esi, esi
jge 0x40905f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x483ea4
lea ecx, [esp + 0x18]
call fcn.0044ba90
push 0x499810
lea eax, [esp + 0x118]
mov ecx, 0x41
lea esi, [esp + 0x14]
lea edi, [esp + 0x118]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00459658
mov ebx, dword [sym.imp.WS2_32.dll_WSAConnect]
mov ecx, dword [ebp + 0x10]
push 0
push 0
push 0
push 0
push ecx
push edi
push esi
call ebx
test eax, eax
je 0x4090c8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x409065
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
mov edi, eax
call dword [sym.imp.WS2_32.dll_closesocket]
push edi
push 0x483e88
lea ecx, [esp + 0x11c]
call fcn.0044ba90
push 0x499810
lea edx, [esp + 0x14]
mov ecx, 0x41
lea esi, [esp + 0x118]
lea edi, [esp + 0x14]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00459658
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409630
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4795b6
push eax
mov al, byte [esp + 0x14]
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
push 0x24
mov byte [edi + 0x1c], al
call fcn.00459787
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], 0
je 0x409681
mov ecx, dword [esp + 0x20]
push 0
push ecx
push 0xffffffffffffffff
push esi
mov ecx, eax
call fcn.00436b85
jmp 0x409683
xor eax, eax
push 0x38
mov dword [esp + 0x14], 0xffffffff
mov dword [edi + 4], eax
call fcn.00459787
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x10], 1
je 0x4096bb
mov edx, dword [esp + 0x24]
push 0
push edx
push 0xffffffffffffffff
push esi
mov ecx, eax
call fcn.004368f1
jmp 0x4096bd
xor eax, eax
push 0
push 1
push esi
mov dword [esp + 0x1c], 0xffffffff
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
lea eax, [esp + 0x1c]
push eax
push 0x8004667e
push esi
mov dword [esp + 0x28], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
je 0x40970b
call edi
push eax
push str.unable_to_set__non_blocking:__d
push 0x4a6d0c
call fcn.00402c00
add esp, 0xc
push 4
lea ecx, [esp + 0x1c]
push ecx
push 1
push 6
push esi
mov dword [esp + 0x2c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x40973e
call edi
push eax
push str.unable_to_setsockopt_TCP_NODELAY:__d
push 0x4a6d0c
call fcn.00402ee0
add esp, 0xc
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0x10
Function at 0x40b800
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x47973b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov ecx, edi
mov dword [esi], 0x4841b4
call fcn.004517f0
mov dword [edi + 4], eax
mov byte [eax + 0x15], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
xor eax, eax
mov dword [edi + 8], eax
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov byte [esi + 0x34], al
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40bfd0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x479811
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x10], ebx
push 0x104
mov dword [esp + 0x238], ebx
call fcn.00459034
add esp, 4
mov esi, eax
push ebx
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40c02f
mov byte [esi], bl
push 0x5c
push esi
mov dword [esp + 0x23c], 1
call fcn.0045a3fe
add esp, 8
cmp eax, ebx
je 0x40c0d2
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push ebx
push ebx
push ebx
mov byte [eax + 1], bl
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x40c111
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40c075
sub eax, ecx
mov byte [eax + esi - 1], bl
call ebp
mov edi, eax
mov dword [esp + 0x18], esi
mov byte [esp + 0x1c], bl
push esi
push edi
push str.err_ld__path_s
push 0x4a6d80
mov byte [esp + 0x244], 2
call fcn.00402ee0
add esp, 0x10
sub edi, 0x90
mov byte [esp + 0x234], 1
je 0x40c0c3
sub edi, 0x11
jne 0x40c140
push 0x5c
push esi
call fcn.0045a3fe
add esp, 8
cmp eax, ebx
jne 0x40c053
push str.failed_to_get_volume_info
lea eax, [esp + 0x24]
push 0x100
push eax
mov byte [esp + 0x2c], bl
call fcn.0044c260
add esp, 0xc
mov ecx, 0x40
lea esi, [esp + 0x20]
lea edi, [esp + 0x124]
rep movsd dword es:[edi], dword [esi]
push 0x498d60
lea ecx, [esp + 0x128]
push ecx
call fcn.00459658
lea ecx, [esp + 0x14]
push 4
push ecx
call fcn.0044d4b0
push esi
mov edi, eax
call fcn.00459039
mov ecx, dword [esp + 0x238]
add esp, 0xc
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
call ebp
push eax
push str.GetVolumeInformation_failed
lea ecx, [esp + 0x28]
call fcn.0044ba90
push 0x49859c
lea edx, [esp + 0x128]
mov esi, eax
mov ecx, 0x41
lea edi, [esp + 0x128]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00459658
int3
Function at 0x40da70
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4799d9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
push 0xffffffffffffffff
push eax
mov dword [esp + 0x14], esi
call fcn.0044b020
add esp, 8
mov dword [esi], eax
xor ebx, ebx
lea edi, [esi + 0x10]
mov ecx, edi
mov dword [esp + 0x224], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], 0xfffffffe
call fcn.00418c80
mov dword [edi + 4], eax
mov cl, 1
mov byte [eax + 0x11], cl
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov byte [esp + 0x224], cl
mov byte [esi + 0x1c], bl
call fcn.00408c00
cmp dword [esi], ebx
jne 0x40db56
push 0x100
call fcn.00459034
mov ecx, dword [esi]
push ecx
mov edi, eax
call fcn.00459039
add esp, 8
push 0x100
push edi
mov dword [esi], edi
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x40db56
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.gethostname
lea ecx, [esp + 0x11c]
call fcn.0044ba90
push 0x49859c
lea edx, [esp + 0x14]
mov esi, eax
mov ecx, 0x41
lea edi, [esp + 0x14]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00459658
mov ecx, dword [esp + 0x21c]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40df00
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x479a1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push esi
push edi
mov esi, ecx
push 0x101
mov dword [esp + 0x10], esi
call fcn.00459034
add esp, 4
mov dword [esi], eax
lea ecx, [esp + 8]
push ecx
push eax
mov dword [esp + 0x22c], 0
mov dword [esp + 0x10], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x40df8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetUserName_failed
lea ecx, [esp + 0x11c]
call fcn.0044ba90
push 0x49859c
lea edx, [esp + 0x14]
mov esi, eax
mov ecx, 0x41
lea edi, [esp + 0x14]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00459658
mov ecx, dword [esp + 0x21c]
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40e1a0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479a78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov dword [esi], ebx
mov dword [ebp - 4], ebx
mov byte [esi + 4], bl
call fcn.00410a80
test al, al
je 0x40e2c2
cmp byte [0x4a709d], bl
je 0x40e27e
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040df00
mov eax, dword [ebp - 0x18]
push eax
mov dword [esi], 0xffffffff
call fcn.00459039
mov eax, dword [esi]
add esp, 4
test eax, eax
setne cl
mov byte [esi + 4], cl
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4a6dd0]
cmp eax, ebx
je 0x40e294
push esi
push 0xffffffffffffffff
call eax
test eax, eax
jne 0x40e31b
push esi
push 0x40e0d0
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
push eax
call dword [sym.imp.USER32.dll_EnumDesktopsA]
cmp dword [esi], ebx
setne dl
mov byte [esi + 4], dl
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40e31b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
je 0x40e315
push eax
push str.OpenProcessToken_failed
lea ecx, [ebp - 0x224]
call fcn.0044ba90
mov esi, eax
push 0x49859c
lea eax, [ebp - 0x120]
mov ecx, 0x41
lea edi, [ebp - 0x120]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00459658
mov dword [esi], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov byte [esi + 4], 1
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e480
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x208
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
push esi
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x40e4cd
push eax
push str.RegDeleteValue
lea ecx, [esp + 0x114]
call fcn.0044ba90
push 0x49859c
lea edx, [esp + 0xc]
mov esi, eax
mov ecx, 0x41
lea edi, [esp + 0xc]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00459658
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40e550
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x208
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
push edi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40e566
mov ecx, dword [ecx]
sub eax, edi
inc eax
push eax
mov eax, dword [ebp + 8]
push esi
push 2
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40e5b5
push eax
push str.setExpandString
lea ecx, [esp + 0x114]
call fcn.0044ba90
push 0x49859c
lea edx, [esp + 0xc]
mov esi, eax
mov ecx, 0x41
lea edi, [esp + 0xc]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00459658
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8