joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406b0c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0xc]
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push ecx
push 0x20119
push 0
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp + 8]
push edx
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x406b75
lea ecx, [ebp - 8]
lea eax, [ebp - 4]
push ecx
push 0
push eax
push 0
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp - 0xc]
push ecx
call sub.ADVAPI32.dll_RegQueryValueExA
mov ebx, eax
cmp ebx, 0xea
je 0x406b60
test ebx, ebx
jne 0x406b6c
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegCloseKey
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegCloseKey
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406b7c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0xc]
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push ecx
push 0x20119
push 0
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp + 8]
push edx
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x406be5
lea ecx, [ebp - 8]
lea eax, [ebp - 4]
push ecx
push 0
push eax
push 0
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp - 0xc]
push ecx
call sub.ADVAPI32.dll_RegQueryValueExA
mov ebx, eax
cmp ebx, 0xea
je 0x406bd0
test ebx, ebx
jne 0x406bdc
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegCloseKey
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegCloseKey
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40739c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
test ebx, ebx
jne 0x4073bc
xor eax, eax
jmp 0x407416
test eax, eax
jne 0x4073c7
mov byte [ebx], 0
xor eax, eax
jmp 0x407416
mov ecx, dword [esi]
mov dword [ebp - 4], ecx
mov ecx, dword [esi]
mov dword [ebp - 8], ecx
xor ecx, ecx
mov dword [edx], ecx
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 0x14]
push ecx
push edx
push 0
lea edx, [ebp - 4]
push edx
push ebx
mov edx, dword [edi]
push edx
push eax
call sub.ADVAPI32.dll_RegEnumValueA
test eax, eax
je 0x4073f9
mov byte [ebx], 0
xor eax, eax
jmp 0x407416
mov ecx, dword [ebp - 4]
mov byte [ebx + ecx], 0
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 8]
mov byte [eax + edx], 0
mov eax, 1
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
inc dword [edi]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x40c930
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffdc
mov eax, 0x4dc9c0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
call fcn.004cfcb8
mov word [ebp - 0x14], 8
mov edx, dword [ebp + 0x18]
lea ecx, [ebp - 0x1024]
push edx
push 0x1000
push ecx
push 0x5cafab
push edi
push esi
call sub.KERNEL32.dll_GetPrivateProfileStringA
test eax, eax
jne 0x40c9ff
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x40c9a6
test ebx, ebx
je 0x40c98b
mov byte [ebx], 0
mov dword [0x4dc074], 0x37
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40ca7f
test ebx, ebx
je 0x40c9d2
mov ecx, dword [ebp + 0x14]
push esi
push edi
mov edi, ecx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, ebx
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, dword [ebp + 0x18]
push eax
mov edx, dword [ebp + 0x14]
push edx
push edi
push esi
call fcn.0040c854
mov dword [0x4dc074], 0x38
mov eax, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40ca7f
push 0
lea ecx, [ebp - 0x1024]
push ecx
call fcn.0040c6b0
add esp, 8
test ebx, ebx
je 0x40ca39
xor eax, eax
lea edi, [ebp - 0x1024]
or ecx, 0xffffffff
mov esi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [0x4dc074], 0x39
mov eax, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40ca7f
mov esp, ebp
mov edi, dword [ebp - 0x1030]
mov esi, dword [ebp - 0x102c]
mov ebx, dword [ebp - 0x1028]
pop ebp
ret 0x14
Function at 0x40cea8
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
mov eax, 0x4dca10
push ebx
push esi
push edi
call fcn.004cfcb8
mov word [ebp - 0x14], 8
lea edi, [ebp - 0x44]
mov esi, 0x4dc9f0
mov ecx, 8
lea eax, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
mov word [ebp - 0x14], 8
push 0x4dc9e8
push 0x1f
push eax
push 0
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea eax, [ebp - 0x44]
push eax
call fcn.0040cd50
pop ecx
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40cf31
mov esp, ebp
mov edi, dword [ebp - 0x50]
mov esi, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x48]
pop ebp
ret

Function at 0x40d3d8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
test bl, 0x10
je 0x40d3fb
push 5
push 0x2e5
push esi
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_ShowWindow
test bl, 0x20
je 0x40d413
push 5
push 0x2e6
push esi
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_ShowWindow
test bl, 0x40
je 0x40d42b
push 5
push 0x303
push esi
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_ShowWindow
test bl, 0x80
je 0x40d443
push 5
push 0x304
push esi
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_ShowWindow
test bh, 1
je 0x40d45b
push 5
push 0x305
push esi
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_ShowWindow
test bh, 2
je 0x40d473
push 5
push 0x2f9
push esi
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_ShowWindow
test ebx, 0x10000
je 0x40d48e
push 0
push 0x2e5
push esi
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_ShowWindow
test ebx, 0x20000
je 0x40d4a9
push 0
push 0x2e6
push esi
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_ShowWindow
test ebx, 0x40000
je 0x40d4c4
push 0
push 0x303
push esi
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_ShowWindow
test ebx, 0x80000
je 0x40d4df
push 0
push 0x304
push esi
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_ShowWindow
test ebx, 0x100000
je 0x40d4fa
push 0
push 0x305
push esi
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_ShowWindow
test ebx, 0x200000
je 0x40d515
push 0
push 0x2f9
push esi
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_ShowWindow
pop esi
pop ebx
pop ebp
ret
Function at 0x40d588
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40d668
test esi, esi
je 0x40d668
mov dword [ebx + 0x10], esi
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x40d5b4
push eax
call sub.GDI32.dll_DeleteObject
mov dl, byte [ebx + 0x64]
test dl, dl
jne 0x40d5c5
xor ecx, ecx
mov dword [ebx + 0x1c], ecx
jmp 0x40d664
test byte [ebx + 0xe], 8
je 0x40d5f7
push 0xffffffffffffffec
push esi
call sub.USER32.dll_GetWindowLongA
or eax, 0x8000080
push eax
push 0xffffffffffffffec
push esi
call sub.USER32.dll_SetWindowLongA
push 0xfffffffffffffff0
push esi
call sub.USER32.dll_GetWindowLongA
and eax, 0xefffffff
push eax
push 0xfffffffffffffff0
push esi
call sub.USER32.dll_SetWindowLongA
lea eax, [ebx + 0x64]
push eax
push 0
call sub.KERNEL32.dll_GetModuleHandleA
push eax
call sub.USER32.dll_LoadIconA
mov edi, eax
mov dword [ebx + 0x1c], edi
test edi, edi
jne 0x40d626
push 0x5cafc3
push 0
call sub.KERNEL32.dll_GetModuleHandleA
push eax
call sub.USER32.dll_LoadIconA
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x40d642
push 0x5cafc5
push 0
call sub.KERNEL32.dll_GetModuleHandleA
push eax
call sub.USER32.dll_LoadIconA
mov dword [ebx + 0x1c], eax
mov edx, dword [ebx + 0x1c]
push edx
push 0
push 0x80
push esi
call sub.USER32.dll_SendMessageA
mov ecx, dword [ebx + 0x1c]
push ecx
push 1
push 0x80
push esi
call sub.USER32.dll_SendMessageA
mov al, 1
jmp 0x40d66a
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40f270
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffee8
xor eax, eax
xor edx, edx
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
xor eax, eax
mov dword [esp + 0xc], eax
xor edx, edx
mov dword [esp + 0x10], edx
push 0x104
lea eax, [esp + 0x18]
xor ebp, ebp
push eax
call sub.KERNEL32.dll_GetSystemDirectoryA
push 0x5cb039
lea edx, [esp + 0x18]
push edx
call fcn.004cd308
add esp, 8
push 0x5cb066
push 0x5cb047
call sub.KERNEL32.dll_GetModuleHandleA
push eax
call sub.KERNEL32.dll_GetProcAddress
mov ebx, eax
test ebx, ebx
jne 0x40f2ec
push 0x5cb086
push 0x5cb07e
call sub.KERNEL32.dll_GetModuleHandleA
push eax
call sub.KERNEL32.dll_GetProcAddress
mov ebx, eax
push 0x5cb0bd
push 0x5cb09e
call sub.KERNEL32.dll_GetModuleHandleA
push eax
call sub.KERNEL32.dll_GetProcAddress
mov esi, eax
test esi, esi
jne 0x40f31e
push 0x5cb0d9
push 0x5cb0d1
call sub.KERNEL32.dll_GetModuleHandleA
push eax
call sub.KERNEL32.dll_GetProcAddress
mov esi, eax
push 0x5cb10c
push 0x5cb0ed
call sub.KERNEL32.dll_GetModuleHandleA
push eax
call sub.KERNEL32.dll_GetProcAddress
mov edi, eax
test edi, edi
jne 0x40f350
push 0x5cb123
push 0x5cb11b
call sub.KERNEL32.dll_GetModuleHandleA
push eax
call sub.KERNEL32.dll_GetProcAddress
mov edi, eax
test ebx, ebx
je 0x40f429
test esi, esi
je 0x40f429
test edi, edi
je 0x40f429
push 0
lea eax, [esp + 0x18]
push eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x40f3cf
push ebx
call fcn.004d7788
pop ecx
mov dword [esp], eax
mov edx, dword [esp]
push edx
push ebx
push 0
lea ecx, [esp + 0x20]
push ecx
call esi
test eax, eax
je 0x40f3cf
lea eax, [esp + 8]
push eax
lea edx, [esp + 8]
push edx
push 0x5cb132
mov ecx, dword [esp + 0xc]
push ecx
call edi
test eax, eax
je 0x40f3cf
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x10]
mov edx, eax
shr edx, 0x10
shr eax, 0
and edx, 0xff
mov dword [esp + 0xc], edx
and eax, 0xff
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0xc]
cmp ecx, 6
jne 0x40f40b
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40f3e4
mov bp, 0x65
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x40f3f1
mov bp, 0x6b
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x40f3fe
mov bp, 0x6c
mov eax, dword [esp + 0x10]
cmp eax, 3
jne 0x40f40b
mov bp, 0x6c
mov eax, dword [esp + 0xc]
cmp eax, 0xa
jne 0x40f418
mov bp, 0x6e
mov eax, dword [esp]
test eax, eax
je 0x40f429
mov edx, dword [esp]
push edx
call fcn.004d7730
pop ecx
mov eax, ebp
add esp, 0x118
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40f4f8
Capabilities:
Check os version

Disassembly:
push ebx
push esi
add esp, 0xffffff60
xor ebx, ebx
mov word [0x5f4b84], 0
xor eax, eax
mov dword [esp + 4], 0x9c
lea edx, [esp + 4]
mov dword [0x5f4b88], eax
push edx
call sub.KERNEL32.dll_GetVersionExA
test eax, eax
jne 0x40f532
call fcn.0040f438
jmp 0x40f725
movzx eax, word [esp + 8]
movzx ecx, word [esp + 0xc]
shl eax, 0x10
mov edx, dword [esp + 0x14]
or ecx, eax
sub edx, 1
mov dword [0x5f4b88], ecx
jb 0x40f6b1
je 0x40f66e
dec edx
jne 0x40f6b5
mov ecx, dword [esp + 8]
sub ecx, 5
je 0x40f648
dec ecx
je 0x40f597
sub ecx, 4
jne 0x40f668
mov al, byte [esp + 0x9e]
cmp al, 1
jne 0x40f58e
mov bx, 0x6e
jmp 0x40f6b5
mov bx, 0x7e0
jmp 0x40f6b5
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40f5bd
mov dl, byte [esp + 0x9e]
cmp dl, 1
jne 0x40f5b4
mov bx, 0x65
jmp 0x40f6b5
mov bx, 0x7d8
jmp 0x40f6b5
cmp eax, 1
jne 0x40f5df
mov al, byte [esp + 0x9e]
cmp al, 1
jne 0x40f5d6
mov bx, 0x6b
jmp 0x40f6b5
mov bx, 0x7d8
jmp 0x40f6b5
cmp eax, 2
jne 0x40f601
mov al, byte [esp + 0x9e]
cmp al, 1
jne 0x40f5f8
mov bx, 0x6c
jmp 0x40f6b5
mov bx, 0x7dc
jmp 0x40f6b5
cmp eax, 3
jne 0x40f623
mov al, byte [esp + 0x9e]
cmp al, 1
jne 0x40f61a
mov bx, 0x6c
jmp 0x40f6b5
mov bx, 0x7dc
jmp 0x40f6b5
cmp eax, 4
jne 0x40f631
mov bx, 0x6e
jmp 0x40f6b5
mov al, byte [esp + 0x9e]
cmp al, 1
jne 0x40f642
mov bx, 0x65
jmp 0x40f6b5
mov bx, 0x7d8
jmp 0x40f6b5
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40f654
mov bx, 0x7d0
cmp eax, 1
jne 0x40f65d
mov bx, 0x64
cmp eax, 2
jne 0x40f6b5
mov bx, 0x7d3
jmp 0x40f6b5
mov bx, 4
jmp 0x40f6b5
mov eax, dword [esp + 8]
cmp eax, 4
jne 0x40f683
mov edx, dword [esp + 0xc]
test edx, edx
jne 0x40f683
mov bx, 0x5f
mov eax, dword [esp + 8]
cmp eax, 4
jne 0x40f699
mov edx, dword [esp + 0xc]
cmp edx, 0xa
jne 0x40f699
mov bx, 0x62
mov eax, dword [esp + 8]
cmp eax, 4
jne 0x40f6b5
mov edx, dword [esp + 0xc]
cmp edx, 0x5a
jne 0x40f6b5
mov bx, 0x63
jmp 0x40f6b5
mov bx, 3
cmp bx, 0x6c
jne 0x40f6cb
call fcn.0040f270
mov ebx, eax
test bx, bx
jne 0x40f6cb
mov bx, 0x6c
push 4
push 0
push 0
call sub.ADVAPI32.dll_OpenSCManagerA
test eax, eax
je 0x40f6e8
push eax
call sub.ADVAPI32.dll_CloseServiceHandle
or word [0x5f4b84], 4
xor eax, eax
mov dword [esp], eax
push 0x5cb13d
push 0x5cb134
call sub.KERNEL32.dll_GetModuleHandleA
push eax
call sub.KERNEL32.dll_GetProcAddress
mov esi, eax
test esi, esi
je 0x40f713
push esp
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call esi
test eax, eax
mov eax, dword [esp]
test eax, eax
je 0x40f722
or word [0x5f4b84], 0x10
movzx eax, bx
add esp, 0xa0
pop esi
pop ebx
ret
Function at 0x4106fc
Capabilities:
Get memory capacity

Disassembly:
push ebx
add esp, 0xffffffa0
xor ebx, ebx
push 0x40
push 0
lea eax, [esp + 8]
push eax
call fcn.004cd264
add esp, 0xc
mov dword [esp], 0x40
push 0x5cb2a3
push 0x5cb296
call sub.KERNEL32.dll_GetModuleHandleA
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x410750
push esp
call eax
test eax, eax
je 0x410750
push 0
push 0x100000
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
call fcn.004d4def
mov ebx, eax
test ebx, ebx
jne 0x410765
lea eax, [esp + 0x40]
push eax
call sub.KERNEL32.dll_GlobalMemoryStatus
mov ebx, dword [esp + 0x48]
shr ebx, 0x14
mov eax, 4
mov edx, 7
cmp ebx, 0x1f4
jle 0x410781
mov eax, 5
mov edx, 0xf
cmp ebx, 0x3e8
jle 0x410793
mov eax, 6
mov edx, 0x1f
test edx, ebx
je 0x4107a0
mov ecx, eax
sar ebx, cl
inc ebx
mov ecx, eax
shl ebx, cl
mov eax, ebx
add esp, 0x60
pop ebx
ret

Function at 0x4107a8
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
lea eax, [ebp - 0x18]
lea edx, [ebp - 0x10]
lea ecx, [ebp - 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push eax
push edx
push ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
push eax
call sub.KERNEL32.dll_GetDiskFreeSpaceExA
test eax, eax
je 0x410856
test esi, 1
je 0x410819
mov eax, dword [ebp - 0x18]
test esi, 0x2000
mov ebx, eax
je 0x4107fb
push 0
push 0x3b9aca00
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.004d4def
mov ebx, eax
test esi, 0x1000
je 0x410856
push 0
push 0xf4240
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.004d4def
mov ebx, eax
jmp 0x410856
mov eax, dword [ebp - 0x10]
test esi, 0x2000
mov ebx, eax
je 0x41083a
push 0
push 0x3b9aca00
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004d4def
mov ebx, eax
test esi, 0x1000
je 0x410856
push 0
push 0xf4240
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004d4def
mov ebx, eax
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411734
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
call fcn.00411564
xor eax, eax
xor edx, edx
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x110], edx
xor eax, eax
lea edx, [ebp - 0x10c]
jmp 0x41176c
cmp ebx, dword [edx]
je 0x411774
inc eax
add edx, 4
cmp eax, dword [ebp - 0x110]
jb 0x411764
mov edx, dword [ebp - 0x110]
cmp eax, edx
jne 0x411790
cmp edx, 0x40
jae 0x411790
mov dword [ebp + eax*4 - 0x10c], ebx
inc dword [ebp - 0x110]
test esi, 8
je 0x4117b1
lea eax, [ebp - 8]
lea ecx, [ebp - 0x110]
push eax
push 0
push 0
push ecx
push 0
call sub.WSOCK32.dll_select
mov dword [ebp - 0xc], eax
test esi, 0x10
je 0x4117d2
lea eax, [ebp - 8]
lea edx, [ebp - 0x110]
push eax
push 0
push edx
push 0
push 0
call sub.WSOCK32.dll_select
mov dword [ebp - 0xc], eax
test esi, 0x20
je 0x4117f3
lea ecx, [ebp - 8]
lea eax, [ebp - 0x110]
push ecx
push eax
push 0
push 0
push 0
call sub.WSOCK32.dll_select
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
inc edx
jne 0x4117fd
xor eax, eax
jmp 0x411802
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411c90
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x411ca9
mov byte [ebp - 0xa], 0
jmp 0x411cad
mov byte [ebp - 0xa], 1
mov edx, dword [ebp + 0x18]
test edx, edx
jne 0x411cbb
mov dword [ebp + 0x18], 0x1388
call fcn.00401270
mov dword [ebp - 8], eax
xor esi, esi
mov byte [ebp - 9], 0
xor ebx, ebx
mov eax, dword [ebp + 0x20]
mov edx, dword [eax]
test edx, edx
je 0x411cdb
mov ecx, dword [ebp + 0x20]
xor eax, eax
mov dword [ecx], eax
mov dl, byte [ebp - 9]
cmp dl, 1
je 0x411da2
lea ecx, [ebp - 4]
push ecx
push 0x4004667f
push edi
call sub.WSOCK32.dll_ioctlsocket
inc eax
jne 0x411d09
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x411da2
mov eax, dword [ebp - 4]
test eax, eax
je 0x411d6c
push 0
mov edx, dword [ebp + 0x10]
sub edx, ebx
push edx
mov ecx, dword [ebp + 0xc]
add ecx, ebx
push ecx
push edi
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
jne 0x411d37
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x411da2
jmp 0x411d6c
add esi, eax
add ebx, eax
mov dl, byte [ebp - 0xa]
test dl, dl
jne 0x411d46
test esi, esi
jne 0x411da2
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x411d54
mov edx, dword [ebp + 0x1c]
cmp esi, edx
jae 0x411da2
test eax, eax
jne 0x411d6c
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x411da2
mov eax, dword [ebp + 0x20]
mov dword [eax], 1
jmp 0x411da2
push 0
push 0
call fcn.004013d8
add esp, 8
push 0
push 0
call fcn.004013d8
add esp, 8
call fcn.00401270
mov edx, dword [ebp - 8]
sub eax, edx
mov ecx, dword [ebp + 0x18]
cmp eax, ecx
jbe 0x411cdb
mov byte [ebp - 9], 1
jmp 0x411cdb
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
call fcn.00401270
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0x18]
mov ecx, dword [edx]
test ecx, ecx
je 0x411e28
mov eax, dword [ebp + 0x18]
xor edx, edx
mov dword [eax], edx
cmp edi, 0x1b58
jle 0x411e37
mov esi, 0x1b58
jmp 0x411e39
mov esi, edi
push 0
push esi
mov eax, dword [ebp - 4]
push eax
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
jne 0x411e5c
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x411eac
jmp 0x411e9b
add ebx, eax
test eax, eax
jne 0x411e7f
push 0
call sub.USER32.dll_MessageBeep
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx]
test eax, eax
je 0x411e7b
mov edx, dword [ebp + 0x18]
mov dword [edx], 1
mov eax, ebx
jmp 0x411eae
cmp edi, ebx
jne 0x411e87
mov eax, ebx
jmp 0x411eae
add dword [ebp - 4], eax
mov esi, edi
sub esi, ebx
cmp esi, 0x1b58
jle 0x411e9b
mov esi, 0x1b58
call fcn.00401270
mov edx, dword [ebp - 8]
sub eax, edx
cmp eax, 0x3a98
jbe 0x411e39
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x41311c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
mov eax, 0x4dd994
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x14]
call fcn.004cfcb8
xor edx, edx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x14], 8
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 0x44], 0x19
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
xor eax, eax
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x3c], edx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x30], 0
mov dword [ebp - 0x2f], eax
call fcn.00411644
test eax, eax
jne 0x413183
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x413237
cmp ebx, 4
jne 0x41319d
lea ecx, [ebp - 0x44]
push ecx
push 0x412adc
call fcn.00401bdc
add esp, 8
mov ebx, eax
jmp 0x4131d7
lea eax, [ebp - 0x44]
push eax
push 0x412d80
call fcn.00401bdc
add esp, 8
mov ebx, eax
jmp 0x4131d7
push ebx
call fcn.00401c64
pop ecx
test al, al
je 0x4131de
call sub.KERNEL32.dll_GetTickCount
sub eax, esi
cmp eax, 0x2ee0
ja 0x4131de
push 0
push 0
call fcn.004013d8
add esp, 8
mov al, byte [ebp - 0x30]
test al, al
je 0x4131b2
mov edx, dword [ebp - 0x2f]
test edx, edx
jne 0x4131ec
mov cl, byte [ebp - 0x30]
test cl, cl
jne 0x4131fa
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x413237
mov al, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x413237
mov esp, ebp
mov edi, dword [ebp - 0x50]
mov esi, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x48]
pop ebp
ret
Function at 0x414584
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
mov dword [ebp - 4], pe_nt_image_headers32
push eax
push ebx
call sub.KERNEL32.dll_GetComputerNameA
test eax, eax
je 0x4145a5
mov al, 1
jmp 0x4145e1
call fcn.00411564
test al, al
je 0x4145c0
push pe_nt_image_headers32
push ebx
call sub.WSOCK32.dll_gethostname
inc eax
je 0x4145c0
mov al, 1
jmp 0x4145e1
push 1
push pe_nt_image_headers32
push ebx
push 0x5cb9e7
push 0x5cb9ac
push 0x80000002
call fcn.00406a20
add esp, 0x18
mov al, 1
pop ebx
pop ecx
pop ebp
ret

Function at 0x414634
Capabilities:
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
mov eax, 0x4dd9da
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
call fcn.004cfcb8
xor edx, edx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x14], 8
call fcn.00411564
push 0x11
push 2
push 2
call sub.WSOCK32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x414680
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x4147c6
test esi, esi
je 0x41468e
mov cl, byte [esi]
test cl, cl
je 0x41468e
xor edi, edi
jmp 0x414693
mov edi, 1
push 0x10
push 0
lea eax, [ebp - 0x14c]
push eax
call fcn.004cd264
add esp, 0xc
mov word [ebp - 0x14c], 2
push 0
call sub.WSOCK32.dll_htons
mov word [ebp - 0x14a], ax
xor edx, edx
mov dword [ebp - 0x148], edx
lea ecx, [ebp - 0x14c]
push 0x10
push ecx
push ebx
call sub.WSOCK32.dll_bind
inc eax
push 0x10
push 0
lea eax, [ebp - 0x13c]
push eax
call fcn.004cd264
add esp, 0xc
mov word [ebp - 0x13c], 2
mov dx, word [ebp + 0xc]
push edx
call sub.WSOCK32.dll_htons
mov word [ebp - 0x13a], ax
dec edi
jne 0x41472e
mov dword [ebp - 0x2c], 1
push 4
lea ecx, [ebp - 0x2c]
push ecx
push 0x20
push 0xffff
push ebx
call sub.WSOCK32.dll_setsockopt
push 0xffffffffffffffff
call sub.WSOCK32.dll_htonl
mov dword [ebp - 0x138], eax
jmp 0x414750
lea eax, [ebp - 0x12c]
push eax
push esi
call fcn.004141b8
add esp, 8
lea edx, [ebp - 0x12c]
push edx
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 0x138], eax
push 0x10
lea ecx, [ebp - 0x13c]
push ecx
push 0
mov eax, dword [ebp + 0x14]
push eax
mov edx, dword [ebp + 0x10]
push edx
push ebx
call sub.WSOCK32.dll_sendto
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
inc ecx
jne 0x414786
push ebx
call sub.WSOCK32.dll_closesocket
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x4147c6
push ebx
call sub.WSOCK32.dll_closesocket
mov word [ebp - 0x14], 0
jmp 0x4147b7
mov eax, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov esp, ebp
mov edi, dword [ebp - 0x158]
mov esi, dword [ebp - 0x154]
mov ebx, dword [ebp - 0x150]
pop ebp
ret