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

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [ebp + 0xe4]
push edi
test esi, esi
je 0x4b653b
mov edi, dword [esi + 0x44]
mov eax, ebx
shr eax, 8
cmp al, 2
jne 0x4b653b
test edi, edi
je 0x4b653b
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea eax, [esi + 8]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4b64ef
mov eax, dword [edi + 0x2c]
jmp 0x4b6514
cmp dword [esi + 4], 0
mov ecx, dword [esp + 0x1c]
jne 0x4b64fd
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x20]
add eax, ecx
mov ecx, dword [edi + 0x3c]
cmp eax, ecx
jl 0x4b6512
mov edx, dword [edi + 0x38]
add ecx, edx
cmp eax, ecx
jl 0x4b6514
mov eax, ecx
push ebp
call fcn.004b63b0
mov dword [esi], 1
cmp ebx, 0x202
je 0x4b6535
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x4b653b
push ebp
call fcn.004b6310
pop edi
pop esi
pop ebp
pop ecx
ret 0xc

Function at 0x4b9740
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
mov ebx, dword [ebp + 0x1f8]
push esi
push edi
test bl, bl
js 0x4b9838
mov esi, dword [ebp + 0x58]
push ecx
lea eax, [ebp + 0x5c]
mov ecx, esp
mov dword [esp + 0x2c], esp
mov edi, ebx
push eax
and edi, 2
call fcn.00401800
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov edx, dword [ebp + 0x20]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x419
push edx
mov dword [esp + 0x38], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, edi
neg esi
sbb esi, esi
and esi, 3
add esi, 3
test bl, 8
jne 0x4b97c3
test edi, edi
jne 0x4b97b6
and ebx, 4
or ebx, 0x10
shr ebx, 2
mov esi, ebx
jmp 0x4b97c3
and bl, 4
movzx esi, bl
neg esi
sbb esi, esi
add esi, 8
cmp dword [ebp + 0x1fc], 0
mov edi, 1
je 0x4b97d6
mov edi, 2
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp + 0x20]
jne 0x4b97e8
mov edi, 3
jmp 0x4b980c
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [ebp + 0x20]
jne 0x4b980c
push 0
push 0
push 0x129
mov ecx, ebp
call fcn.004183f0
test al, 1
jne 0x4b980c
mov edi, 4
mov ecx, ebp
call fcn.004e340d
test eax, eax
jne 0x4b981a
lea edi, [eax + 5]
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x34]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea ebx, [esp + 0x10]
push ebx
push edi
push esi
push eax
mov eax, dword [esp + 0x3c]
push eax
call edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x4b9b10
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push esi
lea eax, [esp + 0x18]
push eax
push 0
mov esi, ecx
mov ecx, dword [esi + 0x20]
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
cmp eax, dword [esi + 0x1fc]
je 0x4b9b8f
push 0
mov ecx, esi
mov dword [esi + 0x1fc], eax
call fcn.0040fd00
cmp dword [esi + 0x1fc], 0
je 0x4b9b8f
mov edx, dword [esi + 0x20]
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x10
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 0xffffffff
call dword [sym.imp.COMCTL32.dll__TrackMouseEvent]
mov ecx, esi
call fcn.004dfcca
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4bceb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x557eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x5b3940]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
lea ecx, [esp + 0x14]
call fcn.004139f0
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.0040fe90
mov al, byte [esi + 0x1d8]
cmp al, 0xff
jne 0x4bcf08
mov ecx, esi
call fcn.004e328f
and al, 0xf
cmp al, 7
jne 0x4bcf88
cmp dword [esi + 0x60], 0
jne 0x4bcf88
cmp dword [esi + 0x64], 0
jne 0x4bcf88
mov ebx, dword [edi]
mov ecx, esi
call fcn.004158e0
mov edx, dword [ebx + 0x28]
push eax
mov ecx, edi
call edx
mov ecx, dword [esi + 0x58]
mov edx, dword [ecx + 0x38]
mov ecx, dword [edx + 0x74]
mov ebx, eax
mov eax, dword [edi]
mov edx, dword [eax + 0x2c]
push ecx
mov ecx, edi
call edx
mov ecx, dword [esp + 0x14]
mov edx, dword [esi]
mov edx, dword [edx + 0x168]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 0xc], ecx
push edi
mov ecx, esi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x28]
push ebx
mov ecx, edi
call edx
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4bcf8f
mov edi, dword [edi + 4]
push edi
lea eax, [esp + 0x28]
push eax
lea ebx, [esp + 0x1c]
call fcn.0043f040
push 0x135
mov ecx, ebx
mov dword [esp + 0x64], 0
call fcn.004139f0
push eax
lea ebx, [esp + 0x2c]
call fcn.004b3740
mov ecx, esi
call fcn.004158e0
push eax
mov ecx, ebx
call fcn.004f5446
push 1
mov ecx, ebx
mov edi, eax
call fcn.004f48b9
mov ecx, dword [esp + 0x14]
mov edx, dword [esi]
mov edx, dword [edx + 0x168]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 0xc], ecx
mov eax, ebx
push eax
mov ecx, esi
call edx
push edi
mov ecx, ebx
call fcn.004f5446
mov ecx, ebx
mov dword [esp + 0x60], 0xffffffff
call fcn.0043f270
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c2bf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x555398
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5b3940]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [0x5c0cac]
xor ebx, ebx
cmp eax, ebx
je 0x4c2c2d
cmp dword [0x5c0cb8], ebx
je 0x4c2c2d
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
lea ecx, [esp + 0x10]
call fcn.00402df0
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], ebx
call fcn.00401320
test al, al
je 0x4c2c56
push 0x58b890
lea ecx, [esp + 0x10]
call fcn.00402dd0
push 0x5f
push 0x2e
lea ecx, [esp + 0x14]
call fcn.00402950
mov dword [0x5c0cac], edi
mov dword [0x5c0cb8], ebx
mov dword [0x5c0cb4], ebx
mov dword [0x5c0cb0], ebx
call fcn.004c2800
push str.TEXTFILE
lea ecx, [esp + 0x10]
call fcn.00405840
push eax
mov eax, dword [0x5c0cac]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x4c2cca
push edi
call fcn.004c2b80
mov esi, eax
cmp esi, ebx
jne 0x4c2cca
lea ecx, [esp + 0xc]
call fcn.00407f90
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
mov ecx, dword [0x5c0cac]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x4c2cad
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [0x5c0cac]
push esi
push edx
mov dword [0x5c0cb0], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [0x5c0cb0]
shr eax, 1
lea edx, [ecx + eax*2]
lea ecx, [esp + 0xc]
mov dword [0x5c0cb4], edx
call fcn.00407f90
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x4c3a90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x555369
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b3940]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
mov ecx, esi
call fcn.004e417d
xor ebx, ebx
lea ebp, [esi + 0x44]
mov dword [esp + 0x1c], ebx
mov ecx, ebp
mov dword [esi], vtable.CWizTabManagerItem.0
call fcn.004139f0
lea ecx, [esi + 0x54]
call fcn.00401410
lea ecx, [esi + 0x58]
call fcn.00401410
lea edi, [esi + 0x6c]
mov ecx, edi
call fcn.004139f0
mov dword [edi], vtable.CArray_class_CWizTabManagerNavigateButton___class_CWizTabManagerNavigateButton__.0
mov dword [edi + 4], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 8], ebx
mov ecx, esi
mov byte [esp + 0x1c], 3
call fcn.0050762e
or eax, 0xffffffff
mov edi, 1
push ebp
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x40], ebx
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov dword [esi + 0x64], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x68], edi
mov dword [esi + 0x60], ebx
mov dword [esi + 0x80], ebx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x4c4490
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x4c4622
cmp dword [esi + 0x20], eax
je 0x4c4622
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], 0
call edi
mov dword [esp + 0xc], eax
lea ebx, [esi + 0x10]
cmp dword [esi + 0x20], 0
je 0x4c44f8
call edi
sub eax, dword [esp + 0xc]
cmp eax, 0x14
jbe 0x4c44f8
call edi
mov edx, dword [esi]
mov dword [esp + 0xc], eax
mov eax, dword [edx + 0x18]
push 1
mov ecx, esi
call eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
mov ecx, ebx
call fcn.00415270
cmp eax, dword [esi + 0x24]
je 0x4c452e
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0xc]
mov edi, dword [eax]
push 1
mov ecx, ebx
add edi, 0x34
call fcn.004139f0
mov ecx, dword [esi + 0xc]
mov edx, dword [edi]
push eax
call edx
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4c44d6
push 0
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp + 8]
jne 0x4c45cd
mov eax, dword [esp + 0x20]
cmp eax, 0x200
ja 0x4c45b1
je 0x4c4587
cmp eax, 0x1f
je 0x4c45e1
cmp eax, 0x100
jne 0x4c45bd
cmp dword [esp + 0x24], 0x1b
jne 0x4c44d6
jmp 0x4c45e1
mov eax, dword [esp + 0x28]
mov edx, eax
shr edx, 0x10
movsx ecx, dx
movsx edx, ax
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.0040fcd0
mov ecx, dword [eax]
mov dword [ebp + 0xc], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 0x10], edx
jmp 0x4c44d6
sub eax, 0x202
je 0x4c45da
sub eax, 2
je 0x4c45e1
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x4c44d6
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x4c45e1
mov edx, dword [esi + 0x24]
mov dword [esp + 0x10], edx
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
mov eax, dword [esi + 0xc]
push ecx
push edx
mov dword [esi + 0x24], 0
call fcn.004c6040
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x34]
push 0
push 0
call edx
cmp dword [esp + 0x10], 0
je 0x4c4622
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
push 0
mov ecx, esi
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4d0b50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push ebx
mov bl, byte [ecx + 8]
push esi
mov esi, dword [esp + 0x20]
cmp bl, 3
je 0x4d0cef
push ebp
mov ebp, dword [ecx]
push edi
mov dword [esp + 0x10], 0
test bl, 2
je 0x4d0ba6
movzx eax, byte [ecx + 9]
movzx esi, byte [edx]
mov edi, eax
sub edi, esi
movzx esi, byte [edx + 1]
mov dword [esp + 0x14], edi
mov edi, eax
sub edi, esi
movzx esi, byte [edx + 2]
sub eax, esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov edi, 3
jmp 0x4d0bb9
movzx eax, byte [edx + 3]
movzx edi, byte [ecx + 9]
sub edi, eax
mov dword [esp + 0x14], edi
mov edi, 1
test bl, 4
je 0x4d0bcd
movzx edx, byte [edx + 4]
movzx eax, byte [ecx + 9]
sub eax, edx
mov dword [esp + edi*4 + 0x14], eax
inc edi
xor edx, edx
xor eax, eax
cmp edi, edx
jle case.0x4d0c1b.3
lea esp, [esp]
cmp dword [esp + eax*4 + 0x14], edx
jg 0x4d0bec
mov dword [esp + eax*4 + 0x14], edx
jmp 0x4d0bf4
mov dword [esp + 0x10], 1
inc eax
cmp eax, edi
jl 0x4d0be0
cmp word [esp + 0x10], dx
je case.0x4d0c1b.3
movzx eax, byte [ecx + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x4d0c1b.3
movzx eax, byte [eax + 0x4d0d0c]
jmp dword [eax*4 + 0x4d0cf8]
mov ecx, dword [ecx + 4]
mov eax, esi
cmp ecx, edx
jbe case.0x4d0c1b.3
nop
mov dl, byte [eax]
shr dl, 1
and dl, 0x55
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x4d0c30
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x14
ret
mov edi, dword [ecx + 4]
mov edx, dword [esp + 0x14]
mov ecx, edx
mov eax, 0xf0
sar eax, cl
mov ebx, 0xf
sar ebx, cl
and al, 0xf0
or al, bl
test edi, edi
jbe case.0x4d0c1b.3
lea ebx, [ebx]
mov bl, byte [esi]
mov cl, dl
shr bl, cl
inc esi
and bl, al
sub edi, 1
mov byte [esi - 1], bl
jne 0x4d0c70
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x14
ret
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x4d0c1b.3
mov eax, ebx
xor edx, edx
div edi
inc ebx
inc esi
mov cl, byte [esp + edx*4 + 0x14]
shr byte [esi - 1], cl
cmp ebx, ebp
jb 0x4d0c92
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x14
ret
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x4d0c1b.3
xor edx, edx
mov eax, ebx
div edi
movzx ax, byte [esi]
mov ecx, pe_nt_image_headers32
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
inc esi
inc ebx
inc esi
movzx ecx, word [esp + edx*4 + 0x14]
shr ax, cl
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esi - 2], dl
mov byte [esi - 1], al
cmp ebx, ebp
jb 0x4d0cb6
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x4d5ab0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, eax
mov esi, dword [edi + 0x60]
test esi, esi
je 0x4d5b36
mov ebx, dword [esi + 0x34]
mov eax, ebp
shr eax, 8
cmp al, 2
jne 0x4d5b36
test ebx, ebx
je 0x4d5b36
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea eax, [esi + 4]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4d5aee
mov eax, dword [ebx + 0x2c]
jmp 0x4d5b16
mov ecx, dword [esi + 0x34]
cmp dword [ecx + 0x58], 0
mov ecx, dword [esp + 0x1c]
jne 0x4d5aff
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x1c]
add eax, ecx
mov ecx, dword [ebx + 0x40]
cmp eax, ecx
jl 0x4d5b14
mov edx, dword [ebx + 0x3c]
add ecx, edx
cmp eax, ecx
jl 0x4d5b16
mov eax, ecx
push edi
call fcn.004d59e0
cmp ebp, 0x202
je 0x4d5b31
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x4d5b36
call fcn.004d5970
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x4e314a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4e3191
call fcn.004e7391
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4e3191
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4e31ad
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004e2cc2
mov esi, eax
test edi, edi
je 0x4e31ab
test ebx, ebx
je 0x4e31ab
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4e39a5
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x550627
call fcn.0051287b
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4e39ca
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4e3a10
lea ecx, [ebp - 0x10]
call fcn.00401410
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004f5f26
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004013d0
mov eax, esi
call fcn.00512953
ret 8

Function at 0x4e5094
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.004e7391
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4e50cd
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004e4ce0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x4e512b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4e514f
cmp dword [edi + 0x54], 0
jne 0x4e514f
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004e7391
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004e50ec
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4e8e53
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4e8e9b
call fcn.004e7391
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4e8e9b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4e8ede
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4e8ec7
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4e8ec7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4e8edb
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4ea9bf
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 1
mov ecx, esi
test al, 1
je 0x4ea9e3
mov eax, dword [esi]
push 0
call dword [eax + 0x98]
test eax, eax
jne 0x4ea9f1
pop esi
ret
mov eax, dword [esi + 0x24]
mov edx, dword [esi]
push eax
call dword [edx + 0x98]
jmp 0x4ea9dd
xor eax, eax
inc eax
pop esi
ret

Function at 0x4fcff4
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x55016c
call fcn.0051287b
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00402df0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4fd056
call fcn.004e6c6b
cmp eax, 1
jne 0x4fd056
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 0x560f18
push eax
call fcn.00410f80
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004018d0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004013d0
mov dword [ebp + 8], SysReAllocString
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004013d0
mov eax, esi
call fcn.00512953
ret 0x10
Function at 0x4fd07f
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x55016c
call fcn.0051287b
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00402df0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4fd0e1
call fcn.004e6c6b
cmp eax, 1
jne 0x4fd0e1
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 0x560f18
push eax
call fcn.00410f80
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004018d0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004013d0
mov dword [ebp + 8], SysReAllocString
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004013d0
mov eax, esi
call fcn.00512953
ret 0x14

Function at 0x50615c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.004e7391
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x506189
xor eax, eax
jmp 0x50622f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x506182
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x506182
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004dcae4
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x5061e0
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x5061cf
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.00505c95
push edi
mov ebx, eax
call fcn.004dcb13
pop ecx
test ebx, ebx
je 0x506222
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.00505fe1
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00506095
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x50bb49
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5b3940]
jne 0x50bb53
repz ret
jmp fcn.00514b93