joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4074f0
Capabilities:
Log keystrokes via application hook

Disassembly:
sub esp, 0x94
push esi
push edi
mov esi, ecx
call fcn.00407620
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x407540
push str.HotEdit:_Platform_is_WIN32s_and_not_allowed.
call fcn.0040a2a0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
add esp, 0x94
ret
cmp eax, 1
push ebx
jne 0x4075a6
call fcn.00460f3e
mov eax, dword [eax + 8]
mov edi, dword [sym.imp.USER32.dll_SetWindowsHookExA]
push 0
push eax
push 0x407f70
push 2
call edi
mov ebx, dword [sym.imp.USER32.dll_MessageBeep]
mov dword [esi + 0xb4], eax
test eax, eax
jne 0x407581
push str.HotEdit:_Unable_to_set_Windows_9x_hook_for_hotkey_detection.
call fcn.0040a2a0
add esp, 4
push 0x30
call ebx
call fcn.00460f3e
mov eax, dword [eax + 8]
push 0
push eax
push 0x4082b0
push 7
call edi
test eax, eax
mov dword [esi + 0xc0], eax
jne 0x407610
push str.HotEdit:_Unable_to_set_Windows_9x_hook_for_mouse_detection.
jmp 0x407604
call fcn.00460f3e
mov eax, dword [eax + 8]
mov edi, dword [sym.imp.USER32.dll_SetWindowsHookExA]
push 0
push eax
push 0x407dc0
push 0xd
call edi
mov ebx, dword [sym.imp.USER32.dll_MessageBeep]
mov dword [esi + 0xb4], eax
test eax, eax
jne 0x4075e1
push str.HotEdit:_Unable_to_set_Windows_NT_hook_for_hotkey_detection.
call fcn.0040a2a0
add esp, 4
push 0x30
call ebx
call fcn.00460f3e
mov eax, dword [eax + 8]
push 0
push eax
push 0x408120
push 0xe
call edi
test eax, eax
mov dword [esi + 0xc0], eax
jne 0x407610
push str.HotEdit:_Unable_to_set_Windows_NT_hook_for_mouse_detection.
call fcn.0040a2a0
add esp, 4
push 0x30
call ebx
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x94
ret
Function at 0x4096c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x218
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x234]
mov dword [esp + 0x10], ecx
test edi, edi
je 0x40981b
cmp byte [edi], 0
je 0x40981b
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x40981b
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x40981b
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x28]
mov eax, ecx
mov esi, edi
mov edi, edx
xor ebx, ebx
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 + 0x28]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
test ebp, ebp
jle 0x40975c
movzx dx, byte [esp + eax + 0x28]
mov ecx, ebx
and ecx, 0xffff
shr ecx, 8
mov cx, word [ecx*2 + 0x4809ac]
xor cx, dx
xor edx, edx
mov dh, bl
xor ecx, edx
inc eax
cmp eax, ebp
mov ebx, ecx
jl 0x409733
call fcn.00445311
mov edi, dword [esp + 0x10]
cdq
idiv dword [edi + 0x10]
lea eax, [esp + 0x28]
mov ecx, edi
push eax
push ebp
mov esi, edx
push esi
call fcn.0040a190
test eax, eax
jne 0x40981b
and ebx, 0xffff
and esi, 0xffff
push ebx
push esi
lea ecx, [esp + 0x130]
push str._04X_04X
push ecx
call fcn.004450e0
add esp, 0x10
xor ebx, ebx
test ebp, ebp
jle 0x4097fc
xor edx, edx
lea eax, [esp + 0x14]
mov dl, byte [esp + ebx + 0x28]
push edx
push str._02X
push eax
call fcn.004450e0
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x128]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebx
cmp ebx, ebp
rep movsb byte es:[edi], byte [esi]
jl 0x4097aa
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x230]
mov edx, dword [esp + 0x22c]
lea eax, [esp + 0x128]
push eax
push ecx
push edx
mov ecx, edi
call fcn.00409690
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 0xc

Function at 0x409970
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46522f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x486ed0]
push ebx
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
mov edi, 1
cmp eax, ebx
mov dword [esp + 0x1c], edi
je 0x4099b7
push eax
lea ecx, [esp + 0x10]
call fcn.0045b3b2
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, esi
call fcn.00409430
cmp eax, ebx
jne 0x4099dd
mov esi, dword [esp + 0x24]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.0045af9e
mov dword [esp + 0x10], edi
jmp 0x409a07
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, eax
call fcn.00408ff0
cmp eax, ebx
jne 0x4099f4
lea edx, [esp + 0xc]
push edx
jmp 0x4099f8
add eax, 4
push eax
mov esi, dword [esp + 0x28]
mov ecx, esi
call fcn.0045af9e
mov dword [esp + 0x10], edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], bl
call fcn.0045b229
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
Function at 0x409a90
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xb0]
xor ebx, ebx
push esi
cmp ebp, ebx
push edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], ebx
jne 0x409ab9
push 0x48af38
jmp 0x409c0d
mov eax, dword [ebp + 4]
mov ecx, dword [eax - 8]
cmp ecx, 9
jge 0x409ace
push 0x48af38
jmp 0x409c0d
cmp ecx, 0x80
jl 0x409ae0
push 0x48af38
jmp 0x409c0d
and ecx, 0x80000001
jns 0x409aed
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x409af9
push 0x48af38
jmp 0x409c0d
mov cl, byte [eax]
push 0x10
mov byte [esp + 0x14], cl
mov dl, byte [eax + 1]
mov byte [esp + 0x15], dl
mov cl, byte [eax + 2]
mov byte [esp + 0x16], cl
mov dl, byte [eax + 3]
lea eax, [esp + 0x14]
push ebx
push eax
mov byte [esp + 0x1f], dl
mov byte [esp + 0x20], bl
call fcn.004450c9
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 4]
push 0x10
push ebx
mov cl, byte [eax + 4]
mov byte [esp + 0x24], cl
mov dl, byte [eax + 5]
mov byte [esp + 0x25], dl
mov cl, byte [eax + 6]
mov byte [esp + 0x26], cl
mov dl, byte [eax + 7]
lea eax, [esp + 0x24]
mov byte [esp + 0x27], dl
push eax
mov byte [esp + 0x2c], bl
call fcn.004450c9
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 4]
mov esi, 8
add esp, 0x18
mov ecx, dword [eax - 8]
xor edi, edi
cmp ecx, esi
jle 0x409ba6
mov cl, byte [eax + esi]
push 0x10
mov byte [esp + 0x14], cl
mov dl, byte [eax + esi + 1]
lea eax, [esp + 0x14]
push ebx
push eax
mov byte [esp + 0x1d], dl
mov byte [esp + 0x1e], bl
call fcn.004450c9
mov byte [esp + edi + 0x3c], al
mov eax, dword [ebp + 4]
add esp, 0xc
add esi, 2
mov ecx, dword [eax - 8]
inc edi
cmp esi, ecx
jl 0x409b71
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x2c]
push edi
push edx
mov byte [esp + edi + 0x3c], bl
call fcn.0040a200
test eax, eax
je 0x409bc9
push 0x48af38
jmp 0x409c0d
xor eax, eax
xor ecx, ecx
cmp edi, ebx
jle 0x409bfa
movzx si, byte [esp + ecx + 0x30]
mov edx, eax
xor ebx, ebx
and edx, 0xffff
mov bh, al
shr edx, 8
mov dx, word [edx*2 + 0x4809ac]
xor dx, si
xor edx, ebx
inc ecx
cmp ecx, edi
mov eax, edx
jl 0x409bd1
cmp word [esp + 0x24], ax
je 0x409c08
push 0x48af38
jmp 0x409c0d
lea eax, [esp + 0x30]
push eax
mov esi, dword [esp + 0xb8]
mov ecx, esi
call fcn.0045b297
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret 8
Function at 0x409f70
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
mov esi, ecx
call fcn.00409f50
push 0x100
mov dword [esi + 0x10], 0x100
call fcn.0045af6a
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x40a07f
push edi
push 0
call fcn.004454c6
push eax
call fcn.00445304
mov eax, dword [esi + 0x10]
add esp, 8
xor edi, edi
test eax, eax
jle 0x409fd6
call fcn.00445311
and eax, 0x800000ff
jns 0x409fc7
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [esi + 0x14]
inc edi
mov byte [ecx + edi - 1], al
mov eax, dword [esi + 0x10]
cmp edi, eax
jl 0x409fb4
lea edx, [esp + 0xc]
lea eax, [esp + 8]
push edx
push eax
push 0
push 0xf003f
push 0
push 0x48af38
push 0
push str.SoftwareVentrilo
push closesocket
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
pop edi
je 0x40a02f
mov ecx, esi
call fcn.00409f50
push 0
push 0
push str.Unable_to_create_system_registry_key_to_save_data.
call fcn.0045ece2
pop esi
add esp, 8
ret
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 4]
push ecx
push edx
push 3
push 0
push str.Data
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40a074
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
call fcn.00409f50
push 0
push 0
push str.Unable_to_set_the_system_registry_information.
call fcn.0045ece2
pop esi
add esp, 8
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 8
ret

Function at 0x40a090
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
call fcn.00409f50
push 0x100
mov dword [esi + 0x10], 0x100
call fcn.0045af6a
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x40a186
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push str.SoftwareVentrilo
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40a0f3
mov ecx, esi
call fcn.00409f50
push str.Unable_to_open_system_registry_key_to_read_data.
call fcn.0040a2a0
add esp, 4
pop esi
add esp, 0xc
ret
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
lea edx, [esp + 8]
mov dword [esp + 8], ecx
push edx
mov edx, dword [esp + 8]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push str.Data
push edx
mov dword [esp + 0x24], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40a14b
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
call fcn.00409f50
push 0
push 0
push str.Unable_to_read_the_system_registry_data.
call fcn.0045ece2
pop esi
add esp, 0xc
ret
mov ecx, dword [esp + 8]
mov eax, dword [esi + 0x10]
cmp ecx, eax
je 0x40a17b
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
call fcn.00409f50
push 0
push 0
push str.Error_reading_the_system_registry_data.
call fcn.0045ece2
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0xc
ret
Function at 0x40a7f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40a852
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc

Function at 0x40a86c
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x410
push ebx
push ebp
push esi
mov esi, ecx
push edi
push eax
lea ecx, [esp + 0x21c]
push str.__s_
push ecx
xor ebp, ebp
call fcn.004450e0
mov ebx, dword [esp + 0x434]
add esp, 0xc
lea edx, [esp + 0x218]
push ebx
push ebp
push ebp
push edx
push str.open
push ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x40a961
lea eax, [esp + 0x10]
mov ecx, esi
push eax
push str..htm
push closesocket
call fcn.0040a7f0
test eax, eax
jne 0x40a973
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
push str._shellopencommand
push ecx
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x10]
push edx
push eax
push closesocket
mov ecx, esi
call fcn.0040a7f0
test eax, eax
jne 0x40a973
lea ecx, [esp + 0x10]
push str.__1_
push ecx
call fcn.00445910
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a93a
lea edx, [esp + 0x10]
push 0x482180
push edx
call fcn.00445910
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a93a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x40a93d
mov byte [esi], 0
push 0x48217c
push esi
call edi
lea ecx, [esp + 0x218]
push ecx
push esi
call edi
lea edx, [esp + 0x10]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
jbe 0x40a973
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x410
ret 8
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x410
ret 8
Function at 0x412af1
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4668db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x486ed0]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x10], eax
xor ebx, ebx
mov dword [esp + 0x24], ebx
call fcn.00419890
mov esi, eax
cmp esi, ebx
je 0x412bd5
cmp dword [ebp + 0x5f4], ebx
je 0x412bd5
mov ecx, ebp
call fcn.004198d0
cmp eax, ebx
je 0x412bd5
mov cl, byte [ebp + 0x1d13]
test cl, cl
jne 0x412a62
cmp dword [esi + 0x100], ebx
je 0x412a62
lea ecx, [ebp + 0x1d0c]
push ecx
jmp 0x412a66
add eax, 0x10
push eax
lea ecx, [esp + 0x14]
call fcn.0045b362
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], ebx
je 0x412bd5
mov edx, dword [0x486ed0]
mov dword [esp + 0x14], edx
push eax
mov ecx, ebp
mov byte [esp + 0x28], 1
call fcn.004158a0
mov edi, eax
cmp edi, ebx
jne 0x412ab0
mov eax, dword [esp + 0x10]
push eax
push str.The_channel_name__s_was_not_found._Unable_to_automatically_switch_to_it.
call fcn.0040a2a0
add esp, 8
jmp 0x412bc7
lea ecx, [esp + 0x14]
push ecx
push edi
mov ecx, ebp
call fcn.00416450
mov edx, dword [ebp + 0x1d28]
cmp dword [edx - 8], ebx
je 0x412b1e
mov eax, dword [ebp + 0x1d3c]
lea esi, [ebp + 0x1d3c]
cmp dword [eax - 8], ebx
je 0x412b1e
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 8], ebx
je 0x412b14
push eax
push ecx
call fcn.0044acc0
add esp, 8
test eax, eax
je 0x412b1e
push ebx
push 4
push str.The_channel_password_specified_in_the_web_link_does_not_match_nthe_password_you_used_the_last_time_you_entered_that_channel._n_nWould_you_like_to_use_web_link_password_
call fcn.0045ece2
cmp eax, 6
jne 0x412b1e
mov eax, dword [esi]
mov ecx, ebp
push eax
push edi
call fcn.00416510
mov ecx, ebp
call fcn.00416570
push esi
lea ecx, [esp + 0x18]
call fcn.0045b362
lea ecx, [ebp + 0x1d3c]
call fcn.0045b1b4
push 8
call fcn.0045af6a
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0x24], 2
je 0x412b49
mov ecx, eax
call fcn.004239d0
mov ebx, eax
push 0xa
mov ecx, ebx
mov byte [esp + 0x28], 1
call fcn.00423a90
mov esi, eax
mov eax, dword [ebp + 0x5f4]
push 0x20
mov cx, word [eax + 0x82]
xor eax, eax
mov word [esi + 4], cx
mov dx, word [edi + 0x82]
mov ecx, 8
lea edi, [esi + 0x10]
mov word [esi + 6], dx
mov word [esi + 8], 3
mov word [esi + 0xa], ax
mov dword [esi + 0xc], eax
rep stosd dword es:[edi], eax
mov ecx, 8
lea edi, [esi + 0x30]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x18]
lea ecx, [esi + 0x50]
push eax
push ecx
call fcn.00444b30
mov ecx, 8
xor eax, eax
lea edi, [esi + 0x70]
add esp, 0xc
mov byte [esi + 0x6f], 0
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x5f4]
push ebx
call fcn.00422b50
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call fcn.0045b229
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.0045b229
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x4228f0
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
sub esp, 8
push esi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42290e
xor al, al
pop esi
add esp, 8
ret
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esp + 8]
push 4
push eax
push 8
push 0xffff
push esi
mov dword [esp + 0x1c], 1
call edi
lea ecx, [esp + 8]
push 4
push ecx
push 4
push 0xffff
push esi
mov dword [esp + 0x1c], 1
call edi
lea edx, [esp + 0xc]
push 4
push edx
push 0x80
xor eax, eax
push 0xffff
push esi
mov word [esp + 0x20], ax
mov word [esp + 0x22], ax
call edi
lea eax, [esp + 8]
push 4
push eax
push 1
push 6
push esi
mov dword [esp + 0x1c], 1
call edi
mov ecx, dword [esp + 0x18]
pop edi
mov al, 1
mov dword [ecx], esi
pop esi
add esp, 8
ret

Function at 0x422990
Capabilities:
Access peb ldr_data
Connect socket
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x467728
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
xor eax, eax
push ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [0x486ed0]
push ebp
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x48]
xor ecx, ecx
mov dword [esp + 0x28], ecx
push edi
mov dword [esp + 0x30], ecx
mov word [esp + 0x2c], 2
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
call dword [sym.imp.WS2_32.dll_htonl]
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x2c], eax
push ebp
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [esp + 0x4c]
lea edx, [esp + 0x28]
push 0x10
push edx
push esi
mov word [esp + 0x36], ax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x422a2f
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], 0xffffffff
call fcn.0045b229
xor al, al
jmp 0x422b1a
push edi
call dword [sym.imp.WS2_32.dll_htonl]
mov edi, dword [sym.imp.WS2_32.dll_getsockopt]
mov dword [ebx + 0x7c], eax
lea eax, [esp + 0x48]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0x1001
push 0xffff
push esi
mov dword [esp + 0x5c], 4
call edi
lea edx, [esp + 0x10]
push 4
push edx
push 0x1001
push 0xffff
push esi
mov dword [esp + 0x24], 0x20000
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esp + 0x48]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0x1001
push 0xffff
push esi
mov dword [esp + 0x5c], 4
call edi
lea edx, [esp + 0x48]
lea eax, [esp + 0x20]
push edx
push eax
push 0x1002
push 0xffff
push esi
mov dword [esp + 0x5c], 4
call edi
lea ecx, [esp + 0x10]
push 4
push ecx
push 0x1002
push 0xffff
push esi
mov dword [esp + 0x24], 0x20000
call dword [sym.imp.WS2_32.dll_setsockopt]
lea edx, [esp + 0x48]
lea eax, [esp + 0x24]
push edx
push eax
push 0x1002
push 0xffff
push esi
mov dword [esp + 0x5c], 4
call edi
not ebp
lea ecx, [esp + 0x14]
mov word [ebx + 0x80], bp
mov dword [ebx + 0x1c], esi
mov dword [esp + 0x40], 0xffffffff
call fcn.0045b229
mov al, 1
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 0xc
Function at 0x423510
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
test eax, eax
push edi
mov ebx, ecx
mov esi, eax
jle 0x423549
mov ebp, dword [sym.imp.WS2_32.dll_recv]
mov edi, dword [esp + 0x14]
mov eax, dword [ebx + 0x1c]
push 0
push esi
push edi
push eax
call ebp
cmp eax, 0xffffffff
je 0x423559
test eax, eax
je 0x423563
sub esi, eax
add edi, eax
test esi, esi
jg 0x42352a
mov eax, dword [esp + 0x18]
test esi, esi
jge 0x423552
mov eax, 0xfffffffd
pop edi
pop esi
pop ebp
pop ebx
ret 8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 8
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
ret 8

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

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov ebp, ecx
test edi, edi
jle 0x42362f
mov ebx, dword [esp + 0x14]
mov eax, dword [ebp + 0x1c]
push 0
push edi
push ebx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp esi, 0xffffffff
je 0x423638
test esi, esi
je 0x423642
cmp esi, edi
je 0x423627
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
sub edi, esi
add ebx, esi
test edi, edi
jg 0x423602
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 8
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
ret 8

Function at 0x424060
Capabilities:
Contain obfuscated stackstrings
Resolve dns

Disassembly:
sub esp, 0x50
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x424108
mov al, 0x6f
mov dl, 0x6e
mov byte [esp + 6], al
mov byte [esp + 0xa], al
mov byte [esp + 0x13], al
mov byte [esp + 0x16], al
lea eax, [esp + 4]
mov cl, 0x2e
push eax
mov byte [esp + 8], 0x70
mov byte [esp + 9], 0x72
mov byte [esp + 0xb], 0x69
mov byte [esp + 0xc], dl
mov byte [esp + 0xd], 0x66
mov byte [esp + 0xf], cl
mov byte [esp + 0x10], 0x76
mov byte [esp + 0x11], 0x65
mov byte [esp + 0x12], dl
mov byte [esp + 0x13], 0x74
mov byte [esp + 0x14], 0x72
mov byte [esp + 0x15], 0x69
mov byte [esp + 0x16], 0x6c
mov byte [esp + 0x18], cl
mov byte [esp + 0x19], 0x63
mov byte [esp + 0x1b], 0x6d
mov byte [esp + 0x1c], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4240ef
or eax, 0xffffffff
pop esi
add esp, 0x50
ret
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
test eax, eax
je 0x424108
mov eax, dword [eax]
test eax, eax
je 0x424108
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esi + 0x10], eax
xor eax, eax
pop esi
add esp, 0x50
ret
Function at 0x424110
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
call fcn.004241c0
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x424136
or eax, eax
pop esi
add esp, 0x14
ret
lea ecx, [esp + 4]
push 4
push ecx
push 0x20
push 0xffff
push eax
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x424168
mov ecx, esi
call fcn.004241c0
mov eax, 0xfffffffe
pop esi
add esp, 0x14
ret
mov ecx, dword [esi + 0xc]
xor edx, edx
mov dword [esp + 8], edx
xor eax, eax
mov dword [esp + 0xc], edx
mov word [esp + 0xa], ax
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push 0x10
mov dword [esp + 0x14], edx
push eax
push ecx
mov dword [esp + 0x20], edx
mov word [esp + 0x14], 2
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x4241b3
mov ecx, esi
call fcn.004241c0
mov eax, 0xfffffffd
pop esi
add esp, 0x14
ret
xor eax, eax
pop esi
add esp, 0x14
ret

Function at 0x42c7c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x468bb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00438fb0
mov edx, dword [esi + 0x8a4]
mov dword [esp + 0x28], 0
test edx, edx
je 0x42c940
mov ecx, dword [esi + 0x8a8]
test ecx, ecx
je 0x42c940
mov eax, dword [esi + 0x8ac]
test eax, eax
je 0x42c940
push eax
mov eax, dword [edx + 0x30]
push ecx
push eax
lea ecx, [esp + 0x10]
call fcn.00438ec0
test eax, eax
jne 0x42c940
mov ecx, dword [esi + 0x8ac]
mov eax, dword [ecx + 0x7c]
lea ecx, [eax - 1]
cmp ecx, 0x7fff
jbe 0x42c846
mov ecx, 0x7fff
mov eax, 0x66666667
mov dword [esi + 0x89c], ecx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esi + 0x8a0], edx
jne 0x42c86f
mov dword [esi + 0x8a0], 1
mov al, byte [esp + 0x30]
push ebx
test al, al
push edi
je 0x42c890
mov eax, dword [esp + 0x24]
push 0xffff
push ecx
mov edx, dword [eax]
mov dword [esi + 0x1d28], edx
mov eax, dword [eax]
push eax
jmp 0x42c89d
push 0xffff
push ecx
mov ecx, dword [esi + 0x1d28]
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, dword [esi + 0x8ac]
mov ebx, eax
mov eax, 0x24924925
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [edx + 0x7c]
push 0
mul ecx
sub ecx, edx
mov eax, dword [esi + 0x300]
shr ecx, 1
add ecx, edx
shr ecx, 2
push ecx
push 0x414
push eax
call edi
mov ecx, dword [esi + 0x89c]
push 1
push ecx
push 0
lea ecx, [esi + 0x2e4]
call fcn.00455f13
mov eax, dword [esi + 0x8a0]
mov edx, dword [esi + 0x300]
push eax
push 0
push 0x415
push edx
call edi
mov eax, dword [esi + 0x89c]
sub eax, ebx
push eax
mov eax, dword [esi + 0x300]
push 1
push 0x405
push eax
call edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00438e30
pop edi
pop ebx
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
lea ecx, [esp + 4]
mov dword [esp + 0x28], 0xffffffff
call fcn.00438e30
mov ecx, dword [esp + 0x20]
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4