joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42cad0
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 0x42cc7b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x42cc5c
mov dl, 1
mov eax, dword [0x40dcd8]
call fcn.00402e54
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403b90
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x42cc4b
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.0044776c
test al, al
je 0x42cc3e
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, 0x42cc8c
lea eax, [ebp - 0x254]
call fcn.00409864
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x42cc3e
xor eax, eax
push ebp
push 0x42cc37
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 0x42ccc4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x42cc20
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403dc0
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 0x42cc20
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403dc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42cc3e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x42cb41
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.004109b8
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 0x42cc82
lea eax, [ebp - 0x260]
call fcn.00403b90
ret

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

Disassembly:
push ecx
mov eax, dword [0x49a748]
cmp byte [eax + 0x95], 0
jne 0x42d539
cmp dword [0x49a764], 0
jne 0x42d4fa
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x42d484
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x49a764], eax
cmp dword [0x49a760], 0
jne 0x42d515
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x49a760], eax
cmp dword [0x49a768], 0
jne 0x42d539
push esp
push 0
push 0
push 0x42d428
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x49a768], eax
pop edx
ret
Function at 0x42d630
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x42d647
add esp, 0xfffffff0
call fcn.00403184
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00413e80
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40d9d8]
call fcn.00402e54
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x40d9d8]
call fcn.00402e54
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 [0x41650c]
call fcn.0041e1b0
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x42d7bc
mov eax, dword [0x498e84]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041e580
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x42f138
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x498e84]
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.0040b1cc
test eax, eax
je 0x42d73a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004091a4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040b1f4
test eax, eax
je 0x42d74e
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.00403dc0
mov eax, dword [0x498cfc]
cmp byte [eax], 0
jne 0x42d77f
mov eax, ebx
call fcn.0042d8a8
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 0x42d7b1
call fcn.004031dc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42db18
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x49a748]
cmp dword [eax + 0x24], 0
je 0x42dbbb
cmp dword [ebx + 0x84], 0
jne 0x42dbb5
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x42daa8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x42dbb5
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 0x42db7e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x42dbb5
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.0040f0f8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x42db8d
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x42e584
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 0x42e5b9
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.00403c78
jmp 0x42e5c3
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00403be4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x42f4ac
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x42f4e4
mov eax, esi
call fcn.004434b8
test al, al
je 0x42f4e4
mov eax, dword [ebx + 0x74]
call fcn.004431bc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42f4e4
push 0
mov eax, dword [ebx + 0x74]
call fcn.004431bc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x432ef4
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403b90
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x432f43
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00403dc0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43ad20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x49a7bc], 0
sete dl
or al, dl
jne 0x43ae60
mov eax, dword [0x49a7c0]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x49a7bc]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x43ae2f
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x49a7bc]
call fcn.0040f0f8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x43ae27
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x43ae27
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x43ae27
mov eax, dword [ebp - 0x14]
call fcn.004431bc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43ae27
push ebp
call fcn.0043acdc
pop ecx
test al, al
jne 0x43ae27
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x43ade3
mov eax, dword [ebp - 0x14]
call fcn.00441b10
dec eax
jle 0x43ae27
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov bx, 0xffc1
call fcn.00403060
cmp byte [ebp - 1], 0
je 0x43ae27
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x43ae27
mov edx, dword [ebp - 0x14]
mov eax, dword [0x49a7c0]
call fcn.0043a528
inc edi
dec esi
jne 0x43ad76
mov eax, dword [0x49a7c0]
cmp dword [eax + 8], 0
jle 0x43ae47
mov eax, dword [0x49a7c0]
call fcn.0043a5b8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43ae60
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0043ab44
pop ecx
test al, al
jne 0x43ae60
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4409c8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x4409f9
je 0x440a53
sub eax, 7
je 0x440a1a
dec eax
je 0x440a44
sub eax, 0x17
je 0x440af8
jmp 0x440b36
add eax, 0xffffff00
sub eax, 9
jb 0x440ae4
add eax, 0xffffff09
sub eax, 0xb
jb 0x440aac
jmp 0x440b36
mov eax, ebx
call fcn.004265bc
mov edi, eax
test edi, edi
je 0x440b96
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x440b9f
jmp 0x440b96
test byte [ebx + 0x44], 0x20
jne 0x440b9f
jmp 0x440b96
mov edx, esi
mov eax, ebx
call fcn.0043dfc8
cmp dword [esi + 0xc], 0xffffffff
jne 0x440b9f
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.00407624
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.0043cafc
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.004408a0
test eax, eax
je 0x440b9f
mov dword [esi + 0xc], 1
jmp 0x440b9f
mov edx, esi
mov eax, ebx
call fcn.00440934
test al, al
je 0x440b96
cmp dword [esi + 0xc], 0
jne 0x440b9f
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
mov eax, ebx
call fcn.004431bc
push eax
call sub.user32.dll_DefWindowProcA
jmp 0x440b9f
mov eax, ebx
call fcn.0043d664
test al, al
jne 0x440b9f
jmp 0x440b96
mov eax, ebx
call fcn.004431bc
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x440b96
cmp dword [0x495a68], 0
je 0x440b96
mov eax, dword [0x495a68]
cmp ebx, dword [eax + 0x24]
jne 0x440b96
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x495a68]
call fcn.0043defc
jmp 0x440b96
mov eax, dword [0x49a784]
cmp byte [eax + 0x20], 0
je 0x440b96
mov eax, dword [0x49a784]
cmp dword [eax + 0x1c], 0
je 0x440b96
mov eax, dword [esi]
mov edx, dword [0x49a784]
cmp eax, dword [edx + 0x1c]
jne 0x440b96
lea eax, [ebp - 0x110]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.00426500
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb7
call fcn.00403060
jmp 0x440b9f
mov edx, esi
mov eax, ebx
call fcn.0043dfc8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4411b4
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1e8], 0
je 0x4411d0
cmp dword [esi + 4], 0
je 0x4411fd
test byte [ebx + 0x45], 1
jne 0x4411ef
mov eax, ebx
call fcn.0043ff98
test eax, eax
jne 0x4411ef
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x44130d
mov edx, esi
mov eax, ebx
call fcn.00440cd8
jmp 0x44130d
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x441306
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004431bc
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0043defc
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004411b4
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004431bc
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44130d
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4494c4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403fd4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4494dd
test al, 0x10
jne 0x4494e1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x44a8b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x24]
mov edi, dword [ebx + 0x34]
mov eax, dword [ebx + 0x6c]
sub edi, eax
mov edx, dword [ebx + 0x64]
sub edi, edx
test edi, edi
jne 0x44a8e0
mov ecx, dword [ebx + 0x64]
test ecx, ecx
jne 0x44a8e0
mov eax, dword [ebx + 0x6c]
test eax, eax
jne 0x44a8e0
mov edi, esi
jmp 0x44a974
cmp edi, 0xffffffff
jne 0x44a8eb
dec edi
jmp 0x44a974
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
mov edx, dword [ebx + 0x64]
cmp eax, edx
ja 0x44a974
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.00449988
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, edx
mov ecx, dword [ebx + 0x3c]
add edx, ecx
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
mov ecx, dword [esp]
cmp esi, ecx
ja 0x44a93e
mov cx, word [esp]
sub cx, si
jmp 0x44a940
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x44a925
mov eax, esi
mov edx, eax
add edx, edx
mov ecx, dword [ebx + 0x38]
add edx, ecx
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
mov ecx, dword [esp]
cmp esi, ecx
ja 0x44a96a
mov cx, word [esp]
sub cx, si
jmp 0x44a96c
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x44a951
add edi, esi
mov ebp, dword [ebx]
mov eax, dword [ebp + 4]
test eax, eax
je 0x44a9dc
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
add edx, ecx
mov eax, dword [ebx + 0x6c]
add edx, eax
mov ecx, edi
mov eax, ebp
call fcn.0044a640
add dword [ebx + 0x6c], eax
mov edx, dword [ebx + 0x6c]
cmp edx, 3
jb 0x44a9c5
mov ecx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x64]
movzx eax, byte [ecx + eax]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
mov edx, dword [ebx + 0x4c]
and eax, edx
mov dword [ebx + 0x40], eax
mov eax, dword [ebx + 0x6c]
cmp eax, 0x106
jae 0x44a9dc
mov ecx, dword [ebx]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x44a8ba
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x451510
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x40c71c]
call fcn.0040447c
xor eax, eax
push ebp
push 0x451657
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x497cec], 0
jne 0x451563
mov ecx, dword [0x498d10]
mov dl, 1
mov eax, dword [0x407ac4]
call fcn.0040a770
call fcn.004035dc
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402b6c
mov eax, ebx
call fcn.00404314
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x451668
lea edi, [ebp - 0x30]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405b84
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404324
test eax, eax
jle 0x4515fe
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4515f7
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00403dd8
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00403dc0
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408820
test eax, eax
jne 0x4515f7
mov ebx, 0x15
jmp 0x451603
mov ebx, 0x10
jmp 0x451603
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x497cec]
call fcn.00451468
mov eax, dword [ebp - 8]
call fcn.00451468
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405b9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45165e
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00403bb4
lea eax, [ebp - 0x10]
mov edx, dword [0x40c71c]
call fcn.00404548
ret
Function at 0x45ba00
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x45ba2e
mov eax, ebx
call fcn.0045c4a4
cmp dword [ebx + 0x3c], 0
je 0x45ba27
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x45ba9f
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x45ba91
cmp dword [ebx + 8], 0
je 0x45ba50
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 0x45ba62
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45ba91
cmp dword [ebx + 8], 0
je 0x45ba43
cmp eax, 3
je 0x45ba75
dec eax
jne 0x45ba43
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 0x45ba43
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x45ba43
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x45babd
cmp dword [ebx + 0x10], 0xcc
je 0x45babd
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.0045bac8
pop ebx
ret

Function at 0x46d270
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 0x46d2f9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x49a8f8
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x46d2e3
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00409e68
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, 0x46d310
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x499108]
mov dl, 1
mov eax, dword [0x46cb2c]
call fcn.0040a7ac
call fcn.004035dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d300
lea eax, [ebp - 0x1c]
call fcn.00403b90
ret

Function at 0x46d968
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.0046d88c
mov cl, 1
mov edx, esi
mov eax, esi
mov bx, 0xffff
call fcn.00403060
push 0x10
lea eax, [esi + 0x18]
push eax
mov eax, dword [esi + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x46d9cc
call fcn.0046d1b8
mov byte [esi + 0x29], 0
test byte [esi + 0x28], 0x10
jne 0x46d9be
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.00403060
pop esi
pop ebx
ret
Function at 0x46d9f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0046d724
xor eax, eax
push ebp
push 0x46da6f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00403b90
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x46da29
call fcn.0040367c
jmp 0x46da76
mov dword [ebp - 8], 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_getsockname
test eax, eax
jne 0x46da59
push dword [ebp - 0x14]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, ebx
call fcn.00403d48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46da76
mov eax, dword [ebp - 4]
call fcn.0046d730
ret
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46da7c
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00403fd4
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00402b6c
test ebx, ebx
je 0x46dac7
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 0x46dba4
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 0x46dbd5
mov ecx, dword [0x499008]
mov dl, 1
mov eax, dword [0x46cb2c]
call fcn.0040a770
call fcn.004035dc
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 0x46dc02
mov ecx, dword [0x498fa8]
mov dl, 1
mov eax, dword [0x46cb2c]
call fcn.0040a770
call fcn.004035dc
xor eax, eax
push ebp
push 0x46dc81
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.00403060
cmp byte [ebp + 8], 0
je 0x46dc5d
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.0046db0c
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.0046d968
jmp 0x46dc77
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.0046d4a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46dc9e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc