joyce8/EMBER2024-capa huggingface dataset:
Function at 0x63eef0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6e6510
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.006dc5b1
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x63ef23
xor al, al
jmp 0x63f04f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x63ef45
xor al, al
jmp 0x63f04f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x63ef58
xor al, al
jmp 0x63f04f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x63ef6c
xor al, al
jmp 0x63f04f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.006cfe5d
test eax, eax
jne 0x63efa0
xor al, al
jmp 0x63f04f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x808aec
mov dword [esp + 0x20], ebp
call fcn.006dc5b1
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.006d8e82
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.006d8ed9
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x63f034
mov ax, word [ebx]
test ax, ax
je 0x63f026
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.0063f070
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x63f00a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.006d8ed9
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x63f570
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.006da5e5
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x63f5b6
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.00694c3c
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x881368
push ecx
call fcn.00696f76
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x6427a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x6e66d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x40]
push ebx
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.00642b90
mov esi, eax
lea edx, [esp + 0x48]
xor ebx, ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0x986784
call fcn.00697b67
mov ecx, dword [0x808afc]
mov al, byte [esi]
push ecx
push ebx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.0063ff20
mov esi, 0x808b54
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x642847
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x64283e
cmp al, 0xff
je 0x64283e
dec al
mov byte [ecx], al
jmp 0x642847
push ecx
call fcn.006d1b12
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.006cbf50
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x18], esi
je 0x64288d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x642884
cmp al, 0xff
je 0x642884
dec al
mov byte [ecx], al
jmp 0x64288d
push ecx
call fcn.006d1b12
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00697bee
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x64df50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x64df9c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x64df9c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x64df86
push eax
call ebp
test ax, ax
jl 0x64df94
inc esi
add edi, 4
cmp esi, 6
jb 0x64df78
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.0064dc50
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x651c60
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x651cc0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x651cc0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x651cc0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x651cc0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x651cd0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x658ad0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
lea eax, [esp]
push esi
push eax
push 1
push 0
push str.Control_PanelDesktop
push reloc.WS2_32.dll_accept
mov esi, 3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x658b43
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.WheelScrollLines
push ecx
mov dword [esp + 0x20], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x658b38
push 0xa
lea edx, [esp + 0x14]
push eax
push edx
call fcn.00697b34
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x8c
ret
Function at 0x669210
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6e7df8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x9352c0]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0xc]
push eax
push 0x887370
push ecx
mov byte [esp + 0x2c], 1
call fcn.006cea61
add esp, 0xc
lea edx, [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push 0x88736c
push eax
call fcn.006d2065
push 0x887368
lea ecx, [esp + 0x30]
mov bl, 2
push eax
push ecx
mov byte [esp + 0x2c], bl
call fcn.006d1ff1
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 3
call fcn.006d1e95
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], bl
call fcn.006d1da8
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 1
call fcn.006d1da8
mov edi, dword [esi + 0x118]
mov eax, dword [esi + 0x114]
cmp edi, eax
jge 0x669368
push ebp
mov ebp, dword [esp + 0x2c]
mov al, byte [esp + 0x34]
test al, al
je 0x6692dc
push 1
push 0x9a0904
jmp 0x66934f
push ebp
lea edx, [esp + 0x34]
push edi
push edx
mov ecx, esi
call fcn.00665290
mov eax, dword [eax]
mov ebx, dword [esp + 0x10]
push eax
mov byte [esp + 0x28], 4
call fcn.00694b5a
push ecx
lea eax, [esp + 0x1c]
fstp qword [esp]
push ebx
push eax
call fcn.006cea61
add esp, 0x10
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 1
call fcn.006d1da8
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00694b5a
fcomp qword [0x80a930]
add esp, 4
fnstsw ax
test ah, 0x40
je 0x669348
mov eax, dword [esi + 0x348]
test eax, eax
jne 0x669358
push 1
push 0x9a0904
jmp 0x66934f
mov edx, dword [esp + 0x14]
push 1
push edx
push ebp
push edi
mov ecx, esi
call fcn.0065fe70
mov eax, dword [esi + 0x114]
inc edi
cmp edi, eax
jl 0x6692cb
pop ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call fcn.006d1da8
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.006d1da8
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
Function at 0x66c850
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x6e8266
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
mov eax, dword [0x9352c0]
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], eax
lea ecx, [esp + 8]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xb0], ebx
call fcn.006d41f4
cmp dword [0x9a0918], ebx
je 0x66c8c0
lea ecx, [esp + 8]
mov dword [esp + 0xac], 0xffffffff
call fcn.006d1da8
pop esi
pop ebx
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
add esp, 0xa8
ret
mov edx, dword [0x9352c0]
push ebp
push edi
mov edi, 1
mov dword [0x9a0918], edi
mov dword [esp + 0x40], edx
lea eax, [esp + 0x20]
mov byte [esp + 0xb4], 1
push eax
call fcn.006594c0
add esp, 4
cmp esi, ebx
jne 0x66c8f6
mov dword [esp + 0x20], ebx
jmp 0x66c8fd
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x20], ecx
mov ecx, esi
call fcn.006d645e
mov edx, dword [esi + 0x84]
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x88]
push ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], 5
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
call fcn.006d1e95
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x1c], edx
jne 0x66c95b
mov dword [esp + 0x14], ebx
jmp 0x66c962
mov ebp, dword [eax + 0x1c]
mov dword [esp + 0x14], ebp
cmp ecx, 0xd
jne 0x66c97c
mov eax, dword [eax + 0x3d0]
cmp eax, edi
je 0x66c976
cmp eax, 2
jne 0x66c97c
mov dword [esp + 0x18], edi
jmp 0x66c980
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x66c98e
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.006d3829
mov edi, eax
cmp edi, ebx
jne 0x66c99e
xor eax, eax
jmp 0x66c9a1
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x66c9c9
mov ecx, esi
call fcn.006d645e
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [edi + 0x1c]
push 0x4e
push eax
call ebp
mov esi, dword [esp + 0x1c]
push esi
call ebx
test eax, eax
je 0x66c9e1
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x18]
mov dword [0x9a0918], 0
test eax, eax
je 0x66ca0a
mov esi, dword [esp + 0x14]
push esi
call ebx
test eax, eax
je 0x66ca0a
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0xb4], 0
call fcn.006d1da8
lea ecx, [esp + 0x10]
mov dword [esp + 0xb4], 0xffffffff
call fcn.006d1da8
mov ecx, dword [esp + 0xac]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa8
ret
Function at 0x66e9d0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x6e8458
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.006d8bda
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov ecx, esi
mov dword [esp + 0x44], 0
call fcn.0066e910
mov ecx, dword [esi + 0x174]
mov eax, dword [esi + 0x178]
add ecx, 0x64
add eax, 0x64
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.006d8b08
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x66ea97
cmp dword [esp + 0x40], 1
jne 0x66ea95
cmp ecx, eax
jge 0x66ea97
mov eax, ecx
cmp eax, 0x12c
jge 0x66eaa3
mov eax, 0x12c
mov ecx, esi
mov dword [esi + 0x194], eax
mov dword [esi + 0x1dc], 1
call fcn.0066eaf0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.006d8c4c
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x674590
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x6e8a56
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
mov eax, dword [0x9352c0]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xb4], ebx
call fcn.006d41f4
mov edx, dword [0x9352c0]
mov dword [esp + 0x3c], edx
lea eax, [esp + 0x1c]
mov byte [esp + 0xb0], 1
push eax
call fcn.006594c0
add esp, 4
cmp esi, ebx
jne 0x6745f7
mov dword [esp + 0x1c], ebx
jmp 0x6745fe
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x1c], ecx
push edi
mov ecx, esi
call fcn.006d645e
mov edx, dword [esi + 0x3c]
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x40]
mov edi, 1
push ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], edi
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
call fcn.006d1e95
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x1c], ecx
jne 0x67464f
mov dword [esp + 0x14], ebx
jmp 0x674656
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x44], 0xd
jne 0x674671
mov eax, dword [eax + 0x3d0]
cmp eax, edi
je 0x67466b
cmp eax, 2
jne 0x674671
mov dword [esp + 0x18], edi
jmp 0x674675
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x674683
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.006d3829
mov edi, eax
cmp edi, ebx
jne 0x674693
xor eax, eax
jmp 0x674696
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x6746be
mov ecx, esi
call fcn.006d645e
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call ebx
test eax, eax
pop edi
je 0x6746da
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x6746f9
mov esi, dword [esp + 0x10]
push esi
call ebx
test eax, eax
je 0x6746f9
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0xb0], 0
call fcn.006d1da8
lea ecx, [esp + 0xc]
mov dword [esp + 0xb0], 0xffffffff
call fcn.006d1da8
mov ecx, dword [esp + 0xa8]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa8
ret
Function at 0x675ef0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x675f56
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x675f56
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x675f37
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x6766e0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x676718
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x6772d0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00677420
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x6772f0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x6772d1
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00677420
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x6772f0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x677320
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x677377
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x67738d
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.006773b0
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x6773b0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x677440
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x677489
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x677900
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6e8e80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.006774b0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00677530
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00677530
lea ecx, [esi + 0xc]
call fcn.006d1d33
lea ecx, [esi + 0x10]
call fcn.006d1d33
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00679d60
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00679d60
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00679d60
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.006d1da8
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.006d1da8
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x6785a8
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6e90a8
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x6785b8
call fcn.00678ad0
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x67869b
cmp byte [edi], 0
je 0x67869b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x6785dd
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.006772d0
test eax, eax
jne 0x6785fd
push 0x8878b4
lea ecx, [esi + 0x38]
call fcn.006d1ee5
jmp 0x67869b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.00677320
test eax, eax
jne 0x67862c
mov ecx, esi
call fcn.00677420
push edi
add esi, 0x38
push 0x887890
push esi
call fcn.006cea61
add esp, 0xc
jmp 0x67869b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.00679350
test eax, eax
je 0x678694
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.00678770
test eax, eax
jne 0x6786b0
push edi
lea eax, [esi + 0x38]
push 0x88786c
push eax
call fcn.006cea61
add esp, 0xc
mov ecx, esi
call fcn.00678ad0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x678758
mov ecx, dword [0x9352c0]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.006cea61
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.006773d0
test eax, eax
jne 0x67871a
push 0x887850
lea ecx, [esi + 0x38]
call fcn.006d1ee5
jmp 0x67872a
push 0xfa
mov ecx, esi
call fcn.00679350
test eax, eax
jne 0x678747
mov ecx, esi
call fcn.00678ad0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.006d1da8
jmp 0x67869b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.006d1da8
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x67eed0
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
jne 0x67eee0
mov esi, 1
push esi
call fcn.00695957
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x67ef32
call fcn.006965dd
mov edi, eax
call fcn.00681a20
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov edi, eax
and edi, 8
je 0x67ef16
mov edx, dword [0x88a2e0]
mov dword [0x88a2dc], edx
test al, 0x18
je 0x67ef27
push esi
push 0x24
push 5
call fcn.00682270
add esp, 0xc
test edi, edi
je 0x67ef4d
push 1
call fcn.006974af
test byte [esp + 0x14], 0x20
je 0x67ef4d
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x680050
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov edx, dword [ebp + 0x10]
test edx, edx
push ebx
push esi
push edi
je 0x680144
cmp byte [edx], 0
je 0x680137
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add eax, 8
or ecx, 0xffffffff
mov dword [esp + 0xc], eax
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x20]
push ecx
mov esi, ebx
call fcn.0067ffd0
mov edi, dword [ebp + 0xc]
push 8
lea edx, [esp + 0x20]
push edi
push edx
call fcn.0067ffd0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
xor eax, edx
push eax
xor ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.0067ff40
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp edi, eax
jae 0x680101
sub eax, edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
call fcn.0067ff80
fmul qword [0x80bfe8]
push ecx
fstp qword [esp]
call fcn.00694278
fadd qword [0x80bfe0]
add esp, 8
call fcn.00694348
mov byte [ebx], al
inc ebx
dec edi
jne 0x6800d4
lea ecx, [esp + 0x20]
push ecx
call fcn.0067ff80
fmul qword [0x80bfe8]
push ecx
fstp qword [esp]
call fcn.00694278
add esp, 8
call fcn.00694348
cmp esi, ebx
je 0x68012d
xor byte [esi], al
inc esi
cmp esi, ebx
jne 0x680126
mov byte [ebx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov byte [edx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret