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

Disassembly:
sub esp, 0x18
push ebx
lea eax, [esp + 4]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [0x5b1880]
lea ecx, [esp + 4]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
push 1
xor ebx, ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x527c9f
mov eax, dword [0x5b19b8]
test eax, eax
jne 0x527c9f
xor eax, eax
pop ebx
add esp, 0x18
ret
push esi
mov esi, dword [0x5b430c]
test esi, esi
push edi
je 0x527d14
mov edi, dword [sym.imp.USER32.dll_PtInRect]
mov eax, dword [esi + 0xa3c]
test eax, eax
je 0x527d06
mov ecx, esi
call fcn.005273b0
test eax, eax
je 0x527d06
lea eax, [esi + 0xa2c]
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x14], edx
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x1c], eax
mov ecx, dword [ecx + 0xc]
add ecx, 2
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x10]
inc eax
push ecx
mov dword [esp + 0x20], eax
push edx
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
jne 0x527d12
mov esi, dword [esi + 0xd9c]
test esi, esi
jne 0x527cb1
jmp 0x527d14
mov ebx, esi
cmp dword [0x5b19b8], ebx
je 0x527d76
test ebx, ebx
mov dword [0x5b19b8], ebx
je 0x527d47
mov eax, dword [0x5b19ac]
test eax, eax
jne 0x527d47
mov ecx, dword [0x5b1880]
push 0
push 0x32
push 0x7d
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x5b19ac], eax
mov edi, dword [0x5aa0cc]
mov edx, dword [0x5b4314]
push 0
push 0
push 0x8042
inc edi
push edx
mov dword [0x5aa0cc], edi
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x18
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x5294d0
Capabilities:
Capture screenshot

Disassembly:
push esi
mov esi, ecx
call fcn.00528e60
mov eax, dword [esi + 0x708]
test eax, eax
jne 0x529603
mov eax, dword [esi + 0xa48]
test eax, eax
jne 0x529568
mov eax, dword [0x5b430c]
test eax, eax
mov edx, 1
je 0x529560
mov edi, edi
cmp eax, esi
je case.0x529539.5
mov ecx, dword [eax + 0xbbc]
cmp ecx, dword [esi + 0xbbc]
jne case.0x529539.5
mov ecx, dword [eax + 0xa28]
test ecx, ecx
jne case.0x529539.5
mov ecx, dword [eax + 0xbc4]
test ecx, ecx
jne case.0x529539.5
mov ecx, dword [eax + 0x708]
dec ecx
cmp ecx, 8
ja case.0x529539.5
movzx ecx, byte [ecx + 0x529610]
jmp dword [ecx*4 + 0x529608]
mov ecx, dword [eax + 0xa20]
test ecx, ecx
je case.0x529539.5
mov ecx, dword [eax + 0xa48]
test ecx, ecx
je case.0x529539.5
xor edx, edx
mov eax, dword [eax + 0xd9c]
test eax, eax
jne 0x529500
mov dword [esi + 0xa48], edx
jmp 0x529572
mov dword [esi + 0xa48], 0
mov eax, dword [0x5b430c]
test eax, eax
je 0x5295e0
jmp 0x529580
cmp eax, esi
je case.0x5295b9.5
mov edx, dword [eax + 0xbbc]
cmp edx, dword [esi + 0xbbc]
jne case.0x5295b9.5
mov ecx, dword [eax + 0xa28]
test ecx, ecx
jne case.0x5295b9.5
mov ecx, dword [eax + 0xbc4]
test ecx, ecx
jne case.0x5295b9.5
mov ecx, dword [eax + 0x708]
dec ecx
cmp ecx, 8
ja case.0x5295b9.5
movzx ecx, byte [ecx + 0x529624]
jmp dword [ecx*4 + 0x52961c]
mov ecx, dword [eax + 0xa48]
test ecx, ecx
je case.0x5295b9.5
mov edx, dword [esi + 0xa48]
mov dword [eax + 0xa20], edx
mov eax, dword [eax + 0xd9c]
test eax, eax
jne 0x529580
mov eax, dword [esi + 0xa48]
test eax, eax
je 0x5295f4
mov dword [esi + 0x710], 0
mov ecx, esi
call fcn.005475d0
xor ecx, ecx
pop esi
jmp fcn.00527d80
pop esi
ret
Function at 0x529e80
Capabilities:
Hide graphical window

Disassembly:
call fcn.00529e00
test eax, eax
je 0x529ec5
mov eax, dword [0x5b4310]
mov ecx, dword [0x5b4314]
push 0
push eax
push 0x80b5
push ecx
push 0
push 0
push 0
push 0
push 0x42000000
push 0x583b74
push str.mIRC_SwitchBar
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [0x5b1880], eax
jne 0x529ec8
xor eax, eax
ret
push 0x5a98a0
push 0x180
push 0x5b26c0
push 0x583b74
mov edx, str.switchbar
mov ecx, 0x584528
mov dword [0x5b1898], eax
call fcn.004b1f10
mov al, byte [0x5b26c0]
test al, al
je 0x529f14
mov ecx, 0x5b26c0
call fcn.0041d820
push 0
mov edx, 0x5b26c0
mov ecx, 0x5b1898
call fcn.00421c10
mov eax, dword [0x59bd48]
test eax, eax
je 0x529f32
mov edx, dword [0x5b1880]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x5b1880]
ret
mov eax, dword [0x5b1880]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x5b1880]
ret
Function at 0x52a7e0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0xc
push esi
call fcn.00542c90
mov esi, eax
test esi, esi
jne 0x52a7f6
xor eax, eax
pop esi
add esp, 0xc
ret
mov ecx, dword [esi + 0xbbc]
call fcn.004e2760
test eax, eax
je 0x52a7ef
push edi
call dword [sym.imp.USER32.dll_GetFocus]
mov edi, eax
cmp edi, dword [esi + 0x86c]
je 0x52a826
cmp edi, dword [esi + 0x870]
je 0x52a826
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
mov edx, dword [esi + 0x89c]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, edi
call fcn.00477a90
mov eax, dword [esp + 8]
test eax, eax
mov dword [esp + 0x10], eax
jge 0x52a859
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
lea edx, [esp + 0xc]
push edx
mov edx, dword [esi + 0x89c]
mov ecx, edi
call fcn.004778f0
mov eax, dword [esp + 0xc]
test eax, eax
jle 0x52a81e
push 0x5aaa28
push 0x3e6
push 0xd
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
mov dword [esp + 0xc], eax
jle 0x52a81e
push 5
push 0x58b430
push 0x5aaa28
mov byte [eax + 0x5aaa28], 0
call fcn.00580a2f
add esp, 0xc
test eax, eax
jne 0x52a8b8
pop edi
mov eax, 1
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 8]
cmp eax, dword [esp + 0xc]
jg 0x52a81e
dec eax
jns 0x52a8cb
xor eax, eax
mov dl, byte [eax + 0x5aaa28]
xor ecx, ecx
cmp dl, 0x20
setne cl
pop edi
pop esi
mov eax, ecx
add esp, 0xc
ret
Function at 0x530cf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x10
cmp edx, 0x1b
push esi
mov esi, ecx
jne 0x530d08
mov eax, dword [0x5b32dc]
test eax, eax
jne 0x530ddd
movzx eax, dx
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x530d2e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x530d35
xor eax, eax
pop esi
add esp, 0x10
ret
mov cl, byte [esi + 0xe]
mov edx, 1
push ebx
mov ebx, dword [esi + 4]
shl edx, cl
push ebp
mov ebp, dword [esi + 8]
push 0
lea eax, [esi + edx*4 + 0x28]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
call dword [sym.imp.USER32.dll_GetDC]
test eax, eax
mov dword [esp + 0xc], eax
je 0x530dd7
push edi
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x530dc9
mov ecx, dword [esp + 0x10]
push ebp
push ebx
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
mov dword [esp + 0x14], eax
je 0x530dc2
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x18]
push 0xcc0020
push 0
push esi
push edx
push ebp
push ebx
push 0
push 0
push ebp
push ebx
push 0
push 0
push edi
mov dword [esp + 0x50], eax
call dword [sym.imp.GDI32.dll_StretchDIBits]
mov eax, dword [esp + 0x1c]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x10]
push ecx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
pop esi
add esp, 0x10
ret
Function at 0x533320
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, dword [0x59bd48]
xor ecx, ecx
mov dl, 4
mov ebx, 8
push ebp
lea eax, [ecx + ecx*2]
shl eax, 2
cmp ecx, 0x21
lea ebp, [ecx + 0x3e8]
mov dword [eax + 0x5b2ff8], ecx
mov dword [eax + 0x5b2ffc], ebp
mov byte [eax + 0x5b3000], dl
mov byte [eax + 0x5b3001], 0
ja case.0x533363.2
movzx ebp, byte [ecx + 0x533524]
jmp dword [ebp*4 + 0x533514]
test esi, esi
je case.0x533363.0
mov byte [eax + 0x5b3000], bl
jmp case.0x533363.0
mov dword [eax + 0x5b2ff8], 0xffffffff
mov byte [eax + 0x5b3001], 1
inc ecx
cmp ecx, 0x22
jl 0x533332
call fcn.005332a0
test eax, eax
pop ebp
je 0x5333d0
mov eax, dword [0x5b4310]
mov ecx, dword [0x5b4314]
push 0
push eax
push 0
push ecx
push 0
push 0
push 0
push 0
push 0x42000000
push 0x583b74
push str.mIRC_Toolbar
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [0x5b3198], eax
jne 0x5333d5
pop esi
xor eax, eax
pop ebx
ret
movzx edx, word [0x5b4310]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
or edx, 0x1b0000
push edx
push 0x22
push 0x413
push eax
mov dword [0x5b31c0], eax
mov dword [0x5b32d8], eax
call esi
mov eax, dword [0x5b3198]
push 0x5b2ff8
push 0x22
push 0x414
push eax
call esi
call fcn.00531b70
mov eax, dword [0x5b3198]
test eax, eax
je 0x533484
mov eax, dword [0x5ae60c]
test eax, eax
jne 0x53343c
mov eax, dword [0x5ae608]
test eax, eax
jne 0x53343c
mov eax, dword [0x5ae610]
test eax, eax
mov edx, ebx
je 0x533441
mov edx, 9
mov ecx, ebx
call fcn.00531b10
test eax, eax
je 0x533453
mov ecx, ebx
call fcn.00531ac0
mov eax, dword [0x5b3198]
test eax, eax
je 0x533484
mov ebx, dword [0x5a7cb4]
xor edx, edx
test ebx, ebx
setne dl
mov ecx, 0xe
add edx, 0xe
call fcn.00531b10
test eax, eax
je 0x533484
mov ecx, 0xe
call fcn.00531ac0
call fcn.00531c60
mov eax, dword [0x5b3198]
test eax, eax
je 0x5334e8
mov edx, 0x18
mov ecx, edx
call fcn.00531b10
test eax, eax
je 0x5334ac
mov ecx, 0x18
call fcn.00531ac0
mov eax, dword [0x5b3198]
test eax, eax
mov dword [0x5b3404], 0
je 0x5334e8
mov edx, 0x1a
mov ecx, edx
call fcn.00531b10
test eax, eax
je 0x5334d9
mov ecx, 0x1a
call fcn.00531ac0
mov eax, dword [0x5b3198]
mov dword [0x5b3408], 0
mov ecx, dword [0x59bd80]
test ecx, ecx
je 0x533503
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x5b3198]
pop esi
pop ebx
ret
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x5b3198]
pop esi
pop ebx
ret
Function at 0x534430
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
call fcn.00514a70
test eax, eax
je 0x53450c
mov eax, dword [esi + 0x3a4]
push ebx
xor edx, edx
test eax, eax
push edi
je 0x5344cc
mov ecx, 0x15be
call fcn.0041d620
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push eax
mov eax, dword [esi]
push 0
push 0xc
push 0x79
push eax
call edi
mov eax, dword [esi + 0x344]
test eax, eax
je 0x53449c
mov ecx, dword [esi]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x78
push ecx
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
mov edx, dword [esi]
push 0
push 0x77
push edx
call edi
push eax
call ebx
pop edi
pop ebx
pop esi
ret
xor edx, edx
mov ecx, 0x15bf
call fcn.0041d620
push eax
mov eax, dword [esi]
push 0
push 0xc
push 0x77
push eax
call edi
mov ecx, dword [esi]
push 5
push 0x77
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop ebx
pop esi
ret
mov ecx, 0x15bd
call fcn.0041d620
mov edx, dword [esi]
push eax
push 0
push 0xc
push 0x79
push edx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x78
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
mov ecx, dword [esi]
push 0
push 0x77
push ecx
call edi
push eax
call ebx
pop edi
pop ebx
pop esi
ret

Function at 0x534510
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
call fcn.0048f680
test eax, eax
je 0x5345de
mov eax, dword [esi + 0x488]
push ebx
xor edx, edx
test eax, eax
push edi
je 0x53459e
mov ecx, 0x15be
call fcn.0041d620
push eax
mov eax, dword [esi]
push 0
push 0xc
push 0x79
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ecx, dword [esi]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 5
push 0x78
push ecx
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
mov edx, dword [esi]
push 5
push 0x77
push edx
call edi
push eax
call ebx
mov eax, dword [esi + 0x448]
test eax, eax
je 0x53458a
mov eax, dword [esi]
push 1
push 0x77
push eax
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
pop edi
pop ebx
pop esi
ret
mov ecx, dword [esi]
push 0
push 0x77
push ecx
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
pop edi
pop ebx
pop esi
ret
mov ecx, 0x15bd
call fcn.0041d620
mov edx, dword [esi]
push eax
push 0
push 0xc
push 0x79
push edx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x78
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
mov ecx, dword [esi]
push 0
push 0x77
push ecx
call edi
push eax
call ebx
pop edi
pop ebx
pop esi
ret
Function at 0x538270
Capabilities:
Hide graphical window
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call edi
xor esi, esi
mov si, ax
push 0x11
and esi, 0x8000
sub esi, 0x8000
neg esi
sbb esi, esi
inc esi
call edi
test ah, ah
jns 0x5382bf
mov eax, dword [0x5a9e24]
test eax, eax
je 0x5382aa
mov dword [0x5a9e30], eax
jmp 0x5382bf
mov eax, dword [0x5b4314]
push 1
push 0
push 0x8043
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [0x5b3c08]
test eax, eax
jne 0x5382de
mov eax, dword [0x5b3c04]
test eax, eax
je 0x5382da
test esi, esi
je 0x5382de
pop edi
xor eax, eax
pop esi
ret
test esi, esi
je 0x5382d5
mov ecx, 1
call fcn.00537e30
test eax, eax
je 0x5382d5
mov eax, dword [0x5b3c04]
test eax, eax
push 6
je 0x538331
test esi, esi
je 0x538310
mov ecx, dword [0x5b4314]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
mov eax, 1
pop esi
ret
mov edx, dword [0x5b4314]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push edx
call esi
mov eax, dword [0x5b4314]
push 0
push eax
call esi
pop edi
mov eax, 1
pop esi
ret
test esi, esi
je 0x538357
mov ecx, dword [0x5b4314]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push ecx
call esi
mov edx, dword [0x5b4314]
push 0
push edx
call esi
pop edi
mov eax, 1
pop esi
ret
mov eax, dword [0x5b4314]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
mov eax, 1
pop esi
ret

Function at 0x538420
Capabilities:
Find taskbar

Disassembly:
mov eax, dword [0x59e290]
test eax, eax
jne 0x538529
mov eax, dword [0x5b3d34]
test eax, eax
jne 0x538529
movzx eax, cl
sub eax, 3
mov dword [0x5b3d34], 1
je 0x538465
sub eax, 2
jne 0x53851f
call fcn.00537580
mov dword [0x5b3d34], 0
ret
mov eax, dword [0x5b3d28]
test eax, eax
jne 0x53851f
push ebx
push ebp
push esi
push edi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x5384e4
mov edi, dword [sym.imp.USER32.dll_GetWindow]
push 2
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_IsIconic]
mov ebp, dword [sym.imp.USER32.dll_IsWindowVisible]
mov esi, eax
test esi, esi
je 0x5384c5
cmp esi, dword [0x5b4314]
je 0x5384cd
push esi
call ebx
test eax, eax
jne 0x5384ba
push esi
call ebp
test eax, eax
jne 0x5384c5
push 2
push esi
call edi
mov esi, eax
test esi, esi
jne 0x5384a4
cmp esi, dword [0x5b4314]
jne 0x5384e4
push esi
call ebx
test eax, eax
jne 0x5384e4
push esi
call ebp
test eax, eax
je 0x5384e4
call fcn.00538270
test eax, eax
jne 0x53851b
mov eax, dword [0x5a9e30]
test eax, eax
je 0x538511
mov eax, dword [0x5b4314]
push 0
push 0
push 0x8043
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x5b3d34], 0
ret
mov ecx, 1
call fcn.00538190
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x5b3d34], 0
ret
Function at 0x539df0
Capabilities:
Enumerate network shares

Disassembly:
sub esp, 0x1c
movzx eax, byte [edx]
push eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
call fcn.00571012
add esp, 4
cmp al, 0x41
mov byte [esp + 3], al
jb 0x539f63
cmp al, 0x5a
ja 0x539f63
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 1
push 1
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
jne 0x539f63
push ebx
push ebp
mov ebx, 0x640
push ebx
mov dword [esp + 0x1c], eax
call fcn.00570098
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x539f4f
push esi
push edi
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
push ebp
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x28], ebx
call sub.MPR.dll_WNetEnumResourceA
cmp eax, 0xea
jne 0x539e99
mov eax, dword [esp + 0x18]
push eax
push ebp
mov ebx, eax
call fcn.00571c26
add esp, 8
test eax, eax
je 0x539f40
mov ebp, eax
jmp 0x539e55
test eax, eax
jne 0x539f40
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
jle 0x539e55
lea edi, [ebp + 0x10]
mov edi, edi
mov eax, dword [edi]
test eax, eax
je 0x539ecb
movzx edx, byte [eax]
push edx
call fcn.00571012
movzx ecx, byte [esp + 0x17]
add esp, 4
cmp ecx, eax
je 0x539edc
mov eax, dword [esp + 0x14]
inc esi
add edi, 0x20
cmp esi, eax
jl 0x539eb0
jmp 0x539e55
mov edi, dword [esp + 0x24]
shl esi, 5
mov esi, dword [esi + ebp + 0x14]
mov ecx, edi
lea esp, [esp]
mov al, byte [esi]
inc esi
mov byte [ecx], al
inc ecx
test al, al
jne 0x539ef0
mov eax, dword [esp + 0x28]
cmp byte [eax + 1], 0x3a
jne 0x539f38
mov cl, byte [eax + 2]
add eax, 2
cmp cl, 0x5c
jne 0x539f38
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x539f11
sub eax, edx
dec edi
jmp 0x539f20
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x539f20
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x20], 1
test ebp, ebp
pop edi
pop esi
je 0x539f4f
push ebp
call fcn.005700aa
add esp, 4
mov edx, dword [esp + 0x14]
push edx
call sub.MPR.dll_WNetCloseEnum
mov eax, dword [esp + 0x18]
pop ebp
pop ebx
add esp, 0x1c
ret
xor eax, eax
add esp, 0x1c
ret

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

Disassembly:
sub esp, 0x10c
push ebx
push edi
lea eax, [esp + 8]
push eax
push 0x2001f
push 0
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x539fa2
pop edi
mov eax, 0x3f3
pop ebx
add esp, 0x10c
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea esp, [esp]
mov edx, dword [esp + 0xc]
push 0x105
lea ecx, [esp + 0x14]
push ecx
push 0
push edx
call esi
test eax, eax
jne 0x539fd8
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
call fcn.00539f70
test eax, eax
je 0x539fb0
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop esi
pop edi
pop ebx
add esp, 0x10c
ret
Function at 0x53a000
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
push edi
lea eax, [esp + 0xc]
push eax
mov edi, ecx
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x20006
push 0
push 0x584d78
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallmIRC
push reloc.WSOCK32.dll_bind
mov esi, edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x53a03f
pop edi
xor eax, eax
pop esi
add esp, 8
ret
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x53a044
sub eax, edx
mov edx, dword [esp + 8]
inc eax
push eax
push esi
push 1
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
add esp, 8
ret
Function at 0x53a5e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x55c
push esi
lea eax, [esp + 0xc]
push eax
mov esi, ecx
mov ecx, dword [0x5b4314]
push 0
push ecx
mov dword [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x53a770
mov eax, dword [esp + 0xc]
test eax, eax
je 0x53a770
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jl 0x53a770
lea ecx, [esp + 0x10]
call fcn.004203c0
lea eax, [esp + 0x10]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x53a640
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
sub eax, edx
lea eax, [esp + eax + 0x14]
push str._s.lnk
push eax
call esi
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0x58bda8
push 1
push 0
push 0x58bdb8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x53a770
mov eax, dword [esp + 4]
mov edx, dword [eax]
lea ecx, [esp + 8]
push ecx
push 0x58be08
push eax
call dword [edx]
test eax, eax
jge 0x53a6a9
mov eax, dword [esp + 4]
mov edx, dword [eax]
push eax
call dword [edx + 8]
pop esi
add esp, 0x55c
ret
push 0x104
lea eax, [esp + 0x35c]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push 0
lea ecx, [esp + 0x35c]
push ecx
push eax
call dword [edx + 0x14]
test eax, eax
jge 0x53a6fb
mov eax, dword [esp + 8]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop esi
add esp, 0x55c
ret
mov eax, dword [esp + 4]
mov edx, dword [eax]
push 0
lea ecx, [esp + 0x21c]
push ecx
push 0x104
lea ecx, [esp + 0x120]
push ecx
push eax
call dword [edx + 0xc]
test eax, eax
mov eax, dword [esp + 8]
mov edx, dword [eax]
push eax
jl 0x53a6e6
call dword [edx + 8]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x5aaa28
push 0x5a9798
push 0x583954
push 0x5aa640
call esi
lea edx, [esp + 0x124]
push edx
push 0x5aa640
call fcn.005809c6
add esp, 0x18
test eax, eax
jne 0x53a770
lea eax, [esp + 0x10]
push eax
call fcn.005725fc
add esp, 4
pop esi
add esp, 0x55c
ret
Function at 0x53a780
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Get common file path

Disassembly:
mov eax, dword [0x5b4310]
sub esp, 0x88
push esi
push 0xa
push 0x2b
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x53a887
mov ecx, dword [0x5b4310]
push ebx
push ebp
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [0x5b4310]
push esi
push edx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x53a885
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x53a885
push edi
push 0x5aa640
push 0x180
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, 0x5aa640
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x53a7f1
mov eax, dword [str.miunst_.exe]
mov ecx, dword [0x58b7f0]
mov edx, dword [0x58b7f4]
mov dword [edi], eax
push 0x1001
lea eax, [esp + 0x14]
push eax
mov dword [edi + 4], ecx
push 0x5aa640
mov dword [edi + 8], edx
mov byte [esp + 0x1c], 0x88
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov esi, eax
cmp esi, 0xffffffff
pop edi
je 0x53a885
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll__lwrite]
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, 0x5aa640
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x53a850
push 0x5aaa28
sub eax, edx
push 0x5a9798
lea ecx, [eax + 0x5aa640]
push str.__s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
push 0x5aa640
call dword [sym.imp.KERNEL32.dll_WinExec]
pop ebp
pop ebx
pop esi
add esp, 0x88
ret