joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e894
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 0x43e8b0
cmp dword [esi + 4], 0
je 0x43e8dd
test byte [ebx + 0x55], 1
jne 0x43e8cf
mov eax, ebx
call fcn.0043d434
test eax, eax
jne 0x43e8cf
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x43e9ed
mov edx, esi
mov eax, ebx
call fcn.0043e3b8
jmp 0x43e9ed
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 0x43e9e6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00440704
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.0043afbc
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043e894
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.00440704
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e9ed
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 0x4450c0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45e260]
cmp byte [eax + 0xc], 0
je 0x44522d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x445226
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45fb9c], 0
jne 0x445114
push 0x445234
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44523c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fb9c], eax
cmp dword [0x45dc14], 0
jne 0x44520f
push 0x44524c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x45dc14], eax
cmp dword [0x45dc14], 0
je 0x44520f
push 0x445258
mov eax, dword [0x45dc14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fba0], eax
push 0x445268
mov eax, dword [0x45dc14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fba4], eax
push 0x44527c
mov eax, dword [0x45dc14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fba8], eax
push 0x445294
mov eax, dword [0x45dc14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fbac], eax
push 0x4452ac
mov eax, dword [0x45dc14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fbb0], eax
push 0x4452c0
mov eax, dword [0x45dc14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fbb4], eax
push 0x4452d8
mov eax, dword [0x45dc14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fbb8], eax
push 0x4452f0
mov eax, dword [0x45dc14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fbbc], eax
push 0x44530c
mov eax, dword [0x45dc14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fbc0], eax
push 0x445318
mov eax, dword [0x45dc14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fbc4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44522d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4490b8
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.004043f0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x449107
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.00404660
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x450844
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x450894]
test si, 4
je 0x450858
or bl, 1
test si, 8
je 0x450862
or bl, 4
test si, 1
je 0x45086c
or bl, 8
test si, 2
je 0x450876
or bl, 0x10
test si, 0x10
je 0x450880
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45088f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x450898
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4508d0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4508b1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4508c0
or bl, 4
test esi, 0x20000000
je 0x4508cb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x456f78
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x456f8a
add esp, 0xfffffff0
call fcn.00403940
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041aa20
mov eax, dword [0x45df18]
mov dword [eax + 4], ebx
mov dword [eax], 0x45731c
mov eax, dword [0x45df24]
mov dword [eax + 4], ebx
mov dword [eax], 0x457328
mov eax, ebx
call fcn.00457334
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411e14]
call fcn.004035ec
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411e14]
call fcn.004035ec
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411e14]
call fcn.004035ec
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411e14]
call fcn.004035ec
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411e14]
call fcn.004035ec
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, 0x453750
push eax
push 0
push 0
mov eax, dword [0x45e06c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41c47c]
call fcn.0041dbf0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41c47c]
call fcn.0041dbf0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41c47c]
call fcn.0041dbf0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00457754
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457630
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457630
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457630
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4570c7
call fcn.00403998
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x457414
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 0x4575bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4575a0
mov dl, 1
mov eax, dword [0x4123bc]
call fcn.004035ec
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004043f0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45758f
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.00445420
test al, al
je 0x457582
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, 0x4575d0
lea eax, [ebp - 0x254]
call fcn.004090a8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x457582
xor eax, eax
push ebp
push 0x45757b
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 0x457608
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x457564
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404660
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 0x457564
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404660
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457582
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x457485
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041669c
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 0x4575c6
lea eax, [ebp - 0x260]
call fcn.004043f0
ret

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

Disassembly:
push ecx
mov eax, dword [0x45fbe8]
cmp byte [eax + 0xa5], 0
jne 0x457f65
cmp dword [0x45fc00], 0
jne 0x457f26
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x457eb0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45fc00], eax
cmp dword [0x45fbfc], 0
jne 0x457f41
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45fbfc], eax
cmp dword [0x45fc04], 0
jne 0x457f65
push esp
push 0
push 0
push 0x457e54
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x45fc04], eax
pop edx
ret
Function at 0x45805c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x458073
add esp, 0xfffffff0
call fcn.00403940
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041aa20
mov eax, dword [0x45e058]
cmp word [eax + 2], 0
jne 0x45809b
mov eax, dword [0x45e058]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00459734
mov eax, dword [0x45e10c]
cmp word [eax + 2], 0
jne 0x4580b5
mov eax, dword [0x45e10c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045992c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411e14]
call fcn.004035ec
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411e14]
call fcn.004035ec
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 [0x41cf5c]
call fcn.00424310
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45823c
mov eax, dword [0x45df78]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004246e0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x459ecc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45df78]
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.0040c7f0
test eax, eax
je 0x4581aa
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408a88
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c818
test eax, eax
je 0x4581be
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.00404660
mov eax, dword [0x45de6c]
cmp byte [eax], 0
jne 0x4581f2
mov eax, ebx
call fcn.00458364
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.0045a0a8
mov eax, ebx
call fcn.0045aa6c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x458232
call fcn.00403998
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4585e4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45fbe8]
cmp dword [eax + 0x30], 0
je 0x45868e
cmp dword [ebx + 0x94], 0
jne 0x458688
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x458574
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x458688
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 0x45864e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x458688
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.00414364
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45865d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4591f0
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 0x459225
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.004044e0
jmp 0x459232
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404444
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45a284
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45a2c5
mov eax, esi
call fcn.00440a08
test al, al
je 0x45a2c5
mov eax, dword [ebx + 0x84]
call fcn.00440704
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45a2c5
push 0
mov eax, dword [ebx + 0x84]
call fcn.00440704
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45add4
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
push 0
push 0
push 0x10
mov eax, dword [ebp - 4]
call fcn.00440704
push eax
call sub.user32.dll_SendMessageA
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x330]
push eax
call sub.kernel32.dll_TerminateThread
pop ecx
pop ebp
ret

Function at 0x45ae04
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.00402f54
mov dword [ebp - 0x24], 1
mov word [ebp - 0x20], 0
mov dword [ebp - 0x50], 0x44
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0x4000020
push 0xffffffffffffffff
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CreateProcessA
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x60]
mov dword [eax], edx
mov esp, ebp
pop ebp
ret
Function at 0x40112e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov ebx, ecx
push edi
xor edx, edx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], dx
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push 0x1a
push eax
push edx
call dword [0x40d244]
lea eax, [ebp - 0x208]
lea edi, [ebx + 0x1c]
push eax
push str._s360se
push edi
call fcn.00401546
add esp, 0xc
lea esi, [ebx + 0x20]
mov ecx, esi
push edi
call fcn.004014f6
push 0
push dword [esi]
call dword [0x40d174]
mov edi, str.wdtc
mov eax, edi
test eax, eax
je 0x4011a6
push edi
call dword [0x40d178]
push edi
push eax
mov ecx, esi
call fcn.00401aa7
push 0
push dword [esi]
call dword [0x40d174]
mov ecx, ebx
call fcn.004011c5
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4011c5
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x120c
call fcn.0040cb90
push ebx
push esi
push edi
lea ebx, [ecx + 0x24]
push dword [ecx + 0x20]
xor esi, esi
mov dword [ebp - 4], esi
push str._s_se_wdtc.ini
push ebx
call fcn.00401546
mov dx, word [0x41540c]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
mov word [ebp - 0x20c], dx
mov word [ebp - 0x120c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x120a]
add esp, 0xc
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [0x40d16c]
push eax
push str.http:__seupdate.360safe.com_se_wdtc.ini__d
lea eax, [ebp - 0x120c]
push 0x7ff
push eax
call dword [0x40d21c]
lea eax, [ebp - 0x20c]
push esi
push eax
push esi
push esi
push esi
push 0x2710
push 1
push esi
push 1
push esi
lea eax, [ebp - 0x120c]
push esi
push eax
call fcn.004064aa
add esp, 0x40
cmp word [ebp - 0x20c], si
je 0x401297
lea eax, [ebp - 0x20c]
push eax
call dword [0x40d258]
test eax, eax
je 0x401297
mov ebx, dword [ebx]
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [0x40d170]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40129f
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x120c
call fcn.0040cb90
push ebx
push esi
mov ebx, ecx
push edi
xor esi, esi
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x120a]
push dword [ebx + 0x24]
mov word [ebp - 0x120c], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x120c]
push 0x800
push eax
push 0x41540c
push dword [ebp + 8]
push str.main
call dword [0x40d168]
lea eax, [ebp - 0x120c]
push eax
call dword [0x40d214]
lea edi, [ebx + 0x28]
pop ecx
test eax, eax
mov dword [ebp - 4], edi
jbe 0x401325
lea eax, [ebp - 0x120c]
test eax, eax
je 0x40131c
lea eax, [ebp - 0x120c]
push eax
call dword [0x40d178]
lea ecx, [ebp - 0x120c]
push ecx
jmp 0x40133a
cmp dword [ebp + 0xc], esi
jne 0x40132e
xor eax, eax
jmp 0x401337
push dword [ebp + 0xc]
call dword [0x40d178]
push dword [ebp + 0xc]
push eax
mov ecx, edi
call fcn.00401a68
push 0x4111f0
push dword [ebp + 8]
call dword [0x40d218]
pop ecx
test eax, eax
pop ecx
je 0x4013ec
push dword [ebp + 8]
push dword [ebx + 0x20]
push str._s_s.png
push dword [ebp - 4]
call fcn.00401546
mov ax, word [0x41540c]
mov ecx, 0x81
mov word [ebp - 0x20c], ax
xor eax, eax
lea edi, [ebp - 0x20a]
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push esi
push 0x2710
push 1
push esi
push 1
push esi
lea eax, [ebp - 0x120c]
push esi
push eax
call fcn.004064aa
add esp, 0x40
cmp word [ebp - 0x20c], si
mov edi, eax
je 0x4013e3
lea eax, [ebp - 0x20c]
push eax
call dword [0x40d258]
test eax, eax
je 0x4013e3
mov eax, dword [ebp - 4]
push esi
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [0x40d170]
mov edi, eax
cmp edi, esi
jne 0x4013ec
mov eax, dword [ebp + 0xc]
jmp 0x4013f1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x401445
Capabilities:
Set registry value

Disassembly:
push dword [esp + 8]
call dword [0x40d214]
pop ecx
shl eax, 1
push eax
push dword [esp + 0xc]
push 1
push dword [esp + 0x10]
push str.Software_se_wdtc
push 0x80000001
call dword [0x40d254]
ret 8
Function at 0x401f7b
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.0040cc04
mov esi, dword [ebp + 0xc]
push 0x2454
push 0
push esi
call fcn.0040cc04
lea eax, [esi + 8]
add esp, 0x18
mov dword [ebp - 0x38], eax
lea eax, [esi + 0x2148]
mov dword [ebp - 0x2c], eax
lea eax, [esi + 0x48]
mov dword [ebp - 0x10], eax
mov eax, 0x800
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
lea eax, [esi + 0x2348]
lea ecx, [esi + 0x1048]
mov dword [ebp - 0x20], eax
mov eax, 0x80
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 8], ecx
push eax
lea ecx, [esi + 0x2048]
push dword [ebp + 0x10]
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 0x20
mov dword [ebp - 0x28], 0x100
push dword [ebp + 8]
mov dword [ebp - 0x18], ecx
call dword [0x40d214]
pop ecx
push eax
push dword [ebp + 8]
call dword [0x40d3d0]
test eax, eax
je 0x402052
mov eax, dword [ebp - 0x30]
cmp eax, 3
je 0x40202e
cmp eax, 4
je 0x40202e
cmp eax, 1
jne 0x402052
mov cx, word [ebp - 0x24]
and dword [esi + 0x2448], 0
and dword [esi + 0x244c], 0
or dword [esi + 0x2450], 0xffffffff
push 1
mov dword [esi + 4], eax
mov word [esi], cx
pop eax
jmp 0x402054
xor eax, eax
pop esi
leave
ret

Function at 0x402057
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xc], 0
jne 0x4020aa
push ebx
mov ebx, str.MetalinkFile
lea eax, [esi + 0x5d538]
push ebx
push eax
call dword [0x40d218]
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x40209e
and word [edi], 0
push ebx
call dword [0x40d214]
lea edi, [edi + eax*2]
push edi
call dword [0x40d1f8]
pop ecx
mov dword [esi + 0x2694], eax
pop ecx
mov ecx, esi
call fcn.004056e5
test eax, eax
pop ebx
jne 0x4020ae
xor eax, eax
jmp 0x4020ee
xor edi, edi
push edi
push edi
push 1
push edi
call dword [0x40d14c]
cmp eax, edi
mov dword [esi + 0x2464], eax
je 0x4020eb
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push edi
push esi
push 0x402131
push edi
push edi
mov dword [esi + 0x5d100], 8
call dword [0x40d1fc]
add esp, 0x18
mov dword [esi + 0xc], eax
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x402b4f
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
push 1
mov eax, dword [edi + 0x26e0]
pop ebx
mov esi, dword [eax + ecx*4]
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], 2
cmp dword [eax + 4], ebx
je 0x402bc2
cmp dword [edi + 0x2480], 0
je 0x402be4
push dword [esi + 0xc]
and dword [ebp + 8], 0
call dword [0x40d11c]
lea eax, [ebp + 8]
push eax
push dword [edi + 0x2484]
push dword [edi + 0x2480]
push dword [esi + 0x1c]
call dword [0x40d3bc]
test eax, eax
je 0x402bb3
push dword [esi + 0xc]
call dword [0x40d148]
jmp 0x402be4
call dword [0x40d120]
cmp eax, 0x3e5
jne 0x402be8
jmp 0x402be4
cmp dword [esi], 0
jne 0x402bd3
mov eax, dword [esi + 4]
test eax, eax
je 0x402bd3
mov dword [esi + 0x18], eax
jmp 0x402be4
and dword [esi + 0x28], 0
push ebx
push ecx
mov ecx, edi
call fcn.00403ed4
test eax, eax
je 0x402be8
mov eax, ebx
jmp 0x402bea
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x403249
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x26e0]
mov esi, dword [eax + ebx*4]
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], 6
cmp dword [eax + 4], 1
je 0x4032bd
cmp dword [edi + 0x2480], 0
je 0x4032eb
push dword [esi + 0xc]
and dword [ebp + 8], 0
call dword [0x40d11c]
lea eax, [ebp + 8]
push eax
push dword [edi + 0x2484]
push dword [edi + 0x2480]
push dword [esi + 0x1c]
call dword [0x40d3bc]
test eax, eax
je 0x4032ab
push dword [esi + 0xc]
call dword [0x40d148]
jmp 0x4032eb
call dword [0x40d120]
sub eax, 0x3e5
neg eax
sbb eax, eax
inc eax
jmp 0x4032ee
cmp dword [esi], 0
jne 0x4032ce
mov eax, dword [esi + 4]
test eax, eax
je 0x4032ce
mov dword [esi + 0x18], eax
jmp 0x4032eb
push 1
push ebx
mov ecx, edi
mov dword [esi + 0x28], 4
call fcn.00403ed4
test eax, eax
jne 0x4032eb
push ebx
mov ecx, edi
call fcn.00403a2d
push 1
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret 4