joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401316
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [0x461b58]
mov eax, 0x8000
push esi
push edi
test word [ecx + 4], ax
je 0x401373
mov byte [ebp - 8], 0x10
mov byte [ebp - 7], 0x11
mov byte [ebp - 6], 0x12
mov byte [ebp - 5], 1
mov byte [ebp - 4], 2
xor edi, edi
xor esi, esi
movzx eax, byte [ebp + esi - 8]
push eax
call fcn.004329ff
test al, al
jne 0x40135d
inc esi
cmp esi, 5
jb 0x401346
jmp 0x401365
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 5
je 0x401373
inc edi
cmp edi, 0xc8
jl 0x401344
mov eax, dword [0x461b58]
movzx esi, word [eax + 4]
and esi, 0x19
je 0x40142c
push dword [0x461b54]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x461b48], eax
test eax, eax
jne 0x4013a6
push 0xfffffffffffffffe
call dword [sym.imp.msvcrt.dll__exit]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40142c
dec esi
je 0x40139e
sub esi, 7
push ebx
je 0x401414
sub esi, 8
jne 0x40142b
push dword [0x461b54]
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
mov edi, 0x45194c
push edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4013f7
push 0x19
push dword [0x461b48]
call ebx
cmp eax, 0x102
jne 0x401422
push dword [0x461b54]
push edi
call esi
test eax, eax
je 0x4013dd
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0xffffffffffffffff
push dword [0x461b48]
call ebx
jmp 0x401422
push 0xffffffffffffffff
push dword [0x461b48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x40139e
pop ebx
push 2
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
pop edi
pop esi
leave
ret

Function at 0x401b05
Capabilities:
Allocate or change rwx memory

Disassembly:
cmp dword [0x461c20], 0
jne 0x401b28
push 0x40
push 0x3000
push dword [0x462198]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x461c1c], eax
mov ecx, dword [0x461c20]
mov eax, dword [0x461c1c]
mov edx, dword [0x462198]
add eax, ecx
add ecx, 0xa
add edx, 0xfffffff6
mov dword [0x461c20], ecx
cmp ecx, edx
jbe 0x401b52
and dword [0x461c20], 0
cmp byte [esp + 0xc], 0
mov cx, word [esp + 8]
mov word [eax + 1], cx
mov cx, word [esp + 4]
mov word [eax + 3], cx
mov byte [eax], 0x68
mov byte [eax + 5], 0xe9
mov ecx, 0x403341
jne 0x401b7c
mov ecx, 0x403330
sub ecx, eax
sub ecx, 0xa
mov dword [eax + 6], ecx
ret 0xc
Function at 0x4024e5
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x44e2bd
call fcn.0044d07c
sub esp, 0x34
push ebx
push esi
push 1
xor ebx, ebx
push ebx
push dword [ebp + 0x14]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.004300b9
mov esi, eax
add esp, 0x14
cmp esi, ebx
jne 0x402521
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
lea ecx, [ebp - 0x40]
call fcn.00401c1f
mov dword [ebp - 4], ebx
push dword [0x4621b8]
lea ecx, [ebp - 0x40]
push dword [ebp + 0xc]
call fcn.004371e1
push dword [ebp - 0x40]
call fcn.00430dfd
mov dword [esp], str.QME_temp_file
push ebx
push ebx
mov byte [ebp - 0xd], al
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x402587
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.004014bb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401c2f
jmp 0x402511
cmp byte [ebp - 0xd], bl
je 0x4025b7
push ebx
push 0xffffffffffffffff
push ebx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x30]
call fcn.004380d0
cmp eax, dword [ebp - 0x14]
jne 0x4025b7
push dword [ebp - 0x14]
push dword [ebp - 0x30]
push esi
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
je 0x40263d
lea ecx, [ebp - 0x20]
call fcn.00401978
mov byte [ebp - 4], 2
push ebx
push ebx
push 2
push dword [ebp - 0x40]
lea ecx, [ebp - 0x20]
call fcn.0043610b
test eax, eax
jne 0x4025f5
test dword [ebp + 0x10], 0x100
je 0x4025e4
cmp byte [ebp - 0xd], bl
jne 0x402631
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.004019a2
jmp 0x40256e
push dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
push esi
call fcn.00435a29
test al, al
jne 0x402631
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.004019a2
xor esi, esi
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.004014bb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401c2f
mov eax, esi
jmp 0x402513
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.004019a2
test byte [ebp + 0x10], 1
je 0x402651
push ebx
push ebx
push dword [ebp - 0x40]
call fcn.004333a3
mov esi, eax
jmp 0x402613
xor esi, esi
inc esi
jmp 0x402613
Function at 0x403d02
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov edi, ecx
mov ecx, 0x461b74
call fcn.00403c4c
test al, al
je 0x403d25
push 3
pop ebx
jmp 0x403d2e
mov ecx, edi
call fcn.00403c98
mov ebx, eax
push 5
push dword [ebp + 0x18]
push dword [ebp + 8]
call fcn.0042d5a0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x403d7a
mov ecx, esi
call fcn.0040353a
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x34], ecx
mov dword [esi + 0x30], ebx
mov ecx, dword [edi + 0x18]
mov dword [esi + 0x3c], ecx
inc dword [edi + 0x18]
test byte [ebp + 0x14], 8
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x40], ecx
mov ecx, dword [edi]
mov dword [ebp - 4], eax
mov dword [ecx + ebx*4], esi
jne 0x403d91
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x403d91
cmp dword [ebp + 0x10], 0
je 0x403d91
mov ecx, dword [ebp + 0x10]
call fcn.00403562
push dword [ebp + 0x10]
call sym.qmmacro.exe_q_free
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x14

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

Disassembly:
mov eax, 0x44e408
call fcn.0044d07c
push ecx
mov edx, ecx
xor eax, eax
mov dword [edx], 0x451e50
push esi
push edi
mov dword [ebp - 0x10], edx
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [ebp - 4], eax
lea edi, [edx + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov byte [ebp - 4], 1
lea esi, [edx + 0x30]
push 7
pop ecx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword fs:[0x24]
mov dword [esi + 0x14], eax
mov byte [ebp - 4], 2
movzx eax, byte [ebp + 8]
or dword [edx + 0x18], 0xffffffff
mov dword [edx + 4], 1
mov dword [edx + 0x14], eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, edx
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x404d9b
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x44e460
call fcn.0044d07c
push ecx
xor edx, edx
push edi
mov dword [ebp - 0x10], ecx
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
mov dword [ebp - 4], edx
xor eax, eax
lea edi, [ecx + 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov byte [ebp - 4], 1
mov dword [ecx + 0x1c], edx
mov byte [ebp - 4], 2
xor eax, eax
lea edi, [ecx + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov byte [ebp - 4], 3
xor eax, eax
lea edi, [ecx + 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov byte [ebp - 4], 4
mov byte [ecx + 0x47], dl
or dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret
Function at 0x404dfb
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x44e460
call fcn.0044d07c
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
call fcn.00432067
mov byte [ebp - 4], 3
lea ecx, [esi + 0x30]
call fcn.0042b317
mov byte [ebp - 4], 2
lea ecx, [esi + 0x20]
call fcn.0042b317
mov byte [ebp - 4], 1
push dword [esi + 0x1c]
call sym.qmmacro.exe_q_free
pop ecx
mov byte [ebp - 4], 0
lea ecx, [esi + 0xc]
call fcn.0042b317
or dword [ebp - 4], 0xffffffff
push dword [esi]
call sym.qmmacro.exe_q_free
pop ecx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x405752
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
cmp byte [ebp + 0xc], al
push esi
sete al
push edi
xor esi, esi
dec eax
and eax, 0x64
add eax, 0x64
mov edi, eax
test edi, edi
jle 0x40578c
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x4057a5
mov ecx, dword [ebp + 8]
lea eax, [esi + 0xa]
push eax
call fcn.004056f4
inc esi
cmp esi, edi
jl 0x40576e
cmp byte [ebp + 0xc], 0
je 0x40579f
mov ecx, dword [ebp + 8]
push 0x212
call fcn.0040570a
xor al, al
pop edi
pop esi
pop ebp
ret
mov al, 1
jmp 0x4057a1

Function at 0x4057a9
Capabilities:
Read clipboard data

Disassembly:
mov eax, 0x44f92d
call fcn.0044d07c
sub esp, 0x10
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4057c2
mov eax, esi
jmp 0x4057c5
push 0xd
pop eax
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp + 0x10], eax
test eax, eax
jne 0x4057da
xor al, al
jmp 0x4058ab
push ebx
mov ebx, dword [ebp + 0xc]
push edi
cmp esi, 2
jne 0x405834
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 4], 0
push 0
push dword [ebx]
push dword [ebp + 0x10]
call sym.qmmacro.exe_SaveBitmap
add esp, 0xc
test eax, eax
je 0x405815
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0042b317
jmp 0x4058a7
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp + 8]
push 0x1f9
call fcn.0040570a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0042b317
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
jne 0x405847
xor al, al
jmp 0x4058a9
test esi, esi
jne 0x405855
push edi
mov ecx, ebx
call fcn.0042beae
jmp 0x40589e
cmp esi, 0xd
jne 0x405867
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, esi
jmp 0x405884
cmp esi, 1
je 0x40587c
cmp esi, 7
je 0x40587c
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalSize]
jmp 0x405882
push edi
call fcn.0042df10
mov esi, eax
push 2
push esi
mov ecx, ebx
call fcn.0042b48d
test esi, esi
je 0x40589e
push esi
push edi
push dword [ebx]
call sub.msvcrt.dll_memcpy
add esp, 0xc
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov al, 1
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4059fb
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
push 0xd
mov byte [edi + 0x14], 1
mov dword [edi + 0x18], eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp + 8], eax
test eax, eax
je 0x405a59
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x405a58
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
push 2
add esi, esi
push esi
mov ecx, edi
call fcn.0042b48d
test esi, esi
je 0x405a4e
push esi
push ebx
push dword [edi]
call sub.msvcrt.dll_memcpy
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop esi
pop ebx
pop edi
pop ebp
ret 4

Function at 0x405c45
Capabilities:
Write clipboard data

Disassembly:
mov eax, 0x44e51e
call fcn.0044d07c
push ecx
push ecx
push ebx
push esi
push 0xffffffffffffffff
push str.qm_mutex_key
mov esi, ecx
push 0x461b70
lea ecx, [ebp - 0x14]
call fcn.00436465
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
push 1
push esi
call fcn.00405752
add esp, 0xc
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [ebp + 8]
mov byte [ebp - 0xd], 1
cmp dword [eax], ebx
je 0x405cac
lea ecx, [ebp + 0xc]
push ecx
push eax
call fcn.004058b8
pop ecx
pop ecx
cmp eax, ebx
je 0x405ca9
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x405cac
mov byte [ebp - 0xd], bl
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp byte [ebp - 0xd], bl
jne 0x405cc3
push 0x213
mov ecx, esi
call fcn.0040570a
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], ebx
pop esi
pop ebx
je 0x405cd7
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4077fb
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x407808
xor eax, eax
pop ebp
ret
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x18]
mov ecx, 0x461c90
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 3
call fcn.004075d8
test al, al
je 0x407830
mov eax, dword [ebp + 0x1c]
pop ebp
ret
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setl al
movzx eax, al
push eax
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407231
add esp, 0x1c
pop ebp
ret

Function at 0x40a47d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
push esi
push edi
mov edi, dword [esp + 0x18]
mov eax, ebx
and eax, edi
mov esi, ecx
test al, 1
je 0x40a4a5
push 0x10
call ebp
test ax, ax
jl 0x40a4a5
and ebx, 0xfffffffe
mov eax, ebx
and eax, edi
test al, 2
je 0x40a4b9
push 0x11
call ebp
test ax, ax
jl 0x40a4b9
and ebx, 0xfffffffd
mov eax, ebx
and eax, edi
test al, 4
je 0x40a4cd
push 0x12
call ebp
test ax, ax
jl 0x40a4cd
and ebx, 0xfffffffb
push 6
pop edi
test bl, 1
je 0x40a4ec
push edi
push 0x10
mov ecx, esi
call fcn.0040a098
push edi
push 0xa1
mov ecx, esi
call fcn.0040a098
test bl, 2
je 0x40a508
push edi
push 0x11
mov ecx, esi
call fcn.0040a098
push edi
push 0xa3
mov ecx, esi
call fcn.0040a098
test bl, 4
je 0x40a533
test bl, 3
jne 0x40a51c
push edi
push 0x11
mov ecx, esi
call fcn.0040a098
push edi
push 0x12
mov ecx, esi
call fcn.0040a098
push edi
push 0xa5
mov ecx, esi
call fcn.0040a098
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x40aa71
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 0
push esi
push edi
mov esi, ecx
jne 0x40ab39
mov eax, 0x80
cmp word [ebp + 8], ax
jae 0x40ab39
cmp byte [ebp + 0x10], 0
jne 0x40aab6
cmp byte [esi + 0xd], 0
jne 0x40aaac
call sym.qmmacro.exe_GetMod
test eax, eax
setne al
inc al
mov byte [esi + 0xd], al
cmp byte [esi + 0xd], 2
je 0x40ab39
cmp dword [esi + 8], 0
jne 0x40aac4
call fcn.00409428
mov dword [esi + 8], eax
push dword [esi + 8]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_VkKeyScanExW]
movzx edi, ax
cmp di, 0xffff
je 0x40ab39
push ebx
mov ebx, edi
shr ebx, 8
and bl, 7
mov byte [ebp + 0xc], bl
cmp bl, 1
ja 0x40ab1e
movzx eax, byte [ebp + 8]
mov ecx, 0x103
test word [eax*2 + 0x4634c0], cx
je 0x40ab1e
cmp byte [esi + 0xc], 0
jne 0x40ab12
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 1
inc al
mov byte [esi + 0xc], al
cmp byte [esi + 0xc], 2
jne 0x40ab1e
xor bl, 1
mov byte [ebp + 0xc], bl
xor eax, eax
cmp bl, 1
setne al
mov ecx, esi
dec eax
and eax, 2
push eax
push edi
push dword [ebp + 0xc]
call fcn.0040a2e3
pop ebx
jmp 0x40ab4c
movzx eax, word [ebp + 8]
push 0
or eax, 0x40000
push eax
mov ecx, esi
call fcn.0040a098
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x422a59
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
push edi
push edi
mov ecx, esi
call fcn.0042b525
mov ebx, dword [sym.imp.WS2_32.dll_recv]
push edi
push 8
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call ebx
cmp eax, 8
jl 0x422b2d
cmp eax, 0xffffffff
je 0x422b2d
cmp eax, 0x2746
je 0x422b2d
cmp byte [ebp - 0xc], 0x51
jne 0x422b2d
cmp byte [ebp - 0xb], 0x4d
jne 0x422b2d
cmp byte [ebp - 0xa], 0
jne 0x422b2d
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x422ac2
movsx ecx, byte [ebp - 9]
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
mov eax, dword [esi + 4]
mov dword [ebp - 4], ecx
mov edi, pe_nt_image_headers32
cmp eax, ecx
jae 0x422b20
lea ecx, [eax + edi]
cmp ecx, dword [ebp - 4]
jbe 0x422ae1
mov edi, dword [ebp - 4]
sub edi, eax
push 1
add eax, edi
push eax
mov ecx, esi
call fcn.0042b48d
mov eax, dword [esi + 4]
add eax, dword [esi]
push 0
push edi
push eax
push dword [ebp + 8]
call ebx
cmp eax, 0xffffffff
je 0x422b20
test eax, eax
je 0x422b20
mov ecx, dword [esi + 4]
add ecx, eax
push 0
push ecx
mov ecx, esi
call fcn.0042b525
mov eax, dword [esi + 4]
mov edi, 0x2000
cmp eax, dword [ebp - 4]
jb 0x422ad4
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [esi + 4], ecx
sete al
jmp 0x422b2f
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x422b34
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
cmp byte [esi], 0
jne 0x422b6e
push edi
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, eax
test edi, edi
je 0x422b68
push edi
push str.WSAStartup
call fcn.004229fc
pop ecx
pop ecx
test edi, edi
sete al
mov byte [esi], al
pop edi
mov al, byte [esi]
pop esi
add esp, 0x190
ret

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

Disassembly:
mov eax, 0x44f92d
call fcn.0044d07c
sub esp, 0x10
push ebx
xor ebx, ebx
cmp byte [ebp + 0x14], bl
je 0x422c27
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dl, byte [ebp + 0x10]
mov byte [ecx + 2], bl
mov ecx, dword [eax]
mov byte [ecx + 3], dl
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ebx
sub ecx, 8
mov dword [edx + 4], ecx
push dword [eax + 4]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x422c79
push esi
mov esi, dword [ebp + 0xc]
push esi
push str.QM__....
lea ecx, [ebp - 0x1c]
call fcn.00422b9c
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x1c]
mov cl, byte [ebp + 0x10]
mov byte [eax + 2], bl
mov eax, dword [ebp - 0x1c]
mov byte [eax + 3], cl
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x1c]
push ebx
mov dword [ecx + 4], eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
setne bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0042b317
mov al, bl
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x422c86
Capabilities:
Connect socket
Resolve dns

Disassembly:
mov eax, 0x44e6ef
call fcn.0044d07c
sub esp, 0x24
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 4], 0
mov edi, dword [ebp + 0xc]
push 0x3a
push edi
call dword [sym.imp.msvcrt.dll_strchr]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x422cd9
lea eax, [esi + 1]
push eax
call fcn.0043a2c0
movzx ebx, ax
test bx, bx
je 0x422cd9
sub esi, edi
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.0042c5f7
mov edi, dword [ebp - 0x20]
jmp 0x422cde
mov ebx, 0x1ff1
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x422cf6
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
jmp 0x422d04
push 2
push 4
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
jne 0x422d28
xor esi, esi
inc esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0042b317
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 2
pop esi
mov dword [ebp - 0x2c], eax
mov eax, esi
push ebx
mov word [ebp - 0x30], ax
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [ebp + 8]
mov word [ebp - 0x2e], ax
push 0x10
lea eax, [ebp - 0x30]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x422d0b
push 1
push dword [ebp + 0x1c]
push dword [ebp + 0x10]
push edi
call fcn.00422bdc
add esp, 0x10
test al, al
je 0x422d0b
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp dword [esi + 4], ebx
je 0x422dbc
push ebx
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.00422a59
add esp, 0xc
test al, al
jne 0x422d93
push 2
pop esi
jmp 0x422d0b
cmp dword [ebp - 0x1c], ebx
je 0x422da7
push dword [ebp - 0x20]
call fcn.0043a2c0
mov esi, eax
jmp 0x422d0b
push 1
push ebx
push esi
push edi
call fcn.00422bdc
add esp, 0x10
test al, al
jne 0x422dbc
push 6
jmp 0x422d8d
push ebx
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.00422a59
add esp, 0xc
test al, al
je 0x422d8b
cmp dword [ebp - 0x1c], ebx
jne 0x422d98
cmp dword [ebp + 0x18], ebx
je 0x422dfa
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x18]
push edi
call fcn.00422a59
add esp, 0xc
test al, al
jne 0x422df0
push 7
jmp 0x422d8d
test byte [ebp + 0x1c], 0x80
je 0x422dfa
push 8
jmp 0x422d8d
xor esi, esi
jmp 0x422d0b

Function at 0x42577c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
push esi
mov esi, dword [esp + 0x10]
inc dword [esi + 0x10]
xor ebp, ebp
cmp byte [esi + 0xa], 0
je 0x425798
call ebx
mov ebp, eax
push dword [esi + 4]
call dword [esi]
pop ecx
cmp al, byte [esi + 8]
je 0x4257a7
mov al, 1
jmp 0x4257d7
cmp byte [esi + 0xa], 0
je 0x4257d5
push edi
mov edi, dword [esi + 0x10]
call ebx
movzx edx, word [esi + 0x14]
lea ecx, [edi - 1]
imul ecx, edx
sub ecx, ebp
add eax, ecx
xor edx, edx
div edi
mov ecx, 0x1388
pop edi
cmp eax, ecx
jb 0x4257d1
mov eax, ecx
mov word [esi + 0x14], ax
xor al, al
pop esi
pop ebp
pop ebx
ret