joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47bd25
Capabilities:
Delete file

Disassembly:
mov eax, 0x4ca044
call fcn.004c7e20
sub esp, 0xc
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0
push 0
push 0x188
lea edi, [ebx + 0x54]
push dword [edi]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x47be1e
push eax
lea ecx, [ebp - 0x18]
mov eax, ebx
call fcn.0047b95a
and dword [ebp - 4], 0
mov eax, dword [0x4f0980]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
push dword [eax + 0x10]
lea eax, [ebp - 0x14]
push 0x81a7
push eax
call fcn.00405918
add esp, 0xc
push 0x24
push dword [0x4f2c74]
push dword [ebp - 0x14]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x47bdfe
mov eax, dword [ebp - 0x18]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x10]
mov eax, edi
call fcn.004807f1
test eax, eax
je 0x47bdc3
push 1
push eax
call fcn.0047baab
push dword [ebp - 0x10]
mov eax, edi
call fcn.00480853
push 0
push 0
push 0x18b
push dword [edi]
call esi
cmp dword [ebp - 0x10], eax
jl 0x47bde3
and dword [ebp - 0x10], 0
push dword [ebp - 0x10]
mov eax, edi
call fcn.0044a165
push 0
push 0x10428
push 0x111
push dword [ebx + 4]
call esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x47be12
push eax
call fcn.004013aa
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x18]
call fcn.004c218d
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x47d698
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4c9fd3
call fcn.004c7e20
sub esp, 0x418
mov eax, dword [0x4ed384]
and word [ebp - 0x218], 0
push edi
mov dword [ebp - 0x10], eax
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
push 1
push dword [ebp + 8]
stosw word es:[edi], ax
lea eax, [ebp - 0x218]
push eax
push dword [0x4f2c70]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x47d79c
cmp dword [ebp + 0xc], 0
push esi
mov esi, dword [sym.imp.MSVCRT.dll_wcscat]
mov edi, 0x4d78e4
je 0x47d715
lea eax, [ebp - 0x218]
push edi
push eax
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x218]
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x218]
push edi
push eax
call esi
push dword [0x4f2c74]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push str..lnk
push eax
call esi
add esp, 0x18
push 0x104
lea eax, [ebp - 0x420]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x80f2
lea eax, [ebp - 0x424]
call fcn.00408e92
and dword [ebp - 4], 0
mov eax, dword [eax]
lea ecx, [ebp - 0x218]
push ecx
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.0047d603
mov esi, eax
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff4
add esp, 0x10
cmp eax, dword [0x4f0984]
je 0x47d799
push eax
call fcn.004013aa
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
call fcn.004c7b01
leave
ret

Function at 0x4811f4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 0
push 0
mov edi, eax
push 0x46b
add edi, 4
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 2
push dword [edi]
call esi
push 0
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x14]
call fcn.0040af00
push 1
push dword [edi]
call esi
push 0x15
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
call fcn.00403c25
pop edi
pop esi
leave
ret
Function at 0x485dbc
Capabilities:
Suspend thread

Disassembly:
cmp dword [esi + 0x28], 0
jne 0x485dd6
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi + 0x28], ecx
mov eax, dword [esi + 0x28]
ret

Function at 0x485dda
Capabilities:
Resume thread

Disassembly:
cmp dword [esi + 0x28], 0
je 0x485df2
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
inc eax
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x28], eax
xor eax, eax
cmp dword [esi + 0x28], eax
sete al
ret

Function at 0x4870dd
Capabilities:
Get file system object information

Disassembly:
push ebp
lea ebp, [esp - 0x25c]
sub esp, 0x2dc
mov eax, dword [0x4ed384]
push ebx
push esi
mov ebx, ecx
push edi
xor esi, esi
mov dword [ebp + 0x258], eax
xor eax, eax
cmp ebx, esi
mov ecx, 0xac
lea edi, [ebp - 0x58]
mov dword [ebp - 0x5c], esi
rep stosd dword es:[edi], eax
jne 0x48713a
cmp edx, dword [ebp + 0x26c]
jne 0x4871b8
push 0x208
push 0x2b4
lea eax, [ebp - 0x5c]
push eax
push esi
push dword [ebp + 0x26c]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea ebx, [ebp - 0x50]
push 8
pop ecx
push esi
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0x264]
push 0x146
push dword [edi + 0x80]
mov dword [ebp - 0x80], 0x21
call esi
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x26c]
test eax, eax
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x60], eax
je 0x48718d
or dword [ebp - 0x80], 6
lea ecx, [ebp - 0x6c]
push ecx
xor ecx, ecx
push eax
inc ecx
call fcn.0049304c
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x80]
push eax
push 0
push 0x40b
push dword [edi + 0x80]
call esi
mov ecx, dword [ebp + 0x258]
pop edi
pop esi
pop ebx
call fcn.004c7b01
add ebp, 0x25c
leave
ret 0xc
push esi
push 0x104
lea eax, [ebp - 0x50]
push eax
push edx
mov edx, dword [ebp + 0x268]
call fcn.00492fe8
test eax, eax
jne 0x487137
or eax, 0xffffffff
jmp 0x4871a0
Function at 0x4871db
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4c9f3d
call fcn.004c7e20
sub esp, 0x220
mov eax, dword [0x4ed384]
push ebx
xor ebx, ebx
cmp dword [esi + 0x100], ebx
mov dword [ebp - 0x10], eax
je 0x4873fc
push edi
mov dword [ebp - 0x224], ebx
xor edi, edi
lea eax, [ebp - 0x22c]
push eax
push dword [edi*4 + 0x4f1ee4]
mov dword [ebp - 0x22c], ebx
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, ebx
jl 0x48724c
cmp edi, ebx
mov edx, dword [ebp - 0x22c]
jne 0x48723c
mov dword [ebp - 0x224], edx
mov eax, dword [esi + 0x100]
push edx
push eax
push esi
xor ecx, ecx
call fcn.004870dd
inc edi
cmp edi, 5
jb 0x48720b
cmp dword [ebp - 0x224], ebx
je 0x4873fb
mov dword [ebp - 0x21c], ebx
lea edx, [ebp - 0x21c]
push edx
push 0x4d0b1c
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x100]
mov ecx, dword [eax]
push ebx
push dword [ebp - 0x224]
push eax
call dword [ecx + 0x14]
cmp eax, ebx
jl 0x4873e7
mov dword [ebp - 0x228], ebx
lea edx, [ebp - 0x228]
push edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
push 0x40
push dword [esi + 4]
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jl 0x4873d4
mov dword [ebp - 0x220], ebx
jmp 0x487363
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x22c]
push edx
lea edx, [ebp - 0x220]
push edx
push 1
mov dword [ebp - 0x22c], 0x62000000
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
test byte [ebp - 0x229], 2
jne 0x487357
mov edx, dword [ebp - 0x21c]
xor eax, eax
mov word [ebp - 0x218], bx
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
push ebx
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
call fcn.00492fe8
test eax, eax
je 0x487357
push dword [ebp - 0x220]
push dword [ebp - 0x224]
call dword [0x4f2790]
cmp eax, ebx
je 0x487357
mov edx, dword [ebp - 0x220]
push eax
push dword [ebp - 0x21c]
xor ecx, ecx
push esi
call fcn.004870dd
push dword [ebp - 0x220]
call dword [0x4f27e0]
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x220]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x4872c3
push 0x814b
lea eax, [ebp - 0x224]
call fcn.00408e92
pop ecx
mov byte [ebp - 4], 2
mov ecx, dword [esi + 0x100]
mov eax, dword [eax]
push ebx
push ecx
push esi
mov ecx, eax
xor edx, edx
call fcn.004870dd
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x4873c1
push eax
call fcn.004013aa
push ebx
push ebx
push 0x14e
push dword [esi + 0x80]
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x228]
cmp eax, ebx
je 0x4873e7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x4873fb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004c7b01
leave
ret
Function at 0x488859
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
test ebx, ebx
push edi
jne 0x48887e
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
jmp 0x4888c9
push 0x4d895c
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4888b9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov dword [ebp + 8], eax
je 0x4888b9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4888b9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x4888be
or eax, 0xffffffff
jmp 0x4888cb
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov dword [esi], edi
mov eax, dword [esi]
pop edi
pop ebp
ret 4
Function at 0x48a54b
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x4c8b4e
call fcn.004c7e20
sub esp, 0x44c
mov eax, dword [0x4ed384]
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
push esi
push edi
xor edi, edi
cmp dword [eax - 8], edi
jne 0x48a579
xor eax, eax
jmp 0x48a72b
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x424], edi
push eax
or eax, 0xffffffff
lea ecx, [ebp + 0x14]
mov dword [ebp - 4], edi
call fcn.00401621
pop ecx
mov byte [ebp - 4], 1
mov eax, dword [eax]
lea ecx, [ebp - 0x42c]
push ecx
push eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
call fcn.0048845e
mov ebx, eax
mov eax, dword [ebp + 0x14]
neg ebx
sbb bl, bl
add eax, 0xfffffff4
inc bl
cmp eax, dword [0x4f0984]
je 0x48a5d0
push eax
call fcn.004013aa
test bl, bl
jne 0x48a71e
cmp dword [ebp - 0x42c], edi
je 0x48a71e
cmp dword [ebp - 0x424], edi
je 0x48a71e
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
push edi
push 0x4d85cc
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x48a71e
or dword [ebp - 0x458], 0xffffffff
push 0x80
push 2
push 1
lea eax, [ebp - 0x218]
push eax
mov eax, 0xc0000000
lea ecx, [ebp - 0x458]
mov dword [ebp - 0x450], edi
mov dword [ebp - 0x44c], edi
mov dword [ebp - 0x448], 0x1000
mov dword [ebp - 0x444], edi
mov dword [ebp - 0x440], edi
mov dword [ebp - 0x43c], edi
mov dword [ebp - 0x438], edi
call fcn.0040d8df
test eax, eax
lea eax, [ebp - 0x458]
jne 0x48a68d
call fcn.0040d935
jmp 0x48a71e
push dword [ebp - 0x424]
mov ecx, dword [ebp - 0x42c]
push eax
call fcn.0041d408
lea eax, [ebp - 0x458]
call fcn.0040d935
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x10
push 0xc
call esi
push eax
push 0xb
call esi
mov ebx, dword [ebp + 0xc]
push eax
push ecx
mov eax, esp
mov dword [ebp - 0x430], esp
lea ecx, [ebp - 0x218]
push ebx
mov dword [eax], ecx
call fcn.0048a744
push 0x10
push 0x32
call esi
push eax
push 0x31
call esi
push eax
push ecx
mov eax, esp
mov dword [ebp - 0x430], esp
push dword [ebp + 0x10]
lea ecx, [ebp - 0x218]
mov dword [eax], ecx
call fcn.0048a744
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
cmp dword [ebx], edi
setne al
mov esi, eax
lea eax, [ebp - 0x458]
call fcn.0040d935
mov edi, esi
lea esi, [ebp - 0x42c]
call fcn.00488253
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004c7b01
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x48cd0f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0xe0], eax
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0x48cbc8
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0xd0], eax
je 0x48cd79
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xffffffffffffffff
push dword [esi + 0xe0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [esi + 0xd4]
neg edi
sbb edi, edi
and edi, 0x7fffbffb
add edi, 0x80004005
jmp 0x48cd7e
mov edi, 0x80004005
push dword [esi + 0xe0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
mov dword [esi + 0xe0], ebx
pop ebx
leave
ret

Function at 0x48e5e6
Capabilities:
Get file size

Disassembly:
push esi
mov esi, eax
push esi
call fcn.0040e038
test eax, eax
je 0x48e5f7
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x38]
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x48e61f
xor eax, eax
jmp 0x48e647
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x48e61b
cmp edi, 0x400
jae 0x48e642
xor eax, eax
inc eax
jmp 0x48e647
mov eax, edi
shr eax, 0xa
pop edi
pop esi
ret
Function at 0x48fba8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
call fcn.004040fe
mov ecx, eax
lea esi, [ebp - 4]
call fcn.00402eaa
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x48fbd8
push eax
call fcn.004013aa
push dword [ebp + 8]
call fcn.0040e038
test eax, eax
mov esi, dword [ebp - 4]
jne 0x48fc1b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48fc1b
test al, 1
je 0x48fc1b
push edi
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, eax
lea eax, [esi - 0xc]
cmp eax, dword [0x4f0984]
je 0x48fc16
push eax
call fcn.004013aa
mov eax, edi
pop edi
jmp 0x48fc2f
lea eax, [esi - 0xc]
cmp eax, dword [0x4f0984]
je 0x48fc2c
push eax
call fcn.004013aa
xor eax, eax
inc eax
pop esi
leave
ret 4

Function at 0x48fc34
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, eax
push edi
lea eax, [ebp - 0x18]
call fcn.004040fe
mov ecx, eax
lea esi, [ebp - 4]
call fcn.00402eaa
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x48fc66
push eax
call fcn.004013aa
push edi
lea eax, [ebp - 0x14]
call fcn.0048e319
mov esi, eax
push edi
lea eax, [ebp - 0x10]
call fcn.0048e2c9
push dword [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00403120
push 0x4d134c
push eax
lea eax, [ebp - 8]
push eax
call fcn.00403120
push esi
lea ecx, [ebp + 8]
push ecx
mov ecx, eax
call fcn.004030d0
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x48fcb6
push eax
call fcn.004013aa
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x48fcca
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x48fcde
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x48fcf2
push eax
call fcn.004013aa
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 4]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x48fd2a
add ebx, 0xfffffff4
cmp ebx, dword [0x4f0984]
je 0x48fd15
push ebx
call fcn.004013aa
lea eax, [esi - 0xc]
cmp eax, dword [0x4f0984]
je 0x48fd26
push eax
call fcn.004013aa
xor eax, eax
jmp 0x48fd70
mov esi, 0x4f26e0
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x38]
lea edi, [ebp + 8]
call fcn.00402f73
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebx - 0xc]
cmp eax, dword [0x4f0984]
je 0x48fd59
push eax
call fcn.004013aa
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x48fd6d
push eax
call fcn.004013aa
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x49149c
Capabilities:
Create directory
Get file attributes

Disassembly:
test ebx, ebx
je 0x491540
cmp word [ebx], 0
je 0x491540
push ebp
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_wcschr]
push 0x5c
pop ebp
push ebp
push ebx
call edi
pop ecx
pop ecx
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jle 0x491502
mov ax, word [ebx + 2]
cmp ax, 0x3a
jne 0x4914de
cmp word [ebx + 4], bp
je 0x4914f7
cmp word [ebx], bp
jne 0x491502
cmp ax, bp
jne 0x491502
push ebp
add esi, 4
push esi
call edi
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x49150a
add esi, 2
push ebp
push esi
call edi
pop ecx
pop ecx
mov esi, eax
test esi, esi
je 0x49150a
and word [esi], 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x491527
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
inc eax
test esi, esi
je 0x491532
test eax, eax
mov word [esi], bp
jne 0x4914f7
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
pop esi
and eax, 0x10
pop ebp
ret
xor eax, eax
ret
Function at 0x49304c
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
mov eax, dword [0x4ed384]
or dword [ebp - 0x2b4], 0xffffffff
push ebx
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [ebp - 4], eax
push edi
mov ebx, ecx
mov eax, ebx
or eax, 0x4008
push eax
mov edi, 0x2b4
push edi
lea eax, [ebp - 0x2b8]
push eax
push 0
push dword [ebp + 8]
call esi
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp - 0x2b4]
mov dword [ebp - 0x2bc], eax
je 0x4930c5
or dword [ebp - 0x2b4], 0xffffffff
or ebx, 0x400a
push ebx
push edi
lea eax, [ebp - 0x2b8]
push eax
push 0
push dword [ebp + 8]
call esi
mov eax, dword [ebp - 0x2b4]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2bc]
pop edi
pop esi
pop ebx
call fcn.004c7b01
leave
ret 8

Function at 0x49388c
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0xc

Function at 0x4938aa
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 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 0x4938b2
mov eax, dword [esp + 0xc]
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc
Function at 0x493be7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4c913a
call fcn.004c7e20
sub esp, 0x420
mov eax, dword [0x4ed384]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
call dword [0x4f09d8]
xor edi, edi
mov dword [ebp - 0x41c], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x418], edi
push 2
push edi
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x420], ebx
jne 0x493c53
call fcn.0041a560
mov edi, eax
jmp 0x493d0f
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x493cdc
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
mov dword [ebp - 0x424], eax
je 0x493cdc
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + ebx + 2]
push eax
lea esi, [ebp - 0x418]
mov dword [ebp + 8], ebx
mov byte [ebp - 4], 2
call fcn.0049daee
jmp 0x493ca6
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], edi
jne 0x493cbc
mov edi, 0x8007000e
jmp 0x493d03
call dword [0x4f09d8]
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x424]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x493ce3
call fcn.0041a560
jmp 0x493d01
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x18]
mov word [eax + ebx*2], di
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x42c]
call fcn.00494636
mov edi, eax
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x493d28
lea eax, [ebp - 0x418]
call fcn.0048b0cf
lea esi, [ebp - 0x41c]
call fcn.00430808
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, edi
call fcn.004c7b01
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x495766
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4ed384]
push esi
push edi
push 0x44
mov dword [ebp - 4], eax
mov esi, ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x118], 0x114
lea edi, [ebp - 0x114]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
ja 0x4957b6
mov ecx, dword [ebp + 8]
mov eax, esi
call fcn.0049d9ca
test eax, eax
jne 0x4957ba
xor eax, eax
jmp 0x4957f3
cmp dword [0x4f2114], 0
je 0x4957e2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push dword [0x4f2114]
call fcn.0044a193
test eax, eax
je 0x4957e2
inc dword [eax + 4]
xor eax, eax
add esi, 0xb4
inc eax
call fcn.00454352
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.004c7b01
leave
ret 4

Function at 0x49c7b8
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ecx
push ebp
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 8], ebp
jne 0x49c7e6
xor eax, eax
jmp 0x49c844
push ebx
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, 0xffffffff
je 0x49c838
cmp esi, 0x40
jbe 0x49c838
push edi
push esi
push edi
push 2
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
cmp ebp, edi
je 0x49c838
push edi
push edi
push edi
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x49c835
cmp word [edi], 0x5a4d
je 0x49c848
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call ebx
xor esi, esi
push dword [esp + 0x10]
call ebx
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
pop ecx
ret
add esi, 0xffffffc0
push esi
lea edx, [edi + 0x40]
call fcn.0043fbec
mov esi, eax
movzx eax, word [edi + 0x26]
pop ecx
movzx ecx, word [edi + 0x24]
shl eax, 0x10
or eax, ecx
sub esi, eax
neg esi
sbb esi, esi
push edi
inc esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call ebx
jmp 0x49c83a