joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402480
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, dword [ebx + 4]
je 0x4024c7
mov ecx, dword [esi]
lea eax, [ebp - 4]
push eax
push 0
push ecx
push 0x402520
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4024b8
mov dword [ebp + edi*4 - 0x58], eax
inc edi
add esi, 4
mov dword [ebp - 4], 0
cmp esi, dword [ebx + 4]
jne 0x402497
lea edx, [ebp - 4]
push edx
push 0
push ebx
push 0x402670
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4024e6
mov dword [ebp + edi*4 - 0x58], eax
inc edi
push 0xffffffffffffffff
push 1
lea eax, [ebp - 0x58]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor esi, esi
test edi, edi
je 0x40250d
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + esi*4 - 0x58]
push ecx
call ebx
inc esi
cmp esi, edi
jb 0x402501
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402870
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x44a2a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], bl
call fcn.0041a9c0
push 0x103
lea ecx, [ebp - 0x107]
push ebx
push ecx
mov byte [ebp - 0x108], bl
call fcn.0041a9c0
push 0x103
lea edx, [ebp - 0x30f]
push ebx
push edx
mov byte [ebp - 0x310], bl
call fcn.0041a9c0
add esp, 0x24
cmp byte [0x461d0e], bl
jne 0x402a0e
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
mov ebx, str.ntdll.dll
call fcn.00402c90
lea ecx, [ebp - 0x108]
push ecx
mov ebx, str.Kernel32.dll
call fcn.00402c90
lea edx, [ebp - 0x310]
push edx
mov ebx, str.Wtsapi32.dll
call fcn.00402c90
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x461d10], eax
test eax, eax
jne 0x40294c
call edi
push eax
lea ecx, [ebp - 0x20c]
push ecx
push str.ntdll.dll__s__load_failed__d_
xor ecx, ecx
call fcn.00401150
add esp, 0xc
lea edx, [ebp - 0x108]
push edx
call esi
mov dword [0x461d14], eax
test eax, eax
jne 0x402977
call edi
push eax
lea eax, [ebp - 0x108]
push eax
push str.Kernel32.dll__s__load_failed__d_
xor ecx, ecx
call fcn.00401150
add esp, 0xc
lea ecx, [ebp - 0x310]
push ecx
call esi
mov dword [0x461d18], eax
test eax, eax
jne 0x4029a2
call edi
push eax
lea edx, [ebp - 0x310]
push edx
push str.Wtsapi32.dll__s__load_failed__d_
xor ecx, ecx
call fcn.00401150
add esp, 0xc
mov eax, dword [0x461d10]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationProcess
push eax
call esi
mov ecx, dword [0x461d14]
push str.WTSGetActiveConsoleSessionId
push ecx
mov dword [0x461d1c], eax
call esi
mov edx, dword [0x461d18]
push str.WTSQueryUserToken
push edx
mov dword [0x461d20], eax
call esi
mov dword [0x461d24], eax
mov eax, dword [0x461d18]
push str.WTSEnumerateSessionsW
push eax
call esi
mov ecx, dword [0x461d18]
push str.WTSFreeMemory
push ecx
mov dword [0x461d28], eax
call esi
pop edi
mov dword [0x461d2c], eax
mov byte [0x461d0e], 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00413753
mov esp, ebp
pop ebp
ret
Function at 0x402a20
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x44a2a8]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x1d6
mov esi, ecx
mov dword [esp + 0x18], eax
xor eax, eax
lea ecx, [esp + 0x46]
push ebx
push ecx
xor edi, edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x1c], ebx
mov word [esp + 0x4c], bx
call fcn.0041a9c0
xor eax, eax
add esp, 0xc
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.00402870
lea edx, [esp + 0xc]
push edx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x402ace
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcessToken_failed__d_
xor ecx, ecx
call fcn.00401150
add esp, 8
jmp 0x402be3
lea eax, [esp + 0x34]
push eax
push str.SeDebugPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x402b2c
mov edx, dword [esp + 0xc]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x3c]
push ecx
push ebx
push edx
mov dword [esp + 0x48], 1
mov dword [esp + 0x54], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x402b42
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AdjustTokenPrivileges_failed__d_
xor ecx, ecx
call fcn.00401150
add esp, 8
jmp 0x402be3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Lookup_failed__d_
xor ecx, ecx
call fcn.00401150
add esp, 8
push esi
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
jne 0x402b6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_to_open_process___d_
xor ecx, ecx
call fcn.00401150
add esp, 8
jmp 0x402be3
lea eax, [esp + 0x10]
push eax
push 0x18
lea ecx, [esp + 0x20]
push ecx
push ebx
push esi
call dword [0x461d1c]
test eax, eax
js 0x402bc6
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
push 0x1d8
lea eax, [esp + 0x48]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x402bb8
mov edx, dword [esp + 0x214]
mov eax, dword [esp + 0x14]
mov dword [eax], edx
mov edi, 1
jmp 0x402bdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadProcessMemory_failed__d_
jmp 0x402bd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.NtQueryInformationProcess_failed__d_
xor ecx, ecx
call fcn.00401150
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x402bf2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x21c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00413753
mov esp, ebp
pop ebp
ret
Function at 0x402c90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x44a2a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x103
lea ecx, [ebp - 0x107]
push 0
push ecx
mov dword [ebp - 0x210], eax
mov byte [ebp - 0x108], 0
call fcn.0041a9c0
push 0x103
lea edx, [ebp - 0x20b]
push 0
push edx
mov byte [ebp - 0x20c], 0
call fcn.0041a9c0
add esp, 0x18
push 0
push 0x29
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov ecx, 0x41
lea esi, [ebp - 0x20c]
lea edi, [ebp - 0x108]
push 1
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x108]
push 0x42fecc
push ecx
call fcn.00414130
mov eax, ebx
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402d26
sub eax, edx
push eax
lea edx, [ebp - 0x108]
push ebx
push edx
call fcn.00414130
mov edx, dword [ebp - 0x210]
add esp, 0xc
lea eax, [ebp - 0x108]
test edx, edx
je 0x402d73
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402d53
sub eax, esi
push eax
lea eax, [ebp - 0x108]
push eax
push edx
call fcn.0041b330
add esp, 0xc
lea eax, [ebp - 0x108]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00413753
mov esp, ebp
pop ebp
ret

Function at 0x402ec0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x44a2a8]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x61a]
push ecx
mov word [ebp - 0x61c], ax
call fcn.0041a9c0
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x412]
push eax
mov word [ebp - 0x414], dx
call fcn.0041a9c0
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20a]
push edx
mov word [ebp - 0x20c], cx
call fcn.0041a9c0
add esp, 0x24
push 0
push 0x26
lea eax, [ebp - 0x61c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x61c]
push ecx
lea edx, [ebp - 0x414]
push str._sSignKorea
push edx
mov edx, 0x104
call fcn.004031d0
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00414563
add esp, 0x14
test eax, eax
je 0x402f7b
lea ecx, [ebp - 0x414]
push ecx
call fcn.00414265
add esp, 4
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x20c]
push str._sSignKoreaWD
push eax
mov edx, 0x104
call fcn.004031d0
lea ecx, [ebp - 0x20c]
push 0
push ecx
call fcn.00414563
add esp, 0x14
test eax, eax
je 0x402fbc
lea edx, [ebp - 0x20c]
push edx
call fcn.00414265
add esp, 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
call esi
push 0
push 0
push eax
push edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00413753
mov esp, ebp
pop ebp
ret
Function at 0x403310
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x44a2a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x412]
push ecx
mov word [ebp - 0x414], ax
call fcn.0041a9c0
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20a]
push eax
mov word [ebp - 0x20c], dx
call fcn.0041a9c0
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x61a]
push edx
mov word [ebp - 0x61c], cx
call fcn.0041a9c0
add esp, 0x24
push 0
push 0x26
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x20c]
push str._sSignKorea_skcert
push edx
mov edx, 0x104
call fcn.004031d0
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x61c]
push str._sSKCertService.exe
push ecx
mov edx, 0x104
call fcn.004031d0
add esp, 0x18
lea edi, [ebp - 0x20c]
lea ebx, [ebp - 0x61c]
call fcn.00402010
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00413753
mov esp, ebp
pop ebp
ret
Function at 0x405ac0
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x44a2a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x403]
push ebx
push eax
mov esi, ecx
mov byte [ebp - 0x404], bl
call fcn.0041a9c0
push 0x3ff
lea ecx, [ebp - 0x803]
push ebx
push ecx
mov byte [ebp - 0x804], bl
call fcn.0041a9c0
push esi
mov dword [ebp - 0x808], ebx
call fcn.00405a20
add esp, 0x1c
cmp eax, 1
jne 0x405b25
mov ecx, esi
call fcn.00405c20
push 0x400
lea edx, [ebp - 0x404]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov byte [ebp + eax - 0x404], bl
push esi
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x804]
push str._s___s_
push ecx
call dword [0x463238]
add esp, 0x10
push 2
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, ebx
jne 0x405bb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 5
jne 0x405b8f
pop edi
pop esi
mov eax, 0x1788
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413753
mov esp, ebp
pop ebp
ret
push esi
push str.openSCManager_failed__d__n
call dword [0x463230]
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413753
mov esp, ebp
pop ebp
ret
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x804]
push edx
push 1
push 2
push 0x10
push 0xf01ff
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
cmp esi, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jne 0x405bfb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.createService_failed__d__n
mov dword [ebp - 0x808], eax
call dword [0x463230]
add esp, 8
push edi
call ebx
push esi
call ebx
push edi
call ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x808]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413753
mov esp, ebp
pop ebp
ret
Function at 0x405c20
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44a2a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 2
xor ebx, ebx
push ebx
push ebx
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x405c68
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x405ccf
pop edi
pop esi
mov eax, 0x1788
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413753
mov esp, ebp
pop ebp
ret
push 0xf01ff
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x405c9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413753
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x405cbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x405cc6
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413753
mov esp, ebp
pop ebp
ret

