joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50e0c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59cbb8
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x6071d4]
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 ebx, edx
mov dword [ebp - 0x258], ecx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x50e229
push 0x228
lea eax, [ebp - 0x250]
push 0
push eax
call fcn.0056a7a0
add esp, 0xc
mov dword [ebp - 0x254], 0x22c
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x50e21e
nop dword [eax]
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [ebp - 0x230], ax
je 0x50e185
lea eax, [ebp - 0x230]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x50e176
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x28]
call fcn.004a96a0
mov ecx, dword [ebp - 0x258]
lea esi, [ebp - 0x28]
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 8
cmovae esi, dword [ebp - 0x28]
call fcn.004a9460
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x50e1d8
mov eax, dword [ebp - 0x24c]
mov ecx, ebx
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x25c]
push eax
call fcn.0050e900
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x50e1f4
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004a9d40
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x254]
push eax
push edi
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x50e150
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x50e22c
or eax, 0xffffffff
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.0053b526
mov esp, ebp
pop ebp
ret
Function at 0x513fb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1090
call fcn.0053c070
mov eax, dword [0x6071d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
mov dword [ebp - 0x108c], ecx
mov eax, dword [ecx + 0x10]
lea edx, [eax*2 + 2]
mov eax, dword [ebx]
mov dword [eax], edx
cmp dword [ecx + 0x14], 8
jb 0x513ff0
mov ecx, dword [ecx]
mov dword [ebp - 0x108c], ecx
mov eax, dword [ebx]
mov esi, dword [eax]
test esi, esi
je 0x514173
push edi
nop dword [eax]
cmp esi, 0x1000
jbe 0x514016
mov edi, 0x1000
mov byte [ebp - 0x1088], 0x20
jmp 0x51404c
mov eax, dword [ebp + 0xc]
mov edi, esi
sub eax, 1
je 0x514045
sub eax, 1
je 0x51403c
sub eax, 1
je 0x514033
mov byte [ebp - 0x1088], 0x23
jmp 0x51404c
mov byte [ebp - 0x1088], 0x7e
jmp 0x51404c
mov byte [ebp - 0x1088], 0x24
jmp 0x51404c
mov byte [ebp - 0x1088], 0x40
push edi
push ecx
lea eax, [ebp - 0x1087]
push eax
call fcn.0056a220
add esp, 0xc
lea eax, [edi + 1]
mov dword [ebp - 0x1090], eax
push 0
push dword [ebx + 0xc]
push eax
lea eax, [ebp - 0x1088]
push eax
mov eax, dword [ebx + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebx + 4]
mov dword [ecx], eax
mov eax, dword [ebx + 4]
cmp dword [eax], 0
je 0x5140c9
mov eax, dword [ebx + 0xc]
lea ecx, [edi + 1]
cmp ecx, dword [eax]
jne 0x5140c9
mov eax, dword [ebx + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [ebp - 0x108c]
add ecx, edi
mov dword [ebp - 0x108c], ecx
sub esi, edi
jne 0x514000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b526
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp + 0xc], 0
je 0x514172
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.0056a7a0
mov eax, dword [ebx + 4]
add esp, 0xc
cmp dword [eax], 0
jne 0x514151
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x514127
push str.Finished_writing:_the_pipe_has_been_closed
lea eax, [ebp - 0x84]
push 0x7f
push eax
call fcn.00513830
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b526
mov esp, ebp
pop ebp
ret 8
push eax
push str.Error_writing_to_the_pipe___d_
lea eax, [ebp - 0x84]
push 0x7f
push eax
call fcn.00513830
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b526
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 0xc]
push dword [eax]
lea eax, [ebp - 0x84]
push dword [ebp - 0x1090]
push str.Warning._Writing_to_the_pipe__d_bytes___wrote__d_bytes
push 0x7f
push eax
call fcn.00513830
add esp, 0x14
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0053b526
mov esp, ebp
pop ebp
ret 8
Function at 0x514790
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d726
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x6071d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
cmp byte [esi], 0
jne 0x5147d1
mov esi, 0xffffffe9
jmp 0x514939
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
lea eax, [ebp + 8]
mov dword [ebp - 0x18], 0
push eax
call fcn.004a99e0
push 0x5df834
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004a94b0
push 0x5dff60
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.004a94b0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x28]
call fcn.0051a660
mov eax, dword [ebp - 0x44]
add esp, 4
cmp eax, 8
jb 0x514841
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004a9d40
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x51486e
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004a9d40
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00514d60
lea eax, [ebp - 0x28]
push eax
lea edx, [esi + 4]
lea ecx, [ebp - 0x40]
call fcn.004b0470
add esp, 4
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x5148c6
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x5148a9
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004a9d40
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.004a9850
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x5148df
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004a9d40
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push 0
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
push ecx
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x51490e
call dword [sym.imp.KERNEL32.dll_GetLastError]
or esi, 0xffffffff
jmp 0x514910
xor esi, esi
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x514925
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004a9d40
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x51494e
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.004a9d40
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053b526
mov esp, ebp
pop ebp
ret 0x18
Function at 0x514d60
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d7f8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x6071d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x44]
push 1
xor eax, eax
mov dword [ebp - 0x30], 7
push 0x5e0150
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
call fcn.004a96a0
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 0
push eax
mov edx, esi
lea ecx, [ebp - 0x50]
call fcn.0051afa0
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x514de4
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.004a9d40
xor eax, eax
mov dword [ebp - 0x30], 7
xor ecx, ecx
mov word [ebp - 0x44], ax
push 0xffffffffffffffff
push ecx
lea eax, [edi + 4]
mov word [ebp - 0x2c], cx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
call fcn.004a99e0
mov byte [ebp - 4], 3
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x4c]
xor edi, edi
mov esi, dword [ebp - 0x50]
sub ecx, esi
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea eax, [ecx - 1]
test eax, eax
je 0x514ec0
xor ebx, ebx
cmp ecx, edi
jbe 0x514f41
push 0xffffffffffffffff
push 0
lea eax, [esi + ebx]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004af740
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x514e88
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
movzx eax, word [eax + ecx*2 - 2]
cmp eax, 0x5c
je 0x514e88
cmp eax, 0x2f
je 0x514e88
push 0x5c
push 1
lea ecx, [ebp - 0x2c]
call fcn.004a97a0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x4c]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x50]
inc edi
sub ecx, esi
add ebx, 0x18
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea eax, [ecx - 1]
cmp edi, eax
jb 0x514e43
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x514ed8
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004a9d40
mov esi, dword [ebp - 0x50]
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
test esi, esi
je 0x514f21
push dword [ebp - 0x54]
mov edx, dword [ebp - 0x4c]
push ecx
mov ecx, esi
call fcn.004b1ee0
mov ecx, dword [ebp - 0x48]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x50]
add esp, 8
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.004afe80
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 - 0x14]
xor ecx, ebp
call fcn.0053b526
mov esp, ebp
pop ebp
ret 4
call fcn.004af320
int3
Function at 0x515100
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d896
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x6071d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
lea edx, [ecx + 4]
push eax
lea ecx, [ebp - 0x44]
call fcn.004b0470
push 0x5e0150
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004b0740
add esp, 8
mov edi, eax
cmp esi, edi
je 0x515199
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x515172
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.004a9d40
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x51518a
mov eax, dword [esi]
jmp 0x51518c
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.004a9850
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x5151ae
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004a9d40
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
cmp eax, 8
jb 0x5151d7
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.004a9d40
cmp dword [esi + 0x14], 8
jb 0x5151df
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp + 0x20]
cmp eax, 8
jb 0x5151fd
inc eax
lea ecx, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call fcn.004a9d40
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0053b526
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x516610
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x6071d4]
xor eax, esp
mov dword [esp + 0x258], eax
cmp dword [ecx + 0x14], 8
push esi
mov esi, edx
jb 0x516635
mov ecx, dword [ecx]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x51666d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [esp + 8]
shr al, 4
and al, 1
mov byte [esi], al
xor eax, eax
pop esi
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.0053b526
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
or ecx, 0xffffffff
mov edx, 0xffffffe4
cmp eax, 2
pop esi
cmove ecx, edx
mov eax, ecx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.0053b526
mov esp, ebp
pop ebp
ret

Function at 0x5166a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, edx
mov ebx, 0xffffffe5
mov eax, dword [esi]
mov dword [esi + 4], eax
cmp dword [ecx + 0x14], 8
jb 0x5166bc
mov ecx, dword [ecx]
push 0
push 0
push 3
push 0
push 7
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x516777
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x516763
lea ecx, [edi + 1]
push ecx
call fcn.0056da06
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
je 0x516763
push 0
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push edi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x516757
mov ecx, dword [ebp - 4]
cmp ecx, edi
jne 0x516757
mov eax, dword [esi + 8]
sub eax, dword [esi]
cmp eax, ecx
jae 0x516739
push ecx
mov ecx, esi
call fcn.00516ac0
mov ecx, dword [ebp - 4]
push ecx
mov ecx, esi
call fcn.00516a20
mov edx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov ecx, dword [esi]
push edx
push edi
call fcn.00515c30
add esp, 8
xor ebx, ebx
jmp 0x51675a
mov edi, dword [ebp - 8]
push edi
call fcn.0056d998
add esp, 4
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
mov ecx, 0xffffffe5
pop edi
cmove ebx, ecx
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x516780
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0
push 0
mov dword [ebp - 4], ecx
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, eax
test ebx, ebx
je 0x5167ea
xor ecx, ecx
mov edx, 2
mul edx
push edi
push 0x5c2c09
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0053be12
mov edi, eax
add esp, 8
test edi, edi
je 0x5167e1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x5167d8
mov ecx, dword [ebp - 4]
push edi
call fcn.004aef90
xor esi, esi
push edi
call fcn.0053b9ee
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x516f60
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x516ffc
push edi
call fcn.0056da06
add esp, 4
mov dword [esi + 0x38], eax
test eax, eax
je 0x516ffc
push eax
push edi
push 0
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x516ffc
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x5e0150
push dword [esi + 0x38]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x516ffc
mov eax, dword [ebp - 4]
movups xmm0, xmmword [eax]
movups xmmword [esi + 4], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esi + 0x14], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [esi + 0x24], xmm0
mov eax, dword [eax + 0x30]
mov dword [esi + 0x34], eax
xor eax, eax
cmp dword [esi + 4], 0xfeef04bd
sete al
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x48]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x518120
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x6071d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x44
lea eax, [ebp - 0x60]
mov edi, edx
push 0
push eax
mov ebx, ecx
call fcn.0056a7a0
add esp, 0xc
mov dword [ebp - 0x60], 0x44
xorps xmm0, xmm0
xor esi, esi
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 8], esi
push str.Wow64DisableWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x518187
lea ecx, [ebp - 8]
push ecx
mov ecx, eax
call dword [0x5a143c]
call dword [ebp - 0xc]
cmp dword [edi + 0x14], 8
jb 0x51818f
mov edi, dword [edi]
cmp dword [ebx + 0x14], 8
jb 0x518197
mov ebx, dword [ebx]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0x8000000
push 1
push 0
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x5181ce
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x5181d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp - 8], 0
je 0x518206
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x518206
push dword [ebp - 8]
mov ecx, edi
call dword [0x5a143c]
call edi
test esi, esi
je 0x518259
cmp esi, 2
jb 0x518243
cmp esi, 3
jbe 0x51822d
cmp esi, 5
jne 0x518243
pop edi
lea eax, [esi - 0x1b]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b526
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xffffffe4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b526
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xffffffe5
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b526
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053b526
mov esp, ebp
pop ebp
ret

Function at 0x518270
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, edx
push esi
or esi, 0xffffffff
mov dword [ebx], 0
test ecx, ecx
je 0x518307
push edi
push ecx
push 0
push 0x409
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x5182f5
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x5182cb
xor esi, esi
mov dword [ebx], 1
push edi
lea ebx, [esi - 0x16]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
pop edi
cmove esi, ebx
mov eax, esi
pop esi
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
mov ebx, 0xffffffea
push edi
cmove esi, ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
pop edi
cmove esi, ebx
mov eax, esi
pop esi
pop ebx
ret
mov ebx, 0xffffffea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
pop edi
cmove esi, ebx
mov eax, esi
pop esi
pop ebx
ret
Function at 0x518810
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or esi, 0xffffffff
mov dword [ebp - 0x10], ecx
xor edi, edi
cmp dword [ebx + 0x14], 8
jb 0x51882e
mov eax, dword [ebx]
jmp 0x518830
mov eax, ebx
lea edx, [ebp - 8]
push edx
push 0
lea edx, [ebp - 0xc]
push edx
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5189b9
push dword [ebp - 8]
call fcn.0053ba01
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x5189b9
cmp dword [ebx + 0x14], 8
jb 0x51886b
mov ebx, dword [ebx]
lea ecx, [ebp - 8]
push ecx
push eax
mov eax, dword [ebp - 0x10]
push 0
push 0
push ebx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5189b9
cmp dword [ebp - 0xc], 1
mov ecx, dword [ebp - 8]
jne 0x5188c4
test ecx, ecx
je 0x5188c4
lea eax, [ecx + 4]
push eax
mov dword [ebp - 0x10], eax
call fcn.0053ba01
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5188bd
push dword [ebp - 0x10]
push 0
push ebx
call fcn.0056a7a0
mov ecx, dword [ebp - 8]
add esp, 0xc
jmp 0x5188c7
mov ecx, dword [ebp - 8]
xor ebx, ebx
jmp 0x5188c7
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
sub eax, 1
je 0x51896b
sub eax, 1
je 0x51891b
sub eax, 2
je 0x5188e7
mov esi, 0xffffffe1
jmp 0x5189a0
push 0x16
call fcn.0053ba01
mov edi, eax
add esp, 4
test edi, edi
je 0x5189a0
mov ebx, dword [ebp - 4]
push 0xa
push edi
push dword [ebx]
call fcn.0057a861
mov ecx, dword [ebp + 0xc]
add esp, 0xc
push eax
call fcn.004aef90
xor esi, esi
jmp 0x5189a3
mov ebx, dword [ebp - 4]
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x5189a3
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0053ba01
mov edi, eax
add esp, 4
test edi, edi
je 0x5189a3
push dword [ebp - 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x5189a3
mov ecx, dword [ebp + 0xc]
push edi
call fcn.004aef90
xor esi, esi
jmp 0x5189a3
test ecx, ecx
jne 0x51897e
mov ecx, dword [ebp + 0xc]
push 0x5df834
call fcn.004aef90
jmp 0x5189a0
mov esi, dword [ebp - 4]
push ecx
push esi
push ebx
call fcn.0056a220
push esi
call fcn.0053b9ee
mov ecx, dword [ebp + 0xc]
add esp, 0x10
mov dword [ebp - 4], ebx
push ebx
call fcn.004aef90
xor esi, esi
mov ebx, dword [ebp - 4]
push ebx
call fcn.0053b9ee
add esp, 4
test edi, edi
je 0x5189b9
push edi
call fcn.0053b9ee
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x519c10
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
mov dword [ebp - 4], eax
jb 0x519c2f
mov esi, dword [edi]
jmp 0x519c31
mov esi, edi
lea ebx, [eax + eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x519c51
nop
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x519c40
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0xc]
and eax, edx
mov ebx, dword [ebx + 4]
mov esi, dword [ecx + eax*8]
add eax, eax
mov edx, dword [ecx + eax*4]
inc eax
mov dword [ebp - 8], edx
lea eax, [ecx + eax*4]
mov dword [ebp - 0xc], eax
cmp edx, ebx
jne 0x519c79
mov eax, ebx
jmp 0x519c7d
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x519cf0
cmp dword [edi + 0x14], 8
lea ecx, [esi + 8]
jb 0x519c8e
mov eax, dword [edi]
jmp 0x519c90
mov eax, edi
cmp dword [ecx + 0x14], 8
lea edx, [ecx + 0x10]
jb 0x519c9b
mov ecx, dword [ecx]
push dword [ebp - 4]
mov edx, dword [edx]
push eax
call fcn.004af3c0
add esp, 8
test eax, eax
je 0x519cb7
mov esi, dword [esi]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
jmp 0x519c71
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
lea ecx, [eax + 0x10]
jb 0x519cc5
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
jb 0x519ccd
mov edi, dword [edi]
push dword [ecx]
mov edx, dword [ebp - 4]
mov ecx, edi
push eax
call fcn.004af3c0
add esp, 8
test eax, eax
mov eax, dword [ebp + 8]
cmovne esi, ebx
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [eax], ebx
pop ebx
mov esp, ebp
pop ebp
ret 8