joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ed48
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44ed80]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44ed61
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44ed70
or bl, 4
test esi, 0x20000000
je 0x44ed7b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x455428
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45543a
add esp, 0xfffffff0
call fcn.00403430
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a4e0
mov eax, dword [0x461558]
mov dword [eax + 4], ebx
mov dword [eax], 0x4557cc
mov eax, dword [0x461564]
mov dword [eax + 4], ebx
mov dword [eax], 0x4557d8
mov eax, ebx
call fcn.004557e4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41177c]
call fcn.004030dc
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41177c]
call fcn.004030dc
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41177c]
call fcn.004030dc
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41177c]
call fcn.004030dc
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41177c]
call fcn.004030dc
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, 0x451c00
push eax
push 0
push 0
mov eax, dword [0x461728]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41bf50]
call fcn.0041d6c4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41bf50]
call fcn.0041d6c4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41bf50]
call fcn.0041d6c4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00455c04
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455ae0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455ae0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455ae0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x455577
call fcn.00403488
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4558c4
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 0x455a6f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x455a50
mov dl, 1
mov eax, dword [0x411de0]
call fcn.004030dc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403ee0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x455a3f
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.00443418
test al, al
je 0x455a32
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, 0x455a80
lea eax, [ebp - 0x254]
call fcn.00408a3c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x455a32
xor eax, eax
push ebp
push 0x455a2b
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 0x455ab8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x455a14
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404150
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 0x455a14
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404150
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455a32
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x455935
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416144
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 0x455a76
lea eax, [ebp - 0x260]
call fcn.00403ee0
ret

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

Disassembly:
push ecx
mov eax, dword [0x462be0]
cmp byte [eax + 0xa5], 0
jne 0x456415
cmp dword [0x462bf8], 0
jne 0x4563d6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x456360
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x462bf8], eax
cmp dword [0x462bf4], 0
jne 0x4563f1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x462bf4], eax
cmp dword [0x462bfc], 0
jne 0x456415
push esp
push 0
push 0
push 0x456304
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x462bfc], eax
pop edx
ret
Function at 0x45650c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x456523
add esp, 0xfffffff0
call fcn.00403430
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a4e0
mov eax, dword [0x46170c]
cmp word [eax + 2], 0
jne 0x45654b
mov eax, dword [0x46170c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00457be4
mov eax, dword [0x461800]
cmp word [eax + 2], 0
jne 0x456565
mov eax, dword [0x461800]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00457ddc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41177c]
call fcn.004030dc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41177c]
call fcn.004030dc
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 [0x41ca30]
call fcn.00423e94
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4566ec
mov eax, dword [0x4615e4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424264
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45837c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4615e4]
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.0040c180
test eax, eax
je 0x45665a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408430
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c1a8
test eax, eax
je 0x45666e
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.00404150
mov eax, dword [0x461458]
cmp byte [eax], 0
jne 0x4566a2
mov eax, ebx
call fcn.00456814
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.00458558
mov eax, ebx
call fcn.00458f1c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4566e2
call fcn.00403488
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x456a94
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x462be0]
cmp dword [eax + 0x30], 0
je 0x456b3e
cmp dword [ebx + 0x94], 0
jne 0x456b38
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x456a24
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x456b38
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 0x456afe
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x456b38
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.00413dac
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x456b0d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4576a0
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 0x4576d5
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.00403fd0
jmp 0x4576e2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403f34
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x458734
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x458775
mov eax, esi
call fcn.0043e9bc
test al, al
je 0x458775
mov eax, dword [ebx + 0x84]
call fcn.0043e6b8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x458775
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043e6b8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x40a8f7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40a917
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040d13a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40a938
test byte [esp + 8], 2
je 0x40a938
mov dword [0x41ae18], 0xd
mov dword [0x41ae1c], 5
jmp 0x40a913
xor eax, eax
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40689a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068be
xor eax, eax
test eax, eax
je 0x4068d1
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068d1
xor ecx, ecx
jmp 0x4068d4
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4069f7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43190c], 0
push esi
jne 0x406a2e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a08
mov dword [ecx*4 + 0x431908], eax
inc ecx
cmp ecx, 0x100
jl 0x406a03
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a5f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431908]
xor eax, esi
inc ecx
dec edx
jne 0x406a41
pop edi
not eax
pop esi
ret 0xc

Function at 0x403914
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x40e008], 0x8088405
inc edx
mov dword [ebx + 0x40e008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x401380
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ecx
mov eax, dword [ebx + 4]
push ebp
push esi
push edi
xor esi, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401390
sub eax, edx
push 0x400
mov dword [esp + 0x10], eax
call fcn.00404cf7
add esp, 4
mov ebp, eax
xor edi, edi
cmp dword [esp + 0xc], esi
mov byte [ebp], 0
jle 0x40142b
jmp 0x4013c0
mov ecx, dword [ebx + 4]
mov cl, byte [edi + ecx]
cmp cl, 0x7f
jg case.default.0x4013e3
cmp cl, 0x3d
je 0x40142b
movsx edx, cl
mov cl, byte [edx + 0x411c70]
cmp cl, 0xff
je case.default.0x4013e3
cmp esi, 3
ja case.default.0x4013e3
jmp dword [esi*4 + 0x40151c]
add cl, cl
add cl, cl
mov byte [eax], cl
mov esi, 1
jmp case.default.0x4013e3
mov dl, cl
shr dl, 4
or byte [eax], dl
inc eax
shl cl, 4
mov byte [eax], cl
mov esi, 2
jmp case.default.0x4013e3
mov dl, cl
shr dl, 2
or byte [eax], dl
inc eax
shl cl, 6
mov byte [eax], cl
mov esi, 3
jmp case.default.0x4013e3
or byte [eax], cl
inc eax
xor esi, esi
inc edi
cmp edi, dword [esp + 0xc]
jl 0x4013c0
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push ebp
mov byte [eax], 0
push 0
sub eax, ebp
push 3
mov dword [esp + 0x24], eax
call edi
mov esi, eax
dec esi
test esi, esi
jle 0x40149e
mov eax, dword [ebx]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, esi
or ecx, edx
jge 0x40146d
mov ecx, esi
mov eax, ebx
call fcn.00401630
mov eax, dword [ebx]
push esi
push eax
push 0xffffffffffffffff
push ebp
push 0
push 3
call edi
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x4014bb
mov dword [eax - 0xc], esi
mov ecx, dword [ebx]
xor edx, edx
push ebp
mov word [ecx + esi*2], dx
call fcn.00404d02
mov eax, dword [esp + 0x10]
add esp, 4
pop edi
pop esi
pop ebp
pop ecx
ret
mov ecx, dword [ebx]
cmp dword [ecx - 0xc], 0
mov esi, dword [ecx - 0x10]
lea eax, [ecx - 0x10]
je 0x401509
cmp dword [eax + 0xc], 0
lea edx, [eax + 0xc]
jge 0x4014e5
cmp dword [ecx - 8], 0
jge 0x4014c5
push 0x80070057
call fcn.00401740
mov dword [ecx - 0xc], 0
mov eax, dword [ebx]
xor ecx, ecx
push ebp
mov word [eax], cx
call fcn.00404d02
mov eax, dword [esp + 0x10]
add esp, 4
pop edi
pop esi
pop ebp
pop ecx
ret
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4014fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [ebx], eax
push ebp
call fcn.00404d02
mov eax, dword [esp + 0x10]
add esp, 4
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x401760
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
push 0x41024c
push 1
xor esi, esi
push esi
push 0x41025c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x401812
mov eax, dword [esp + 4]
mov edx, dword [esp + 0xc]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push esi
push edx
push eax
mov eax, dword [ecx + 0x44]
call eax
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push 0x4121c0
push eax
call edx
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push 0x41026c
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x401806
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
mov esi, 1
call edx
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
pop esi
pop ecx
ret 0x10
Function at 0x401b80
Capabilities:
Create http request
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub esp, 0x414
mov eax, dword [0x41413c]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push ebp
push esi
xor ebp, ebp
push ebp
push ebp
push ebp
push ebp
push str.MSDN_Read
mov esi, ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x401bd5
mov eax, dword [edi]
push ebp
push 0x80000000
push ebp
push ebp
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x401bef
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.00404c1a
add esp, 0x414
ret
push 0x400
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00405370
add esp, 0xc
mov dword [esp + 0xc], ebp
mov ebx, 1
test esi, esi
je 0x401c2f
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 2
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push ecx
push 0x400
lea edx, [esp + 0x24]
push edx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401cc1
lea ecx, [ecx]
cmp dword [esp + 0xc], 0
jbe 0x401cc1
test ebx, ebx
je 0x401c8a
lea ebx, [esp + 0x1c]
mov eax, edi
call fcn.00401530
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jl 0x401c88
push str.b_rN0R
push eax
call fcn.00404d0d
add esp, 8
test eax, eax
je 0x401c88
sub eax, dword [edi]
sar eax, 1
test eax, eax
jg 0x401cc1
xor ebx, ebx
cmp ebp, 0xffffffff
je 0x401ca7
mov ecx, dword [esp + 0xc]
push 0
lea eax, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x28]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0xc]
push eax
push 0x400
lea ecx, [esp + 0x24]
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x401c50
mov edx, dword [esp + 0x10]
mov dword [esp + 0xc], edx
cmp ebp, 0xffffffff
je 0x401cd5
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
mov ecx, dword [esp + 0x41c]
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00404c1a
add esp, 0x414
ret
Function at 0x401d10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x41413c]
xor eax, esp
mov dword [esp + 0x20c], eax
xor ecx, ecx
push 0x204
push ecx
lea edx, [esp + 0x10]
xor eax, eax
push edx
mov dword [esp + 0xc], 0
mov word [esp + 0x10], ax
mov word [esp + 0x12], cx
call fcn.00405370
add esp, 0xc
lea eax, [esp]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x401dc1
mov edx, dword [esp]
push ebx
push esi
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov esi, eax
lea eax, [esp + 0xc]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401d80
sub eax, edx
sar eax, 1
lea ecx, [esp + 0xc]
mov ebx, eax
push ecx
mov eax, edi
call fcn.00402e10
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00404c1a
add esp, 0x210
ret
mov ecx, dword [esp + 0x20c]
xor ecx, esp
xor eax, eax
call fcn.00404c1a
add esp, 0x210
ret

Function at 0x401f00
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x24
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401f3c
lea ecx, [esp + 8]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x401f42
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add esp, 0x24
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0x10
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
push 0
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x401f8f
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add esp, 0x24
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add esp, 0x24
ret
Function at 0x4031d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4031e7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403218
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x403214
cmp esi, eax
jae 0x403218
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x403204
cmp esi, eax
jb 0x40321e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x403230
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
push esi
add eax, eax
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
push 0
mov dword [edi], 0
mov ecx, dword [eax]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40329b
mov eax, dword [esp + 8]
cmp eax, 1
je 0x40326c
cmp eax, 2
jne 0x403287
mov eax, dword [esp]
test esi, esi
je 0x403295
test eax, eax
je 0x403290
test al, 1
jne 0x403287
mov edx, eax
shr edx, 1
cmp word [esi + edx*2 - 2], 0
je 0x403295
mov eax, 0xd
pop ecx
ret 4
xor ecx, ecx
mov word [esi], cx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 4
Function at 0x404c1a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41413c]
jne 0x404c24
repz ret
jmp fcn.0040692c

Function at 0x40a684
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040633b
and dword [ebp - 4], 0
cmp dword [0x415a44], 0
mov ebx, eax
jne 0x40a735
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a7e6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a7e6
push eax
call fcn.004062c9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x415a44], eax
call esi
push eax
call fcn.004062c9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x415a48], eax
call esi
push eax
call fcn.004062c9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x415a4c], eax
call esi
push eax
call fcn.004062c9
pop ecx
mov dword [0x415a54], eax
test eax, eax
je 0x40a735
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004062c9
pop ecx
mov dword [0x415a50], eax
mov eax, dword [0x415a50]
cmp eax, ebx
je 0x40a78d
cmp dword [0x415a54], ebx
je 0x40a78d
push eax
call fcn.00406344
push dword [0x415a54]
mov esi, eax
call fcn.00406344
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a78d
test edi, edi
je 0x40a78d
call esi
test eax, eax
je 0x40a784
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a784
test byte [ebp - 0xc], 1
jne 0x40a78d
or dword [ebp + 0x10], 0x200000
jmp 0x40a7c6
mov eax, dword [0x415a48]
cmp eax, ebx
je 0x40a7c6
push eax
call fcn.00406344
pop ecx
test eax, eax
je 0x40a7c6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a7c6
mov eax, dword [0x415a4c]
cmp eax, ebx
je 0x40a7c6
push eax
call fcn.00406344
pop ecx
test eax, eax
je 0x40a7c6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x415a44]
call fcn.00406344
pop ecx
test eax, eax
je 0x40a7e6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a7e8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret