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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595008
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x5ff1d4]
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 0x506d49
push 0x228
lea eax, [ebp - 0x250]
push 0
push eax
call fcn.00563230
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 0x506d3e
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 0x506ca5
lea eax, [ebp - 0x230]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x506c96
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x28]
call fcn.004a4ab0
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.004a4870
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x506cf8
mov eax, dword [ebp - 0x24c]
mov ecx, ebx
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x25c]
push eax
call fcn.00507420
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x506d14
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004a5150
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 0x506c70
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x506d4c
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.00533fc6
mov esp, ebp
pop ebp
ret
Function at 0x50cad0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1090
call fcn.00534b20
mov eax, dword [0x5ff1d4]
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 0x50cb10
mov ecx, dword [ecx]
mov dword [ebp - 0x108c], ecx
mov eax, dword [ebx]
mov esi, dword [eax]
test esi, esi
je 0x50cc85
push edi
nop dword [eax]
cmp esi, 0x1000
jbe 0x50cb36
mov edi, 0x1000
mov byte [ebp - 0x1088], 0x20
jmp 0x50cb5e
mov eax, dword [ebp + 0xc]
mov edi, esi
sub eax, 1
je 0x50cb57
sub eax, 1
je 0x50cb4e
mov byte [ebp - 0x1088], 0x23
jmp 0x50cb5e
mov byte [ebp - 0x1088], 0x24
jmp 0x50cb5e
mov byte [ebp - 0x1088], 0x40
push edi
push ecx
lea eax, [ebp - 0x1087]
push eax
call fcn.00562cb0
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 0x50cbdb
mov eax, dword [ebx + 0xc]
lea ecx, [edi + 1]
cmp ecx, dword [eax]
jne 0x50cbdb
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 0x50cb20
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00533fc6
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp + 0xc], 0
je 0x50cc84
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.00563230
mov eax, dword [ebx + 4]
add esp, 0xc
cmp dword [eax], 0
jne 0x50cc63
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x50cc39
push str.Finished_writing:_the_pipe_has_been_closed
lea eax, [ebp - 0x84]
push 0x7f
push eax
call fcn.0050c350
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00533fc6
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.0050c350
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00533fc6
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.0050c350
add esp, 0x14
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00533fc6
mov esp, ebp
pop ebp
ret 8
Function at 0x50d2a0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595b76
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5ff1d4]
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 0x50d2e1
mov esi, 0xffffffe9
jmp 0x50d449
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.004a4df0
push 0x5d843c
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004a48c0
push 0x5d8b58
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.004a48c0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x28]
call fcn.00513120
mov eax, dword [ebp - 0x44]
add esp, 4
cmp eax, 8
jb 0x50d351
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004a5150
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 0x50d37e
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004a5150
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0050d870
lea eax, [ebp - 0x28]
push eax
lea edx, [esi + 4]
lea ecx, [ebp - 0x40]
call fcn.004ab730
add esp, 4
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x50d3d6
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x50d3b9
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004a5150
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.004a4c60
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x50d3ef
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004a5150
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 0x50d41e
call dword [sym.imp.KERNEL32.dll_GetLastError]
or esi, 0xffffffff
jmp 0x50d420
xor esi, esi
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x50d435
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004a5150
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 0x50d45e
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.004a5150
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.00533fc6
mov esp, ebp
pop ebp
ret 0x18
Function at 0x50d870
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595c48
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5ff1d4]
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 0x5d8d50
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
call fcn.004a4ab0
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 0
push eax
mov edx, esi
lea ecx, [ebp - 0x50]
call fcn.00513a60
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x50d8f4
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.004a5150
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.004a4df0
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 0x50d9d0
xor ebx, ebx
cmp ecx, edi
jbe 0x50da51
push 0xffffffffffffffff
push 0
lea eax, [esi + ebx]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004aaa00
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x50d998
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 0x50d998
cmp eax, 0x2f
je 0x50d998
push 0x5c
push 1
lea ecx, [ebp - 0x2c]
call fcn.004a4bb0
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 0x50d953
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x50d9e8
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004a5150
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 0x50da31
push dword [ebp - 0x54]
mov edx, dword [ebp - 0x4c]
push ecx
mov ecx, esi
call fcn.004ad1a0
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.004ab140
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.00533fc6
mov esp, ebp
pop ebp
ret 4
call fcn.004aa5e0
int3
Function at 0x50dc10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595ce6
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5ff1d4]
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.004ab730
push 0x5d8d50
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004aba00
add esp, 8
mov edi, eax
cmp esi, edi
je 0x50dca9
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x50dc82
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.004a5150
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x50dc9a
mov eax, dword [esi]
jmp 0x50dc9c
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.004a4c60
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x50dcbe
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004a5150
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 0x50dce7
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.004a5150
cmp dword [esi + 0x14], 8
jb 0x50dcef
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp + 0x20]
cmp eax, 8
jb 0x50dd0d
inc eax
lea ecx, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call fcn.004a5150
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.00533fc6
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x50f120
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x5ff1d4]
xor eax, esp
mov dword [esp + 0x258], eax
cmp dword [ecx + 0x14], 8
push esi
mov esi, edx
jb 0x50f145
mov ecx, dword [ecx]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x50f17d
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.00533fc6
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.00533fc6
mov esp, ebp
pop ebp
ret

Function at 0x50f1b0
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 0x50f1cc
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 0x50f287
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x50f273
lea ecx, [edi + 1]
push ecx
call fcn.00566443
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
je 0x50f273
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 0x50f267
mov ecx, dword [ebp - 4]
cmp ecx, edi
jne 0x50f267
mov eax, dword [esi + 8]
sub eax, dword [esi]
cmp eax, ecx
jae 0x50f249
push ecx
mov ecx, esi
call fcn.0050f5d0
mov ecx, dword [ebp - 4]
push ecx
mov ecx, esi
call fcn.0050f530
mov edx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov ecx, dword [esi]
push edx
push edi
call fcn.0050e740
add esp, 8
xor ebx, ebx
jmp 0x50f26a
mov edi, dword [ebp - 8]
push edi
call fcn.00566428
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 0x50f290
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 0x50f2fa
xor ecx, ecx
mov edx, 2
mul edx
push edi
push 0x5bbb79
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005348b0
mov edi, eax
add esp, 8
test edi, edi
je 0x50f2f1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x50f2e8
mov ecx, dword [ebp - 4]
push edi
call fcn.004aa250
xor esi, esi
push edi
call fcn.0053448e
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 0x50fa70
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 0x50fb0c
push edi
call fcn.00566443
add esp, 4
mov dword [esi + 0x38], eax
test eax, eax
je 0x50fb0c
push eax
push edi
push 0
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x50fb0c
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x5d8d50
push dword [esi + 0x38]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x50fb0c
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 0x510c30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x5ff1d4]
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.00563230
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 0x510c97
lea ecx, [ebp - 8]
push ecx
mov ecx, eax
call dword [0x59a43c]
call dword [ebp - 0xc]
cmp dword [edi + 0x14], 8
jb 0x510c9f
mov edi, dword [edi]
cmp dword [ebx + 0x14], 8
jb 0x510ca7
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 0x510cde
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x510ce6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp - 8], 0
je 0x510d16
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 0x510d16
push dword [ebp - 8]
mov ecx, edi
call dword [0x59a43c]
call edi
test esi, esi
je 0x510d69
cmp esi, 2
jb 0x510d53
cmp esi, 3
jbe 0x510d3d
cmp esi, 5
jne 0x510d53
pop edi
lea eax, [esi - 0x1b]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00533fc6
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.00533fc6
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.00533fc6
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.00533fc6
mov esp, ebp
pop ebp
ret

Function at 0x510d80
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, edx
push esi
or esi, 0xffffffff
mov dword [ebx], 0
test ecx, ecx
je 0x510e17
push edi
push ecx
push 0
push 0x409
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x510e05
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x510ddb
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 0x511320
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 0x51133e
mov eax, dword [ebx]
jmp 0x511340
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 0x5114c9
push dword [ebp - 8]
call fcn.00534493
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x5114c9
cmp dword [ebx + 0x14], 8
jb 0x51137b
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 0x5114c9
cmp dword [ebp - 0xc], 1
mov ecx, dword [ebp - 8]
jne 0x5113d4
test ecx, ecx
je 0x5113d4
lea eax, [ecx + 4]
push eax
mov dword [ebp - 0x10], eax
call fcn.00534493
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5113cd
push dword [ebp - 0x10]
push 0
push ebx
call fcn.00563230
mov ecx, dword [ebp - 8]
add esp, 0xc
jmp 0x5113d7
mov ecx, dword [ebp - 8]
xor ebx, ebx
jmp 0x5113d7
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
sub eax, 1
je 0x51147b
sub eax, 1
je 0x51142b
sub eax, 2
je 0x5113f7
mov esi, 0xffffffe1
jmp 0x5114b0
push 0x16
call fcn.00534493
mov edi, eax
add esp, 4
test edi, edi
je 0x5114b0
mov ebx, dword [ebp - 4]
push 0xa
push edi
push dword [ebx]
call fcn.00573312
mov ecx, dword [ebp + 0xc]
add esp, 0xc
push eax
call fcn.004aa250
xor esi, esi
jmp 0x5114b3
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 0x5114b3
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00534493
mov edi, eax
add esp, 4
test edi, edi
je 0x5114b3
push dword [ebp - 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x5114b3
mov ecx, dword [ebp + 0xc]
push edi
call fcn.004aa250
xor esi, esi
jmp 0x5114b3
test ecx, ecx
jne 0x51148e
mov ecx, dword [ebp + 0xc]
push 0x5d843c
call fcn.004aa250
jmp 0x5114b0
mov esi, dword [ebp - 4]
push ecx
push esi
push ebx
call fcn.00562cb0
push esi
call fcn.0053448e
mov ecx, dword [ebp + 0xc]
add esp, 0x10
mov dword [ebp - 4], ebx
push ebx
call fcn.004aa250
xor esi, esi
mov ebx, dword [ebp - 4]
push ebx
call fcn.0053448e
add esp, 4
test edi, edi
je 0x5114c9
push edi
call fcn.0053448e
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x512720
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 0x51273f
mov esi, dword [edi]
jmp 0x512741
mov esi, edi
lea ebx, [eax + eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x512761
nop
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x512750
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 0x512789
mov eax, ebx
jmp 0x51278d
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x512800
cmp dword [edi + 0x14], 8
lea ecx, [esi + 8]
jb 0x51279e
mov eax, dword [edi]
jmp 0x5127a0
mov eax, edi
cmp dword [ecx + 0x14], 8
lea edx, [ecx + 0x10]
jb 0x5127ab
mov ecx, dword [ecx]
push dword [ebp - 4]
mov edx, dword [edx]
push eax
call fcn.004aa680
add esp, 8
test eax, eax
je 0x5127c7
mov esi, dword [esi]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
jmp 0x512781
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
lea ecx, [eax + 0x10]
jb 0x5127d5
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
jb 0x5127dd
mov edi, dword [edi]
push dword [ecx]
mov edx, dword [ebp - 4]
mov ecx, edi
push eax
call fcn.004aa680
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