joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4310da
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4cd126
call fcn.0049cc64
sub esp, 0x2a0
push esi
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00418ec2
pop ecx
mov eax, dword [eax]
push 1
xor edi, edi
push 1
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], edi
call fcn.00415839
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004b957f
lea ecx, [ebp - 0xe4]
call fcn.0042c9db
push dword [ebp + 0x2c]
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 3
push dword [ebp + 0x28]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x20]
push dword [ebp + 8]
call fcn.00430cee
mov esi, eax
cmp esi, edi
je 0x431174
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 4
call fcn.004b957f
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0xe4], 0x4d6c54
call fcn.0042c9d0
jmp 0x43129d
push dword [ebp - 0x20]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4311aa
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 5
call fcn.004b957f
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0xe4], 0x4d6c54
call fcn.0042c9d0
or esi, 0xffffffff
jmp 0x43129d
push edi
lea ecx, [ebp - 0x2ac]
call fcn.00461da0
push 3
lea ecx, [ebp - 0x2ac]
push dword [ebp - 0x20]
mov byte [ebp - 4], 6
call fcn.00462a90
test al, al
jne 0x4311fe
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 3
mov dword [ebp - 0x2ac], 0x4d5ca8
call fcn.00461e70
lea ecx, [ebp - 0x2ac]
call fcn.00461dc0
mov byte [ebp - 4], 7
or esi, 0xffffffff
jmp 0x431280
cmp dword [ebp + 0x24], edi
jle 0x431246
cmp dword [ebp + 0x20], edi
jle 0x431246
lea ecx, [ebp - 0x2ac]
call fcn.00460ee0
lea ecx, [ebp - 0x2ac]
mov esi, eax
call fcn.00460ed0
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push eax
lea eax, [ebp + 0x18]
push esi
push eax
call fcn.00431e0a
push dword [ebp + 0x1c]
lea eax, [ebp - 0x2ac]
push dword [ebp + 0x18]
push eax
call fcn.00417380
add esp, 0x20
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x2ac]
push edi
push eax
call fcn.004623c0
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 3
mov dword [ebp - 0x2ac], 0x4d5ca8
call fcn.00461e70
lea ecx, [ebp - 0x2ac]
call fcn.00461dc0
mov byte [ebp - 4], 8
xor esi, esi
lea ecx, [ebp - 0x74]
call fcn.004b957f
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0xe4], 0x4d6bd4
call fcn.0042c979
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004158a6
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4322ee
Capabilities:
Check if file exists
Set current directory

Disassembly:
mov eax, 0x4cd288
call fcn.0049cc64
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43232c
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00415bcb
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x10]
call fcn.004b957f
lea eax, [ebp - 0x14]
push eax
call fcn.00418ec2
pop ecx
mov eax, dword [eax]
and dword [ebp - 4], 0
push 1
push 1
push eax
lea ecx, [ebp - 0x28]
call fcn.00415839
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004b957f
push dword [ebp + 8]
lea edi, [esi + 0x70]
mov ecx, edi
call fcn.004b9716
push dword [ebp + 0x10]
mov eax, esi
neg eax
push dword [ebp - 0x24]
lea ecx, [esi + 0x68]
sbb eax, eax
and eax, ecx
mov ecx, esi
push eax
call fcn.004320cf
test eax, eax
je 0x432383
mov esi, eax
jmp 0x4323b8
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, esi
push ebx
push dword [ebp - 0x24]
call dword [eax + 0x28]
test eax, eax
je 0x43239d
or esi, 0xffffffff
jmp 0x4323b8
mov edi, dword [edi]
mov eax, dword [esi]
push edi
push ebx
mov ecx, esi
call dword [eax + 0x2c]
or esi, 0xffffffff
cmp eax, esi
je 0x4323b8
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004158a6
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x451b73
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x4cf75a
call fcn.0049cc64
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00451342
mov eax, dword [0x56b620]
lea ecx, [esi + 0x14]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ecx], eax
mov eax, dword [0x56b620]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0x4d8370
mov dword [esi + 0x20], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x24], ebx
mov eax, dword [0x56b620]
mov dword [esi + 0x3c], eax
mov eax, dword [0x56b620]
mov dword [esi + 0x40], eax
mov eax, dword [0x56b620]
mov dword [esi + 0x44], eax
mov edi, 0x56fe14
mov byte [ebp - 4], 6
push edi
mov dword [esi], 0x4d8364
call fcn.004b9716
push edi
lea ecx, [esi + 0x18]
call fcn.004b9716
push edi
lea ecx, [esi + 0x3c]
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call fcn.004b9716
push edi
lea ecx, [esi + 0x40]
call fcn.004b9716
push edi
lea ecx, [esi + 0x44]
call fcn.004b9716
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x45a6db
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4cfeef
call fcn.0049cc64
sub esp, 0xe4
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x45a839
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45a839
lea ecx, [ebp - 0xf0]
call fcn.0041fae0
push ebx
push 0x74
push dword [ebp + 8]
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0xf0]
mov dword [ebp - 4], ebx
push eax
call fcn.0041fc49
mov ecx, eax
call fcn.0041fad8
test al, al
jne 0x45a740
or esi, 0xffffffff
jmp 0x45a80b
lea eax, [ebp - 0x10]
push str.MediaFormats
push eax
lea ecx, [ebp - 0xf0]
call fcn.0041f714
lea ecx, [ebp - 0x10]
call fcn.0041fad8
test al, al
jne 0x45a738
push 0x56fe14
lea eax, [ebp - 0x1c]
push 0x4f4f84
push eax
lea ecx, [ebp - 0x10]
call fcn.0041f75b
mov ecx, eax
call fcn.0041f5b4
push eax
lea ecx, [ebp - 0x14]
call fcn.004b95f3
mov esi, dword [ebp + 0xc]
mov byte [ebp - 4], 1
push dword [esi + 4]
push dword [ebp - 0x14]
call fcn.0049d5e5
pop ecx
test eax, eax
pop ecx
je 0x45a7a3
push 1
pop esi
jmp 0x45a7ff
lea eax, [ebp - 0x18]
push str.Categories
push eax
lea ecx, [ebp - 0x10]
call fcn.0041f714
lea ecx, [ebp - 0x18]
call fcn.0041fad8
test al, al
je 0x45a7c5
or esi, 0xffffffff
jmp 0x45a7ff
cmp dword [esi + 0x10], ebx
jle 0x45a7fd
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x18]
mov edi, dword [eax + ebx*4]
lea eax, [ebp + 8]
push dword [edi + 8]
push eax
call fcn.0041f714
lea ecx, [ebp + 8]
call fcn.0041fad8
test al, al
jne 0x45a81e
lea eax, [ebp + 8]
push eax
push edi
call fcn.0045a84d
inc ebx
pop ecx
cmp ebx, dword [esi + 0x10]
pop ecx
jl 0x45a7ca
xor esi, esi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004b957f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.0041faf7
mov eax, esi
jmp 0x45a83c
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004b957f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.0041faf7
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4689f0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ebp, ecx
push edi
mov dword [esp + 0x1c], ebp
call fcn.00460ed0
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 2]
mov dx, word [esi + 6]
sub eax, ecx
sub eax, edx
jns 0x468a22
mov dword [esp + 0x2c], 0
jmp 0x468a3d
mov ecx, ebp
call fcn.00460ed0
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 2]
mov dx, word [esi + 6]
sub eax, ecx
sub eax, edx
mov dword [esp + 0x2c], eax
mov ecx, ebp
call fcn.00460ed0
xor edi, edi
mov ebx, eax
mov di, word [esi]
xor ecx, ecx
mov cx, word [esi + 4]
xor edx, edx
xor eax, eax
mov dx, di
mov ax, word [esi + 2]
sub ebx, eax
lea esi, [ecx + edx]
mov ecx, ebp
mov dword [esp + 0x20], ebx
call fcn.00460ee0
cmp eax, esi
jae 0x468a7d
mov ecx, ebp
call fcn.00460ee0
mov dword [esp + 0x10], eax
jmp 0x468a81
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x28]
call fcn.00460d20
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
cmp ebp, ebx
jge 0x468aed
mov eax, dword [esp + 0x10]
mov esi, edi
cmp edi, eax
jge 0x468ae8
mov eax, dword [esp + 0x2c]
mov ebx, ebp
sub ebx, eax
mov ecx, dword [esp + 0x28]
mov eax, esi
sub eax, edi
push ebx
push eax
call fcn.00461220
mov edx, dword [esp + 0x18]
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x14]
mov ecx, eax
and ecx, 0xff
cmp ecx, edx
je 0x468adb
mov ecx, dword [esp + 0x1c]
push eax
push ebp
push esi
call fcn.00461690
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x468aa8
mov ebx, dword [esp + 0x20]
inc ebp
cmp ebp, ebx
jl 0x468a96
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x46dd10
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x46dd40
push esi
call fcn.0046e210
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x46dd39
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x46ddc3
mov eax, dword [esi + 0x1a0]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x46ddaf
mov eax, dword [esi + 8]
test eax, eax
je 0x46dd64
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1a0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x46ddab
cmp eax, 2
je 0x46ddaf
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x46dd57
cmp eax, 3
je 0x46dd8a
cmp eax, 1
jne 0x46dd57
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x46dd57
mov edx, dword [esi + 0x120]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x46dd57
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.0046ddf0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x46dde3
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.0046ddf0
add esp, 4
pop esi
ret
Function at 0x485610
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x48562a
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x48562a
mov edx, dword [esp + 8]
push edx
push ecx
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x49de98
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x49deb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004a096e
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x49dedb
test byte [esp + 8], 2
je 0x49dedb
call fcn.004a09e1
mov dword [eax], 0xd
call fcn.004a09ea
mov dword [eax], 5
jmp 0x49deb4
xor eax, eax
ret
Function at 0x4b47a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0049dee0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4b486b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4b486b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4b481e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4b4829
or bh, 8
and edi, 0x8000000
je 0x4b4844
mov eax, dword [0x573c9c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4b486b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b4c40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4b4c6b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4b4c8f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4b4caa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x4baa06
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4baa3e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b9a3d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b9a14
jmp 0x4baa4a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4baa4e
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x570140
mov ecx, edi
call fcn.004b9716
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x4baaa1
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x4baab4
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.004b9a3d
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004b9a14
jmp 0x4baab4
mov ecx, esi
call fcn.004bc9f3
test eax, eax
je 0x4baab4
push edi
mov ecx, eax
call fcn.004baa06
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x4bc169
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4bc1ab
call fcn.004c684e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x4bc1ab
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4bc1a2
xor eax, eax
jmp 0x4bc1b3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004bc1b9
pop edi
pop esi
pop ebx
ret 4

Function at 0x4c7025
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.004c684e
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4c7062
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4c7062
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4c7066
xor eax, eax
jmp 0x4c70e4
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.004b8a0b
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x4c709e
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x4c7088
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.004c71d5
push ebx
mov edi, eax
call fcn.004b8a34
test edi, edi
pop ecx
je 0x4c70e0
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.004c6f9e
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.004c70e9
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x4010c4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40111e
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401110
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x40110c
cmp esi, ecx
jae 0x401110
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x4010fa
cmp esi, ecx
jb 0x401114
xor eax, eax
jmp 0x40111d
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4015bc
Capabilities:
Delete directory
Delete file

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 0xc], 0x8004ffff
je 0x401603
push esi
xor esi, esi
cmp dword [edi + 0x14], esi
je 0x4015e9
push ebx
push esi
lea ecx, [edi + 0x10]
call fcn.0040236b
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, dword [edi + 0x14]
jne 0x4015d1
pop ebx
lea ecx, [edi + 0x10]
call fcn.00402395
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [edi + 0x1c]
call fcn.004025ff
pop esi
lea ecx, [edi + 0x20]
call fcn.0040292e
lea ecx, [edi + 0x1c]
call fcn.0040292e
lea ecx, [edi + 0x10]
call fcn.00402395
lea ecx, [edi + 8]
call fcn.0040292e
lea ecx, [edi + 4]
pop edi
jmp fcn.0040292e
Function at 0x401a84
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401ab2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401ab2
xor al, al
jmp 0x401b2d
call fcn.004011e7
push eax
lea ecx, [ebp + 8]
call fcn.00402949
or dword [ebp - 8], 0xffffffff
lea eax, [ebp + 8]
push 0x104
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.004025c7
push eax
push ebx
push 0x41e914
push dword [edi]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.004025a1
test edi, edi
je 0x401b23
cmp edi, 0x6f
je 0x401b23
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x401b23
mov ecx, dword [ebp - 4]
lea eax, [ebp + 8]
push eax
add ecx, 0x1c
call fcn.004024cb
mov bl, 1
lea ecx, [ebp + 8]
call fcn.0040292e
mov al, bl
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x401b35
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x401b4c
xor al, al
jmp 0x401bba
push ebx
push esi
call fcn.004011e7
push eax
lea ecx, [ebp - 4]
call fcn.00402949
or dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
push 0x104
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.004025c7
push eax
xor ebx, ebx
mov dword [ebp - 0xc], eax
push ebx
push ebx
push 0x26
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.004025a1
test esi, esi
js 0x401bae
lea eax, [ebp - 4]
mov ecx, edi
push eax
call fcn.00401a84
test al, al
je 0x401bae
lea eax, [ebp - 4]
push eax
lea ecx, [edi + 0x20]
call fcn.004024cb
mov bl, 1
lea ecx, [ebp - 4]
call fcn.0040292e
pop esi
mov al, bl
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x401c3e
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x420018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x210]
push ebx
push eax
mov edi, ecx
or esi, 0xffffffff
call fcn.004059b0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push ebx
push 0x41e91c
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x401d3b
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
call fcn.0040255e
lea eax, [ebp - 0x214]
push eax
lea ecx, [edi + 0x10]
call fcn.004023cb
lea ecx, [ebp - 0x214]
call fcn.0040292e
push 0x41e830
push 0x66
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x401d3b
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401d3b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401d3b
xor eax, eax
push eax
push eax
push 4
push eax
push eax
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401d3b
push esi
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov ecx, edi
call fcn.00401ffb
pop ecx
test eax, eax
jne 0x401d31
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x401d3b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405641
mov esp, ebp
pop ebp
ret