joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4444c0
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 + 0x240], 0
je 0x4444dc
cmp dword [esi + 4], 0
je 0x444509
test byte [ebx + 0x55], 1
jne 0x4444fb
mov eax, ebx
call fcn.004428a8
test eax, eax
jne 0x4444fb
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x444619
mov edx, esi
mov eax, ebx
call fcn.00443ec8
jmp 0x444619
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 0x444612
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00446518
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.0043fcd0
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004444c0
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.00446518
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x444619
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 0x44b87c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x5205e4]
cmp byte [eax + 0xc], 0
je 0x44b9e9
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44b9e2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x524570], 0
jne 0x44b8d0
push 0x44b9f0
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44b9f8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x524570], eax
cmp dword [0x47b664], 0
jne 0x44b9cb
push 0x44ba08
call sub.kernel32.dll_LoadLibraryA
mov dword [0x47b664], eax
cmp dword [0x47b664], 0
je 0x44b9cb
push 0x44ba14
mov eax, dword [0x47b664]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x524574], eax
push 0x44ba24
mov eax, dword [0x47b664]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x524578], eax
push 0x44ba38
mov eax, dword [0x47b664]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52457c], eax
push 0x44ba50
mov eax, dword [0x47b664]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x524580], eax
push 0x44ba68
mov eax, dword [0x47b664]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x524584], eax
push 0x44ba7c
mov eax, dword [0x47b664]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x524588], eax
push 0x44ba94
mov eax, dword [0x47b664]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52458c], eax
push 0x44baac
mov eax, dword [0x47b664]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x524590], eax
push 0x44bac8
mov eax, dword [0x47b664]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x524594], eax
push 0x44bad4
mov eax, dword [0x47b664]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x524598], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44b9e9
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x451510
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x451564]
test si, 4
je 0x451525
or bl, 1
test si, 8
je 0x45152f
or bl, 4
test si, 1
je 0x451539
or bl, 8
test si, 2
je 0x451543
or bl, 0x10
test si, 0x10
je 0x45154d
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45155c
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x451568
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4515a4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x451582
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x451591
or bl, 4
test esi, 0x20000000
je 0x45159c
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x458c58
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x458c6a
add esp, 0xfffffff0
call fcn.00403bd0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a998
mov eax, dword [0x520264]
mov dword [eax + 4], ebx
mov dword [eax], 0x458ffc
mov eax, dword [0x520274]
mov dword [eax + 4], ebx
mov dword [eax], 0x459008
mov eax, ebx
call fcn.00459014
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4122e8]
call fcn.0040387c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4122e8]
call fcn.0040387c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4122e8]
call fcn.0040387c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4122e8]
call fcn.0040387c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4122e8]
call fcn.0040387c
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, 0x454aac
push eax
push 0
push 0
mov eax, dword [0x5203e0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41e58c]
call fcn.0041fde0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41e58c]
call fcn.0041fde0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41e58c]
call fcn.0041fde0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004594d4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45935c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45935c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45935c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x458da7
call fcn.00403c28
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x459140
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 0x4592eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4592cc
mov dl, 1
mov eax, dword [0x41270c]
call fcn.0040387c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004046d8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4592bb
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.0044bbd8
test al, al
je 0x4592ae
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, 0x4592fc
lea eax, [ebp - 0x254]
call fcn.00409454
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4592ae
xor eax, eax
push ebp
push 0x4592a7
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 0x459334
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x459290
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404948
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 0x459290
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404948
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4592ae
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4591b1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00416758
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 0x4592f2
lea eax, [ebp - 0x260]
call fcn.004046d8
ret

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

Disassembly:
push ecx
mov eax, dword [0x5245a8]
cmp byte [eax + 0xad], 0
jne 0x459d1d
cmp dword [0x5245c0], 0
jne 0x459cde
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x459c68
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x5245c0], eax
cmp dword [0x5245bc], 0
jne 0x459cf9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x5245bc], eax
cmp dword [0x5245c4], 0
jne 0x459d1d
push esp
push 0
push 0
push 0x459c0c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x5245c4], eax
pop edx
ret
Function at 0x459ef0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x459f07
add esp, 0xfffffff0
call fcn.00403bd0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a998
mov eax, dword [0x5203c8]
cmp word [eax + 2], 0
jne 0x459f2f
mov eax, dword [0x5203c8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045b9b8
mov eax, dword [0x52047c]
cmp word [eax + 2], 0
jne 0x459f49
mov eax, dword [0x52047c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045bbc4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4122e8]
call fcn.0040387c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4122e8]
call fcn.0040387c
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x4122e8]
call fcn.0040387c
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41f09c]
call fcn.00426a98
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x45a100
mov eax, dword [0x5202dc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00426e6c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45c284
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x5202dc]
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.0040cca4
test eax, eax
je 0x45a050
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408dcc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040ccd8
test eax, eax
je 0x45a064
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404948
mov byte [ebx + 0xd4], 0
push ebx
push 0x45b500
call fcn.0041bb14
mov dword [ebx + 0xc8], eax
mov eax, dword [0x5201a0]
cmp byte [eax], 0
jne 0x45a0b5
mov eax, ebx
call fcn.0045a244
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0045c460
mov eax, ebx
call fcn.0045cfc0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45a0f5
call fcn.00403c28
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45a4c4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x5245a8]
cmp dword [eax + 0x30], 0
je 0x45a56e
cmp dword [ebx + 0x94], 0
jne 0x45a568
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45a454
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45a568
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 0x45a52e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45a568
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.0041471c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45a53d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45b288
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45b2bd
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.004047c8
jmp 0x45b2ca
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040472c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45c644
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45c6b2
mov eax, esi
call fcn.004468b8
test al, al
je 0x45c6b2
mov eax, dword [ebx + 0x84]
call fcn.00446518
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45c6b2
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45c6a6
push 0
mov eax, dword [ebx + 0x84]
call fcn.00446518
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043e944
jmp 0x45c6b2
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045c480
pop esi
pop ebx
ret
Function at 0x46312c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x46315a
mov eax, ebx
call fcn.00463be0
cmp dword [ebx + 0x40], 0
je 0x463153
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4631cb
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4631bd
cmp dword [ebx + 8], 0
je 0x46317c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x46318e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4631bd
cmp dword [ebx + 8], 0
je 0x46316f
cmp eax, 3
je 0x4631a1
dec eax
jne 0x46316f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x46316f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x46316f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4631e9
cmp dword [ebx + 0x14], 0xcc
je 0x4631e9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004631f4
pop ebx
ret
Function at 0x401515
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x401c08
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
sub esp, 0x54
push ebx
xor ebx, ebx
push edi
cmp dword [eax - 0xc], ebx
je 0x401d84
mov eax, dword [0x45a140]
mov ecx, 0x45a140
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
push 0x44abb0
lea eax, [ebp - 8]
call fcn.0040456b
lea edi, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0040a2af
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404644
push 0x44abb8
mov eax, edi
push eax
call fcn.00402120
mov edi, dword [ebp - 4]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x401c90
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
jmp 0x401d7f
mov eax, dword [0x45a140]
mov ecx, 0x45a140
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
push edi
lea eax, [ebp - 8]
call fcn.00401fac
mov eax, str._echo_off__r_nATTRIB__r___s___r_n:try__r_nrd___s___r_nif_exist___s__goto_try_r_nATTRIB__r___s___r_ndel___s___cls
cmp byte [esi + 9], bl
jne 0x401cbb
mov eax, str._echo_off__r_nATTRIB__r___s___r_n:try__r_ndel___s___r_nif_exist___s__goto_try_r_nATTRIB__r___s___r_ndel___s___cls
push dword [ebp - 8]
push dword [ebp - 8]
push dword [esi]
push dword [esi]
push dword [esi]
push eax
lea eax, [ebp - 0xc]
call fcn.004022bb
mov edi, dword [ebp - 0xc]
add esp, 0x18
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [edi - 0xc]
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404644
lea eax, [edi - 0x10]
call fcn.00404644
cmp dword [ebp - 0x18], ebx
je 0x401d09
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 4]
lea edi, [ebp - 0xc]
call fcn.00409f80
cmp byte [esi + 8], bl
jne 0x401d30
mov edi, dword [ebp - 0xc]
push ebx
push edi
push ebx
push dword [ebp - 4]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x401d71
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.004318c0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x44], eax
add esp, 0xc
mov dword [ebp - 0x54], edi
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], 0x500
mov dword [ebp - 0x48], str.runas
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea eax, [edi - 0x10]
call fcn.00404644
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404644
mov eax, dword [esi + 4]
sub eax, 0x10
call fcn.00404644
mov eax, dword [esi]
sub eax, 0x10
call fcn.00404644
pop edi
pop ebx
leave
ret
Function at 0x403040
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x40304e
push 0xd
pop eax
jmp 0x403081
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x403055
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x403461
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x458090]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
mov dword [ebp - 0x21c], eax
xor esi, esi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.0040342e
mov ebx, eax
cmp ebx, esi
je 0x4034c9
cmp dword [ebp - 0x214], esi
je 0x4034c2
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x403564
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4034f1
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.00403461
mov dword [ebp - 0x220], eax
cmp eax, esi
jne 0x403575
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call ebx
test eax, eax
je 0x4034d1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], esi
je 0x40353c
push dword [ebp - 0x214]
call ebx
mov dword [ebp - 0x214], esi
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 0x214], esi
je 0x403562
push dword [ebp - 0x214]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043189b
leave
ret 4
cmp dword [ebp - 0x214], esi
je 0x403589
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
jmp 0x403564
Function at 0x403ee9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x394]
sub esp, 0x414
mov eax, dword [0x458090]
xor eax, ebp
mov dword [ebp + 0x390], eax
mov eax, dword [ebp + 0x39c]
push ebx
mov ebx, dword [ebp + 0x3a0]
push esi
push edi
xor esi, esi
push 2
push esi
push eax
mov edi, edx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x74], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x78], eax
cmp eax, esi
jne 0x403f3d
call fcn.00402b4f
mov esi, eax
jmp 0x403ffb
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x403f56
call fcn.00402b4f
jmp 0x403ff0
push edi
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, esi
je 0x403f4c
push edi
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
jae 0x403f90
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x74], eax
je 0x403f89
lea eax, [ebp - 0x74]
call fcn.00411999
mov eax, 0x8007000e
jmp 0x40400d
push 2
push eax
call fcn.00403085
pop ecx
pop ecx
cmp eax, 0x400
jbe 0x403fad
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00402b2e
jmp 0x403fb3
lea eax, [ebp - 0x70]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], esi
jne 0x403fbf
mov esi, 0x8007000e
jmp 0x403ff2
push edi
push dword [ebp - 0x74]
push edi
push ebx
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x403f4c
mov edx, dword [ebp - 0x74]
push dword [ebp + 0x3a4]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x74]
lea edx, [ebp - 0x80]
call fcn.00403da1
mov esi, eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x74], eax
je 0x40400b
lea eax, [ebp - 0x74]
call fcn.00411999
mov eax, esi
mov ecx, dword [ebp + 0x390]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043189b
add ebp, 0x394
leave
ret 0xc

Function at 0x40424f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404266
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40429b
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x404297
cmp edi, eax
jae 0x40429b
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x404289
cmp edi, eax
jb 0x40429f
xor eax, eax
jmp 0x4042a8
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret