joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ff24
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x42ff3b
add esp, 0xfffffff0
call fcn.00403178
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041585c
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40e968]
call fcn.00402e48
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x40e968]
call fcn.00402e48
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 [0x417f28]
call fcn.0041fc84
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x4300b0
mov eax, dword [0x4bc8c4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00420054
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x431aa4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4bc8c4]
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.0040c020
test eax, eax
je 0x43002e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409284
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c048
test eax, eax
je 0x430042
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.00403dd0
mov eax, dword [0x4bc724]
cmp byte [eax], 0
jne 0x430073
mov eax, ebx
call fcn.0043019c
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 0x4300a5
call fcn.004031d0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43040c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4bd74c]
cmp dword [eax + 0x24], 0
je 0x4304af
cmp dword [ebx + 0x84], 0
jne 0x4304a9
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x43039c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x4304a9
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 0x430472
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4304a9
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.00410250
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x430481
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x430e78
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 0x430ead
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.00403c88
jmp 0x430eb7
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00403bf4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x431e18
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x431e50
mov eax, esi
call fcn.00444a80
test al, al
je 0x431e50
mov eax, dword [ebx + 0x74]
call fcn.00444784
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x431e50
push 0
mov eax, dword [ebx + 0x74]
call fcn.00444784
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4348ec
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.00403ba0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43493b
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.00403dd0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43c43c
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 [0x4bd7bc], 0
sete dl
or al, dl
jne 0x43c57c
mov eax, dword [0x4bd7c0]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4bd7bc]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x43c54b
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x4bd7bc]
call fcn.00410250
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x43c543
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x43c543
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x43c543
mov eax, dword [ebp - 0x14]
call fcn.00444784
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43c543
push ebp
call fcn.0043c3f8
pop ecx
test al, al
jne 0x43c543
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x43c4ff
mov eax, dword [ebp - 0x14]
call fcn.004430d8
dec eax
jle 0x43c543
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.00403054
cmp byte [ebp - 1], 0
je 0x43c543
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x43c543
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4bd7c0]
call fcn.0043bc44
inc edi
dec esi
jne 0x43c492
mov eax, dword [0x4bd7c0]
cmp dword [eax + 8], 0
jle 0x43c563
mov eax, dword [0x4bd7c0]
call fcn.0043bcd4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43c57c
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0043c260
pop ecx
test al, al
jne 0x43c57c
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 0x4420e4
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 0x442115
je 0x44216f
sub eax, 7
je 0x442136
dec eax
je 0x442160
sub eax, 0x17
je 0x442214
jmp 0x442252
add eax, 0xffffff00
sub eax, 9
jb 0x442200
add eax, 0xffffff09
sub eax, 0xb
jb 0x4421c8
jmp 0x442252
mov eax, ebx
call fcn.00428eb0
mov edi, eax
test edi, edi
je 0x4422b2
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x4422bb
jmp 0x4422b2
test byte [ebx + 0x44], 0x20
jne 0x4422bb
jmp 0x4422b2
mov edx, esi
mov eax, ebx
call fcn.0043f6e4
cmp dword [esi + 0xc], 0xffffffff
jne 0x4422bb
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.0040769c
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.0043e218
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.00441fbc
test eax, eax
je 0x4422bb
mov dword [esi + 0xc], 1
jmp 0x4422bb
mov edx, esi
mov eax, ebx
call fcn.00442050
test al, al
je 0x4422b2
cmp dword [esi + 0xc], 0
jne 0x4422bb
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.00444784
push eax
call sub.user32.dll_DefWindowProcA
jmp 0x4422bb
mov eax, ebx
call fcn.0043ed80
test al, al
jne 0x4422bb
jmp 0x4422b2
mov eax, ebx
call fcn.00444784
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x4422b2
cmp dword [0x49fa00], 0
je 0x4422b2
mov eax, dword [0x49fa00]
cmp ebx, dword [eax + 0x24]
jne 0x4422b2
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x49fa00]
call fcn.0043f618
jmp 0x4422b2
mov eax, dword [0x4bd784]
cmp byte [eax + 0x20], 0
je 0x4422b2
mov eax, dword [0x4bd784]
cmp dword [eax + 0x1c], 0
je 0x4422b2
mov eax, dword [esi]
mov edx, dword [0x4bd784]
cmp eax, dword [edx + 0x1c]
jne 0x4422b2
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.00428df4
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.00403054
jmp 0x4422bb
mov edx, esi
mov eax, ebx
call fcn.0043f6e4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44277c
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 0x442798
cmp dword [esi + 4], 0
je 0x4427c5
test byte [ebx + 0x45], 1
jne 0x4427b7
mov eax, ebx
call fcn.004416b4
test eax, eax
jne 0x4427b7
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4428d5
mov edx, esi
mov eax, ebx
call fcn.004423f4
jmp 0x4428d5
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 0x4428ce
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00444784
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.0043f618
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0044277c
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.00444784
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4428d5
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 0x44ad18
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403fe4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x44ad31
test al, 0x10
jne 0x44ad35
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x44aff0
Capabilities:
Encode data using xor

Disassembly:
push esi
push ebx
push eax
mov eax, dword [eax]
mov esi, edx
or ecx, ecx
je 0x44b014
mov edx, eax
shl edx, 8
mov bl, byte [esi]
shr eax, 0x18
xor al, bl
mov eax, dword [eax*4 + 0x49fb58]
xor eax, edx
inc esi
dec ecx
jne 0x44affb
mov ecx, eax
pop eax
mov dword [eax], ecx
pop ebx
pop esi
ret
Function at 0x44c4e8
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 0x44c518
mov ecx, dword [ebx + 0x64]
test ecx, ecx
jne 0x44c518
mov eax, dword [ebx + 0x6c]
test eax, eax
jne 0x44c518
mov edi, esi
jmp 0x44c5ac
cmp edi, 0xffffffff
jne 0x44c523
dec edi
jmp 0x44c5ac
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
mov edx, dword [ebx + 0x64]
cmp eax, edx
ja 0x44c5ac
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.0044b5c0
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 0x44c576
mov cx, word [esp]
sub cx, si
jmp 0x44c578
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x44c55d
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 0x44c5a2
mov cx, word [esp]
sub cx, si
jmp 0x44c5a4
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x44c589
add edi, esi
mov ebp, dword [ebx]
mov eax, dword [ebp + 4]
test eax, eax
je 0x44c614
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.0044c278
add dword [ebx + 0x6c], eax
mov edx, dword [ebx + 0x6c]
cmp edx, 3
jb 0x44c5fd
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 0x44c614
mov ecx, dword [ebx]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x44c4f2
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4534bc
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.00453020
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.00403fe4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x45351a
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4bc9f0]
mov dl, 1
mov eax, dword [0x452f18]
call fcn.0040b450
call fcn.004035d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x453524
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.00403fe4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x45357c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4bcc68]
mov dl, 1
mov eax, dword [0x452f18]
call fcn.0040b450
call fcn.004035d0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00453068
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 0x453f94
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, ebx
and ax, 0xffff
cmp ax, 0xffff
jne 0x453fc3
mov eax, esi
call fcn.00404324
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x453fc3
push 0x20
push edi
call sub.kernel32.dll_SetFileAttributesW
push ebx
mov ecx, esi
mov dl, 1
mov eax, dword [0x44b114]
call fcn.0044b27c
cmp dword [eax + 8], 0xffffffff
jne 0x453fdf
call fcn.00402e78
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x455168
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa4
mov ebp, edx
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
mov dl, 1
mov eax, dword [0x40e968]
call fcn.00402e48
mov esi, eax
push esi
push 0x455150
call sub.user32.dll_EnumWindows
mov edi, dword [esi + 8]
dec edi
test edi, edi
jl 0x4551e8
inc edi
xor ebx, ebx
mov edx, ebx
mov eax, esi
call fcn.00410250
cmp ebp, eax
je 0x4551e4
push 0x50
lea eax, [esp + 0xc]
push eax
mov edx, ebx
mov eax, esi
call fcn.00410250
push eax
call sub.user32.dll_GetClassNameA
test eax, eax
jle 0x4551e4
lea eax, [esp + 8]
mov edx, dword [esp]
call fcn.00409348
test eax, eax
jne 0x4551e4
mov edx, ebx
mov eax, esi
call fcn.00410250
mov dword [esp + 4], eax
jmp 0x4551e8
inc ebx
dec edi
jne 0x45519e
mov eax, esi
call fcn.00402e78
mov eax, dword [esp + 4]
add esp, 0x5c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x45545c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
push ebx
xor edx, edx
mov dword [ebp - 0x88], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4554e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x21
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x83]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4554c8
lea eax, [ebp - 0x83]
call fcn.0040921c
mov byte [ebp - 0x84], al
lea eax, [ebp - 0x88]
lea edx, [ebp - 0x84]
call fcn.00403dc4
mov eax, dword [ebp - 0x88]
mov edx, ebx
call fcn.00408754
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4554e8
lea eax, [ebp - 0x88]
call fcn.00403ba0
ret
Function at 0x455648
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x45575e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov edx, dword [esi]
mov eax, 0x455774
call fcn.0040410c
mov ebx, eax
test ebx, ebx
je 0x45573d
cmp ebx, dword [ebp - 8]
je 0x45573d
mov dword [ebp - 8], ebx
mov eax, esi
mov ecx, 1
mov edx, ebx
call fcn.00404068
mov edx, dword [esi]
mov eax, 0x455774
call fcn.0040410c
mov edi, eax
test edi, edi
je 0x45573d
lea eax, [ebp - 4]
push eax
mov ecx, edi
sub ecx, ebx
mov eax, dword [esi]
mov edx, ebx
call fcn.00404028
mov ecx, edi
sub ecx, ebx
inc ecx
mov eax, esi
mov edx, ebx
call fcn.00404068
cmp dword [ebp - 4], 0
je 0x455674
push 0x455774
push dword [ebp - 4]
push 0x455774
lea eax, [ebp - 4]
mov edx, 3
call fcn.00403ee0
push 0x104
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 4]
call fcn.00403ff0
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
lea eax, [ebp - 0x110]
lea edx, [ebp - 0x10c]
mov ecx, 0x104
call fcn.00403dd0
mov eax, dword [ebp - 0x110]
mov edx, esi
mov ecx, ebx
call fcn.004040b0
jmp 0x455674
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455765
lea eax, [ebp - 0x110]
call fcn.00403ba0
lea eax, [ebp - 4]
call fcn.00403ba0
ret

Function at 0x4557d0
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
mov edi, eax
mov esi, edx
mov ecx, ecx
shr ecx, 2
cld
lodsd eax, dword [esi]
xor dword [edi], eax
add edi, 4
loop 0x4557dc
pop esi
pop edi
ret

Function at 0x456004
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test bl, bl
je 0x456021
test byte [esi + 0x20], 0x10
je 0x456021
mov eax, 0x456090
call fcn.0044ab28
jmp 0x456082
cmp bl, byte [esi + 0x28]
je 0x456082
test bl, bl
je 0x45605a
test byte [esi + 0x20], 0x10
jne 0x45607f
mov cl, 1
mov dl, 1
mov eax, dword [0x455d78]
call fcn.0041569c
mov edi, eax
mov dword [esi + 0x48], edi
mov dword [edi + 0x30], esi
mov byte [edi + 0xe], 1
mov eax, edi
call fcn.004157d8
mov eax, esi
call fcn.004560b4
jmp 0x45607f
test byte [esi + 0x20], 0x10
jne 0x45607f
mov eax, dword [esi + 0x24]
push eax
call sub.winmm.dll_timeKillEvent
push 0
mov eax, dword [esi + 0x48]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, dword [esi + 0x48]
call fcn.00402e78
mov byte [esi + 0x28], bl
pop edi
pop esi
pop ebx
ret
Function at 0x456b90
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 0x456c19
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4bd8f0
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x456c03
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040ab0c
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, 0x456c30
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x4bcb34]
mov dl, 1
mov eax, dword [0x45644c]
call fcn.0040b450
call fcn.004035d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456c20
lea eax, [ebp - 0x1c]
call fcn.00403ba0
ret

Function at 0x457288
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004571ac
mov cl, 1
mov edx, esi
mov eax, esi
mov bx, 0xffff
call fcn.00403054
push 0x10
lea eax, [esi + 0x18]
push eax
mov eax, dword [esi + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x4572ec
call fcn.00456ad8
mov byte [esi + 0x29], 0
test byte [esi + 0x28], 0x10
jne 0x4572de
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.00403054
pop esi
pop ebx
ret

Function at 0x45739c
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00403fe4
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00402b60
test ebx, ebx
je 0x4573e7
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 0x4574c4
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 0x4574f5
mov ecx, dword [0x4bca2c]
mov dl, 1
mov eax, dword [0x45644c]
call fcn.0040b414
call fcn.004035d0
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 0x457522
mov ecx, dword [0x4bc9d0]
mov dl, 1
mov eax, dword [0x45644c]
call fcn.0040b414
call fcn.004035d0
xor eax, eax
push ebp
push 0x4575a1
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.00403054
cmp byte [ebp + 8], 0
je 0x45757d
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.0045742c
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.00457288
jmp 0x457597
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.00456dc4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4575be
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc