joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449988
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x449b33
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x449b14
mov dl, 1
mov eax, dword [0x40ffe0]
call fcn.00402f30
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403d2c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x449b03
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00436b78
test al, al
je 0x449af6
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x449b44
lea eax, [ebp - 0x254]
call fcn.00409fc0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x449af6
xor eax, eax
push ebp
push 0x449aef
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x449b7c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x449ad8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403f5c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x449ad8
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403f5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x449af6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4499f9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.004137d0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x449b3a
lea eax, [ebp - 0x260]
call fcn.00403d2c
ret

Function at 0x44a380
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4b47d8]
cmp byte [eax + 0x95], 0
jne 0x44a3f1
cmp dword [0x4b47f4], 0
jne 0x44a3b2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44a33c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4b47f4], eax
cmp dword [0x4b47f0], 0
jne 0x44a3cd
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4b47f0], eax
cmp dword [0x4b47f8], 0
jne 0x44a3f1
push esp
push 0
push 0
push 0x44a2e0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4b47f8], eax
pop edx
ret
Function at 0x44a4e8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44a4ff
add esp, 0xfffffff0
call fcn.00403260
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00416b6c
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40fab4]
call fcn.00402f30
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x40fab4]
call fcn.00402f30
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x418acc]
call fcn.00420160
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x44a674
mov eax, dword [0x4b3060]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00420530
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44c0a4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4b3060]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d2a4
test eax, eax
je 0x44a5f2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409960
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d2cc
test eax, eax
je 0x44a606
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403f5c
mov eax, dword [0x4b2e70]
cmp byte [eax], 0
jne 0x44a637
mov eax, ebx
call fcn.0044a760
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44a669
call fcn.004032b8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44a9d0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4b47d8]
cmp dword [eax + 0x24], 0
je 0x44aa73
cmp dword [ebx + 0x84], 0
jne 0x44aa6d
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44a960
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x44aa6d
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44aa36
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44aa6d
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.00411400
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44aa45
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x44b480
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x44b4b5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403e14
jmp 0x44b4bf
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00403d80
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44c418
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x44c450
mov eax, esi
call fcn.004328ec
test al, al
je 0x44c450
mov eax, dword [ebx + 0x74]
call fcn.004325f0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44c450
push 0
mov eax, dword [ebx + 0x74]
call fcn.004325f0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4526b8
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, ecx
mov edi, edx
mov ebx, eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 4]
push eax
push 0
push 0x2001f
push 0
push 0x45274c
push 0
mov eax, ebx
call fcn.00404170
push eax
push 0x80000000
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x452728
mov eax, esi
call fcn.00403fac
inc eax
push eax
mov eax, esi
call fcn.00404170
push eax
push 1
push 0
mov eax, edi
call fcn.00404170
push eax
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
je 0x452743
mov ecx, dword [0x4b305c]
mov dl, 1
mov eax, dword [0x4521dc]
call fcn.0040c704
call fcn.00403778
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x452768
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
mov esi, eax
mov eax, ebx
call fcn.00403d2c
lea eax, [ebp - 8]
push eax
mov eax, esi
call fcn.00404170
push eax
push 0x80000000
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x45280e
xor eax, eax
push ebp
push 0x452807
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], pe_nt_image_headers32
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004042e0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx]
call fcn.00404170
push eax
push 0
push 0
mov eax, edi
call fcn.00404170
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4527e9
mov edx, dword [ebp - 4]
dec edx
mov eax, ebx
call fcn.004042e0
jmp 0x4527f0
mov eax, ebx
call fcn.00403d2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45280e
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x453600
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff00
mov edi, edx
push esp
call sub.user32.dll_GetKeyboardState
xor byte [esp + edi], 1
push esp
call sub.user32.dll_SetKeyboardState
push 0
push edi
call sub.user32.dll_MapVirtualKeyA
mov esi, eax
push 0
push 0
mov eax, esi
push eax
mov ebx, edi
push ebx
call sub.user32.dll_keybd_event
push 0
push 2
mov eax, esi
push eax
push ebx
call sub.user32.dll_keybd_event
add esp, 0x100
pop edi
pop esi
pop ebx
ret