Function at 0x405ce0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 2
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x405d1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.openSCManager_failed__d__n
call dword [0x463230]
add esp, 8
cmp esi, 5
jne 0x405d18
mov esi, 0x1788
mov eax, esi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
push edi
push 0xf01ff
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x405d5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.openSCManager_failed__d__n
call dword [0x463230]
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x405d80
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.StartService_failed__d__n
call dword [0x463230]
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x405da0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
lea eax, [ebp - 4]
push eax
push ecx
push reloc.WS2_32.dll_bind
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x405df0
push esi
call dword [0x4631c8]
mov edx, dword [ebp - 4]
add esp, 4
inc eax
push eax
push esi
push 1
push 0
push str.ConfigPath
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405e70
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x44a2a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x7ff
lea eax, [ebp - 0x803]
push 0
push eax
mov esi, ecx
mov dword [ebp - 0x808], 0
mov byte [ebp - 0x804], 0
call fcn.0041a9c0
push esi
lea ecx, [ebp - 0x804]
push str.SYSTEMCurrentControlSet_services_s
push ecx
call dword [0x463238]
add esp, 0x18
lea edx, [ebp - 0x808]
push edx
push 0xf003f
push 0
lea eax, [ebp - 0x804]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405f42
push str.YettieSoft_Service_Daemon
call dword [0x4631c8]
mov ecx, dword [ebp - 0x808]
add esp, 4
inc eax
push eax
push str.YettieSoft_Service_Daemon
push 1
push 0
push str.Description
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x405f33
mov edx, dword [ebp - 0x808]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413753
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x808]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00413753
mov esp, ebp
pop ebp
ret
Function at 0x405f60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x44a2a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x7ff
lea eax, [ebp - 0x803]
push 0
push eax
mov esi, ecx
mov dword [ebp - 0x808], 0
mov dword [ebp - 0x810], 0
mov dword [ebp - 0x80c], 0x400
mov byte [ebp - 0x804], 0
call fcn.0041a9c0
add esp, 0xc
test edi, edi
jne 0x405fc7
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413753
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x808]
push ecx
push 0x20019
push 0
push esi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x406009
push eax
push esi
push str.__s__err:_d_
call dword [0x463230]
add esp, 0xc
mov eax, 0x1af4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413753
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x80c]
push edx
mov edx, dword [ebp - 0x808]
lea eax, [ebp - 0x804]
push eax
lea ecx, [ebp - 0x810]
push ecx
push 0
push str.ConfigPath
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
je 0x406056
mov eax, dword [ebp - 0x808]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413753
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x804]
push ecx
call dword [0x4631c4]
mov edx, dword [ebp - 0x808]
add esp, 4
push edx
mov dword [edi], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00413753
mov esp, ebp
pop ebp
ret

Function at 0x406090
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SOFTWAREYettiesoft
push reloc.WS2_32.dll_bind
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4060d8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407ad0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
mov eax, dword [ebp + 8]
xor edx, edx
push edi
mov edi, dword [eax + 0x10]
cmp esi, 2
jl 0x407b1d
test edi, edi
je 0x407af2
movzx eax, byte [ecx + 1]
movzx ebx, byte [ecx]
jmp 0x407af9
movzx eax, byte [ecx]
movzx ebx, byte [ecx + 1]
shl eax, 8
add eax, ebx
add ecx, 2
sub esi, 2
add edx, 2
cmp eax, 0xfeff
je 0x407b18
cmp eax, 0xfffe
jne 0x407b2f
xor edi, 1
cmp esi, 2
jge 0x407ae5
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], edi
pop edi
mov eax, 0xfffffffe
pop esi
sub eax, edx
pop ebx
pop ebp
ret
lea ecx, [eax - 0xd800]
cmp ecx, 0x7ff
ja 0x407b45
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], edi
pop edi
pop esi
mov eax, edx
pop ebx
pop ebp
ret
Function at 0x40df00
Capabilities:
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
xor edi, edi
or ebx, 0xffffffff
mov dword [esp + 0x10], edi
cmp word [0x461d50], di
jne 0x40df35
mov eax, 0x101
push 0x451358
push eax
mov word [0x461d50], ax
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor eax, eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea edx, [esp + 0x1c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0xc]
push edx
push eax
push ecx
mov dword [esp + 0x28], 8
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], 1
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x40df91
mov esi, 0x843
jmp 0x40e00f
mov eax, dword [esp + 0x10]
mov esi, eax
cmp eax, edi
je 0x40dfac
mov ecx, 2
cmp dword [esi + 4], ecx
je 0x40dfae
mov esi, dword [esi + 0x1c]
cmp esi, edi
jne 0x40dfa0
mov esi, eax
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_socket]
mov edi, dword [ebp + 0x10]
mov edx, edi
push 4
imul edx, edx, 0x3e8
mov ebx, eax
lea eax, [esp + 0x18]
push eax
push 0x1006
push 0xffff
push ebx
mov dword [esp + 0x28], edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x40dff4
mov esi, 0x842
jmp 0x40e00f
mov ecx, dword [esi + 0x10]
push edi
push ecx
mov ecx, dword [esi + 0x18]
call fcn.00412110
mov esi, eax
add esp, 8
test esi, esi
je 0x40e00f
mov esi, 0x840
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40e01e
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x40e03d
mov dword [0x4514f4], esi
test ebx, ebx
je 0x40e033
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e4d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jne 0x40e4e9
mov eax, 0x835
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
mov edi, dword [ebp + 0x10]
test edi, edi
jle 0x40e537
mov esi, edi
cmp edi, 0x800
jle 0x40e4ff
mov esi, 0x800
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.004123a0
add esp, 8
cmp eax, 0xffffffff
je 0x40e53f
cmp eax, 0x83b
je 0x40e53f
mov edx, dword [ebp + 8]
push 0
push esi
push ebx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x40e556
jle 0x40e55c
sub edi, eax
add ebx, eax
test edi, edi
jg 0x40e4f0
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
push eax
push str.SGSocket_Send:_d_n
call fcn.00413947
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret