joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43990c
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 + 0x1f8], 0
je 0x439928
cmp dword [esi + 4], 0
je 0x439955
test byte [ebx + 0x55], 1
jne 0x439947
mov eax, ebx
call fcn.00438518
test eax, eax
jne 0x439947
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x439a65
mov edx, esi
mov eax, ebx
call fcn.00439430
jmp 0x439a65
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
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 0x439a5e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043b7b4
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.004361b4
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043990c
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 + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
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.0043b7b4
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x439a65
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 0x43ff50
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x478d60]
cmp byte [eax + 0xc], 0
je 0x4400bd
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4400b6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x479b6c], 0
jne 0x43ffa4
push 0x4400c4
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4400cc
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479b6c], eax
cmp dword [0x477b24], 0
jne 0x44009f
push 0x4400dc
call sub.kernel32.dll_LoadLibraryA
mov dword [0x477b24], eax
cmp dword [0x477b24], 0
je 0x44009f
push 0x4400e8
mov eax, dword [0x477b24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479b70], eax
push 0x4400f8
mov eax, dword [0x477b24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479b74], eax
push 0x44010c
mov eax, dword [0x477b24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479b78], eax
push 0x440124
mov eax, dword [0x477b24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479b7c], eax
push 0x44013c
mov eax, dword [0x477b24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479b80], eax
push 0x440150
mov eax, dword [0x477b24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479b84], eax
push 0x440168
mov eax, dword [0x477b24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479b88], eax
push 0x440180
mov eax, dword [0x477b24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479b8c], eax
push 0x44019c
mov eax, dword [0x477b24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479b90], eax
push 0x4401a8
mov eax, dword [0x477b24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479b94], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4400bd
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x443f48
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.00403f98
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x443f97
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.00404208
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44b77c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44b7cc]
test si, 4
je 0x44b790
or bl, 1
test si, 8
je 0x44b79a
or bl, 4
test si, 1
je 0x44b7a4
or bl, 8
test si, 2
je 0x44b7ae
or bl, 0x10
test si, 0x10
je 0x44b7b8
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b7c7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44b7d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44b808]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b7e9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b7f8
or bl, 4
test esi, 0x20000000
je 0x44b803
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x451eb0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x451ec2
add esp, 0xfffffff0
call fcn.004034e8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e874
mov eax, dword [0x4787bc]
mov dword [eax + 4], ebx
mov dword [eax], 0x452254
mov eax, dword [0x4787cc]
mov dword [eax + 4], ebx
mov dword [eax], 0x452260
mov eax, ebx
call fcn.0045226c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4155f4]
call fcn.00403194
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4155f4]
call fcn.00403194
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4155f4]
call fcn.00403194
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4155f4]
call fcn.00403194
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4155f4]
call fcn.00403194
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44e688
push eax
push 0
push 0
mov eax, dword [0x478a18]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4202c8]
call fcn.00421a04
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4202c8]
call fcn.00421a04
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4202c8]
call fcn.00421a04
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045268c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452568
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452568
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452568
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x451fff
call fcn.00403540
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45234c
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 0x4524f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4524d8
mov dl, 1
mov eax, dword [0x415c58]
call fcn.00403194
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403f98
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4524c7
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.004402b0
test al, al
je 0x4524ba
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, 0x452508
lea eax, [ebp - 0x254]
call fcn.00409184
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4524ba
xor eax, eax
push ebp
push 0x4524b3
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 0x452540
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45249c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404208
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45249c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404208
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4524ba
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4523bd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041a42c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4524fe
lea eax, [ebp - 0x260]
call fcn.00403f98
ret

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

Disassembly:
push ecx
mov eax, dword [0x479bb8]
cmp byte [eax + 0xa5], 0
jne 0x452e9d
cmp dword [0x479bd0], 0
jne 0x452e5e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x452de8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x479bd0], eax
cmp dword [0x479bcc], 0
jne 0x452e79
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x479bcc], eax
cmp dword [0x479bd4], 0
jne 0x452e9d
push esp
push 0
push 0
push 0x452d8c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x479bd4], eax
pop edx
ret
Function at 0x452f94
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x452fab
add esp, 0xfffffff0
call fcn.004034e8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e874
mov eax, dword [0x4789f0]
cmp word [eax + 2], 0
jne 0x452fd3
mov eax, dword [0x4789f0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00454684
mov eax, dword [0x478b30]
cmp word [eax + 2], 0
jne 0x452fed
mov eax, dword [0x478b30]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045487c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4155f4]
call fcn.00403194
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4155f4]
call fcn.00403194
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x420d70]
call fcn.00428674
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x453174
mov eax, dword [0x478878]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00428a44
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x454e1c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x478878]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
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.0040ca1c
test eax, eax
je 0x4530e2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408b64
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040ca44
test eax, eax
je 0x4530f6
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404208
mov eax, dword [0x478638]
cmp byte [eax], 0
jne 0x45312a
mov eax, ebx
call fcn.0045329c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00454ff8
mov eax, ebx
call fcn.004559bc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45316a
call fcn.00403540
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45351c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x479bb8]
cmp dword [eax + 0x30], 0
je 0x4535c6
cmp dword [ebx + 0x94], 0
jne 0x4535c0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4534ac
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4535c0
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 0x453586
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4535c0
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00417cac
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x453595
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x454128
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45415d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404088
jmp 0x45416a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403fec
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4551d4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x455215
mov eax, esi
call fcn.0043bab8
test al, al
je 0x455215
mov eax, dword [ebx + 0x84]
call fcn.0043b7b4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x455215
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043b7b4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x455ed4
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 [0x414ba4]
call fcn.00404988
xor eax, eax
push ebp
push 0x456018
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x477d58], 0
jne 0x455f27
mov ecx, dword [0x47866c]
mov dl, 1
mov eax, dword [0x407330]
call fcn.0040bc54
call fcn.00403950
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402bcc
mov eax, ebx
call fcn.004047d4
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x456028
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
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.00405a20
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004047e4
test eax, eax
jle 0x455fbf
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 0x455fb8
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404220
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404208
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408188
test eax, eax
jne 0x455fb8
mov ebx, 0x15
jmp 0x455fc4
mov ebx, 0x10
jmp 0x455fc4
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 [0x477d58]
call fcn.00455e2c
mov eax, dword [ebp - 8]
call fcn.00455e2c
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405a38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45601f
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00403fbc
lea eax, [ebp - 0x10]
mov edx, dword [0x414ba4]
call fcn.00404a58
ret
Function at 0x46b040
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x46b048
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x46b23a
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x46b250
mov eax, esi
call fcn.00468ecc
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00403fec
lea ecx, [ebp - 0x10]
mov edx, 0x46b264
mov eax, esi
call fcn.00468ecc
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00403fec
lea ecx, [ebp - 0x14]
mov edx, 0x46b27c
mov eax, esi
call fcn.00468ecc
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00403fec
lea ecx, [ebp - 0x18]
mov edx, 0x46b298
mov eax, esi
call fcn.00468ecc
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00403fec
lea ecx, [ebp - 0x1c]
mov edx, 0x46b2b4
mov eax, esi
call fcn.00468ecc
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00403fec
lea ecx, [ebp - 0x24]
mov edx, 0x46b2cc
mov eax, esi
call fcn.00468ecc
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.004081f8
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.004085d8
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x46b2e4
mov eax, esi
call fcn.00468ecc
mov eax, dword [ebp - 0x28]
call fcn.004629a4
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x46b2f4
mov eax, esi
call fcn.00468ecc
mov eax, dword [ebp - 0x2c]
call fcn.004629a4
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x46b30c
mov eax, esi
call fcn.00468ecc
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.004085d8
inc eax
je 0x46b1dd
lea ecx, [ebp - 0x34]
mov edx, 0x46b30c
mov eax, esi
call fcn.00468ecc
mov eax, dword [ebp - 0x34]
call fcn.0040859c
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.00409ad4
fstp qword [ebp - 0x3c]
wait
call fcn.00409e38
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x46b1f8
lea ecx, [ebp - 0x40]
mov edx, 0x46b30c
mov eax, esi
call fcn.00468ecc
mov eax, dword [ebp - 0x40]
call fcn.004629a4
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x46b31c
mov eax, esi
call fcn.00468ecc
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00403fec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b241
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00403fbc
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00403fbc
ret
Function at 0x4761f8
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd4c
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404448
xor eax, eax
push ebp
push 0x476310
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00403fec
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor ecx, ecx
push ebp
push 0x4762f3
push dword fs:[ecx]
mov dword fs:[ecx], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x294]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x294]
mov edx, dword [ebp - 4]
call fcn.00408bc0
lea eax, [ebp - 0x294]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4762e0
mov edx, dword [eax + 0xc]
test edx, edx
je 0x4762e0
mov esi, dword [edx]
test esi, esi
je 0x4762e0
push ebx
xor eax, eax
mov al, byte [esi]
mov dword [ebp - 0x2b4], eax
mov byte [ebp - 0x2b0], 0
xor eax, eax
mov al, byte [esi + 1]
mov dword [ebp - 0x2ac], eax
mov byte [ebp - 0x2a8], 0
xor eax, eax
mov al, byte [esi + 2]
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 0x2a0], 0
xor eax, eax
mov al, byte [esi + 3]
mov dword [ebp - 0x29c], eax
mov byte [ebp - 0x298], 0
lea edx, [ebp - 0x2b4]
mov ecx, 3
mov eax, 0x476328
call fcn.00409204
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4762fa
call sub.wsock32.dll_WSACleanup
ret
Function at 0x40115e
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x41239c]
push esi
mov dword [ebp + 0x194], eax
push 0x104
lea eax, [ebp - 0x74]
xor esi, esi
push eax
push esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, esi
mov dword [ebp - 0x78], eax
je 0x4011f7
push eax
call fcn.0040cb36
pop ecx
mov esi, eax
push esi
push dword [ebp - 0x78]
lea eax, [ebp - 0x74]
push dword [ebp - 0x7c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4011eb
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
push 0x40e3cc
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4011eb
push 0x34
push dword [ebp - 0x80]
push dword [ebp + 0x1a0]
call sub.MSVCR71.dll_memcpy
add esp, 0xc
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
xor eax, eax
pop ecx
inc eax
jmp 0x4011f9
xor eax, eax
mov ecx, dword [ebp + 0x194]
pop esi
call fcn.0040cb97
add ebp, 0x198
leave
ret
Function at 0x402078
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x402092
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 0xc

Function at 0x4020bb
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x4020c6
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x4029e4
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x41239c]
push ebx
push esi
push 0x2001f
push dword [ebp + 0x9c]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x90], eax
mov dword [ebp - 0x74], esi
call fcn.00402043
cmp eax, esi
jne 0x402a6c
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x402a35
lea eax, [ebp - 0x70]
push eax
call fcn.004029e4
cmp eax, esi
jne 0x402a6b
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x74]
je 0x402a28
call fcn.00401fde
push dword [ebp + 0x9c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.00401fde
mov ecx, dword [ebp + 0x90]
mov eax, esi
pop esi
pop ebx
call fcn.0040cb97
add ebp, 0x94
leave
ret 4