joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4919a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, ecx
mov ecx, dword [ebp + 8]
push esi
push edi
movzx edi, cx
mov ecx, dword [eax + 0xe4]
mov dword [ebp - 8], eax
call fcn.00495480
test edi, edi
je 0x491acb
call fcn.005527d5
mov esi, dword [eax + 0xc]
test esi, esi
je 0x491acb
push 0xf1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x491acb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x491acb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x491acb
movzx eax, word [edi + 6]
xor ecx, ecx
mov edx, 4
mul edx
push ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005460f3
movzx edx, word [edi + 6]
xor esi, esi
add esp, 4
xor ecx, ecx
mov ebx, eax
mov eax, edx
cmp si, dx
jae 0x491a54
lea edx, [edi + 8]
mov edi, edi
movzx eax, word [edx]
lea edx, [edx + 2]
mov dword [ebx + ecx*4], eax
inc ecx
movzx esi, word [edi + 6]
cmp ecx, esi
jl 0x491a40
mov eax, esi
mov esi, dword [ebp - 8]
mov ecx, esi
movzx eax, ax
push eax
push ebx
call fcn.00492fe0
cmp dword [ebp + 0xc], 0
mov dword [ebp - 4], eax
je 0x491ab6
mov ecx, esi
call fcn.004af720
movzx ecx, word [edi + 4]
mov esi, eax
movzx edx, word [edi + 2]
movzx eax, word [edi + 6]
push 0
push ecx
push edx
push eax
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.004835a0
neg eax
sbb eax, eax
and dword [ebp - 4], eax
movzx eax, word [edi + 2]
cmp eax, 0x10
je 0x491ab6
mov edx, dword [ebp - 8]
mov ecx, eax
movzx eax, word [edi + 4]
mov dword [edx + 0xf4], ecx
mov dword [edx + 0xf8], eax
push ebx
call fcn.005460ee
mov eax, dword [ebp - 4]
add esp, 4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x49b100
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bc640
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x634b28]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
cmp edi, 0x60
jb 0x49b14e
cmp edi, 0x69
ja 0x49b14e
movzx ecx, word [ebp + 8]
lea edx, [edi - 0x30]
xor eax, eax
cmp ecx, edx
sete al
jmp 0x49b2f7
push 2
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
movzx eax, ax
test ax, ax
jne 0x49b166
xor eax, eax
jmp 0x49b2f7
mov ebx, dword [ebp + 8]
push ebx
call fcn.0049d580
movzx ecx, ax
add esp, 4
movzx eax, di
mov dword [ebp - 0x120], ecx
cmp bx, ax
je 0x49b2f2
cmp cx, ax
je 0x49b2f2
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push 0
push 0
call esi
mov dword [ebp - 0x11c], eax
cmp eax, 1
jl 0x49b15f
lea ecx, [ebp - 0x134]
call fcn.0049a510
push 0xffffffffffffffff
push dword [ebp - 0x11c]
lea ecx, [ebp - 0x134]
mov dword [ebp - 4], 0
call fcn.0047ab30
push dword [ebp - 0x130]
push dword [ebp - 0x11c]
call esi
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
xor esi, esi
test eax, eax
je 0x49b2e3
mov dword [ebp - 0x118], 0
test esi, esi
js 0x49b313
cmp esi, dword [ebp - 0x12c]
jge 0x49b313
mov eax, dword [ebp - 0x130]
push dword [eax + esi*4]
lea eax, [ebp - 0x118]
push 0
push 1
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push edi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
cmp eax, 1
jne 0x49b25d
mov eax, dword [ebp - 0x118]
cmp bx, ax
je 0x49b2de
push eax
call fcn.0049d580
add esp, 4
cmp word [ebp - 0x120], ax
je 0x49b2de
mov al, byte [ebp - 0x100]
mov byte [ebp - 0x111], al
mov eax, dword [ebp - 0x130]
mov byte [ebp - 0x100], 0x81
push dword [eax + esi*4]
lea eax, [ebp - 0x118]
push 0
push 1
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push edi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
cmp eax, 1
jne 0x49b2b6
mov eax, dword [ebp - 0x118]
cmp bx, ax
je 0x49b2de
push eax
call fcn.0049d580
add esp, 4
cmp word [ebp - 0x120], ax
je 0x49b2de
mov al, byte [ebp - 0x111]
inc esi
mov byte [ebp - 0x100], al
cmp esi, dword [ebp - 0x11c]
jl 0x49b1f1
lea ecx, [ebp - 0x134]
call fcn.0049a850
xor eax, eax
jmp 0x49b2f7
mov esi, 1
lea ecx, [ebp - 0x134]
call fcn.0049a850
mov eax, esi
jmp 0x49b2f7
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057b6ac
mov esp, ebp
pop ebp
ret
call fcn.005461a6
int3
Function at 0x4a3450
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bd0c5
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x634b28]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], vtable.CFont.0
push 0x58
push dword [esi + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0
push 0x5dc0a4
push eax
push 0x60
push 0x50
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00556570
mov eax, dword [esi]
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
call dword [eax + 0x28]
mov edx, dword [edi]
mov ecx, edi
push ebx
push esi
mov dword [ebp - 0x30], eax
call dword [edx + 0x70]
mov eax, dword [edi]
mov ecx, edi
mov esi, dword [esi]
push ebx
call dword [eax + 0x74]
mov edi, dword [ebp - 0x24]
mov ecx, edi
push eax
call dword [esi + 0x30]
mov eax, dword [ebx + 0xb0]
sub eax, 0x10
push eax
call fcn.00405ecf
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x24], esi
mov eax, dword [ebx + 0x80]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x84]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x88]
push 0x25
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x8c]
push ecx
mov dword [ebp - 0x14], eax
mov ecx, edi
push dword [esi - 0xc]
mov eax, dword [edi]
push esi
mov byte [ebp - 4], 1
call dword [eax + 0x68]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a3558
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp - 0x30]
call dword [eax + 0x28]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], vtable.CFont.0
call fcn.0040ba46
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057b6ac
mov esp, ebp
pop ebp
ret 8

Function at 0x4ab8b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp esi, 8
je 0x4ab8ed
cmp esi, 0x21
jb 0x4ab8cc
cmp esi, 0x2e
jbe 0x4ab8ed
cmp esi, 0x43
je 0x4ab8e0
cmp esi, 0x56
je 0x4ab8e0
cmp esi, 0x58
je 0x4ab8e0
cmp esi, 0x5a
jne 0x4ab91f
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4ab91f
mov eax, dword [edi + 0x20]
mov ecx, edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x18], 0x100
mov dword [ebp - 0x14], esi
call fcn.0054e178
test eax, eax
je 0x4ab91f
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4ac100
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 0x74]
test eax, eax
je 0x4ac297
mov eax, dword [edi + 0x134]
test eax, eax
je 0x4ac297
cmp dword [eax + 0x20], 0
je 0x4ac297
cmp dword [eax + 0x80], 0
je 0x4ac140
pop edi
mov eax, 2
pop esi
pop ebp
ret 8
mov esi, dword [ebp + 8]
cmp esi, 0xd
je 0x4ac297
cmp esi, 9
je 0x4ac297
cmp esi, 0x1b
jne 0x4ac189
lea eax, [edi + 0x154]
mov ecx, edi
push eax
call fcn.004ace80
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x70]
mov ecx, dword [edi + 0xc0]
xor eax, eax
pop edi
pop esi
cmp dword [ecx + 0xe0], 2
sete al
pop ebp
ret 8
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call ebx
test ax, ax
jns 0x4ac1c4
push 0x11
call ebx
test ax, ax
js 0x4ac1c4
mov ecx, dword [edi + 0xc0]
call fcn.004af680
test eax, eax
je 0x4ac1c4
movzx ecx, si
push ecx
mov ecx, eax
call fcn.0048a5d0
test eax, eax
jne 0x4ac27f
mov ecx, edi
call fcn.00498e60
test eax, eax
je 0x4ac256
cmp dword [edi + 0x16c], 0
je 0x4ac256
cmp esi, 0x26
je 0x4ac1e6
cmp esi, 0x28
jne 0x4ac256
mov ecx, edi
call fcn.004ab510
test eax, eax
jne 0x4ac256
mov edx, dword [edi]
cmp esi, 0x26
mov ecx, edi
sete al
lea eax, [eax*2 - 1]
push eax
push 1
call dword [edx + 0x16c]
mov esi, dword [edi + 0x134]
test esi, esi
je 0x4ac27f
mov esi, dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, esi
jne 0x4ac27f
mov edi, dword [edi + 0x134]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push 0
push 0xb1
push dword [edi + 0x20]
call esi
push 0
push 0
push 0xb7
push dword [edi + 0x20]
call esi
pop ebx
pop edi
mov eax, 1
pop esi
pop ebp
ret 8
mov ecx, dword [edi + 0x160]
mov ebx, dword [ebp + 0xc]
test ecx, ecx
je 0x4ac26e
push ebx
push esi
call fcn.004f10e0
test eax, eax
jne 0x4ac27f
mov ecx, dword [edi + 0x134]
push ebx
push esi
call fcn.004ab8b0
test eax, eax
je 0x4ac28b
pop ebx
pop edi
mov eax, 1
pop esi
pop ebp
ret 8
pop ebx
pop edi
mov eax, 2
pop esi
pop ebp
ret 8
pop edi
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x4b0c10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
mov ecx, dword [esi + 0xe4]
call fcn.00495210
mov edi, eax
mov eax, dword [esi + 0xbc]
cmp eax, 0xffffffff
je 0x4b0c71
cmp dword [esi + 0xe8], 5
jne 0x4b0c71
cmp dword [esi + 0xe0], 1
jne 0x4b0c71
test edi, edi
je 0x4b0c50
cmp dword [edi + 0x40], eax
je 0x4b0c79
cmp eax, dword [esi + 0xb8]
jne 0x4b0c66
mov eax, dword [esi]
mov ecx, esi
push 0
push 0xffffffffffffffff
call dword [eax + 0x170]
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.004b1d30
test edi, edi
je 0x4b0d3f
push ebx
mov ecx, esi
call fcn.004af950
test eax, eax
jne 0x4b0d28
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xd8]
test eax, eax
je 0x4b0d28
push esi
push 0x633c64
call fcn.00557e68
add esp, 8
test eax, eax
je 0x4b0d28
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4b0d28
mov ecx, esi
call fcn.004af680
mov ebx, eax
test ebx, ebx
je 0x4b0d28
cmp dword [ebx + 0x60], 0
je 0x4b0d28
mov ecx, dword [ebx + 0x74]
cmp dword [ecx + 0x44], 0
je 0x4b0d28
push 1
mov ecx, ebx
call fcn.0048b730
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.004b1d30
mov eax, dword [esi]
mov ecx, esi
push 0
push 0xffffffffffffffff
call dword [eax + 0x170]
push dword [ebp + 0x10]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp + 0xc]
call dword [eax + 0x110]
push 0
mov ecx, ebx
call fcn.0048b730
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax + 0x54]
mov ecx, ebx
call fcn.00488ec0
pop ebx
pop edi
pop esi
pop ebp
ret 0xc
push dword [ebp + 0x10]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp + 0xc]
call dword [eax + 0xf4]
pop ebx
pop edi
pop esi
pop ebp
ret 0xc
mov ecx, esi
call fcn.00548bd6
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4b8030
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push dword [esi + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 4]
push eax
push 4
push esi
push 0x4b7fb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
test eax, eax
je 0x4b807d
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b8090
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x4b8115
push edi
push dword [esi + 0x14]
mov dword [esi + 0x10], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea eax, [ebp - 4]
xor edi, edi
push eax
push dword [esi + 0xc]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4b8104
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4b80d0
cmp dword [ebp - 4], 0x103
jne 0x4b8103
mov eax, dword [esi + 0xc]
inc edi
cmp edi, 0xa
ja 0x4b80fa
push 0x64
push eax
call ebx
lea eax, [ebp - 4]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x4b80d0
jmp 0x4b8103
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop ebx
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4b9ca0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b0d30
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x634b28]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x30], 0
mov dword [esi], vtable.CXTPPropExchangeIniFile.0
jne 0x4b9ce8
mov eax, dword [esi + 0x48]
cmp dword [eax - 0xc], 0
je 0x4b9ce8
cmp dword [esi + 0x4c], 0
je 0x4b9ce8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [esi + 0x48]
or edi, 0xffffffff
sub edx, 0x10
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b9d05
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esi + 0x44]
sub edx, 0x10
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4b9d1d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, esi
call fcn.004b9c30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4ba2c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
mov dword [ebp - 4], ebx
cmp dword [ebx + 0x34], 0
jne 0x4ba413
mov eax, dword [ebx + 0x44]
cmp dword [eax - 0xc], 0
je 0x4ba413
push esi
push edi
call fcn.004ba2b0
mov eax, dword [ebx + 0x44]
mov esi, 0x1f40
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0xc], eax
mov edx, 2
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005460f3
mov ebx, eax
add esp, 4
mov eax, dword [ebp - 4]
mov dword [ebp - 8], ebx
push dword [eax + 0x48]
push esi
push ebx
call edi
test eax, eax
je 0x4ba408
lea ecx, [esi - 2]
cmp eax, ecx
jne 0x4ba344
push ebx
add esi, esi
call fcn.005460ee
add esp, 4
jmp 0x4ba2fe
mov edx, 2
test ebx, ebx
je 0x4ba303
mov esi, dword [ebp - 8]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, edx
test ax, ax
jne 0x4ba353
sub esi, ecx
sar esi, 1
je 0x4ba405
mov eax, dword [ebp - 0xc]
cmp eax, esi
ja 0x4ba3e2
mov ecx, dword [ebp - 4]
lea edi, [eax + eax]
mov edx, ebx
mov ecx, dword [ecx + 0x44]
sub edi, 4
jb 0x4ba391
mov edi, edi
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4ba396
add ecx, 4
add edx, 4
sub edi, 4
jae 0x4ba380
cmp edi, 0xfffffffc
je 0x4ba3c3
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4ba3e2
cmp edi, 0xfffffffd
je 0x4ba3c3
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4ba3e2
cmp edi, 0xfffffffe
je 0x4ba3c3
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4ba3e2
cmp edi, 0xffffffff
je 0x4ba3c3
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x4ba3e2
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x4ba3d1
cmp word [ebx + eax*2], 0x5c
jne 0x4ba3e2
mov eax, dword [ebp - 4]
push dword [eax + 0x48]
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ebx, [ebx + esi*2]
add ebx, 2
mov esi, ebx
lea ecx, [esi + 2]
lea ecx, [ecx]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4ba3f0
sub esi, ecx
sar esi, 1
jne 0x4ba367
mov ebx, dword [ebp - 8]
push ebx
call fcn.005460ee
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ba640
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [esi]
call dword [eax + 0x88]
test eax, eax
je 0x4ba6f2
cmp dword [esi + 0x28], 0
jne 0x4ba685
mov eax, dword [ebp + 0x10]
push dword [eax]
push dword [edi]
push 3
push 0
push dword [ebp + 8]
push dword [esi + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
pop edi
sbb eax, eax
inc eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp + 0xc]
push eax
push 0
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push dword [esi + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ba6f2
mov ecx, dword [edi]
test ecx, ecx
jne 0x4ba6c0
push dword [ebp + 0xc]
call fcn.005823cc
mov ecx, dword [ebp + 0x10]
add esp, 4
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
mov ecx, dword [edi]
jmp 0x4ba6ca
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, dword [ebp + 0xc]
jb 0x4ba6f2
lea eax, [ebp + 0xc]
push eax
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push dword [esi + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ba6f2
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4bd120
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x634b28]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
jne 0x4bd1b1
mov eax, dword [esi + 0x48]
cmp dword [eax - 0xc], 0
jne 0x4bd1aa
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4bd1cc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x5dec80
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4bd1cc
lea edx, [ebp - 0x20c]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4bd184
sub edx, ecx
lea eax, [ebp - 0x20c]
sar edx, 1
lea ecx, [esi + 0x48]
push edx
push eax
call fcn.004055f4
mov dword [esi + 0x4c], 1
mov dword [esi + 0x38], 1
mov ecx, dword [esi + 0x48]
xor eax, eax
pop edi
pop esi
cmp dword [ecx - 0xc], eax
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057b6ac
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0057b6ac
mov esp, ebp
pop ebp
ret

Function at 0x4c2930
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.004c27f0
mov dword [ebp - 4], eax
test eax, eax
je 0x4c2957
push 5
push dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, esi
push eax
call fcn.004c2670
test eax, eax
jne 0x4c297a
call fcn.005527d5
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
test eax, eax
je 0x4c298b
push 5
push dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, esi
push eax
call fcn.004c2670
test eax, eax
je 0x4c298b
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4c29d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x4c2a98
call fcn.004c27f0
mov esi, eax
movzx eax, word [ebp + 0xc]
push 0x17
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4c2a20
call fcn.005527d5
mov esi, dword [eax + 0xc]
test esi, esi
je 0x4c2a98
movzx eax, word [ebp + 0xc]
push 0x17
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4c2a98
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4c2a98
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp + 0xc]
mov esi, eax
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4c2a98
lea esi, [esi*2 + 2]
mov ecx, ebx
push esi
call fcn.004bca10
mov edi, eax
test edi, edi
je 0x4c2a98
push esi
push 0
push edi
call fcn.0057e5f0
add esp, 0xc
push esi
push edi
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0xffffffffffffffff
mov ecx, ebx
mov esi, eax
call fcn.0040f0eb
xor eax, eax
test esi, esi
pop edi
pop esi
setg al
pop ebx
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8

Function at 0x4c2b40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
call fcn.00404ea3
mov edi, dword [ebp + 0xc]
mov eax, edi
mov ebx, dword [ebp + 8]
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4c2c2b
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4c2c2b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4c2c2b
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x4c2bbb
cmp esi, ecx
jae 0x4c2c2b
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x4c2ba5
cmp esi, ecx
jae 0x4c2c2b
movzx edi, word [esi]
test edi, edi
je 0x4c2c2b
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
push edi
call fcn.004c26b0
lea ecx, [edi + edi]
add esi, 2
test ecx, ecx
je 0x4c2c1a
test eax, eax
je 0x4c2c0a
push ecx
test esi, esi
je 0x4c2bff
push esi
push eax
call fcn.0057e070
add esp, 0xc
mov ecx, ebx
push edi
call fcn.0040f0eb
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push 0
push eax
call fcn.0057e5f0
add esp, 0xc
call fcn.00582661
mov dword [eax], 0x16
call fcn.00582350
push edi
mov ecx, ebx
call fcn.0040f0eb
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc