joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5da7ca
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
popfd
rep insb byte es:[edi], dx
ja 0x5da84e
fisttp word [0x99a3c483]
ror byte [0x299a9213], 0x92
scasd eax, dword es:[edi]
adc cl, byte [ebx + 0xff36f83]
sub dword [edi - 0xd], 0xf
mov esi, 0xca632055
lea ebx, [ebp + 0x76]
invalid
cmp eax, 0x4a76af8c
or eax, 0x2c35cbab
push edx
aad 0xcd
cld
sub dword [ebp - 0x4d], 0x74
pop ebp
dec eax
fbld tbyte [edi]
fdiv qword [ecx]
in al, dx
mov bl, 0x4d
add ecx, dword [esi + 0x2841410a]
xor cl, dh
int1
rol dword [edx + 0x49], 1
lds ebp, [eax]
sal cl, cl
jecxz 0x5da82c
jo 0x5da7df
xchg dword [eax - 0x3af8e61e], edi
add ecx, dword [ebx]
xor ah, byte [ecx - 0x55]
adc al, 0x5c
xor byte [ecx], 0x7a
fadd dword [esi + edx*4]
xor byte [esi], ch
pop esi
sub al, 0x72
xchg ecx, eax
out 0xd2, al
int3

Function at 0x6596ed
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x661388
cmp edx, dword [eax]
je 0x65970f
add eax, 8
inc ecx
cmp eax, 0x661418
jl 0x659700
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x661388]
jne 0x65983d
mov eax, dword [0xa5bee8]
cmp eax, 1
je 0x659817
test eax, eax
jne 0x659740
cmp dword [0x6612b4], 1
je 0x659817
cmp edx, 0xfc
je 0x65983d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x659777
lea eax, [ebp - 0x1a4]
push 0x65e970
push eax
call fcn.0065a0d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0065a560
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x6597ba
lea eax, [ebp - 0x1a4]
push eax
call fcn.0065a560
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65e96c
push edi
call fcn.0065c430
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x65e950
push eax
call fcn.0065a0d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0065a0e0
lea eax, [ebp - 0xa0]
push 0x65e94c
push eax
call fcn.0065a0e0
push dword [esi + 0x66138c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0065a0e0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x65e924
push eax
call fcn.0065c3a4
add esp, 0x2c
pop edi
jmp 0x65983d
lea eax, [ebp + 8]
lea esi, [esi + 0x66138c]
push 0
push eax
push dword [esi]
call fcn.0065a560
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x41f573
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41f5b2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41f5b2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f5b2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41f5b2
cmp dword [ecx + 0x74], 0xe
jbe 0x41f5b2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x431790
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4317bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4317bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x3dbc6e67
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data_1
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x791d1d0c
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x312f0f53
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
mov ebx, 0x42f314
mov ecx, 0x5aa32a70
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x404470
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x21c
mov eax, dword [0x41d004]
xor eax, esp
mov dword [esp + 0x218], eax
movups xmm0, xmmword [edx]
push esi
movups xmm1, xmmword [edx + 0x10]
mov edx, dword [ebp + 8]
mov esi, ecx
movd eax, xmm0
lea ecx, [esp + 0x100]
movaps xmmword [esp + 0x200], xmm1
movaps xmmword [esp + 0x1f0], xmm0
and al, 0xf8
psrldq xmm1, 0xf
mov byte [esp + 0x1f0], al
movd eax, xmm1
and al, 0x3f
or al, 0x40
mov byte [esp + 0x20f], al
call fcn.00401a40
lea eax, [esp + 0x100]
push eax
lea eax, [esp + 0x1f4]
push eax
lea edx, [esp + 0x18]
lea ecx, [esp + 0x1a8]
call fcn.00402cc0
lea edx, [esp + 0x18]
lea ecx, [esp + 0x158]
call fcn.00403040
lea eax, [esp + 0x158]
push eax
lea edx, [esp + 0x1ac]
lea ecx, [esp + 0x74]
call fcn.00401000
add esp, 0xc
lea ecx, [esp + 0x68]
call fcn.004014d0
lea ecx, [esp + 0x68]
call fcn.004015b0
movups xmm0, xmmword [esp + 0x68]
lea edx, [esp + 0x10]
mov ecx, esi
movups xmmword [esp + 0x10], xmm0
movups xmm0, xmmword [esp + 0x78]
movups xmmword [esp + 0x20], xmm0
movups xmm0, xmmword [esp + 0x88]
movups xmmword [esp + 0x30], xmm0
movups xmm0, xmmword [esp + 0x98]
movups xmmword [esp + 0x40], xmm0
movups xmm0, xmmword [esp + 0xa8]
movups xmmword [esp + 0x50], xmm0
call fcn.00401d40
mov ecx, dword [esp + 0x21c]
xor eax, eax
pop esi
xor ecx, esp
call fcn.00407f82
mov esp, ebp
pop ebp
ret
Function at 0x406110
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4151d3
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x41d004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xf0000008
push 0x18
push 0
push 0
push 0x427350
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea esi, [edi + 0x64]
push esi
push 0x20
push dword [0x427350]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0x41afc0
lea ecx, [edi + 0x24]
mov edx, esi
call fcn.00404470
push 0x4289b6
lea ecx, [edi + 0x44]
mov edx, esi
call fcn.00404470
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
add esp, 8
push 0
push 0
push 1
push 0
call esi
push 0
push 0
push 1
push 0
mov dword [edi + 8], eax
call esi
mov dword [edi + 0xc], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
push 0x28
push 8
mov dword [edi + 0x10], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x10], esi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
test esi, esi
je 0x406227
push 0xc
push 8
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push esi
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0x64
push 0
push 0
call ebx
push 0
push 0x64
push 0x64
push 0
mov dword [esi + 0x18], eax
call ebx
mov dword [esi + 0x1c], eax
jmp 0x406229
xor esi, esi
push 0x28
push 8
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x40628f
push 0xc
push 8
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push esi
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0x64
push 0
push 0
call ebx
push 0
push 0x64
push 0x64
push 0
mov dword [esi + 0x18], eax
call ebx
mov dword [esi + 0x1c], eax
jmp 0x406291
xor esi, esi
push 0x680
lea eax, [edi + 0x88]
mov dword [edi + 4], esi
push 0
push eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
call fcn.00409790
add esp, 0xc
mov dword [edi + 0x84], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4078e0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x41d004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x438], 0x22c
push 0x228
lea eax, [ebp - 0x434]
mov dword [ebp - 0x440], esi
push 0
push eax
call fcn.00409790
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x407aa0
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [eax]
nop dword [eax + eax]
xor ebx, ebx
cmp dword [0x4289d6], ebx
jbe 0x407a88
mov eax, 0x4289da
mov dword [ebp - 0x43c], eax
nop dword [eax]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
push 0x2a
push eax
call fcn.0040924b
add esp, 8
test eax, eax
je 0x407ac5
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
xor esi, esi
test edi, edi
jle 0x4079dc
movzx ecx, word [ebp + esi*2 - 0x414]
push ecx
call fcn.0040b8ba
add esp, 4
test eax, eax
je 0x4079d7
movzx eax, word [ebp + esi*2 - 0x414]
push eax
call fcn.0040b973
add esp, 4
inc esi
cmp esi, edi
jl 0x4079b1
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
xor esi, esi
test edi, edi
jle 0x407a1c
movzx ecx, word [ebp + esi*2 - 0x20c]
push ecx
call fcn.0040b8ba
add esp, 4
test eax, eax
je 0x407a17
movzx eax, word [ebp + esi*2 - 0x20c]
push eax
call fcn.0040b973
add esp, 4
inc esi
cmp esi, edi
jl 0x4079f1
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00409312
add esp, 8
test eax, eax
je 0x407a60
push dword [ebp - 0x430]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x407abb
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x407abb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x43c]
inc ebx
sub eax, 0xffffff80
mov dword [ebp - 0x43c], eax
cmp ebx, dword [0x4289d6]
jb 0x407970
mov esi, dword [ebp - 0x440]
lea eax, [ebp - 0x438]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x407950
pop edi
pop ebx
cmp esi, 0xffffffff
je 0x407aac
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00407f82
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
jmp 0x407a66
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x407a66
push dword [ebp - 0x430]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x407ac1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x407ac1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407a66
Function at 0x407b10
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x41d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 1
push esi
call edi
test eax, eax
jne 0x407cc8
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0xea
setne bl
jne 0x407cb3
push dword [ebp - 0x2c]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x407b9d
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407f82
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push dword [ebp - 0x2c]
push eax
push 1
push esi
call edi
test eax, eax
jne 0x407bbe
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
jmp 0x407c9f
cmp dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
jbe 0x407ca1
mov eax, dword [ebp - 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x38], eax
nop dword [eax + eax]
movups xmm1, xmmword [eax]
push 0x24
movups xmm0, xmmword [eax + 0x10]
movd eax, xmm1
movups xmmword [ebp - 0x58], xmm0
push eax
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x407c99
lea eax, [ebp - 0x28]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x407c99
cmp dword [ebp - 0x24], 1
je 0x407c77
mov eax, dword [ebp - 0x10]
mov ecx, 0x7530
cmp eax, 0x7530
cmovae eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x2c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x407c6f
cmp dword [ebp - 0x24], 1
je 0x407c77
call edi
sub eax, dword [ebp - 0x44]
cmp eax, 0x7530
ja 0x407c68
cmp dword [ebp - 0x24], 1
jne 0x407c20
jmp 0x407c77
mov ebx, 0x5b4
jmp 0x407c77
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
inc ecx
add eax, 0x24
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
cmp ecx, dword [ebp - 0x30]
jb 0x407be0
jmp 0x407ca1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [ebp - 0x3c]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407f82
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00407f82
mov esp, ebp
pop ebp
ret 8
Function at 0x402150
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562a58
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5c0020]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push eax
push edi
call fcn.0041682a
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x4021eb
cmp dword [edi], 0
jne 0x4021eb
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
call fcn.00416be4
mov dword [ebp - 4], 0
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x7c], 0
call fcn.004020b0
push dword [ebp - 0x7c]
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00416dc8
lea ecx, [ebp - 0x1c]
call fcn.00416c2d
mov esi, eax
lea ecx, [ebp - 0x1c]
mov dword [edi], esi
mov dword [ebp - 4], 0xffffffff
call fcn.00416c1f
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053786f
mov esp, ebp
pop ebp
ret 8
Function at 0x402370
Capabilities:
Check mutex on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x562a13
mov eax, dword fs:[0]
push eax
sub esp, 0x368
mov eax, dword [0x5c0020]
xor eax, esp
mov dword [esp + 0x360], eax
push ebx
push esi
push edi
mov eax, dword [0x5c0020]
xor eax, esp
push eax
lea eax, [esp + 0x378]
mov dword fs:[0], eax
mov ebx, ecx
push str.RPF216065F1_598D_46BB_BC70_F6C61072E55E
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebx + 0xcc], eax
test eax, eax
je 0x402539
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x402539
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 8
mov dword [esp + 0x1c], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, ebx
call fcn.00414a70
push 4
call fcn.00415871
test eax, eax
je 0x402415
mov dword [eax], vtable.CFontOccManager.0
jmp 0x402417
xor eax, eax
push eax
call fcn.00415fd4
push 0xc
call fcn.004140a7
add esp, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x380], 0
test eax, eax
je 0x402453
mov ecx, eax
mov dword [eax + 4], 0
mov dword [eax + 8], 0
call fcn.00417060
mov edi, eax
jmp 0x402455
xor edi, edi
push 0x567594
mov dword [esp + 0x384], 0xffffffff
call fcn.0041ec18
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
call fcn.00414127
mov dword [esp + 0x1c], vtable.CCustomCommandLineInfo.0
mov dword [esp + 0x48], 0
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
mov dword [esp + 0x384], 1
call fcn.00414bf2
push str.Local_AppWizard_Generated_Applications
mov ecx, ebx
call fcn.0042233d
mov esi, dword [esp + 0x48]
push ecx
lea ecx, [esp + 0x50]
call fcn.00402590
push ecx
push esi
lea ecx, [esp + 0x54]
call fcn.00402a20
lea eax, [esp + 0x4c]
mov byte [esp + 0x380], 2
mov ecx, eax
mov dword [ebx + 0x20], eax
call fcn.00422aa6
test edi, edi
je 0x40250a
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 4]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x380], 1
call fcn.00402c90
mov dword [esp + 0x380], 0xffffffff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.CCustomCommandLineInfo.0
call fcn.004142ea
jmp 0x402569
push 0x599738
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
push 0
push 0
push dword [0x5c8274]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
mov ecx, dword [esp + 0x378]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x360]
xor ecx, esp
call fcn.0053786f
mov esp, ebp
pop ebp
ret
Function at 0x402a20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562b2a
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5c0020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0
push 0x66
call fcn.00426342
mov dword [ebp - 4], 0
mov dword [edi], vtable.CRobustaPortForwarderDlg.0
mov dword [edi + 0xc0], vtable.CMenu.0
mov dword [edi + 0xc4], 0
mov dword [edi + 0xc8], vtable.CMenu.0
mov dword [edi + 0xcc], 0
lea eax, [edi + 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea esi, [edi + 0xe8]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 4
push 0
mov dword [esi], vtable.CRuleSettings.0
push 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.004060e0
mov dword [esi + 4], eax
mov dword [edi + 0xf4], vtable.CGeneralSettings.0
mov dword [edi + 0xf8], 1
mov dword [edi + 0xfc], 1
mov byte [ebp - 4], 6
call fcn.004273a1
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x402b02
push 0x80004005
call fcn.00406bc0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x100], eax
lea ecx, [edi + 0x10c]
mov byte [ebp - 4], 7
call fcn.00409dc0
lea esi, [edi + 0x1ac]
lea eax, [esi + 8]
push eax
push 4
push esi
push 0x40d990
push 0
mov dword [esi], vtable.Thread.0
mov byte [esi + 0xc], 0
push 0
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
mov dword [esi], vtable.LoadRulesThread.0
mov dword [esi + 0x14], edi
lea ecx, [edi + 0x1c4]
mov byte [ebp - 4], 9
call fcn.00428205
mov dword [edi + method.CListCtrl.virtual_0], vtable.CListCtrl.0
lea ecx, [edi + 0x238]
mov byte [ebp - 4], 0xa
call fcn.00428205
mov dword [edi + method.CButton.virtual_0], vtable.CButton.0
lea ecx, [edi + 0x2ac]
mov byte [ebp - 4], 0xb
call fcn.00428205
mov dword [edi + method.CButton.virtual_0], vtable.CButton.0
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0xc
mov dword [edi + 0xb8], eax
call fcn.0042f575
call fcn.0042f575
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [edi + 0xbc], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x405580
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Reference google public dns server
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x448
mov eax, dword [0x5c0020]
xor eax, esp
mov dword [esp + 0x444], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
xorps xmm0, xmm0
mov eax, 2
movdqa xmmword [esp + 0x10], xmm0
push str.8.8.8.8
mov word [esp + 0x14], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x35
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
push 0x10
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x38]
push eax
push esi
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
push 2
push 0
xorps xmm0, xmm0
movdqa xmmword [esp + 0x28], xmm0
mov eax, 2
mov word [esp + 0x28], ax
mov eax, dword [esp + 0x40]
push 0
mov dword [esp + 0x30], eax
push 0x400
lea eax, [esp + 0x58]
push eax
push 0x10
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
lea eax, [esp + 0x48]
push eax
mov ecx, edi
call fcn.00406190
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x44c]
pop edi
pop esi
xor ecx, esp
call fcn.0053786f
mov esp, ebp
pop ebp
ret 4