joyce8/EMBER2024-capa huggingface dataset:
Function at 0x582d20
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x224
push esi
push 0
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x582d41
xor eax, eax
pop esi
add esp, 0x224
ret
push edi
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x224
xor edi, edi
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x582d9b
jmp 0x582d60
lea ecx, [esp + 0x28]
push str..exe
push ecx
call fcn.005842a0
add esp, 8
test eax, eax
jne 0x582d97
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x582d60
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x224
ret
mov edi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x224
ret

Function at 0x584a80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5bc848
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
jb 0x584b53
push ebx
push ebp
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
lea ebx, [eax + 1]
mov dword [esp + 0x24], ebp
mov eax, bind
test ebx, ebx
js 0x584ace
shr eax, 1
test ebx, eax
je 0x584ac8
add eax, eax
push eax
lea ecx, [esp + 0x14]
call fcn.00584960
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov edi, dword [esp + 0x10]
push eax
push ecx
push edi
call fcn.00584920
mov eax, dword [esi + 4]
lea edx, [eax + eax*2]
lea eax, [edi + edx*8]
add esp, 0xc
cmp eax, ebp
je 0x584b1b
mov ecx, dword [esp + 0x2c]
movq xmm0, qword [ecx]
movq qword [eax], xmm0
movq xmm0, qword [ecx + 8]
movq qword [eax + 8], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [eax + 0x10], xmm0
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
push 1
mov dword [esi], edi
push 1
mov dword [esi + 4], ebx
push eax
mov dword [esi + 8], ecx
mov dword [esp + 0x30], 0xffffffff
call fcn.0056b360
add esp, 0xc
pop edi
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
mov ecx, dword [esi]
lea edx, [eax + eax*2]
lea ecx, [ecx + edx*8]
inc eax
mov dword [esi + 4], eax
test ecx, ecx
je 0x584b83
mov eax, dword [esp + 0x20]
movq xmm0, qword [eax]
movq qword [ecx], xmm0
movq xmm0, qword [eax + 8]
movq qword [ecx + 8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x589d30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov edx, dword [esp + 4]
test edx, edx
je 0x589d64
mov cl, byte [edx]
test cl, cl
je 0x589d64
mov eax, 0x811c9dc5
movsx ecx, cl
or ecx, 0x20
xor ecx, eax
imul ecx, ecx, 0x1000193
inc edx
mov eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x589d43
xor eax, 0x2a
imul eax, eax, 0x1000193
ret
xor eax, eax
ret
Function at 0x58f377
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x68de04]
jne 0x58f381
repz ret
jmp fcn.005988ff

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x58f5cf
call fcn.005964a2
mov dword [eax], esi
call fcn.0059648f
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00590550
add esp, 0x14
push 0x16
pop eax
jmp 0x58f624
test dword [ebp + 0xc], 0xfffffff9
jne 0x58f5ab
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x58f5fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005964b5
pop ecx
call fcn.0059648f
mov eax, dword [eax]
jmp 0x58f624
test al, 0x10
jne 0x58f622
test al, 1
je 0x58f622
test byte [ebp + 0xc], 2
je 0x58f622
call fcn.005964a2
mov dword [eax], 5
call fcn.0059648f
mov dword [eax], 0xd
jmp 0x58f5f3
xor eax, eax
pop esi
pop ebp
ret

Function at 0x5a3874
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00598a77
and dword [ebp - 4], 0
cmp dword [0x738de0], 0
mov ebx, eax
jne 0x5a3925
push 0x655428
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x5a39d6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x65541c
push edi
call esi
test eax, eax
je 0x5a39d6
push eax
call fcn.00598a05
mov dword [esp], 0x65540c
push edi
mov dword [0x738de0], eax
call esi
push eax
call fcn.00598a05
mov dword [esp], 0x6553f8
push edi
mov dword [0x738de4], eax
call esi
push eax
call fcn.00598a05
mov dword [esp], 0x6553dc
push edi
mov dword [0x738de8], eax
call esi
push eax
call fcn.00598a05
pop ecx
mov dword [0x738df0], eax
test eax, eax
je 0x5a3925
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00598a05
pop ecx
mov dword [0x738dec], eax
mov eax, dword [0x738dec]
cmp eax, ebx
je 0x5a397d
cmp dword [0x738df0], ebx
je 0x5a397d
push eax
call fcn.00598a80
push dword [0x738df0]
mov esi, eax
call fcn.00598a80
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x5a397d
test edi, edi
je 0x5a397d
call esi
test eax, eax
je 0x5a3974
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5a3974
test byte [ebp - 0xc], 1
jne 0x5a397d
or dword [ebp + 0x10], 0x200000
jmp 0x5a39b6
mov eax, dword [0x738de4]
cmp eax, ebx
je 0x5a39b6
push eax
call fcn.00598a80
pop ecx
test eax, eax
je 0x5a39b6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x5a39b6
mov eax, dword [0x738de8]
cmp eax, ebx
je 0x5a39b6
push eax
call fcn.00598a80
pop ecx
test eax, eax
je 0x5a39b6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x738de0]
call fcn.00598a80
pop ecx
test eax, eax
je 0x5a39d6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5a39d8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5adb30
Capabilities:
Get common file path

Disassembly:
push ebp
push esi
push edi
xor edi, edi
test ebx, ebx
je 0x5adbab
mov ebp, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edi
push edi
call ebp
push ebx
mov esi, eax
call fcn.005ac912
add eax, esi
add esp, 4
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x5adb67
pop edi
pop esi
pop ebp
ret
push esi
push edi
call ebp
mov ebp, eax
cmp word [edi + ebp*2 - 2], 0x5c
je 0x5adb7e
mov word [edi + ebp*2], 0x5c
add ebp, 1
push ebx
xor esi, esi
call fcn.005ac912
add esp, 4
test eax, eax
jbe 0x5adbab
lea ebp, [edi + ebp*2]
mov cx, word [ebx + esi*2]
mov word [ebp], cx
push ebx
add esi, 1
add ebp, 2
call fcn.005ac912
add esp, 4
cmp esi, eax
jb 0x5adb90
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x30085b82
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x30008668
push 0x3000864c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x30085bb7
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ebx, 0x30008648
push ebx
call edi
test esi, esi
mov dword [0x30008648], esi
jne 0x30085c1b
mov dword [0x30008648], 0xbb40e64e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [0x300bc414], 0x44bf19b1
pop ebx
leave
ret

Function at 0x30085c36
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x30008648]
jne 0x30086ac9
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x300bdf38], eax
mov dword [0x300bdf34], ecx
mov dword [0x300bdf30], edx
mov dword [0x300bdf2c], ebx
mov dword [0x300bdf28], esi
mov dword [0x300bdf24], edi
mov word [0x300bdf50], ss
mov word [0x300bdf44], cs
mov word [0x300bdf20], ds
mov word [0x300bdf1c], es
mov word [0x300bdf18], fs
mov word [0x300bdf14], gs
pushfd
pop dword [0x300bdf48]
mov eax, dword [ebp]
mov dword [0x300bdf3c], eax
mov eax, dword [ebp + 4]
mov dword [0x300bdf40], eax
lea eax, [ebp + 8]
mov dword [0x300bdf4c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x300bde88], 0x10001
mov eax, dword [0x300bdf40]
mov dword [0x300bde3c], eax
mov dword [0x300bde30], 0xc0000409
mov dword [0x300bde34], 1
mov eax, dword [0x30008648]
mov dword [ebp - 0x328], eax
mov eax, dword [0x300bc414]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x300bde80], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x300089a8
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x300bde80], 0
jne 0x30086bb9
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x30085c4e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x30008694
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x30085ca6
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0
push 0
push 0x3000868c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x30085ca6
mov al, 1
jmp 0x30085ca8
xor al, al
leave
ret 8
Function at 0x401088
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push 0x482bbc
push 0
push 0x100000
call dword [sym.imp.kernel32.dll_OpenMutexW]
test eax, eax
je 0x4010a9
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
inc eax
ret
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x4010a5
xor eax, eax
ret

Function at 0x4010b7
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push str.GlobalAcro_Update_Mutex
push 0
push 0x100000
call dword [sym.imp.kernel32.dll_OpenMutexW]
test eax, eax
je 0x4010d8
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
inc eax
ret
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x4010d4
xor eax, eax
ret

Function at 0x409d31
Capabilities:
Get disk information

Disassembly:
push edi
mov ecx, esi
xor edi, edi
call fcn.00408157
cmp dword [esi + 4], edi
jne 0x409d44
xor eax, eax
pop edi
ret
mov ecx, esi
call fcn.00408157
cmp dword [esi + 4], 1
jne 0x409d6e
push edi
mov ecx, esi
call fcn.00463abe
movzx eax, ax
push eax
call fcn.00463abe
add esp, 4
test al, al
je 0x409d6e
xor eax, eax
inc eax
pop edi
ret
mov ecx, esi
call fcn.00408157
cmp dword [esi + 4], 3
jne 0x409dd3
push edi
mov ecx, esi
call fcn.00463abe
movzx eax, ax
push eax
call dword [sym.imp.MSVCR100.dll_iswalpha]
pop ecx
test eax, eax
je 0x409dd3
push 1
mov ecx, esi
call fcn.00463abe
cmp ax, 0x3a
jne 0x409dd3
push 2
mov ecx, esi
call fcn.00463abe
movzx eax, ax
push eax
call fcn.00463abe
add esp, 4
test al, al
je 0x409dd3
mov ecx, esi
call fcn.00408157
push eax
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
cmp ecx, eax
sbb eax, eax
neg eax
pop edi
ret
mov ecx, esi
call fcn.00408157
cmp dword [esi + 4], 2
jbe 0x409f09
push 0
mov ecx, esi
call fcn.00463abe
movzx eax, ax
push eax
call fcn.00463abe
add esp, 4
test al, al
je 0x409f09
push 1
mov ecx, esi
call fcn.00463abe
movzx eax, ax
push eax
call fcn.00463abe
add esp, 4
test al, al
je 0x409f09
push 2
pop edi
push edi
mov ecx, esi
call fcn.00463abe
movzx eax, ax
push eax
call fcn.00463abe
add esp, 4
test al, al
jne 0x409d40
mov ecx, esi
inc edi
call fcn.00408157
cmp edi, dword [esi + 4]
jae 0x409e62
push edi
mov ecx, esi
call fcn.00463abe
movzx eax, ax
push eax
call fcn.00463abe
add esp, 4
test al, al
je 0x409e3d
mov ecx, esi
call fcn.00408157
cmp dword [esi + 4], edi
je 0x409d40
mov ecx, esi
inc edi
call fcn.00408157
cmp dword [esi + 4], edi
je 0x409d40
push edi
mov ecx, esi
call fcn.00463abe
movzx eax, ax
push eax
call fcn.00463abe
add esp, 4
test al, al
jne 0x409d40
mov ecx, esi
inc edi
call fcn.00408157
cmp edi, dword [esi + 4]
jae 0x409ec4
push edi
mov ecx, esi
call fcn.00463abe
movzx eax, ax
push eax
call fcn.00463abe
add esp, 4
test al, al
je 0x409e9f
mov ecx, esi
call fcn.00408157
lea eax, [edi + 1]
cmp dword [esi + 4], eax
ja 0x409d40
mov ecx, esi
call fcn.00408157
cmp dword [esi + 4], edi
jne 0x409ef2
movzx eax, word [0x4a69d4]
push eax
mov ecx, esi
call fcn.00463abe
mov ecx, esi
call fcn.00408157
push eax
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
cmp ecx, eax
sbb edi, edi
neg edi
mov eax, edi
pop edi
ret
Function at 0x40a354
Capabilities:
Check if file exists

Disassembly:
push 0x49c
mov eax, 0x47383c
call fcn.0043eed3
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00408157
xor ebx, ebx
cmp dword [esi + 4], ebx
jne 0x40a381
mov eax, 0xffffe89d
jmp 0x40a5ac
push ebx
push 0xffffffffffffffff
push 0x484ce8
lea ecx, [ebp - 0x488]
call fcn.00408d63
push ebx
lea eax, [ebp - 0x488]
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00409afc
cmp eax, 0xffffffff
setne bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.004035af
lea ecx, [ebp - 0x480]
call fcn.004035af
test bl, bl
je 0x40a3d4
mov eax, 0xffffe8c2
jmp 0x40a5ac
mov ecx, esi
call fcn.00408157
mov ebx, dword [sym.imp.kernel32.dll_FindFirstFileW]
lea ecx, [ebp - 0x46c]
push ecx
push eax
call ebx
mov dword [ebp - 0x470], eax
cmp eax, 0xffffffff
jne 0x40a50c
mov ecx, esi
call fcn.00408157
lea ecx, [ebp - 0x48c]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
mov esi, 0x105
push esi
push eax
call dword [sym.imp.kernel32.dll_GetFullPathNameW]
mov dword [ebp - 0x470], eax
test eax, eax
jne 0x40a42c
inc eax
jmp 0x40a5ac
cmp eax, esi
jbe 0x40a43a
mov eax, 0xffffe8c1
jmp 0x40a5ac
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x488]
call fcn.00408613
lea esi, [ebp - 0x488]
mov dword [ebp - 4], 1
call fcn.00409d31
test eax, eax
je 0x40a499
xor eax, eax
mov dword [edi], 2
mov dword [edi + 4], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
xor esi, esi
lea ecx, [ebp - 0x478]
call fcn.004035af
lea ecx, [ebp - 0x480]
call fcn.004035af
mov eax, esi
jmp 0x40a5ac
mov ecx, dword [ebp - 0x470]
lea ecx, [ebp + ecx*2 - 0x21e]
movzx eax, word [ecx]
push eax
call fcn.00463abe
add esp, 4
test al, al
jne 0x40a4d2
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
je 0x40a4cb
cmp eax, 3
je 0x40a4cb
xor esi, esi
inc esi
jmp 0x40a47c
mov esi, 0xffffe8c2
jmp 0x40a47c
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x21c]
push eax
call ebx
mov dword [ebp - 0x470], eax
cmp eax, 0xffffffff
je 0x40a4b6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.004035af
lea ecx, [ebp - 0x480]
call fcn.004035af
push dword [ebp - 0x470]
call dword [sym.imp.kernel32.dll_FindClose]
test byte [ebp - 0x46c], 0x10
push 0
pop eax
setne al
xor ebx, ebx
inc eax
mov dword [edi], eax
cmp dword [ebp - 0x450], ebx
je 0x40a560
push ebx
push 0xffffffffffffffff
push str.file_size_larger_than_4GB_encountered
lea ecx, [ebp - 0x4a4]
mov dword [ebp - method.RSException.virtual_0], vtable.RSException.0
call fcn.00408d63
push 0x493cfc
lea eax, [ebp - 0x4a8]
push eax
call sub.MSVCR100.dll__CxxThrowException
mov eax, dword [ebp - 0x44c]
mov dword [edi + 4], eax
lea esi, [edi + 0x10]
lea eax, [ebp - 0x458]
push esi
push eax
call fcn.00463abe
pop ecx
pop ecx
cmp dword [ebp - 0x468], ebx
jne 0x40a598
cmp dword [ebp - 0x464], ebx
jne 0x40a598
mov eax, dword [esi]
mov dword [edi + 8], eax
mov eax, dword [esi + 4]
mov dword [edi + 0xc], eax
jmp 0x40a5aa
add edi, 8
lea eax, [ebp - 0x468]
push edi
push eax
call fcn.00463abe
pop ecx
pop ecx
xor eax, eax
call fcn.0043ef56
ret
Function at 0x40ae1e
Capabilities:
Create thread

