joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4af910
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ecx + 4]
xor edx, edx
push edi
mov dword [ebp - 4], esi
mov ebx, dword [esi + 0x3c]
add ebx, esi
xor edi, edi
movzx ecx, word [ebx + 6]
cmp edx, ecx
jae 0x4af96b
movzx eax, word [ebx + 0x14]
lea ecx, [ebx + 0x18]
add eax, edi
add ecx, eax
je 0x4af96b
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x4af946
xor esi, esi
jmp 0x4af94d
add esi, eax
cmp esi, dword [ebp + 8]
ja 0x4af957
mov eax, dword [ecx + 8]
add eax, esi
cmp eax, dword [ebp + 8]
ja 0x4af960
mov esi, dword [ebp - 4]
inc edx
add edi, 0x28
jmp 0x4af926
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4afbc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 4], ebx
test edi, edi
jne 0x4afbde
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 4]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov eax, dword [ebx]
push dword [ecx + 0x78]
mov ecx, ebx
call dword [eax + 4]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x4afc7b
mov eax, dword [ebp + 8]
cmp eax, 0xffff
ja 0x4afc16
pop esi
mov word [edi], ax
mov al, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx]
mov ecx, ebx
push dword [esi + 0x20]
call dword [eax + 4]
mov ecx, dword [esi + 0x18]
mov ebx, eax
mov dword [ebp - 0xc], eax
lea edi, [eax + ecx*4]
cmp eax, edi
je 0x4afc7b
nop
mov ecx, dword [ebp - 4]
mov eax, edi
sub eax, ebx
sar eax, 2
cdq
sub eax, edx
sar eax, 1
push dword [ebx + eax*4]
lea esi, [ebx + eax*4]
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov ecx, edx
mov dl, byte [edx]
test dl, dl
je 0x4afc62
cmp dl, byte [eax]
jne 0x4afc62
mov dl, byte [ecx + 1]
inc ecx
inc eax
test dl, dl
jne 0x4afc55
movzx eax, byte [eax]
movzx ecx, byte [ecx]
sub ecx, eax
je 0x4afc86
test ecx, ecx
jle 0x4afc75
lea ebx, [esi + 4]
jmp 0x4afc77
mov edi, esi
cmp ebx, edi
jne 0x4afc30
pop esi
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, dword [ecx]
push dword [edi + 0x24]
call dword [eax + 4]
sub esi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
sar esi, 2
mov ax, word [eax + esi*2]
add ax, word [edi + 0x10]
pop esi
pop edi
mov word [ecx], ax
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4ba2a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547fbb
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x57a120]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x214], eax
cmp dword [0x580280], 0
je 0x4ba2ed
mov eax, dword [0x580280]
mov dword [ebp - 0x214], eax
push str.BINDATA
movzx ecx, word [ebp + 8]
push ecx
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x4ba318
jmp 0x4ba3dc
mov eax, dword [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x4ba340
jmp 0x4ba3dc
mov edx, dword [ebp - 0x218]
push edx
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x4ba36c
jmp 0x4ba3dc
lea ecx, [ebp - 0x21c]
call fcn.004c0430
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x220]
push ecx
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.SHLWAPI.dll_SHCreateMemStream]
push eax
lea ecx, [ebp - 0x21c]
call fcn.004ba450
push 0
lea ecx, [ebp - 0x21c]
call fcn.004c02d0
push eax
call fcn.004c0340
add esp, 8
mov dword [ebp - 0x22c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.004c03c0
mov eax, dword [ebp - 0x22c]
jmp 0x4ba432
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
je 0x4ba430
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x1fc
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.004f3a90
add esp, 0xc
mov eax, dword [ebp - 0x228]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.Function:__s__image_id:_d__Last_error:__d
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f3b66
mov esp, ebp
pop ebp
ret
Function at 0x4cc2d8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x57a120]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push esi
call fcn.004f353f
pop ecx
mov ebx, eax
lea edx, [ebp - 0x214]
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x210]
cmp eax, ebx
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x214], ebx
cmovae ecx, edx
push dword [ecx]
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x4cc332
xor eax, eax
jmp 0x4cc3d6
push 0
push dword [ebp + 0x14]
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4cc32b
push 0x561a58
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.004cd7b4
lea eax, [ebp - 0x20c]
push eax
call fcn.004f353f
mov esi, eax
push edi
mov dword [ebp - 0x210], esi
call fcn.004f353f
pop ecx
pop ecx
mov ecx, dword [ebp - 0x210]
mov edx, eax
sub edx, ebx
add ecx, eax
add esi, edx
mov dword [ebp - 0x214], esi
cmp ecx, ebx
jbe 0x4cc32b
lea eax, [esi + 1]
cmp eax, dword [ebp + 0xc]
jae 0x4cc32b
mov eax, dword [ebp - 0x210]
lea esi, [eax + eax]
lea eax, [edx + edx]
push eax
lea eax, [edi + ebx*2]
push eax
lea eax, [esi + edi]
push eax
call fcn.004f4a70
push esi
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.004f50c0
mov eax, dword [ebp - 0x214]
xor ecx, ecx
add esp, 0x18
mov word [edi + eax*2], cx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f3b66
mov esp, ebp
pop ebp
ret

Function at 0x4ccbb2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x57a120]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x4ccc74
xor edi, edi
cmp word [esi], di
je 0x4ccc74
push esi
call fcn.004ccf0a
pop ecx
test eax, eax
jne 0x4ccc74
push esi
call fcn.004ccf4b
pop ecx
test eax, eax
je 0x4ccc86
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x408], 0x400
push eax
lea eax, [ebp - 0x408]
mov dword [ebp - 0x404], 2
push eax
lea eax, [ebp - 0x404]
mov dword [ebp - 0x400], edi
push eax
push eax
mov dword [ebp - 0x3fc], edi
mov dword [ebp - 0x3f4], edi
mov dword [ebp - 0x3f0], esi
mov dword [ebp - 0x3e8], edi
mov dword [ebp - 0x3ec], edi
call sub.MPR.dll_WNetGetResourceInformationW
test eax, eax
jne 0x4ccc86
cmp dword [ebp - 0x3fc], edi
je 0x4ccc86
cmp dword [ebp - 0x3fc], 3
jne 0x4ccc74
inc eax
cmp dword [ebp - 0x400], edi
je 0x4ccc76
cmp dword [ebp - 0x400], eax
je 0x4ccc76
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004f3b66
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ccc74
and eax, 0x10
jmp 0x4ccc76

Function at 0x4cccd8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4cccfb
cmp word [eax], 0
je 0x4cccfb
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4cdf14
Capabilities:
Create process on windows
Impersonate user

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x57a120]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x80], ecx
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x74], ecx
mov ecx, dword [ebp + 0x2c]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], ecx
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x4ce0be
test edi, edi
je 0x4ce0be
push ebx
lea ecx, [ebp - 0x64]
call fcn.004caf3a
mov eax, dword [esi + 4]
mov ecx, esi
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x6c]
push 8
push eax
mov dword [ebp - 0x6c], 1
call fcn.004cdb75
xor ebx, ebx
test al, al
je 0x4ce0b1
cmp dword [ebp - 0x6c], 1
je 0x4cdfba
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], ebx
push eax
push 1
push 2
push ebx
push 0xb
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4ce0b1
cmp byte [ebp + 0x1c], bl
je 0x4ce044
cmp dword [esi + 8], ebx
jne 0x4ce044
push ebx
push 1
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.004cdba3
test al, al
jne 0x4cdff2
cmp dword [ebp - 0x6c], 1
je 0x4ce0b1
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4ce0b1
push 0x20
lea eax, [ebp - 0xa8]
push ebx
push eax
call fcn.004f3a90
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0xa8], 0x20
cmp dword [eax - 0xc], ebx
jne 0x4ce021
lea ecx, [ebp - 0x64]
call fcn.004ce902
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
je 0x4ce044
mov eax, dword [ebp - 0x8c]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x28]
movzx esi, al
lea eax, [ebp - 0x70]
push esi
push dword [ebp - 0x68]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x4ce0b1
push dword [ebp - 0x88]
push edi
push dword [ebp - 0x84]
push dword [ebp - 0x70]
push dword [ebp + 0x18]
push esi
push dword [ebp - 0x74]
push dword [ebp - 0x80]
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x6c], 1
mov edi, eax
je 0x4ce09d
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x70]
call sub.USERENV.dll_DestroyEnvironmentBlock
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
setne bl
lea ecx, [ebp - 0x64]
call fcn.004cb0f9
mov al, bl
pop ebx
jmp 0x4ce0c0
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004f3b66
mov esp, ebp
pop ebp
ret 0x28
Function at 0x4ce1f0
Capabilities:
Acquire debug privileges
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
call fcn.004cf464
lea ecx, [ebp - 0x1c]
call fcn.004cf709
lea ecx, [ebp - 0x1c]
call fcn.004d012c
push str.SeDebugPrivilege
lea ecx, [ebp - 0x1c]
call fcn.004cfae8
mov eax, 0xc8
xor esi, esi
lea ebx, [eax + 0x14]
mov ecx, edi
push 0xffffffffffffffff
push ebx
call fcn.004cf472
test al, al
je 0x4ce293
mov eax, dword [edi + 4]
lea ecx, [ebp - 4]
push ecx
shl eax, 2
push eax
push dword [edi]
mov dword [ebp - 4], esi
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4ce264
mov eax, dword [ebp - 4]
shr eax, 2
cmp ebx, eax
jb 0x4ce224
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.004cf472
jmp 0x4ce2a2
push 0xffffffffffffffff
push esi
mov ecx, edi
call fcn.004cf472
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x4ce28c
call esi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x4ce2a2
mov esi, 0x80004005
jmp 0x4ce2a2
push 0xffffffffffffffff
push esi
mov ecx, edi
call fcn.004cf472
mov esi, 0x8007000e
lea ecx, [ebp - 0x1c]
call fcn.004cf749
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ce2b3
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x18]
call fcn.004cf709
lea ecx, [ebp - 0x18]
call fcn.004d012c
push str.SeDebugPrivilege
lea ecx, [ebp - 0x18]
call fcn.004cfae8
xor esi, esi
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x4ce305
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4ce2fe
call fcn.004cb62d
mov esi, eax
jmp 0x4ce30f
mov esi, 0x80004005
jmp 0x4ce30f
mov dword [edi + 0x230], 1
lea ecx, [ebp - 0x18]
call fcn.004cf749
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4ceb2e
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov ebx, ecx
lea ecx, [ebp - 0x18]
push edi
call fcn.004cf709
lea ecx, [ebp - 0x18]
call fcn.004d012c
push str.SeDebugPrivilege
lea ecx, [ebp - 0x18]
call fcn.004cfae8
mov ecx, ebx
call fcn.004cead1
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4cebb3
cmp dword [ebx + 0x18], 0
jne 0x4ceb8a
push 0x54ca58
lea ecx, [ebx + 0x14]
call fcn.004cf02c
mov edi, eax
test edi, edi
js 0x4cebcf
mov ecx, dword [ebp + 8]
mov edi, 0x7ff7
push edi
call fcn.004c7772
push edi
push eax
push esi
lea eax, [ebx + 0x14]
push eax
call fcn.004ceaf5
mov ecx, dword [ebp + 8]
mov edi, eax
push edi
call fcn.004cd175
test edi, edi
jne 0x4cebcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4cebc6
call fcn.004cb62d
mov edi, eax
jmp 0x4cebcf
mov edi, 0x80004005
jmp 0x4cebcf
xor edi, edi
test esi, esi
je 0x4cebda
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x18]
call fcn.004cf749
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4cebed
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x57a120]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea ecx, [ebp - 0x254]
push edi
mov edi, dword [ebp + 8]
call fcn.004cf709
lea ecx, [ebp - 0x254]
call fcn.004d012c
push str.SeDebugPrivilege
lea ecx, [ebp - 0x254]
call fcn.004cfae8
call fcn.004c5a90
push eax
lea ecx, [ebp - 0x23c]
call fcn.004c65c1
lea eax, [ebp - 0x23c]
mov ecx, esi
push eax
call fcn.004cee02
test eax, eax
jns 0x4cecea
lea eax, [ebp - 0x23c]
mov ecx, esi
push eax
call fcn.004ceb2e
test eax, eax
jns 0x4cecea
and dword [ebp - 0x238], 0
mov ecx, esi
and dword [ebp - 8], 0
call fcn.004cead1
push eax
lea ecx, [ebp - 0x238]
call fcn.004ce89c
test eax, eax
jne 0x4ceca6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4cec9f
call fcn.004cb62d
mov esi, eax
jmp 0x4cecbe
mov esi, 0x80004005
jmp 0x4cecbe
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x238]
call fcn.004ced32
mov esi, eax
test esi, esi
jns 0x4cecd5
cmp dword [ebp - 0x238], 0
je 0x4ced05
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4ced05
cmp dword [ebp - 0x238], 0
je 0x4cecea
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x23c]
call fcn.004cd91a
lea eax, [ebp - 0x23c]
mov ecx, edi
push eax
call fcn.004c66f6
xor esi, esi
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
call fcn.004c77e2
lea ecx, [ebp - 0x254]
call fcn.004cf749
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004f3b66
mov esp, ebp
pop ebp
ret 4

Function at 0x4cee02
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x18]
call fcn.004cf709
lea ecx, [ebp - 0x18]
call fcn.004d012c
push str.SeDebugPrivilege
lea ecx, [ebp - 0x18]
call fcn.004cfae8
mov ecx, edi
call fcn.004cead1
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x4cee5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4cee57
call fcn.004cb62d
mov edi, eax
jmp 0x4ceeb5
mov edi, 0x80004005
jmp 0x4ceeb5
cmp dword [edi + 0x18], 0
jne 0x4cee96
push 0x54ca58
lea ecx, [edi + 0x14]
call fcn.004cf02c
test eax, eax
jns 0x4cee96
mov ecx, dword [ebp + 8]
mov edi, 0x7ff7
push edi
call fcn.004c7772
push edi
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
mov ecx, dword [ebp + 8]
push eax
call fcn.004cd175
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4ceea9
call fcn.004cb62d
mov edi, eax
jmp 0x4ceeae
mov edi, 0x80004005
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x18]
call fcn.004cf749
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4d0537
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4d0545
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
not ecx
mov ebx, 0xff
cmp esi, 8
jl 0x4d0602
push edi
mov edi, esi
shr edi, 3
imul eax, edi, 0xfffffff8
add esi, eax
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x54ca78]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x54ca78]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x54ca78]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x54ca78]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x54ca78]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x54ca78]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x54ca78]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x54ca78]
dec edi
jne 0x4d0568
pop edi
test esi, esi
je 0x4d061b
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x54ca78]
inc edx
dec esi
jne 0x4d0606
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret
Function at 0x4d1d6f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x57a120]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], esi
push edi
mov edi, ecx
test esi, esi
jne 0x4d1da1
xor ebx, ebx
push ebx
push ebx
push ebx
push 2
call fcn.004d459c
xor al, al
jmp 0x4d1edb
call fcn.004d14d1
or dword [edi + 8], 0xffffffff
xor ebx, ebx
or dword [edi + 4], 0xffffffff
push 2
push ebx
push esi
call fcn.004f6b4e
push esi
call fcn.004f6f61
push ebx
push ebx
push esi
mov dword [ebp - 0x24], eax
call fcn.004f6b4e
mov esi, dword [ebp - 0x24]
add esp, 0x1c
test esi, esi
jne 0x4d1ddd
push ebx
push ebx
push ebx
push 0xd
mov ecx, edi
jmp 0x4d1d95
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], ebx
mov byte [ebp - 0x1c], bl
call fcn.0041d3e0
lea eax, [esi + 1]
push eax
call fcn.004f3b58
push dword [ebp - 0x2c]
mov esi, eax
push 1
push dword [ebp - 0x24]
mov dword [ebp - 0x28], esi
push esi
mov byte [esi], bl
call fcn.004f6a13
add esp, 0x14
cmp eax, 1
je 0x4d1e31
push esi
call fcn.004f3b61
pop ecx
push ebx
push ebx
push ebx
push 2
mov ecx, edi
call fcn.004d459c
jmp 0x4d1ec4
mov edx, dword [ebp - 0x24]
mov ecx, esi
mov eax, ecx
mov byte [eax + edx], bl
cmp byte [eax], bl
je 0x4d1e91
mov al, byte [esi]
cmp al, 0xa
jne 0x4d1e57
mov eax, esi
sub eax, ecx
inc eax
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00405fa0
inc esi
jmp 0x4d1e88
cmp al, 0xd
jne 0x4d1e8c
mov eax, esi
sub eax, ecx
test eax, eax
jle 0x4d1e6d
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00405fa0
push 0xa
push 1
lea ecx, [ebp - 0x1c]
call fcn.00406090
lea eax, [esi + 1]
cmp byte [eax], 0xa
jne 0x4d1e86
add esi, 2
jmp 0x4d1e88
mov esi, eax
mov ecx, esi
jmp 0x4d1e8d
inc esi
cmp byte [esi], bl
jne 0x4d1e3f
sub esi, ecx
je 0x4d1e9f
push esi
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00405fa0
push dword [ebp - 0x28]
call fcn.004f3b61
cmp dword [ebp - 8], 0x10
mov eax, dword [edi]
pop ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x1c]
push ebx
push ecx
mov ecx, edi
call dword [eax + 8]
cmp byte [edi + 0x40], bl
je 0x4d1ec9
mov byte [ebp - 0x1d], bl
jmp 0x4d1ecd
mov byte [ebp - 0x1d], 1
push ebx
push 1
lea ecx, [ebp - 0x1c]
call fcn.004062e0
mov al, byte [ebp - 0x1d]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f3b66
mov esp, ebp
pop ebp
ret 8
Function at 0x4d5ce5
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
call fcn.004c8f86
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4d5d92
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x200000
ja 0x4d5d91
mov ecx, dword [ebp + 0xc]
lea eax, [edi + 1]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp + 8], edi
call fcn.004c943a
mov edx, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov eax, edi
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d5d91
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4d5d91
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
sub eax, ecx
add edx, ecx
mov dword [ebp + 8], eax
mov dword [ebp - 8], edx
test eax, eax
jne 0x4d5d46
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
mov byte [eax + edi], bl
call fcn.004d59aa
test esi, esi
je 0x4d5d8e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4d992f
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x57a120]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x248], eax
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x234], ebx
push ebx
push eax
mov esi, ebx
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x230], ebx
call fcn.004f3a90
add esp, 0xc
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x23c], ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4d99a0
xor eax, eax
jmp 0x4d9b16
push edi
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4d9af4
test esi, esi
je 0x4d99cf
push esi
call edi
xor esi, esi
cmp dword [ebp - 0x234], 0
je 0x4d99e7
push dword [ebp - 0x234]
call edi
and dword [ebp - 0x234], 0
lea eax, [ebp - 0x20c]
push str.explorer.exe
push eax
call fcn.004f5a84
pop ecx
pop ecx
test eax, eax
jne 0x4d9ab1
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x4d9ab1
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x240], eax
jne 0x4d9ab1
push dword [ebp - 0x228]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4d9ab1
lea eax, [ebp - 0x234]
push eax
push 0xf01ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4d9ab1
and dword [ebp - 0x238], 0
lea eax, [ebp - 0x23c]
and dword [ebp - 0x23c], 0
push eax
lea eax, [ebp - 0x238]
push eax
push 1
push dword [ebp - 0x234]
call fcn.004d9715
add esp, 0x10
test eax, eax
je 0x4d9ab1
mov eax, dword [ebp - 0x238]
push dword [eax]
call fcn.004d9845
pop ecx
push dword [ebp - 0x238]
test eax, eax
je 0x4d9ac8
call fcn.004d9697
and dword [ebp - 0x238], 0
pop ecx
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4d99c6
jmp 0x4d9aed
mov ecx, dword [ebp - 0x248]
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x244], 1
mov dword [ecx], eax
call fcn.004d9697
and dword [ebp - 0x238], 0
pop ecx
test esi, esi
je 0x4d9af4
push esi
call edi
cmp dword [ebp - 0x234], 0
je 0x4d9b0c
push dword [ebp - 0x234]
call edi
and dword [ebp - 0x234], 0
push ebx
call edi
mov eax, dword [ebp - 0x244]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004f3b66
mov esp, ebp
pop ebp
ret