joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10163da7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x101cca20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10156022
and dword [ebp - 0x14], 0
cmp dword [0x101e2090], 0
mov dword [ebp - 0x18], eax
jne 0x10163e5a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10163f02
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10163f02
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x1019f770
push ebx
mov dword [0x101e2090], eax
call edi
push eax
call esi
push 0x1019f75c
push ebx
mov dword [0x101e2094], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x101e2098], eax
call edi
push eax
call esi
mov dword [0x101e20a0], eax
test eax, eax
je 0x10163e5a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x101e209c], eax
mov eax, dword [0x101e209c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10163eb3
cmp dword [0x101e20a0], ecx
je 0x10163eb3
push eax
call esi
push dword [0x101e20a0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10163eb3
test ebx, ebx
je 0x10163eb3
call edi
test eax, eax
je 0x10163eaa
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10163eaa
test byte [ebp - 8], 1
jne 0x10163eb3
or dword [ebp + 0x10], 0x200000
jmp 0x10163ee6
mov eax, dword [0x101e2094]
cmp eax, dword [ebp - 0x18]
je 0x10163ee6
push eax
call esi
test eax, eax
je 0x10163ee6
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10163ee6
mov eax, dword [0x101e2098]
cmp eax, dword [ebp - 0x18]
je 0x10163ee6
push eax
call esi
test eax, eax
je 0x10163ee6
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x101e2090]
call esi
test eax, eax
je 0x10163f02
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10163f04
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1014fbdc
leave
ret
Function at 0x40166a
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
jmp 0x40167c
push dword [ebp + 8]
xor edi, edi
push dword [ebp + 0xc]
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
cmp esi, edi
je 0x4016be
push edi
push edi
push edi
push 6
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
cmp ebx, edi
je 0x4016b7
push 8
call fcn.0040182c
pop ecx
mov dword [eax], esi
mov dword [eax + 4], ebx
jmp 0x4016c0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401f83
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
jmp 0x401f97
jmp 0x401fa3
movzx eax, word [ebp + 0xc]
push 0xa
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x402066
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, edi
je 0x402066
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
cmp eax, edi
je 0x402066
xor eax, eax
cmp dword [ebp + 0x14], edi
push edi
setne al
push edi
inc eax
push eax
push edi
push 3
push 0xc0000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x402066
cmp dword [ebp + 0x18], edi
je 0x402048
lea eax, [esi + 0xa]
push eax
call fcn.0040182c
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
call fcn.00401eb8
add esp, 0x10
push edi
lea eax, [ebp - 8]
push eax
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call fcn.00401849
pop ecx
jmp 0x402058
push edi
lea ecx, [ebp - 8]
push ecx
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x402068
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402129
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa34
mov eax, dword [0x5498f8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
jmp 0x40214d
test ebx, ebx
je 0x402200
cmp word [ebx], 0
je 0x402200
test eax, eax
je 0x402200
cmp word [eax], 0
je 0x402200
push eax
push ebx
mov edi, 0x531758
push edi
mov esi, 0x1f3
lea eax, [ebp - 0x7dc]
push esi
push eax
call fcn.004f7833
add esp, 0x14
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x7dc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa30], eax
cmp eax, 0xffffffff
je 0x402200
cmp word [ebp - 0xa00], 0x2e
je 0x4021dd
lea eax, [ebp - 0xa00]
push eax
push ebx
push edi
lea eax, [ebp - 0x3f4]
push esi
push eax
call fcn.004f7833
add esp, 0x14
lea eax, [ebp - 0x3f4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0xa2c]
push eax
push dword [ebp - 0xa30]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4021ad
push dword [ebp - 0xa30]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.004f7824
leave
ret

Function at 0x40220e
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x5498f8]
xor eax, esp
mov dword [esp + 0x258], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
jmp 0x40223a
lea ecx, [esp + 0x10]
push ecx
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40229b
xor esi, esi
cmp word [esp + 0x3c], 0x2e
je 0x402284
lea eax, [esi + 0x28]
push eax
push edi
call fcn.00401735
push 0x208
mov edi, eax
call fcn.0040182c
add esp, 0xc
lea ecx, [esp + 0x3c]
push ecx
push eax
mov dword [esi + edi], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esi, 4
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402251
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x264]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f7824
mov esp, ebp
pop ebp
ret

Function at 0x402307
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
jmp 0x402317
test ebx, ebx
je 0x40237e
cmp byte [ebx], 0
je 0x40237e
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40237e
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
lea eax, [esi + 2]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_EmptyClipboard]
inc esi
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop edi
inc eax
pop esi
leave
ret
xor eax, eax
leave
ret
Function at 0x4023d3
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f4
mov eax, dword [0x5498f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, edx
push edi
mov edi, ecx
mov dword [ebp - 0x3f4], esi
jmp 0x4023fe
cmp dword [ebp + 8], 0
je 0x402471
test edi, edi
jne 0x402426
push 0x3e8
lea eax, [ebp - 0x3ec]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea esi, [eax + 1]
lea edi, [ebp - 0x3ec]
jmp 0x402431
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
jmp 0x40243d
lea eax, [ebp - 0x3f0]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4024b1
push esi
push edi
push 1
push eax
push dword [ebp - 0x3f4]
push dword [ebp - 0x3f0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x4024a5
jmp 0x40247d
lea eax, [ebp - 0x3f0]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4024b1
push esi
push dword [ebp - 0x3f0]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x3f0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004f7824
leave
ret

Function at 0x4024bf
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x5498f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x200], edx
mov edx, dword [ebp + 0x18]
push edi
mov dword [ebp - 0x204], edx
jmp 0x4024f1
push ecx
push eax
push 0x5317cc
lea eax, [ebp - 0x1f8]
push 0xf9
push eax
xor edi, edi
call fcn.004f7a96
add esp, 0x14
push edi
lea eax, [ebp - 0x1fc]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
lea eax, [ebp - 0x1f8]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4025d8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 8
lea eax, [ebp + 0xc]
push eax
push 3
push edi
push 0x5317dc
push dword [ebp - 0x1fc]
call esi
test eax, eax
jne 0x4025cb
push 4
lea eax, [ebp + 0x14]
push eax
push 3
push edi
push 0x5317e4
push dword [ebp - 0x1fc]
call esi
test eax, eax
jne 0x4025cb
push dword [ebp + 0x14]
push dword [ebp - 0x200]
push 3
push edi
push 0x5317ec
push dword [ebp - 0x1fc]
call esi
test eax, eax
jne 0x4025cb
push 4
lea eax, [ebp + 0x1c]
push eax
push 3
push edi
push 0x5317f4
push dword [ebp - 0x1fc]
call esi
test eax, eax
jne 0x4025cb
push dword [ebp + 0x1c]
push dword [ebp - 0x204]
push 3
push edi
push 0x5317fc
push dword [ebp - 0x1fc]
call esi
mov edi, eax
neg edi
sbb edi, edi
inc edi
push dword [ebp - 0x1fc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.004f7824
leave
ret
Function at 0x4025e7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5498f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x210], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x204], edx
mov edx, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x20c], edx
mov edx, dword [ebp + 0x18]
push edi
mov dword [ebp - 0x208], edx
jmp 0x402630
push ecx
push eax
push 0x5317cc
lea eax, [ebp - 0x1f8]
push 0x1f3
push eax
xor ebx, ebx
xor edi, edi
call fcn.004f7a96
add esp, 0x14
lea eax, [ebp - 0x1fc]
push eax
push 0xf003f
push ebx
lea eax, [ebp - 0x1f8]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402791
lea eax, [ebp - 0x200]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebx
push ebx
push 0x5317dc
push dword [ebp - 0x1fc]
mov dword [ebp - 0x200], 8
call esi
test eax, eax
jne 0x402785
lea eax, [ebp - 0x200]
push eax
push dword [ebp - 0x204]
mov dword [ebp - 0x200], 4
push ebx
push ebx
push 0x5317e4
push dword [ebp - 0x1fc]
call esi
test eax, eax
jne 0x402785
mov eax, dword [ebp - 0x204]
mov eax, dword [eax]
add eax, 0xa
push eax
call fcn.0040182c
pop ecx
push dword [ebp - 0x204]
mov ecx, dword [ebp - 0x210]
push eax
push ebx
push ebx
push 0x5317ec
push dword [ebp - 0x1fc]
mov dword [ecx], eax
call esi
test eax, eax
jne 0x402765
lea eax, [ebp - 0x200]
push eax
push dword [ebp - 0x208]
mov dword [ebp - 0x200], 4
push ebx
push ebx
push 0x5317f4
push dword [ebp - 0x1fc]
call esi
test eax, eax
jne 0x402765
mov edi, dword [ebp - 0x208]
mov eax, dword [edi]
add eax, 0xa
push eax
call fcn.0040182c
pop ecx
mov ecx, dword [ebp - 0x20c]
push edi
push eax
push ebx
push ebx
push 0x5317fc
push dword [ebp - 0x1fc]
mov dword [ecx], eax
call esi
mov edi, eax
neg edi
sbb edi, edi
inc edi
jne 0x402785
mov esi, dword [ebp - 0x210]
push dword [esi]
call fcn.00401849
mov dword [esi], ebx
mov esi, dword [ebp - 0x20c]
push dword [esi]
call fcn.00401849
pop ecx
pop ecx
mov dword [esi], ebx
push dword [ebp - 0x1fc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f7824
leave
ret

Function at 0x4027a2
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f8
mov eax, dword [0x5498f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
jmp 0x4027c4
test eax, eax
je 0x4027fa
cmp byte [eax], 0
je 0x4027fa
push eax
push ecx
push 0x5317cc
lea eax, [ebp - 0x1f8]
push 0xf9
push eax
call fcn.004f7a96
add esp, 0x14
lea eax, [ebp - 0x1f8]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f7824
leave
ret
Function at 0x4028e4
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
jmp 0x4028f6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x40
mov esi, eax
push 0x1000
lea eax, [esi + esi + 0x14]
push eax
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x402998
push ebx
lea ecx, [esi + esi + 2]
push ecx
push dword [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x402988
push 0x10
call fcn.0040182c
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [esi + 4], edi
mov dword [esi + 0xc], eax
mov dword [esp], 0x531834
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x531850
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push ebx
push dword [esi + 0xc]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push 0xffffffffffffffff
push eax
mov dword [esi + 8], eax
call fcn.00402382
pop ecx
pop ecx
push esi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, esi
jmp 0x40299a
push 0x8000
push ebx
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x4029fa
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
jmp 0x402a0d
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x80]
cmp dword [eax + edi + 0xc], 0
je 0x402a72
lea ebx, [eax + edi + 0xc]
mov eax, dword [ebx]
add eax, edi
push eax
push 0x531a34
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402a6a
mov esi, dword [ebx + 4]
add esi, edi
jmp 0x402a65
cmp dword [esi], 0x405cb2
jne 0x402a62
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x402a79
add esi, 4
cmp dword [esi], 0
jne 0x402a47
add ebx, 0x14
cmp dword [ebx], 0
jne 0x402a2c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp + 8]
mov edi, dword [esi]
test eax, eax
je 0x402a84
mov dword [esi], eax
push 0
push dword [ebp - 4]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, edi
jmp 0x402a74

Function at 0x403b83
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xf000
push dword [ebp + 0xc]
push 0x102c
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
shr eax, 0xd
and eax, 1
pop ebp
ret

Function at 0x403cad
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0
push 0
push 0xe
push dword [ebp + 8]
call esi
lea edi, [eax + 0xa]
lea eax, [edi + edi]
push eax
call fcn.0040182c
pop ecx
mov ebx, eax
push ebx
push edi
push 0xd
push dword [ebp + 8]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x403ce3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [0x55b060]
xor ebx, ebx
cmp edi, ebx
je 0x403d2a
cmp dword [ebp + 8], ebx
je 0x403d2a
push esi
push 8
call fcn.0040182c
push dword [ebp + 8]
mov esi, eax
mov dword [esi], edi
call fcn.00401a65
pop ecx
pop ecx
push ebx
push ebx
push esi
push 0x403d8e
push ebx
push ebx
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x403d2e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [0x55b060]
xor ebx, ebx
cmp edi, ebx
je 0x403d8a
cmp dword [ebp + 8], ebx
je 0x403d8a
push esi
push 8
call fcn.0040182c
pop ecx
push dword [ebp + 8]
mov esi, eax
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 0x14]
push eax
call fcn.0040182c
pop ecx
push dword [ebp + 8]
mov dword [esi + 4], eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
push ebx
push esi
push 0x403d8e
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404806
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, 0x400
push 0x800
mov dword [ebp - 4], esi
call fcn.0040182c
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
pop ecx
push dword [ebp + 8]
mov ebx, 0x531990
push esi
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 8], eax
push dword [ebp + 0xc]
call edi
cmp eax, esi
jl 0x404871
push dword [ebp - 8]
call fcn.00401849
add dword [ebp - 4], esi
mov eax, dword [ebp - 4]
add eax, eax
push eax
call fcn.0040182c
pop ecx
pop ecx
push dword [ebp + 8]
mov dword [ebp - 8], eax
push dword [ebp - 4]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call edi
cmp eax, dword [ebp - 4]
jge 0x404841
lea eax, [eax + eax + 0x14]
push eax
push dword [ebp - 8]
call fcn.00401735
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404cca
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x5498f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
push ecx
push eax
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x418], edx
call dword [sym.imp.USER32.dll_GetDlgItem]
xor esi, esi
push esi
push esi
push 0x1004
push eax
mov dword [ebp - 0x410], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x408], eax
push esi
push dword [ebp - 0x418]
lea eax, [ebp - 0x400]
push 0x531994
push 0x1f3
push eax
call fcn.004f7833
add esp, 0x14
cmp esi, dword [ebp - 0x408]
jle 0x404d62
push ebx
push 0xa
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x400]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x404d76
push ebx
push 0
lea eax, [ebp - 0x400]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
inc esi
jmp 0x404d1f
push dword [ebp - 0x410]
call fcn.0040357b
and dword [ebp - 0x404], 0
cmp dword [ebp - 0x408], 0
pop ecx
mov dword [ebp - 0x41c], eax
jle 0x404eba
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [ebp - 0x404]
lea eax, [ebp - 0x400]
push dword [ebp - 0x418]
push 0x531994
push 0x1f3
push eax
call fcn.004f7833
push 0x3e8
call fcn.0040182c
push dword [ebp - 0x404]
mov esi, eax
push dword [ebp - 0x410]
call fcn.00403b83
add esp, 0x20
test eax, eax
mov eax, 0x5319a4
jne 0x404df2
mov eax, 0x5319ac
push 0x1f4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
and dword [ebp - 0x40c], 0
cmp dword [ebp - 0x41c], 0
jle 0x404e81
push dword [ebp - 0x40c]
push dword [ebp - 0x404]
push dword [ebp - 0x410]
call fcn.00403857
add esp, 0xc
push esi
mov dword [ebp - 0x414], eax
call ebx
push dword [ebp - 0x414]
mov edi, eax
call ebx
lea edi, [eax + edi + 0xa]
lea eax, [edi + edi]
push eax
push esi
call fcn.00401735
push dword [ebp - 0x414]
mov esi, eax
push esi
push 0x5319b4
push edi
push esi
call fcn.004f7833
push dword [ebp - 0x414]
call fcn.0040199d
add esp, 0x20
inc dword [ebp - 0x40c]
mov eax, dword [ebp - 0x40c]
cmp eax, dword [ebp - 0x41c]
jl 0x404e0f
push dword [ebp - 0x424]
lea eax, [ebp - 0x400]
push esi
push eax
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push esi
call fcn.0040199d
inc dword [ebp - 0x404]
mov eax, dword [ebp - 0x404]
pop ecx
cmp eax, dword [ebp - 0x408]
jl 0x404da2
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x408]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f7824
leave
ret
Function at 0x40555e
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5498f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 2
pop eax
push 0x14e8
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x531c54
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x4055c8
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x4055c8
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4055c1
mov eax, esi
jmp 0x4055ca
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004f7824
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x4055e5
or eax, 0xffffffff
jmp 0x40560c
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push 0
sub eax, esi
add eax, dword [ebp + 0x10]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jle 0x405617
sub esi, eax
test esi, esi
jg 0x4055e9
xor eax, eax
pop esi
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
pop ebp
ret
or eax, 0xffffffff
jmp 0x40560b

Function at 0x4058f1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
xor edi, edi
push edi
push edi
push dword [ebp + 8]
push 0x405891
push edi
push edi
call esi
push edi
push edi
push dword [ebp + 8]
mov ebx, eax
push 0x405831
push edi
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
jmp 0x405938
push 0xffffffffffffffff
push edi
call esi
test eax, eax
je 0x405941
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xffffffffffffffff
push ebx
call esi
test eax, eax
jne 0x405927
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
pop edi
pop esi
pop ebx
pop ebp
ret