joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a27f0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x58f680], 0
mov dword [ebp - 8], ecx
je 0x4a28f2
push ebx
push esi
push edi
push 0x618
call fcn.004e6b5b
mov esi, dword [ebp + 8]
add esp, 4
mov dword [ebp - 4], eax
xor ebx, ebx
add eax, 0x208
push 0x104
push eax
push esi
lea edi, [eax + 0x208]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
jne 0x4a2855
mov ecx, dword [ebp - 4]
add ecx, 0x208
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x4a2845
mov esi, dword [ebp + 0xc]
push 0
push esi
call fcn.00415760
add esp, 8
test eax, eax
jne 0x4a2886
push 0x1001
push esi
call fcn.0048f480
add esp, 8
test eax, eax
je 0x4a2881
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ebx, 1
push 0x104
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
jne 0x4a28b0
mov edx, edi
mov ecx, esi
sub edx, esi
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4a28a0
test ebx, ebx
je 0x4a28bf
push 1
push esi
call fcn.00415fb0
add esp, 8
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
add ecx, 4
lea eax, [ebx + 0x208]
push eax
push edi
push str.rename
call fcn.004a1cd0
push 2
push ebx
mov esi, eax
call fcn.00507268
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 5
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esp, ebp
pop ebp
ret 8

Function at 0x4a94b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4a94c5
pop esi
pop ebp
ret
push ebx
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, eax
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov edx, 2
inc eax
add eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e6b5b
mov edi, eax
add esp, 4
test edi, edi
jne 0x4a94fa
pop edi
pop ebx
pop esi
pop ebp
ret
lea eax, [ebx + 1]
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x4aab90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x60], eax
push esi
mov esi, dword [ebp + 8]
test eax, eax
je 0x4aabb4
mov dword [eax], 0
test esi, esi
je 0x4aad45
cmp word [esi], 0
je 0x4aad45
push edi
push 0x44
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.00509680
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0x44
push esi
movups xmmword [ebp - 0x5c], xmm0
call fcn.005149f1
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4aac15
cmp dword [ebp + 0x1c], eax
jne 0x4aac03
push str.MyCreateProcess__tcsdup
call fcn.0048a0f0
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
mov ax, word [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x20], 1
mov word [ebp - 0x1c], ax
push ebx
test esi, esi
je 0x4aad16
mov ebx, dword [sym.imp.KERNEL32.dll_SleepEx]
lea eax, [ebp - 0x5c]
dec esi
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4aac6b
test esi, esi
je 0x4aad16
push 1
push 0xbb8
call ebx
jmp 0x4aac36
push edi
call fcn.00515523
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push dword [ebp - 0x58]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
xor edi, edi
cmp dword [ebp + 0x14], edi
je 0x4aace2
mov esi, dword [ebp + 0x18]
cmp esi, 0xffffffff
je 0x4aaca0
lea edi, [eax + esi]
nop dword [eax]
push 0
push 0
push 0
call fcn.004abbc0
add esp, 0xc
test eax, eax
je 0x4aacdc
push 0x1cff
push esi
push 0
lea eax, [ebp - 0x5c]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
sub eax, 1
jne 0x4aacdc
cmp esi, 0xffffffff
je 0x4aaca0
call ebx
cmp eax, edi
jae 0x4aacdc
mov esi, edi
sub esi, eax
jmp 0x4aaca0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x4aacfb
mov eax, dword [ebp - 8]
mov dword [ecx], eax
push dword [ebp - 0x5c]
call esi
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x1c], 0
jne 0x4aad29
push str.CreateProcess
call fcn.0048a190
add esp, 4
push edi
call fcn.00515523
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00507257
mov esp, ebp
pop ebp
ret
Function at 0x4aad60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53df3b
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4aae92
mov edi, dword [ebp + 8]
test edi, edi
je 0x4aae92
xor eax, eax
mov word [esi], ax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00472de0
mov eax, dword [ebp - 0x14]
add esp, 8
test eax, eax
je 0x4aadca
cmp eax, 0x1000
jne 0x4aae5f
push 1
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
push str.shell32
movups xmmword [ebp - 0x24], xmm0
call fcn.004873a0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4aae50
push str.SHGetKnownFolderPath
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4aae50
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 0
push 0x5606ec
call eax
test eax, eax
jne 0x4aae50
push eax
push dword [ebp - 0x2c]
push edi
push esi
call fcn.004823d0
add esp, 0x10
push dword [ebp - 0x2c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp word [0x58f378], 0
je 0x4aae69
push edi
push esi
push 0x58f378
push esi
call fcn.0048f340
push 0
push 1
push esi
call fcn.00415ef0
add esp, 0x1c
test eax, eax
jne 0x4aae69
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004873e0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x4aae94
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4aae70
sub esi, ecx
sar esi, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004873e0
mov eax, esi
jmp 0x4aae94
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret 8

Function at 0x4ac5c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e09a
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x58cfe0]
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 + 8]
mov esi, dword [ebp + 0xc]
test edi, edi
je 0x4ac664
cmp word [edi], 0
je 0x4ac664
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.004825b0
mov dword [ebp - 4], 0
xor ebx, ebx
test esi, esi
je 0x4ac629
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
push 0
push esi
mov ebx, eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
push 0
push 0
push edi
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x20
cmp ecx, eax
sbb edi, edi
neg edi
test esi, esi
je 0x4ac651
push ebx
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004825f0
mov eax, edi
jmp 0x4ac666
xor eax, eax
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.00507257
mov esp, ebp
pop ebp
ret
Function at 0x4b3600
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str.spool
push eax
call fcn.0048f340
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str.drivers
push eax
call fcn.0048f340
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str.w32x86
push eax
call fcn.0048f340
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x549db4
push eax
call fcn.0048f340
add esp, 0x40
lea eax, [ebp - 0x20c]
push 0x104
push eax
push ebx
push eax
call fcn.0048f340
lea eax, [ebp - 0x20c]
push eax
call fcn.004b31d0
add esp, 0x14
neg eax
sbb edi, edi
lea eax, [ebp - 0x20c]
and edi, 1
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str.spool
push eax
call fcn.0048f340
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str.drivers
push eax
call fcn.0048f340
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x54ea88
push eax
call fcn.0048f340
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x549db4
push eax
call fcn.0048f340
add esp, 0x40
lea eax, [ebp - 0x20c]
push 0x104
push eax
push ebx
push eax
call fcn.0048f340
lea eax, [ebp - 0x20c]
push eax
call fcn.004b31d0
mov ecx, dword [ebp - 4]
add esp, 0x14
neg eax
sbb eax, eax
xor ecx, ebp
and eax, edi
pop edi
pop ebx
call fcn.00507257
mov esp, ebp
pop ebp
ret
Function at 0x4b3ec0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f499
mov eax, dword fs:[0]
push eax
sub esp, 0x644
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, edi
mov esi, dword [ebp + 0xc]
push 0xffffffffffffffff
push 0
mov dword [ebp - 0x650], edi
mov dword [ebp - 0x648], esi
call fcn.004f1c8e
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.004f1c8e
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0047d410
push 0
push edi
lea eax, [ebp - 0x218]
push str..inf
push eax
call fcn.004190c0
push str.FinePrint_Software
push edi
call fcn.004b43b0
add esp, 0x20
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.DriverStore
push eax
call fcn.0048f340
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.FileRepository
push eax
call fcn.0048f340
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x556b08
push eax
call fcn.0048f340
push 0x418
lea eax, [ebp - 0x644]
push 0
push eax
call fcn.00509680
add esp, 0x3c
lea ecx, [ebp - 0x644]
call fcn.00418420
mov dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push 1
push 0
push eax
lea ecx, [ebp - 0x644]
call fcn.00418450
xor edi, edi
mov dword [ebp - 0x64c], eax
test eax, eax
jle 0x4b4079
nop dword [eax]
push edi
lea ecx, [ebp - 0x644]
call fcn.004188c0
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x22c]
mov esi, eax
movups xmmword [ebp - 0x22c], xmm0
call fcn.004f18f5
mov byte [ebp - 4], 1
lea eax, [ebp - 0x22c]
push 0
push eax
push str..inf
push esi
call fcn.004190c0
lea eax, [ebp - 0x22c]
push str.FinePrint_Software
push eax
call fcn.004b43b0
mov esi, dword [ebp - 0x648]
lea eax, [ebp - 0x22c]
add esp, 0x18
mov ecx, esi
push eax
call fcn.004f1a87
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.004f190c
inc edi
cmp edi, dword [ebp - 0x64c]
jl 0x4b3ff0
mov ecx, dword [ebp - 0x650]
mov esi, dword [esi + 8]
mov ecx, dword [ecx + 8]
add esi, ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x644]
call fcn.00418440
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
Function at 0x4b8460
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53fac9
mov eax, dword fs:[0]
push eax
sub esp, 0x668
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x218]
push 1
push ecx
push str.Personal
push eax
call fcn.0041bc80
add esp, 0x10
test eax, eax
je 0x4b8677
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
push str.LocalService_
push eax
call fcn.0049c330
add esp, 0x10
test eax, eax
jne 0x4b8677
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
push str.NetworkService_
push eax
call fcn.0049c330
add esp, 0x10
test eax, eax
jne 0x4b8677
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x58ffb0
push eax
call fcn.0048f340
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [0x550938]
push eax
call fcn.0048f340
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00415760
add esp, 0x28
test eax, eax
je 0x4b8677
push 0x25c
lea eax, [ebp - 0x674]
push 0
push eax
call fcn.00509680
add esp, 0xc
lea ecx, [ebp - 0x674]
call fcn.0040f080
mov dword [ebp - 4], 0
xor esi, esi
push esi
push esi
push esi
lea ecx, [ebp - 0x674]
call fcn.0048bdd0
push esi
push 0xffffffffffffffff
push str._Settings__r_n
lea ecx, [ebp - 0x674]
call fcn.0048ced0
lea eax, [ebp - 0x218]
push eax
push 0x100
lea eax, [ebp - 0x418]
push eax
push 0x546e38
push dword [0x5507b4]
push dword [0x550808]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x4b85d4
lea eax, [ebp - 0x418]
push eax
push dword [0x5507b4]
lea eax, [ebp - 0x674]
push str._s_s_r_n
push eax
call fcn.0048ca80
add esp, 0x10
mov esi, 1
lea eax, [ebp - 0x218]
push eax
push 0x100
lea eax, [ebp - 0x418]
push eax
push 0x546e38
push dword [0x550800]
push dword [0x550808]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x4b8624
lea eax, [ebp - 0x418]
push eax
push dword [0x550800]
lea eax, [ebp - 0x674]
push str._s_s_r_n
push eax
call fcn.0048ca80
add esp, 0x10
inc esi
lea ecx, [ebp - 0x674]
call fcn.0048b5c0
lea eax, [ebp - 0x218]
push 1
test esi, esi
jne 0x4b8646
push eax
call fcn.00415fb0
add esp, 8
jmp 0x4b8658
push 1
push eax
lea eax, [ebp - 0x670]
push eax
call fcn.00415e80
add esp, 0x10
push 0
lea ecx, [ebp - 0x674]
call fcn.0048bfe0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x674]
call fcn.0048b4f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
Function at 0x4b9580
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x5906c0
call fcn.004a8900
add esp, 4
push 0x104
push 0x5908c8
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
cmp word [0x5908c8], 0
jne 0x4b95ce
push 0x104
push 0x5908c8
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x104
push 0x590ad0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x104
push 0x590cd8
push dword [0x550758]
call fcn.0047d840
add esp, 0xc
test eax, eax
je 0x4b9616
push 0x104
push 0x590ee0
push 0x548864
push 0x590cd8
call fcn.0048f340
add esp, 0x10
push 0x104
push 0x5910e8
push dword [0x55075c]
call fcn.0047d840
add esp, 0xc
test eax, eax
je 0x4b9667
push 0x104
push 0x5912f0
push 0x549db0
push 0x5910e8
call fcn.0048f340
push 0x104
push 0x5914f8
push 0x549db4
push 0x5910e8
call fcn.0048f340
add esp, 0x20
push 0x104
push 0x591700
push dword [0x550760]
call fcn.0047d840
add esp, 0xc
test eax, eax
je 0x4b969f
push 0x104
push 0x591908
push 0x549db4
push 0x591700
call fcn.0048f340
add esp, 0x10
push 1
push 0x591b10
push str.Common_AppData
call fcn.0041c270
push 0x104
push 0x591d18
push str.FinePrint_Software
push 0x591b10
call fcn.0048f340
push 6
push str.pdfFactory
lea eax, [ebp - 0x20c]
push str._s_d
push eax
call fcn.00405510
push 0x104
push 0x591f20
lea eax, [ebp - 0x20c]
push eax
push 0x591d18
call fcn.0048f340
push 0x104
push 0x592128
call fcn.0047d410
add esp, 0x44
mov ecx, 0x5914f8
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx + 0xe36], ax
test ax, ax
jne 0x4b9713
mov ecx, 0x591908
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx + 0xc2e], ax
test ax, ax
jne 0x4b9730
push 0x104
push 0x592740
push dword [0x5509a8]
push 0x5910e8
call fcn.0048f340
push 0x104
push 0x592948
push dword [0x5509a8]
push 0x591700
call fcn.0048f340
add esp, 0x20
test esi, esi
je 0x4b97b7
cmp word [esi], 0
je 0x4b97b7
push 0
push esi
push 0x104
push 0x592b50
call fcn.004823d0
add esp, 0x10
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.00507257
mov esp, ebp
pop ebp
ret
Function at 0x4c7bb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x4c7d73
cmp word [eax], 0
je 0x4c7d73
push ebx
push 0x10
push 0
push 0
push 0x55e0b8
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4c7c02
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
push esi
push edi
xor edi, edi
xor eax, eax
mov dword [ebp - 0x22c], edi
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x230], eax
push ecx
push eax
push 0x55e0b8
xorps xmm0, xmm0
mov dword [ebp - 0x210], 0
push 0
movups xmmword [ebp - 0x228], xmm0
push ebx
movq qword [ebp - 0x218], xmm0
mov dword [ebp - 0x228], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x4c7c67
cmp eax, 0x103
je 0x4c7d59
push 0x20019
push 0
lea eax, [ebp - 0x228]
push eax
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDeviceInterfaceRegKey]
mov edi, eax
cmp edi, 0xffffffff
je 0x4c7d47
xor eax, eax
mov dword [ebp - 0x208], 0
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
mov dword [ebp - 0x20c], 0x200
push eax
lea eax, [ebp - 0x208]
push eax
push 0
push str.FriendlyName
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4c7d47
mov eax, dword [ebp - 0x208]
dec eax
cmp eax, 1
ja 0x4c7d47
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x204]
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4c7d16
test dx, dx
je 0x4c7d12
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4c7d16
add ecx, 4
add eax, 4
test dx, dx
jne 0x4c7cf0
xor eax, eax
jmp 0x4c7d1b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4c7d47
lea eax, [ebp - 0x228]
push eax
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiRemoveDeviceInterface]
mov edi, dword [ebp - 0x22c]
add edi, eax
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x22c], edi
inc eax
jmp 0x4c7c0e
mov eax, dword [ebp - 0x230]
mov edi, dword [ebp - 0x22c]
inc eax
jmp 0x4c7c0e
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
Function at 0x4cb7b0
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa80
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
lea eax, [ebp - 0x414]
push 0x104
push eax
push 0
call fcn.004a5410
push 0
push 0
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0051545f
push 0
mov eax, 0x22
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x61c]
push ebx
push eax
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x412]
push eax
call fcn.00514cf8
lea edi, [ebp - 0x414]
add esp, 0x34
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4cb840
mov eax, dword [0x547170]
mov dword [edi], eax
cmp word [esi], 0x22
push 0
push 0xffffffffffffffff
jne 0x4cb865
push 0x22
lea eax, [esi + 2]
push eax
jmp 0x4cb868
push 0x20
push esi
call fcn.0049c290
add esp, 0x10
test eax, eax
je 0x4cb8b0
lea edx, [eax + 2]
test edx, edx
je 0x4cb8b0
mov esi, edx
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4cb880
lea edi, [ebp - 0x414]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4cb896
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x44
lea eax, [ebp - 0xa70]
push 0
push eax
call fcn.00509680
add esp, 0xc
mov dword [ebp - 0xa70], 0x44
lea eax, [ebp - 0xa80]
xorps xmm0, xmm0
movups xmmword [ebp - 0xa80], xmm0
push eax
lea eax, [ebp - 0xa70]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4cb945
push ebx
lea eax, [ebp - 0xa2c]
push str.Setup_could_not_launch__s.
push eax
call fcn.00405510
add esp, 0xc
lea eax, [ebp - 0xa2c]
push 0x10010
push str.Setup
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xa7c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0xffffffffffffffff
push dword [ebp - 0xa80]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xa80]
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00507257
mov esp, ebp
pop ebp
ret
Function at 0x4d0350
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x15], 0
jne 0x4d0384
mov eax, dword [edi + 4]
push 0x29
push 0
push edi
mov eax, dword [eax]
call eax
mov ecx, dword [edi + 4]
mov esi, eax
push 0x1000
mov dword [edi + 0x15], esi
push 0
mov ecx, dword [ecx]
push edi
call ecx
add esp, 0x18
mov dword [esi + 0x1c], eax
mov esi, dword [edi + 0x15]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 8], 0x4d03f0
mov dword [esi + 0xc], fcn.004d0400
mov dword [esi + 0x10], 0x4d04c0
mov dword [esi + 0x14], 0x4d3150
mov dword [esi + 0x18], 0x4d0500
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], eax
test eax, eax
jne 0x4d03dd
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x24], eax
cmp eax, 0xffffffff
jne 0x4d03dd
mov eax, dword [edi]
push edi
mov dword [eax + 0x14], 0x2a
mov eax, dword [edi]
mov eax, dword [eax]
call eax
add esp, 4
pop edi
mov dword [esi + 4], 0
mov dword [esi], 0
pop esi
pop ebp
ret

Function at 0x4d0400
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x15]
mov eax, dword [esi + 0x24]
mov dword [ebp - 8], 0
cmp eax, 0x1000
jbe 0x4d0430
mov eax, 0x1000
jmp 0x4d0434
test eax, eax
je 0x4d0453
push 0
lea ecx, [ebp - 8]
push ecx
push eax
push dword [esi + 0x1c]
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 8]
sub dword [esi + 0x24], eax
cmp dword [ebp - 8], 0
jne 0x4d0496
cmp byte [esi + 0x28], 0
je 0x4d046c
mov eax, dword [edi]
push edi
mov dword [eax + 0x14], 0x2a
mov eax, dword [edi]
mov eax, dword [eax]
call eax
add esp, 4
mov eax, dword [edi]
push 0xffffffffffffffff
push edi
mov dword [eax + 0x14], 0x78
mov eax, dword [edi]
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x1c]
add esp, 8
mov byte [eax], 0xff
mov eax, dword [esi + 0x1c]
mov byte [eax + 1], 0xd9
mov dword [ebp - 8], 2
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
mov al, 1
pop edi
mov byte [esi + 0x28], 0
pop esi
call fcn.00507257
mov esp, ebp
pop ebp
ret