joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45fd90
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x45fdb6
mov eax, esp
push eax
push 0x45fd58
call sub.user32.dll_EnumWindows
jmp 0x45fdc9
mov eax, esp
push eax
push 0x45fd38
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x45fe8c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x45fee0]
test si, 4
je 0x45fea1
or bl, 1
test si, 8
je 0x45feab
or bl, 4
test si, 1
je 0x45feb5
or bl, 8
test si, 2
je 0x45febf
or bl, 0x10
test si, 0x10
je 0x45fec9
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45fed8
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45fee4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x45ff20]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45fefe
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45ff0d
or bl, 4
test esi, 0x20000000
je 0x45ff18
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x468258
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x46826a
add esp, 0xfffffff0
call fcn.00403ef4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041fca4
mov eax, dword [0x470bec]
mov dword [eax + 4], ebx
mov dword [eax], 0x46866c
mov eax, dword [0x470bf8]
mov dword [eax + 4], ebx
mov dword [eax], 0x468678
mov eax, ebx
call fcn.00468684
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4167d0]
call fcn.00403a8c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4167d0]
call fcn.00403a8c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4167d0]
call fcn.00403a8c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4167d0]
call fcn.00403a8c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4167d0]
call fcn.00403a8c
mov dword [ebx + 0x74], 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, 0x4636a8
push eax
push 0
push 0
mov eax, dword [0x470d84]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4240ec]
call fcn.00425b6c
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x4240ec]
call fcn.00425b6c
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x4240ec]
call fcn.00425b6c
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x4240ec]
call fcn.00425b6c
mov dword [ebx + 0x84], eax
mov eax, ebx
call fcn.00468b7c
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x468a54
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x468a54
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x468a54
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x468a54
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4683bd
call fcn.00403f4c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4687f4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4689a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x468982
mov dl, 1
mov eax, dword [0x416c48]
call fcn.0041b0f0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
xor edx, edx
call fcn.00405400
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x468971
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.00457f80
test al, al
je 0x468964
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x4689b0
lea eax, [ebp - 0x394]
call fcn.0040b35c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x468964
xor eax, eax
push ebp
push 0x46895d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x468a20
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x468946
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.004055b8
mov edx, dword [ebp - 0x3a0]
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 0x468946
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.004055b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468964
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x468867
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.0041aedc
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 0x4689a8
lea eax, [ebp - 0x3a0]
call fcn.004053f0
ret

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

Disassembly:
push ecx
mov eax, dword [0x47617c]
cmp byte [eax + 0xa9], 0
jne 0x469402
cmp dword [0x476194], 0
jne 0x4693c2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x470ad8]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x476194], eax
cmp dword [0x476190], 0
jne 0x4693dd
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x476190], eax
cmp dword [0x476198], 0
jne 0x469402
push esp
push 0
push 0
mov eax, dword [0x470ad4]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x476198], eax
pop edx
ret
Function at 0x469618
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x46962f
add esp, 0xfffffff0
call fcn.00403ef4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041fca4
mov eax, dword [0x470b3c]
cmp byte [eax], 0
jne 0x46965c
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x470d68]
cmp word [eax + 2], 0
jne 0x469676
mov eax, dword [0x470d68]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046b508
mov eax, dword [0x470e28]
cmp word [eax + 2], 0
jne 0x469690
mov eax, dword [0x470e28]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046b718
mov byte [ebx + 0x31], 0
mov dl, 1
mov eax, dword [0x4240ec]
call fcn.00425b6c
mov esi, eax
mov dword [ebx + 0x38], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x46bb9c
mov dl, 1
mov eax, dword [0x4167d0]
call fcn.00403a8c
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x4167d0]
call fcn.00403a8c
mov dword [ebx + 0xac], eax
xor eax, eax
mov dword [ebx + 0x5c], eax
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x58], 0xff000018
mov dword [ebx + 0x74], 0x1f4
mov byte [ebx + 0x78], 1
xor eax, eax
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x70], 0x9c4
mov byte [ebx + 0x84], 0
mov byte [ebx + 0xa1], 1
mov byte [ebx + 0xb8], 1
mov dl, 1
mov eax, dword [0x424944]
call fcn.0042b698
mov esi, eax
mov dword [ebx + 0x9c], esi
push 0x46986c
mov eax, dword [0x470c60]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0042ba9c
mov eax, dword [ebx + 0x9c]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46be4c
mov dl, 1
mov eax, dword [0x4167d0]
call fcn.00403a8c
mov dword [ebx + 0x94], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x470c60]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0040b1a8
test eax, eax
je 0x46979e
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0040afa8
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0040b190
test eax, eax
je 0x4697b6
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x88]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.004055b8
push ebx
push 0x46af1c
call fcn.0045fe70
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xcc], 0
mov eax, dword [0x470b3c]
cmp byte [eax], 0
jne 0x469807
mov eax, ebx
call fcn.004699e0
mov byte [ebx + 0x55], 1
mov byte [ebx + 0x56], 1
mov byte [ebx + 0x57], 1
mov byte [ebx + 0xa2], 1
mov byte [ebx + 0xcd], 0
mov byte [ebx + 0xd8], 0
xor eax, eax
mov dword [ebx + 0xd0], eax
mov byte [ebx + 0xcf], 0
xor eax, eax
mov dword [ebx + 0xa4], eax
mov eax, ebx
call fcn.0046c074
mov eax, ebx
call fcn.0046cc38
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x469864
call fcn.00403f4c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x469c88
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x469d2a
cmp dword [ebx + 0x90], 0
jne 0x469d24
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x469c00
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x8c]
cmp dword [eax + 8], 0
je 0x469d24
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_GetWindowLongW
test al, 8
je 0x469cea
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x8c]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x469d24
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x8c]
call fcn.00418df0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x469cf9
inc dword [ebx + 0x90]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x469f48
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x47617c]
cmp dword [eax + 0x170], 0
je 0x46a0ad
test bl, bl
jne 0x469ffb
cmp dword [esi + 0x98], 0
jne 0x469ff0
mov eax, esi
call fcn.0046ca88
push eax
push 0x469e54
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x40], 0
je 0x469fc1
mov eax, dword [0x47617c]
cmp byte [eax + 0xcf], 0
je 0x469fc1
mov eax, dword [esi + 0xd4]
call fcn.00406254
mov edi, eax
cmp edi, 0
jl 0x469fc1
push 0
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x469faa
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x469ff0
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00418df0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x469fd0
inc dword [esi + 0x98]
jmp 0x46a0ad
cmp dword [esi + 0x98], 0
jle 0x46a0ad
dec dword [esi + 0x98]
cmp dword [esi + 0x98], 0
jne 0x46a0ad
cmp dword [esi + 0x40], 0
je 0x46a058
mov eax, dword [0x47617c]
cmp byte [eax + 0xcf], 0
je 0x46a058
mov eax, dword [esi + 0xd4]
call fcn.00406254
mov edi, eax
cmp edi, 0
jl 0x46a058
push 5
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x46a041
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x46a087
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00418df0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x46a067
mov eax, dword [esi + 0x94]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd4]
mov ecx, 1
mov edx, dword [0x45f87c]
call fcn.00406414
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x46ac68
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa8], 0
je 0x46acd3
cmp byte [ebx + 0xcf], 0
jne 0x46acd3
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040553c
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x46acc0
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x46ace0
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00405400
jmp 0x46ace0
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00405400
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x46c248
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x46c2b6
mov eax, esi
call fcn.0045283c
test al, al
je 0x46c2b6
mov eax, dword [ebx + 0x80]
call fcn.00452490
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46c2b6
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x46c2aa
push 0
mov eax, dword [ebx + 0x80]
call fcn.00452490
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x80]
call fcn.00449ad8
jmp 0x46c2b6
mov cl, 1
mov edx, dword [ebx + 0x70]
mov eax, ebx
call fcn.0046c094
pop esi
pop ebx
ret
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x419400
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
jmp 0x41941a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419421
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419410
mov eax, 1
add ebx, ebx
jne 0x419433
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419428
jne 0x419444
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419428
xor ecx, ecx
sub eax, 3
jb 0x419458
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4194ca
mov ebp, eax
add ebx, ebx
jne 0x419463
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419470
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x419494
inc ecx
add ebx, ebx
jne 0x419480
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x419475
jne 0x419491
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419475
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4194b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4194a5
jmp 0x419416
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4194b4
add edi, ecx
jmp 0x419416
pop esi
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x419513
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19704]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19784]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4194d1
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1978c]
or eax, eax
je 0x41950d
mov dword [ebx], eax
add ebx, 4
jmp 0x4194ee
call dword [esi + 0x19788]
mov ebp, dword [esi + 0x19790]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x419547
sub esp, 0xffffff80
jmp 0x40d86c
Function at 0xbd6370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xbd638e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xbff074
push ecx
mov edi, eax
call fcn.00bea198
mov esi, eax
add esp, 8
test esi, esi
jne 0xbd63cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00bea02e
push esi
call fcn.00be9fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xbd9850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xbd98ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xc04720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xbd98ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00bea1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xbd98ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xc04720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xbd992a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00beb082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xbd9957
mov word [eax], si
add eax, 2
push eax
call fcn.00beb030
add esp, 4
jmp 0xbd9959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xbd98ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xbd98b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xbd9ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xbda080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xbda0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xbff458
push ecx
call fcn.00bea1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00bea1e1
add esp, 0x10
jmp 0xbda0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00bea20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00be9dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00bda050
mov eax, dword [0xc04728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xbda13b
push esi
call fcn.00bd9fb0
add esp, 4
mov dword [0xc04728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xbda14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00bd9ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xbdd440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xbdd4b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xbdd48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xbdd471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xbdd47e
add edx, ecx
cmp ebx, edx
jb 0xbdd48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xbdd467
xor ecx, ecx
jmp 0xbdd4a2
test eax, eax
jne 0xbdd492
xor ecx, ecx
jmp 0xbdd4a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00bdd3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xbdd8f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0xbdd921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0xbdd946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0xbdd96e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0xbdd993
push ecx
push esi
call fcn.00bdd4c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret