joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bc0c4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x63d284]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [edx]
push ebx
push esi
mov esi, dword [eax]
mov ebx, ecx
push edi
lea edi, [ebp - 0x14]
sub edx, esi
push 0x10
sub edi, esi
pop ecx
mov al, byte [edx + esi]
xor al, byte [esi]
mov byte [edi + esi], al
inc esi
sub ecx, 1
jne 0x4bc0ea
mov edi, dword [ebx]
xor eax, eax
xor esi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ecx, esi
call fcn.004bc090
and eax, reloc.WS2_32.dll_ntohs
jns 0x4bc115
dec eax
or eax, 0xfffffff0
inc eax
mov cl, byte [ebp + eax - 0x14]
mov eax, dword [ebx]
xor cl, byte [ebp + esi - 0x14]
mov byte [esi + eax], cl
inc esi
cmp esi, 0x10
jl 0x4bc102
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056cd75
leave
ret

Function at 0x4bc3f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
mov dword [esi], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4bc40a
mov eax, dword [eax]
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x10], edi
push ecx
push dword [ebp + 0x1c]
push 0
push eax
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4bc45b
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
cmp dword [eax + 0x14], 8
jb 0x4bc432
mov eax, dword [eax]
lea ecx, [ebp + 0x14]
mov dword [ebp + 0x14], 4
push ecx
push esi
lea ecx, [ebp + 8]
push ecx
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4bc45b
cmp dword [ebp + 8], 4
jne 0x4bc45b
lea esi, [eax + 1]
jmp 0x4bc45d
xor esi, esi
test edi, edi
je 0x4bc468
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x4bc990
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d9acd
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x63d284]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4bc9ce
mov eax, dword [eax]
mov esi, dword [ebp + 0x18]
lea ecx, [ebp + 8]
push ecx
push esi
push 0
push eax
push dword [ebp + 0x14]
mov dword [ebp + 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4bca6b
mov edi, dword [ebp + 0xc]
and esi, 0x300
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x1c], ebx
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x18], esi
jb 0x4bca0c
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
push ecx
push 0
lea ecx, [ebp + 8]
push ecx
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4bca6b
cmp dword [ebp + 8], 3
jne 0x4bca6b
mov esi, dword [ebp + 0x10]
mov ecx, esi
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
mov eax, dword [ebp - 0x10]
inc eax
push eax
call fcn.004bfcd0
cmp dword [edi + 0x14], 8
jb 0x4bca48
mov edi, dword [edi]
lea eax, [ebp - 0x10]
push eax
push dword [esi]
lea eax, [ebp + 8]
push eax
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4bca6b
cmp dword [ebp + 8], 3
jne 0x4bca6b
lea esi, [eax + 1]
jmp 0x4bca6d
xor esi, esi
test ebx, ebx
je 0x4bca78
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4bca90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push esi
xor esi, esi
cmp dword [eax + 0x14], 8
push edi
jb 0x4bcaa5
mov eax, dword [eax]
lea ecx, [ebp - 8]
mov dword [ebp + 8], esi
push ecx
lea ecx, [ebp + 8]
push ecx
push 0
push dword [ebp + 0x18]
push 0
push 0
push 0
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4bcaf8
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
cmp dword [ecx + 0x14], 8
jb 0x4bcad7
mov ecx, dword [ecx]
mov eax, dword [ebp + 0x10]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 4
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4bcaf8
lea edi, [eax + 1]
jmp 0x4bcafa
xor edi, edi
test esi, esi
je 0x4bcb05
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4bcb10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
mov ecx, dword [ebp + 0x28]
push esi
xor esi, esi
cmp dword [eax + 0x14], 8
push edi
mov edi, dword [ebp + 0xc]
jb 0x4bcb2b
mov eax, dword [eax]
lea edx, [ebp - 8]
mov dword [ebp - 4], esi
push edx
lea edx, [ebp - 4]
push edx
push 0
push dword [ebp + 0x2c]
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4bcb9e
cmp dword [ebp + 0x24], 8
lea edx, [ebp + 0x10]
mov esi, dword [ebp - 4]
cmovae edx, dword [ebp + 0x10]
cmp dword [edi + 0x14], 8
jb 0x4bcb63
mov edi, dword [edi]
test edx, edx
je 0x4bcb9e
mov ecx, edx
push ebx
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bcb70
sub ecx, ebx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ebx
test eax, eax
jne 0x4bcb9e
lea edi, [eax + 1]
jmp 0x4bcba0
xor edi, edi
test esi, esi
je 0x4bcbab
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x24]
cmp edx, 8
jb 0x4bcbe1
mov ecx, dword [ebp + 0x10]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4bcbd7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bcbe9
push edx
push ecx
call fcn.0056c61e
add esp, 8
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0057da80
int3

Function at 0x4bcbf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp dword [eax + 0x14], 8
jb 0x4bcc03
mov eax, dword [eax]
lea ecx, [ebp - 4]
mov dword [ebp + 8], edi
push ecx
lea ecx, [ebp + 8]
push ecx
push 0
push dword [ebp + 0x18]
push 0
push 0
push 0
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4bcc56
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
sub ecx, edx
cmp dword [eax + 0x14], 8
jb 0x4bcc3f
mov eax, dword [eax]
push ecx
push edx
push 3
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4bcc56
lea esi, [eax + 1]
jmp 0x4bcc58
xor esi, esi
test edi, edi
je 0x4bcc63
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4bcc70
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push edi
cmp dword [eax + 0x14], 8
jb 0x4bcc82
mov eax, dword [eax]
lea ecx, [ebp + 8]
mov dword [ebp + 8], esi
push ecx
push dword [ebp + 0x14]
push 0
push eax
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4bccbb
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4bccaa
mov eax, dword [eax]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x4bccbb
lea edi, [eax + 1]
jmp 0x4bccbd
xor edi, edi
test esi, esi
je 0x4bccc8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x4d3110
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x63d284]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x4d314a
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056cd75
mov esp, ebp
pop ebp
ret
push ebx
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.00573610
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4d31b2
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4d318d
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x20c]
push ecx
push eax
call fcn.00597f62
add esp, 0xc
test eax, eax
je 0x4d31cc
lea eax, [ebp - 0x230]
push eax
push edi
call ebx
test eax, eax
jne 0x4d3183
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056cd75
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x228]
xor ecx, ebp
pop ebx
pop edi
pop esi
call fcn.0056cd75
mov esp, ebp
pop ebp
ret
Function at 0x4d4060
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x63d284]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0
push 2
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x238], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4d4097
xor edx, edx
jmp 0x4d40f5
push ebx
push edi
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.00573610
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4d40ea
mov edi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp edi, dword [ebp - 0x228]
je 0x4d4115
lea eax, [ebp - 0x230]
push eax
push esi
call ebx
test eax, eax
jne 0x4d40d4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
pop edi
pop ebx
mov ecx, dword [ebp - 0x234]
call fcn.004d3cf0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x234]
xor ecx, ebp
pop esi
call fcn.0056cd75
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x218]
jmp 0x4d40f3
Function at 0x4d4580
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5daf4d
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x63d284]
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 + 8]
mov edi, dword [ebp + 0xc]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x258], eax
cmp eax, 0xffffffff
je 0x4d46fc
mov ecx, edi
call fcn.004cdba0
push 0x228
lea eax, [ebp - 0x250]
push 0
push eax
call fcn.00573610
add esp, 0xc
mov dword [ebp - 0x254], 0x22c
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4d46f0
nop dword [eax]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4d461a
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x230]
push ecx
push eax
call fcn.00597f62
add esp, 0xc
test eax, eax
jne 0x4d46d5
mov edx, dword [ebp - 0x24c]
lea ecx, [ebp - 0x28]
call fcn.004d4130
mov dword [ebp - 4], 0
mov ecx, dword [edi + 4]
cmp ecx, dword [edi + 8]
je 0x4d468f
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
add dword [edi + 4], 0x18
jmp 0x4d4698
push eax
push ecx
mov ecx, edi
call fcn.00446fa8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4d46d5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d46cb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d4717
push edx
push ecx
call fcn.0056c61e
add esp, 8
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4d4610
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.0056cd75
mov esp, ebp
pop ebp
ret
call fcn.0057da80
int3
Function at 0x4d4720
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x63d284]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [0x64a010]
test eax, eax
jne 0x4d4804
lea eax, [esp + 4]
mov dword [esp + 8], 0x10
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4d478e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4d47ff
mov dword [0x64a010], 1
mov eax, 1
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0056cd75
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0xc]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x4d47aa
push dword [esp + 4]
jmp 0x4d47f9
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], eax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x18], 1
push eax
push 0x10
lea eax, [esp + 0x20]
mov dword [esp + 0x28], ecx
push eax
push 0
push dword [esp + 0x18]
mov dword [esp + 0x38], VariantCopyInd
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [esp + 4]
test eax, eax
je 0x4d47f9
mov dword [0x64a010], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x64a010]
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0056cd75
mov esp, ebp
pop ebp
ret

Function at 0x4d4820
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call fcn.004d4720
push dword [ebp + 8]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x4d4845
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 1
pop ebp
ret
Function at 0x4d7da0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
cmp dword [esi + 0x14], 8
jb 0x4d7db1
mov esi, dword [esi]
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x14], 8
jb 0x4d7dbc
mov edi, dword [edi]
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x14], 8
jb 0x4d7dc7
mov ebx, dword [ebx]
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 0
mov byte [ebp + 0x13], 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x4d7e66
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4d7e66
mov eax, dword [ebp + 0xc]
add eax, eax
push eax
call fcn.00591cad
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
jne 0x4d7e0d
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret
lea ecx, [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x4d7e5b
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x4d7e3f
push dword [ebp + 8]
mov byte [ebp + 0x13], 0
call fcn.0057e74c
mov al, byte [ebp + 0x13]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
push dword [ebp + 8]
mov edx, edi
mov ecx, ebx
push dword [ebp + 0x14]
push esi
call fcn.004f2ee0
add esp, 0xc
mov byte [ebp + 0x13], al
call dword [sym.imp.ole32.dll_CoUninitialize]
push dword [ebp + 8]
call fcn.0057e74c
add esp, 4
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4e5420
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x4e5435
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 0x78]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4e5445
push eax
call edi
mov eax, dword [esi + 0x74]
test eax, eax
je 0x4e544f
push eax
call edi
lea eax, [esi + 0x5c]
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
cmp dword [eax + 0x14], 8
jb 0x4e546f
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x74], eax
cmp eax, 0xffffffff
jne 0x4e549f
mov dword [esi + 0x74], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
mov edi, dword [ebp + 8]
push 0
push edi
push 0
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0x78], eax
test eax, eax
je 0x4e5497
push edi
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
pop edi
mov dword [esi + 0x7c], eax
pop esi
pop ebp
ret 4
Function at 0x4f2330
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
push ebx
push esi
push edi
test edx, edx
je 0x4f250d
mov esi, edx
lea edi, [ecx + 0x1c]
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4f2350
sub esi, ecx
mov ecx, dword [edi + 0x14]
sar esi, 1
mov dword [ebp - 0xc], ecx
cmp esi, ecx
ja 0x4f238d
mov ebx, edi
cmp ecx, 8
jb 0x4f2372
mov ebx, dword [edi]
mov dword [edi + 0x10], esi
add esi, esi
push esi
push edx
push ebx
call fcn.00572f50
add esp, 0xc
xor eax, eax
mov word [esi + ebx], ax
jmp 0x4f248e
cmp esi, 0x7ffffffe
ja 0x4f2518
mov ebx, esi
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x4f23b4
mov dword [ebp - 8], SysReAllocString
mov eax, 0xfffffffe
jmp 0x4f23f3
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x4f23d1
mov dword [ebp - 8], SysReAllocString
mov eax, 0xfffffffe
jmp 0x4f23f3
lea eax, [edx + ecx]
cmp ebx, eax
cmovb ebx, eax
mov dword [ebp - 8], ebx
lea eax, [ebx + 1]
cmp eax, 0x7fffffff
ja 0x4f253e
add eax, eax
cmp eax, 0x1000
jb 0x4f241a
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4f253e
push ecx
call fcn.00591cad
add esp, 4
test eax, eax
je 0x4f251d
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x4f2435
test eax, eax
je 0x4f2433
push eax
call fcn.00591cad
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4f252b
jmp 0x4f2435
xor ebx, ebx
mov eax, dword [ebp - 8]
mov dword [edi + 0x10], esi
add esi, esi
push esi
push dword [ebp + 8]
mov dword [edi + 0x14], eax
push ebx
call fcn.005729d0
xor eax, eax
add esp, 0xc
mov word [esi + ebx], ax
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x4f248c
lea ecx, [eax*2 + 2]
mov eax, dword [edi]
cmp ecx, 0x1000
jb 0x4f2482
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f2539
mov eax, edx
push ecx
push eax
call fcn.0056c61e
add esp, 8
mov dword [edi], ebx
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4f250d
cmp dword [ebp + 0x10], 0
je 0x4f250d
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4f250d
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 0
jne 0x4f24b9
mov ecx, ebx
call fcn.004f2550
test al, al
je 0x4f250d
cmp dword [edi + 0x14], 8
mov ecx, dword [ebx]
jb 0x4f24c3
mov edi, dword [edi]
mov eax, dword [ecx]
add ebx, 0x34
push ebx
push 0x5f6610
push 0x5f65d0
push edi
push ecx
call dword [eax + 0x20]
test eax, eax
js 0x4f250d
mov ecx, dword [ebx]
test ecx, ecx
je 0x4f250d
mov eax, dword [ecx]
push esi
push ecx
call dword [eax + 0x80]
test eax, eax
js 0x4f250d
mov eax, dword [ebx]
push dword [ebp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x88]
test eax, eax
js 0x4f250d
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.0040791f
push 0x638780
lea eax, [ebp - 1]
push eax
call fcn.0057359b
push 0x638780
lea eax, [ebp + 0xb]
push eax
call fcn.0057359b
call fcn.0057da80
call fcn.00407b84
int3
Function at 0x51e3c9
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x634218
call fcn.0056da10
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x51e430
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x51e430
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x51e430
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x51e430
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x51e439
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x51e512
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [0x64647c]
jmp 0x51e534
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
test esi, esi
jne 0x51e51f
pop esi
leave
ret
Function at 0x51e564
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [0x646474]
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
mov ebx, 0x10000
cmp esi, 0x7ff80000
push edi
mov edi, 0xfff80000
lea eax, [esi - 0x7ff80000]
cmova ebx, eax
cmp esi, 0x80000000
lea eax, [esi + 0x7ff80000]
cmovb edi, eax
mov eax, dword [0x64647c]
test edx, edx
jne 0x51e5b2
test eax, eax
je 0x51e5c5
mov edx, eax
mov dword [0x646474], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x51e5c5
cmp ecx, ebx
jb 0x51e5c5
cmp ecx, edi
jbe 0x51e6a0
mov edx, eax
test eax, eax
jmp 0x51e5e7
test edx, edx
je 0x51e5e2
mov eax, dword [edx + 8]
test eax, eax
je 0x51e5e2
cmp eax, ebx
jb 0x51e5e2
cmp eax, edi
jbe 0x51e6a0
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x646474], edx
jne 0x51e5cb
and esi, 0xffff0000
mov ecx, esi
cmp esi, ebx
jbe 0x51e740
lea eax, [ecx - 0x70000000]
mov edx, 0x6fff0000
cmp eax, 0x10000000
lea eax, [ebp - 0x3c]
push 0x1c
cmovbe ecx, edx
push eax
push ecx
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x51e740
mov eax, 0x10000
cmp dword [ebp - 0x2c], eax
jne 0x51e639
cmp dword [ebp - 0x30], eax
jae 0x51e64b
mov ecx, dword [ebp - 0x38]
add ecx, 0xffff0000
cmp ecx, ebx
ja 0x51e5ff
jmp 0x51e740
push 0x40
push 0x3000
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
mov dword [0x646474], edx
test edx, edx
je 0x51e740
mov eax, dword [0x64647c]
xor ecx, ecx
mov dword [edx + 4], eax
mov esi, 0x7fd
mov dword [edx], 0x52727464
lea eax, [edx + 0xffe0]
mov dword [edx + 8], ecx
mov dword [0x64647c], edx
mov dword [eax + 0x18], ecx
mov ecx, eax
sub eax, 0x20
sub esi, 1
jne 0x51e690
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x51e744
cmp esi, edi
ja 0x51e744
mov ecx, dword [esi + 0x18]
mov eax, 0xcccccccc
mov dword [edx + 8], ecx
mov edi, esi
push 8
pop ecx
rep stosd dword es:[edi], eax
mov eax, esi
jmp 0x51e746
lea eax, [esi - 0x70000000]
mov ecx, 0x80010000
cmp eax, 0x10000000
lea eax, [ebp - 0x20]
push 0x1c
cmovbe esi, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x51e744
mov eax, 0x10000
cmp dword [ebp - 0x10], eax
jne 0x51e738
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
jb 0x51e73b
movzx edx, si
test edx, edx
je 0x51e719
mov esi, dword [ebp - 0x20]
sub eax, edx
sub ecx, eax
add esi, eax
mov dword [ebp - 0x14], ecx
mov eax, 0x10000
mov dword [ebp - 0x20], esi
push 0x40
push 0x3000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
mov dword [0x646474], edx
test edx, edx
jne 0x51e66c
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
add esi, ecx
cmp esi, edi
jb 0x51e6c9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret