joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ce4c5
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x55e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x84], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor edi, edi
test eax, eax
je 0x4ce539
push str._cid
push eax
call fcn.004de74c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4ce539
add esi, 0xa
push 0x20
push esi
call fcn.004db19e
pop ecx
pop ecx
test eax, eax
jne 0x4ce527
push esi
call fcn.004db28a
pop ecx
lea eax, [esi + eax*2]
sub eax, esi
mov ecx, ebx
sar eax, 1
push eax
push esi
call fcn.004b0747
jmp 0x4ce5cb
push dword [ebp - 0x80]
lea ecx, [ebp - 0x7c]
call fcn.004af106
push 0x549ba8
lea ecx, [ebp - 0x7c]
call fcn.004af3f9
push str.ProductInfo.xml
lea ecx, [ebp - 0x7c]
call fcn.004af3f9
lea ecx, [ebp - 0x78]
call fcn.004c76de
mov esi, dword [ebp - 0x7c]
lea ecx, [ebp - 0x78]
push esi
call fcn.004c7adf
test eax, eax
je 0x4ce5bb
push edi
push str.packetcid
lea ecx, [ebp - 0x78]
call fcn.004c7bf9
test eax, eax
je 0x4ce596
push ebx
push 0x537ec0
lea ecx, [ebp - 0x78]
call fcn.004c7d8a
push edi
push str.packet_scid
lea ecx, [ebp - 0x78]
call fcn.004c7bf9
test eax, eax
je 0x4ce5bb
push dword [ebp - 0x84]
lea ecx, [ebp - 0x78]
push str.scid
call fcn.004c7d8a
lea ecx, [ebp - 0x78]
call fcn.004c3319
lea ecx, [esi - 0x10]
call fcn.004b05d5
mov eax, dword [0x5610a0]
cmp dword [eax - 0xc], edi
je 0x4ce5e1
push 0x5610a0
mov ecx, ebx
call fcn.004af1ff
mov eax, dword [ebx]
cmp dword [eax - 0xc], edi
jne 0x4ce6af
lea eax, [ebp - 0x84]
push edi
push eax
call fcn.004cde36
mov esi, dword [ebp - 0x84]
push 0x5f
push esi
call fcn.004db2c2
add esp, 0x10
test eax, eax
je 0x4ce6a7
sub eax, esi
sar eax, 1
mov dword [ebp - 0x80], eax
cmp eax, 0xffffffff
je 0x4ce6a7
call fcn.004afc69
push eax
lea ecx, [ebp - 0x7c]
call fcn.004af046
mov ecx, dword [ebp - 0x80]
mov eax, dword [esi - 0xc]
inc ecx
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x84]
call fcn.004b0156
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x7c]
call fcn.004af1ff
mov ecx, dword [ebp - 0x80]
lea ecx, [ecx - 0x10]
call fcn.004b05d5
push edi
push str..exe
lea ecx, [ebp - 0x7c]
call fcn.004ccf81
push eax
push edi
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x7c]
call fcn.004b0156
push eax
lea ecx, [ebp - 0x7c]
call fcn.004af1ff
mov ecx, dword [ebp - 0x80]
lea ecx, [ecx - 0x10]
call fcn.004b05d5
lea eax, [ebp - 0x7c]
mov ecx, ebx
push eax
call fcn.004af1ff
mov ecx, dword [ebp - 0x7c]
lea ecx, [ecx - 0x10]
call fcn.004b05d5
lea ecx, [esi - 0x10]
call fcn.004b05d5
mov eax, dword [ebx]
cmp dword [eax - 0xc], edi
jne 0x4ce6ee
push str.mktpublic
call fcn.004dc170
pop ecx
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jg 0x4ce6e6
lea eax, [esi + esi]
call fcn.004dca80
mov eax, esp
push 3
push esi
push str.mktpublic
push eax
call fcn.004b1cc5
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b071e
lea esp, [ebp - 0x90]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dbbe3
mov esp, ebp
pop ebp
ret
Function at 0x4d096b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push 0
push 0x3000010
push 1
push 0
push 3
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
test ebx, ebx
je 0x4d099e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x4d09a9
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop ebx
pop ebp
ret

Function at 0x4d0ad7
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x55e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], 0x11c
push 0
push eax
call fcn.004dbc00
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4d0b25
cmp dword [ebp - 0x11c], 6
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dbbe3
mov esp, ebp
pop ebp
ret

Function at 0x4d0dd6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [edi], esi
je 0x4d0e58
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 1
je 0x4d0e0a
cmp dword [ebp - 8], 2
jne 0x4d0e58
mov ecx, dword [ebp + 0xc]
call fcn.004afa35
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
shr eax, 1
inc eax
push eax
call fcn.004b04ad
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
push ecx
push eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4d0e4e
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, dword [ebp - 0xc]
xor esi, esi
shr eax, 1
inc esi
mov word [ecx + eax*2], dx
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
call fcn.004b5fc5
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4d0e62
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebx], esi
je 0x4d0f2f
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 7
mov dword [ebx + 4], eax
jne 0x4d0f2f
mov eax, dword [ebp - 4]
xor ecx, ecx
push edi
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004db0c5
mov edi, eax
pop ecx
test edi, edi
je 0x4d0ec1
xor eax, eax
mov word [edi], ax
jmp 0x4d0ec3
mov edi, esi
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebx + 4], eax
test eax, eax
jne 0x4d0f23
push edi
call fcn.004db28a
mov ebx, eax
mov eax, edi
pop ecx
push eax
lea ecx, [ebp + 8]
call fcn.004af106
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 8]
push eax
call fcn.004d5123
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.004b05d5
inc ebx
add esi, ebx
lea eax, [edi + esi*2]
push eax
call fcn.004db28a
mov ebx, eax
lea eax, [edi + esi*2]
pop ecx
test ebx, ebx
jg 0x4d0eea
xor esi, esi
inc esi
test edi, edi
je 0x4d0f2e
push edi
call fcn.004db0ce
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4d0f39
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [edi], ebx
cmp dword [esi], ebx
je 0x4d0fd2
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esi + 4], eax
test eax, eax
jne 0x4d0fd2
lea eax, [ebp + 0xf]
mov byte [ebp + 0xf], bl
push eax
push dword [ebp - 4]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.004d2d1b
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call fcn.004cb1ea
lea ecx, [ebp - 0x20]
call fcn.0048ac80
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esi + 4], eax
test eax, eax
jne 0x4d0fd2
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x14]
push dword [ebp + 0x10]
mov dword [edi], eax
call fcn.0048ab10
inc ebx
lea ecx, [ebp - 0x14]
call fcn.0048ac80
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4d165e
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x55e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x254], 0
push ebx
push esi
mov dword [ebp - 0x264], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp + 0x18]
push 0x24c
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x250]
push 0
push eax
mov dword [ebp - 0x268], edi
call fcn.004dbc00
add esp, 0xc
lea ecx, [ebp - 0x260]
push edi
call fcn.004af106
call fcn.004afc69
push eax
lea ecx, [ebp - 0x258]
call fcn.004af046
push 0x5380c4
mov esi, 0x104
lea ecx, [ebp - 0x260]
push esi
call fcn.004b04ad
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x260]
call fcn.004b5fc5
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4d174a
mov esi, dword [ebp - 0x258]
lea ecx, [esi - 0x10]
call fcn.004b05d5
mov ecx, dword [ebp - 0x260]
lea ecx, [ecx - 0x10]
call fcn.004b05d5
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dbbe3
mov esp, ebp
pop ebp
ret
mov esi, 0x104
push edi
lea ecx, [ebp - 0x258]
call fcn.004b071e
lea eax, [ebp - 0x228]
push eax
push esi
lea ecx, [ebp - 0x258]
call fcn.004b04ad
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x258]
call fcn.004b5fc5
push dword [ebp - 0x264]
lea ecx, [ebp - 0x25c]
call fcn.004af106
lea eax, [ebp - 0x228]
push eax
push esi
lea ecx, [ebp - 0x25c]
call fcn.004b04ad
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x25c]
call fcn.004b5fc5
test byte [ebp - 0x254], 0x10
mov esi, dword [ebp - 0x258]
mov edi, dword [ebp - 0x25c]
je 0x4d1847
lea eax, [ebp - 0x228]
push 0x54ae00
push eax
call fcn.004db24c
pop ecx
pop ecx
test eax, eax
je 0x4d1809
lea eax, [ebp - 0x228]
push 0x54ae04
push eax
call fcn.004db24c
pop ecx
pop ecx
test eax, eax
je 0x4d1809
mov eax, dword [ebp - 0x254]
mov ecx, 0x410
and eax, ecx
cmp eax, ecx
jne 0x4d1814
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
jmp 0x4d1862
cmp dword [ebp + 0x10], 0
je 0x4d185f
push edi
call fcn.004cc1c0
pop ecx
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4d185f
push dword [ebp - 0x270]
push dword [ebp - 0x26c]
push dword [ebp + 0x10]
push edi
push esi
call fcn.004d165e
add esp, 0x14
jmp 0x4d185f
push 3
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4d185f
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [edi - 0x10]
call fcn.004b05d5
lea eax, [ebp - 0x254]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, dword [ebp - 0x268]
test eax, eax
jne 0x4d1745
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4d171c
Function at 0x4d188f
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x54]
push 0x40
push edi
push eax
mov ebx, edi
call fcn.004dbc00
add esp, 0xc
mov dword [ebp - 0x58], 0x44
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 1
movdqu xmmword [ebp - 0x14], xmm0
call fcn.004afc69
push eax
lea ecx, [ebp - 4]
call fcn.004af046
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push dword [ebp + 8]
push 0x537a4c
push eax
call fcn.004afb8c
add esp, 0x10
cmp dword [ebp + 0x14], ebx
je 0x4d18f0
push 0xa
pop eax
jmp 0x4d18f2
xor eax, eax
mov esi, dword [ebp - 4]
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4d193a
cmp dword [ebp + 0x10], ebx
je 0x4d1937
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4d1937
cmp dword [ebp + 0x18], ebx
je 0x4d1937
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x14], edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4d194e
push dword [ebp - 0x14]
call edi
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x10], 0
je 0x4d195d
push dword [ebp - 0x10]
call edi
and dword [ebp - 0x10], 0
lea ecx, [esi - 0x10]
call fcn.004b05d5
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d30dc
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x55e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x258]
push ebx
push esi
push edi
push eax
xor edi, edi
call fcn.004af106
push 0x54ade8
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.004c1fd0
add esp, 0xc
lea ecx, [ebp - 0x254]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x270]
mov ebx, eax
add ecx, 0xfffffff0
mov dword [ebp - 0x25c], ebx
call fcn.004b05d5
cmp ebx, 0xffffffff
jne 0x4d314e
inc edi
jmp 0x4d3299
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
test byte [ebp - 0x254], 0x10
lea eax, [ebp - 0x228]
je 0x4d320a
push 0x54ae00
push eax
call ebx
test eax, eax
je 0x4d326f
push 0x54ae04
lea eax, [ebp - 0x228]
push eax
call ebx
test eax, eax
je 0x4d326f
push str.Config
lea eax, [ebp - 0x228]
push eax
call ebx
test eax, eax
je 0x4d326f
push 0x549ba8
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.004c1fd0
add esp, 0xc
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.004c1fd0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call fcn.004d30dc
mov ecx, dword [ebp - 0x260]
add esp, 0x18
add ecx, 0xfffffff0
mov esi, eax
call fcn.004b05d5
mov ecx, dword [ebp - 0x26c]
add ecx, 0xfffffff0
call fcn.004b05d5
test esi, esi
je 0x4d328d
jmp 0x4d326f
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.004c1fd0
add esp, 0xc
push 0x80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.004b05d5
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.004c1fd0
add esp, 0xc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx - 0x10]
call fcn.004b05d5
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4d3154
xor edi, edi
inc edi
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x258]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esi - 0x10]
call fcn.004b05d5
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dbbe3
mov esp, ebp
pop ebp
ret
Function at 0x4d4b45
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x55e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x120]
xor ebx, ebx
push eax
push 1
push ebx
push ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x11c], ebx
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
jne 0x4d4bcd
push 0x110
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.004dbc00
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4d4bc7
cmp dword [ebp - 0x114], 6
jne 0x4d4bc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4d4c0b
mov dword [edi], ebx
xor eax, eax
jmp 0x4d4c0b
mov ecx, dword [ebp - 0x120]
mov eax, ebx
push esi
mov esi, 0x490
cmp dword [ebp - 0x11c], eax
jbe 0x4d4c02
lea edx, [ecx + 8]
cmp dword [edx], ebx
je 0x4d4bf8
inc eax
add edx, 0xc
cmp eax, dword [ebp - 0x11c]
jb 0x4d4be6
jmp 0x4d4c02
imul eax, eax, 0xc
mov esi, ebx
mov eax, dword [eax + ecx]
mov dword [edi], eax
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004dbbe3
mov esp, ebp
pop ebp
ret

Function at 0x4d4c1b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x55e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4d4c3b
or eax, 0xffffffff
jmp 0x4d4c94
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004dbc00
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4d4c7e
cmp dword [ebp - 0x114], 5
jne 0x4d4c7e
cmp dword [ebp - 0x110], 0
je 0x4d4c89
push esi
call fcn.004d4fcd
pop ecx
test eax, eax
je 0x4d4c92
push esi
call fcn.004d4de2
pop ecx
jmp 0x4d4c94
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004dbbe3
mov esp, ebp
pop ebp
ret
Function at 0x4d4de2
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x55e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
xor ebx, ebx
mov dword [ebp - 0x238], eax
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x4d4e1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4d4ee4
push esi
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x234], ebx
push ebx
push eax
mov esi, 0x490
call fcn.004dbc00
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4d4e98
lea eax, [ebp - 0x20c]
push str.explorer.exe
push eax
call fcn.004ddca4
pop ecx
pop ecx
test eax, eax
je 0x4d4e88
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4d4e5e
jmp 0x4d4e9c
mov eax, dword [ebp - 0x228]
xor esi, esi
mov dword [ebp - 0x234], eax
jmp 0x4d4e9c
call ebx
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x234]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x4d4ec0
call ebx
jmp 0x4d4ee3
push dword [ebp - 0x238]
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4d4eda
call ebx
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004dbbe3
mov esp, ebp
pop ebp
ret

Function at 0x4d5719
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4d5744
xor eax, eax
jmp 0x4d575f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
push edi
cmove esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
ret 4

Function at 0x4d5a22
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop ebp
ret 8

Function at 0x4d5bf4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x4d5c2c
push dword [esi + 4]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.004e4de8
push dword [esi + 4]
push 2
push 1
push 0x54a0f4
call fcn.004e4de8
push dword [esi + 4]
call fcn.004e4b52
add esp, 0x24
pop esi
pop ebp
ret 8
Function at 0x4d8b37
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x55e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x410], eax
xor eax, eax
push 0x60
push eax
push esi
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x408], eax
call ebx
mov edi, eax
test edi, edi
jne 0x4d8ba0
push 2
push eax
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x4d8ba0
call fcn.004b447d
mov esi, eax
jmp 0x4d8c41
push dword [ebp - 0x410]
push dword [ebp - 0x40c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4d8bc0
call fcn.004b447d
jmp 0x4d8c34
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4d8bb9
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x4d8be6
mov esi, 0x8007000e
jmp 0x4d8c36
push eax
lea ecx, [ebp - 0x408]
call fcn.004d7c0e
cmp dword [ebp - 0x408], 0
je 0x4d8bdf
push esi
push dword [ebp - 0x408]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x4d8bb9
mov eax, dword [ebp - 0x408]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x418]
push dword [ebp - 0x408]
call fcn.004d89fc
mov esi, eax
test edi, edi
je 0x4d8c41
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x4d8c5a
lea ecx, [ebp - 0x408]
call fcn.004d8151
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dbbe3
mov esp, ebp
pop ebp
ret 0x10