Disassembly:
push esi
push 4
mov esi, ecx
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
xor ecx, ecx
cmp eax, ecx
je 0x40ae33
mov dword [eax], ecx
jmp 0x40ae35
xor eax, eax
push ecx
push ecx
push esi
push 0x40ae0c
push ecx
push ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_CreateThread]
mov ecx, dword [esi + 0x10]
mov dword [ecx], eax
pop esi
ret

Function at 0x40b3da
Capabilities:
Delete file

Disassembly:
push 0x68
mov eax, 0x47394f
call fcn.0043ee6a
push dword [ebp + 8]
lea ecx, [ebp - 0x24]
call fcn.00403a4f
push 0x5c
xor ebx, ebx
push 0x2f
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.00463abe
movzx eax, word [0x4a69d4]
push eax
lea ecx, [ebp - 0x24]
call fcn.00463abe
test eax, eax
je 0x40b452
lea ecx, [ebp - 0x24]
call fcn.00408157
mov eax, dword [ebp - 0x20]
dec eax
push eax
push ebx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x24]
call fcn.00409028
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00463abe
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.004035af
lea ecx, [ebp - 0x4c]
call fcn.004035af
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00403a4f
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00408107
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.00463abe
lea ecx, [ebp - 0x3c]
call fcn.00408107
cmp dword [ebp - 0x38], ebx
jne 0x40b4b1
mov esi, 0x402
lea ecx, [ebp - 0x2c]
call fcn.004035af
lea ecx, [ebp - 0x34]
call fcn.004035af
lea ecx, [ebp - 0x14]
call fcn.004035af
lea ecx, [ebp - 0x1c]
call fcn.004035af
mov eax, esi
call fcn.0043ef42
ret
push 0x1e
lea eax, [ebp - 0x74]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], 3
call fcn.00408107
mov dword [ebp - 0x6c], eax
mov eax, 0x414
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov esi, eax
jmp 0x40b489
Function at 0x40bda7
Capabilities:
Create tcp socket
Initialize winsock library

Disassembly:
push 0x1a0
mov eax, 0x473a2d
call fcn.0043eed3
mov esi, ecx
mov dword [ebp - 0x1a8], esi
call fcn.0040b855
lea eax, [esi + 0x18]
xor edi, edi
mov dword [esi], vtable.CNetWatcher.0
push eax
mov dword [ebp - 4], edi
mov dword [eax], vtable.RSMonitor.0
mov dword [eax + 4], edi
call fcn.0040aaf2
push 8
mov byte [ebp - 4], 1
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
pop ecx
mov dword [esi + 0x20], eax
or dword [eax], 0xffffffff
mov eax, dword [esi + 0x20]
or dword [eax + 4], 0xffffffff
lea eax, [ebp - 0x1a0]
push eax
push 0x202
mov byte [ebp - 4], 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40be6b
cmp byte [ebp - 0x1a0], 2
jne 0x40be71
mov eax, dword [ebp - 0x1a0]
shr eax, 8
cmp al, 2
jne 0x40be71
push 1
push edi
push edi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
push edi
push edi
lea ecx, [ebp - 0x1ac]
push ecx
push edi
push edi
push 4
lea ecx, [ebp - 0x1a4]
push ecx
push 0x8004667e
push eax
mov dword [esi + 0x14], eax
mov dword [ebp - 0x1a4], 1
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x40be71
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, esi
call fcn.0043ef56
ret
Function at 0x40dda1
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x44
mov eax, 0x473e68
call fcn.0043ee6a
mov esi, ecx
push 4
pop ebx
xor edi, edi
push edi
push 0xffffffffffffffff
push 0x485200
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x14], ebx
call fcn.00408d63
push dword [ebp + 8]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 4], edi
call fcn.0041ebf4
add esp, 0xc
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004035af
lea ecx, [ebp - 0x48]
call fcn.004035af
push esi
lea ecx, [ebp - 0x20]
call fcn.00463abe
mov byte [ebp - 4], 3
cmp dword [esi + 8], edi
je 0x40deab
push 1
mov ecx, esi
call fcn.00463abe
test eax, eax
je 0x40de83
cmp dword [esi + 0xc], edi
je 0x40deab
lea ecx, [ebp - 0x38]
call fcn.00408157
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea edx, [ebp - 0x10]
push edx
mov ebx, eax
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
push ebx
push dword [esi + 8]
push eax
call dword [ecx + 0x80]
push ebx
test eax, eax
jne 0x40de7b
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1c], edi
je 0x40de61
mov ecx, dword [ebp - 0x20]
call fcn.0040acc8
lea ecx, [ebp - 0x28]
call fcn.004035af
lea ecx, [ebp - 0x30]
call fcn.004035af
mov eax, esi
call fcn.0043ef42
ret 8
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x40deab
lea ecx, [ebp - 0x38]
call fcn.00408157
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push edi
push eax
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40deab
cmp dword [ebp - 0x18], ebx
je 0x40de4d
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1c], edi
je 0x40debc
mov ecx, dword [ebp - 0x20]
call fcn.0040acc8
mov esi, dword [ebp + 0xc]
jmp 0x40de61
Function at 0x40e370
Capabilities:
Set registry value

Disassembly:
push 0x88
mov eax, 0x473e32
call fcn.0043ee6a
mov esi, ecx
xor edi, edi
push edi
push 0xffffffffffffffff
push 0x485240
lea ecx, [ebp - 0x2c]
call fcn.00408d63
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 4], edi
call fcn.0041ebf4
add esp, 0xc
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004035af
lea ecx, [ebp - 0x24]
call fcn.004035af
push esi
lea ecx, [ebp - 0x14]
call fcn.00463abe
mov byte [ebp - 4], 3
cmp dword [esi + 8], edi
jne 0x40e418
push edi
push 0xffffffffffffffff
push str.error_setting_key
lea ecx, [ebp - 0x2c]
call fcn.00408d63
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 4], 4
call fcn.0041ebf4
add esp, 0xc
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x48], vtable.RSException.0
call fcn.00403a4f
push 0x493cfc
lea eax, [ebp - 0x48]
push eax
call sub.MSVCR100.dll__CxxThrowException
push 1
mov ecx, esi
call fcn.00463abe
test eax, eax
je 0x40e4b9
cmp dword [esi + 0xc], edi
je 0x40e490
lea ecx, [ebp - 0x60]
call fcn.00408157
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push dword [ebp + 0xc]
mov ebx, eax
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
push ebx
push dword [esi + 8]
push eax
call dword [ecx + 0x78]
push ebx
test eax, eax
je 0x40e48a
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
push 0xffffffffffffffff
push str.error_setting_key
lea ecx, [ebp - 0x2c]
call fcn.00408d63
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 4], 6
call fcn.0041ebf4
add esp, 0xc
mov byte [ebp - 4], 7
jmp 0x40e3fa
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x10], edi
je 0x40e4a1
mov ecx, dword [ebp - 0x14]
call fcn.0040acc8
lea ecx, [ebp - 0x50]
call fcn.004035af
lea ecx, [ebp - 0x58]
call fcn.004035af
call fcn.0043ef42
ret 8
lea ecx, [ebp - 0x60]
call fcn.00408157
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push edi
push eax
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40e490
push edi
push 0xffffffffffffffff
push str.error_setting_key
lea ecx, [ebp - 0x78]
call fcn.00408d63
push dword [ebp + 8]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 8
call fcn.0041ebf4
add esp, 0xc
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 9
mov dword [ebp - 0x94], vtable.RSException.0
call fcn.00403a4f
push 0x493cfc
lea eax, [ebp - 0x94]
jmp 0x40e412