Function at 0x4547d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00454434
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404170
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x45482e
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4b31dc]
mov dl, 1
mov eax, dword [0x45432c]
call fcn.0040c740
call fcn.00403778
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x454838
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404170
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x454890
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4b3484]
mov dl, 1
mov eax, dword [0x45432c]
call fcn.0040c740
call fcn.00403778
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00454464
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x458048
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x458076
mov eax, ebx
call fcn.00458aec
cmp dword [ebx + 0x3c], 0
je 0x45806f
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4580e7
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x4580d9
cmp dword [ebx + 8], 0
je 0x458098
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x4580aa
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4580d9
cmp dword [ebx + 8], 0
je 0x45808b
cmp eax, 3
je 0x4580bd
dec eax
jne 0x45808b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45808b
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x45808b
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x458105
cmp dword [ebx + 0x10], 0xcc
je 0x458105
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00458110
pop ebx
ret

Function at 0x478b3c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
cmp byte [0x4b493c], 0
jne 0x478bb6
cmp byte [0x4b493d], 0
je 0x478bb6
mov byte [0x4b493d], 0
mov eax, dword [0x4b4944]
push eax
call sub.advapi32.dll_RegCloseKey_1
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x478bbc
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x478bb6
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
push 0x4b4940
lea eax, [ebp - 0x10]
push eax
push 0
push 0x478bd0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov esp, ebp
pop ebp
ret
Function at 0x490994
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x490b15
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4b297c], 0
jne 0x490af2
push 0x4b49fc
call sub.kernel32.dll_EnterCriticalSection_1
xor eax, eax
push ebp
push 0x490aeb
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4b297c], 0
jne 0x490ad3
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004042e0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.00404170
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00452604
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea edx, [ebp - 0x14]
xor ecx, ecx
mov eax, 0x490b2c
call fcn.0040a028
mov eax, dword [ebp - 0xc]
call fcn.00404170
push eax
push 0x80000000
call sub.advapi32.dll_RegQueryValueA
test eax, eax
jne 0x490a54
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004042e0
jmp 0x490a8b
lea eax, [ebp - 8]
mov edx, 0x490b4c
call fcn.00403dc4
xor eax, eax
push ebp
push 0x490a81
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00452898
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x490a8b
mov eax, dword [ebp - 8]
call fcn.00404170
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4b297c], eax
cmp dword [0x4b297c], 0
jne 0x490abe
mov ecx, dword [0x4b3198]
mov dl, 1
mov eax, dword [0x40833c]
call fcn.0040c704
call fcn.00403778
push 0x490b58
mov eax, dword [0x4b297c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b49f8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490af2
push 0x4b49fc
call sub.kernel32.dll_LeaveCriticalSection_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490b1c
lea eax, [ebp - 0x18]
call fcn.00403d2c
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403d50
ret
Function at 0x49b65c
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
cmp byte [ebx + 0x87], 0
je 0x49b697
cmp dword [ebx + 0x5c], 0
je 0x49b697
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x194]
push eax
mov eax, dword [eax]
call dword [eax + 0xb8]
mov edx, eax
mov eax, esi
call fcn.004946ac
xor eax, eax
mov dword [ebx + 0x5c], eax
mov byte [ebx + 0x87], 0
cmp dword [ebx + 0x5c], 0
jne 0x49b7e2
cmp dword [ebx + 0x7c], 0
jne 0x49b6bd
mov dl, 1
mov eax, dword [0x40fb70]
call fcn.00402f30
mov dword [ebx + 0x7c], eax
cmp dword [ebx + 0xc], 0
je 0x49b7bb
mov eax, dword [ebx + 0xc]
push eax
mov al, byte [0x49b7e8]
push eax
mov al, byte [0x49b7ec]
push eax
push 0
mov eax, dword [ebx + 0x7c]
push eax
mov eax, dword [0x4b31b4]
push eax
mov ecx, dword [ebx + 0x68]
mov dl, 1
mov eax, dword [0x48d4fc]
call fcn.0048ea3c
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x49b7b4
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebx + 0x5c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x194]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.004946ac
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x194]
push eax
mov eax, dword [eax]
call dword [eax + 0xc0]
mov edx, eax
mov eax, esi
call fcn.004946ac
mov eax, dword [ebx + 0x40]
push eax
lea eax, [ebx + 0x70]
mov ecx, 1
mov edx, dword [0x492908]
call fcn.00405f90
add esp, 4
mov eax, dword [ebx + 0x30]
cmp eax, 0x18
jge 0x49b787
mov edx, dword [0x4b3390]
mov al, byte [edx + eax]
mov byte [ebx + 0x74], al
jmp 0x49b798
cmp eax, 0x1007
jne 0x49b794
mov byte [ebx + 0x74], 0x18
jmp 0x49b798
mov byte [ebx + 0x74], 0
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x78], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b7e2
mov eax, dword [ebp - 4]
call fcn.00402f60
ret
lea eax, [ebx + 0x5c]
push eax
push 0
push 0
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x194]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.004946ac
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x49dea0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x49df29
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4b4a38
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x49df13
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040be08
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x49df40
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x4b3334]
mov dl, 1
mov eax, dword [0x49d75c]
call fcn.0040c740
call fcn.00403778
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49df30
lea eax, [ebp - 0x1c]
call fcn.00403d2c
ret

Function at 0x49e5a4
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.0049e4c8
mov cl, 1
mov edx, esi
mov eax, esi
mov bx, 0xffff
call fcn.0040313c
push 0x10
lea eax, [esi + 0x18]
push eax
mov eax, dword [esi + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x49e608
call fcn.0049dde8
mov byte [esi + 0x29], 0
test byte [esi + 0x28], 0x10
jne 0x49e5fa
cmp dword [esi + 4], 0xffffffff
setne al
mov byte [esi + 8], al
mov cl, 2
mov edx, esi
mov eax, esi
mov bx, 0xffff
call fcn.0040313c
pop esi
pop ebx
ret

Function at 0x49e62c
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404170
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00402c0c
test ebx, ebx
je 0x49e677
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret
Function at 0x49e754
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x49e785
mov ecx, dword [0x4b3224]
mov dl, 1
mov eax, dword [0x49d75c]
call fcn.0040c704
call fcn.00403778
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x49e7b2
mov ecx, dword [0x4b31b8]
mov dl, 1
mov eax, dword [0x49d75c]
call fcn.0040c704
call fcn.00403778
xor eax, eax
push ebp
push 0x49e831
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xffff
call fcn.0040313c
cmp byte [ebp + 8], 0
je 0x49e80d
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0049e6bc
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.0049e5a4
jmp 0x49e827
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0049e0d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49e84e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x49ea14
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0049e360
xor edx, edx
push ebp
push 0x49eb74
push dword fs:[edx]
mov dword fs:[edx], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x49eb5e
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x49ea5e
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x49ea68
call fcn.00403818
jmp 0x49eb7b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00413858
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 4]
mov ebx, eax
test ebx, ebx
jle 0x49eb53
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
cmp eax, 0xffffffff
jne 0x49eb11
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x49eb01
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xfffe
call fcn.0040313c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.0049e9cc
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x49eb84]
cmp dl, byte [eax + 0x28]
je 0x49eb5a
call fcn.0040c5ec
jmp 0x49eb5a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0xc]
call fcn.00413868
jmp 0x49eb5a
cmp eax, ebx
jge 0x49eb2a
mov edx, dword [ebp - 0xc]
add edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00413868
jmp 0x49ea68
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00413858
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00413874
cmp ebx, eax
jne 0x49ea68
push ebp
call fcn.0049e9cc
pop ecx
jmp 0x49eb5a
push ebp
call fcn.0049e9cc
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49eb7b
mov eax, dword [ebp - 4]
call fcn.0049e36c
ret
mov al, byte [ebp - 5]
pop ebx
mov esp, ebp
pop ebp
ret