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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e070
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6071d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
jb 0x51a147
mov edi, dword [ebx]
jmp 0x51a149
mov edi, ebx
xor ecx, ecx
mov edx, 0x811c9dc5
add eax, eax
je 0x51a16a
mov ebx, eax
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x51a156
mov ebx, dword [ebp + 0xc]
mov eax, dword [esi + 0x18]
and eax, edx
lea ecx, [eax*8]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x18], ecx
mov edi, dword [eax + ecx]
cmp edi, dword [esi + 4]
jne 0x51a189
mov esi, dword [esi + 4]
jmp 0x51a18f
mov esi, dword [eax + ecx + 4]
mov esi, dword [esi]
cmp esi, edi
je 0x51a1cb
mov esi, dword [esi + 4]
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
lea edx, [eax + 0x10]
jb 0x51a1a4
mov eax, dword [eax]
cmp dword [ebx + 0x14], 8
jb 0x51a1ae
mov ecx, dword [ebx]
jmp 0x51a1b0
mov ecx, ebx
push dword [edx]
mov edx, dword [ebx + 0x10]
push eax
call fcn.004af3c0
add esp, 8
test eax, eax
sete al
test al, al
jne 0x51a215
cmp esi, edi
jne 0x51a193
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
mov eax, dword [edi]
cmp esi, eax
je 0x51a1f8
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov ecx, dword [edx + 0xc]
add ecx, ebx
mov eax, dword [ecx]
cmp eax, dword [edx + 4]
jne 0x51a25b
mov dword [ecx], edi
mov eax, dword [edx + 0xc]
mov dword [eax + ebx + 4], edi
jmp 0x51a27d
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ecx], eax
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea ecx, [edi + 8]
dec dword [edx + 8]
call fcn.0051a070
push edi
call fcn.00405150
mov eax, dword [ebp + 8]
add esp, 4
mov dword [eax], esi
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x51a263
mov dword [ecx], edi
jmp 0x51a27d
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x51a27d
mov ecx, dword [edx + 0xc]
mov eax, dword [ecx + ebx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + ebx + 4], eax
mov ecx, edx
mov dword [ebp - 4], 2
call fcn.0051a2d0
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x51a370
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x1c], 8
lea edx, [edi + 8]
mov ebx, dword [edx + 0x10]
mov dword [ebp - 4], ecx
jb 0x51a38b
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add ebx, ebx
je 0x51a3a7
movzx eax, byte [edx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x51a396
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0xc]
and eax, esi
lea esi, [eax*8]
add ecx, esi
cmp dword [ecx + 4], edi
jne 0x51a3dd
cmp dword [ecx], edi
jne 0x51a3d5
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 4]
mov dword [esi + ecx + 4], eax
jmp 0x51a3e5
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x51a3e5
cmp dword [ecx], edi
jne 0x51a3e8
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea ecx, [edi + 8]
dec dword [edx + 8]
call fcn.0051a070
push edi
call fcn.00405150
mov eax, dword [ebp + 8]
add esp, 4
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x51a4e0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x6071d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 0x134]
mov dword [ebp - 0x134], 0x114
push eax
mov ebx, edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x124], 2
je 0x51a52e
pop edi
mov eax, 0xfffffff5
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b526
mov esp, ebp
pop ebp
ret
push esi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x51a5a3
cmp dword [edi + 0x14], 8
jb 0x51a549
mov edi, dword [edi]
push 4
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x51a596
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push edi
test eax, eax
jne 0x51a571
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x51a59c
mov eax, dword [ebp - 0x1c]
mov dword [ebx], eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b526
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, 0xffffffe5
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0053b526
mov esp, ebp
pop ebp
ret
Function at 0x51bdb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6071d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.0056a7a0
add byte [ebx - 0x7a72f33c], al
hlt
std
invalid
jmp [eax + 8]
add al, byte [eax]
add byte [eax - 1], dl
adc eax, sym.imp.KERNEL32.dll_GetSystemDirectoryW
test eax, eax
jne 0x51be04
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b526
mov esp, ebp
pop ebp
ret
cmp word [ebp - 0x20c], 0
jne 0x51be12
xor ecx, ecx
jmp 0x51be2f
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51be20
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004a96a0
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x51be6b
cmp dword [esi + 0x14], 8
jb 0x51be4f
mov eax, dword [esi]
jmp 0x51be51
mov eax, esi
movzx eax, word [eax + ecx*2 - 2]
cmp eax, 0x5c
je 0x51be6b
cmp eax, 0x2f
je 0x51be6b
push 0x5c
push 1
mov ecx, esi
call fcn.004a97a0
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0053b526
mov esp, ebp
pop ebp
ret

Function at 0x51bf00
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.0053c070
mov eax, dword [0x6071d4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x100c], 0
push eax
push 0x20008
mov word [ebp - 0x1008], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x51bf5a
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b526
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x1018]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push 2
push dword [ebp - 0x1010]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 0x1010]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x51bfbb
lea eax, [ebp - 0x1014]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x100c]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x51bfcf
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b526
mov esp, ebp
pop ebp
ret
push edi
xor esi, esi
xor edi, edi
cmp dword [ebp - 0x1004], esi
jbe 0x51c007
nop dword [eax]
push dword [ebp + esi*8 - 0x1000]
push dword [ebp - 0x1014]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x51c002
inc esi
cmp esi, dword [ebp - 0x1004]
jb 0x51bfe0
jmp 0x51c007
mov edi, 1
push dword [ebp - 0x1014]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0053b526
mov esp, ebp
pop ebp
ret
Function at 0x51c030
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6071d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x14], 0x220
push edi
or edi, 0xffffffff
mov dword [ebp - 0x10], 0x223
mov dword [ebp - 0xc], 0x222
mov dword [ebp - 8], 0x221
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x18], 0x500
mov dword [esi], 0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [esi]
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + eax*4 - 0x14]
lea eax, [ebp - 0x1c]
push 0x20
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x51c0c6
lea eax, [ebp - 0x20]
xor edi, edi
push eax
push dword [ebp - 0x24]
push edi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x24]
neg eax
sbb eax, eax
and dword [ebp - 0x20], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x20], edi
jne 0x51c0cd
inc dword [esi]
cmp dword [esi], 4
jl 0x51c076
cmp dword [esi], 0
je 0x51c0f3
call fcn.0051bf00
test eax, eax
je 0x51c0f3
pop edi
mov dword [esi], 0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b526
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0053b526
mov esp, ebp
pop ebp
ret

Function at 0x51c110
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6071d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 1
push 0
push 0x5ed558
mov esi, ecx
call fcn.004a9580
cmp eax, 0xffffffff
je 0x51c191
cmp dword [esi + 0x14], 8
jb 0x51c143
mov eax, dword [esi]
jmp 0x51c145
mov eax, esi
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x51c191
cmp word [ebp - 0x20c], 0
jne 0x51c16a
xor ecx, ecx
jmp 0x51c182
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51c173
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004a96a0
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0053b526
mov esp, ebp
pop ebp
ret
Function at 0x51c1b0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x6071d4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x11c
xorps xmm0, xmm0
mov dword [ebp - 0x124], 0
lea eax, [ebp - 0x120]
mov edi, ecx
push 0
push eax
movups xmmword [ebp - 0x144], xmm0
movups xmmword [ebp - 0x134], xmm0
call fcn.0056a7a0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x51c224
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b526
mov esp, ebp
pop ebp
ret
push esi
push 0x5d39b4
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
lea eax, [ebp - 0x144]
push eax
test esi, esi
je 0x51c255
mov ecx, esi
call dword [0x5a143c]
call esi
jmp 0x51c25b
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x144]
pop esi
cmp ax, 9
je 0x51c283
cmp ax, 6
je 0x51c283
mov byte [edi], 0
xor eax, eax
pop edi
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
mov byte [edi], 1
xor ecx, ebp
pop edi
call fcn.0053b526
mov esp, ebp
pop ebp
ret
Function at 0x51c2a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x6071d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x11c
push eax
mov edi, edx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, 1
jne 0x51c44f
movzx eax, word [ebp - 0xc]
mov dword [edi], eax
mov eax, dword [ebp - 0x11c]
cmp eax, 4
jne 0x51c32c
cmp dword [ebp - 0x118], 0
jne 0x51c314
cmp dword [ebp - 0x110], 2
jne 0x51c314
pop edi
mov dword [esi], 1
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b526
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi], 0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b526
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x51c397
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x51c351
pop edi
mov dword [esi], 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b526
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x51c36e
pop edi
mov dword [esi], 3
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b526
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x51c43d
xor eax, eax
cmp byte [ebp - 6], 1
pop edi
setne al
add eax, 3
mov dword [esi], eax
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b526
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x51c437
cmp byte [ebp - 6], 1
jne 0x51c3f1
mov ecx, dword [ebp - 0x118]
cmp ecx, 2
je 0x51c3d9
cmp ecx, 3
je 0x51c3d9
xor eax, eax
cmp ecx, 1
pop edi
sete al
lea eax, [eax*2 + 5]
mov dword [esi], eax
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b526
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi], 9
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b526
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x118]
cmp eax, 1
jne 0x51c41a
mov dword [esi], 8
pop edi
mov dword [esi], 6
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b526
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x51c402
pop edi
mov dword [esi], 0xa
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b526
mov esp, ebp
pop ebp
ret
mov dword [esi], 0xffffffff
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b526
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffffe5
pop edi
xor ecx, ebp
pop esi
call fcn.0053b526
mov esp, ebp
pop ebp
ret
Function at 0x51fc30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x6071d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x414]
mov esi, ecx
push 0
push eax
call fcn.0056a7a0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0056a7a0
add esp, 0x18
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 0x104
test esi, esi
je 0x51fd64
lea eax, [ebp - 0x418]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsSCANNER.EXE
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x51fd64
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push str.Path
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x51fd64
push ecx
lea eax, [ebp - 0x20c]
mov edx, 0x104
push eax
push ecx
lea ecx, [ebp - 0x414]
call fcn.0051e240
test eax, eax
js 0x51fd58
push str.SCANAPI.DLL
lea ecx, [ebp - 0x20c]
call fcn.0051e120
test eax, eax
js 0x51fd58
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0057f607
add esp, 8
test eax, eax
jne 0x51fd58
lea eax, [ebp - 0x414]
mov edx, 0x104
push eax
mov ecx, esi
call fcn.0051e0e0
push dword [ebp - 0x418]
test eax, eax
js 0x51fd5e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b526
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0053b526
mov esp, ebp
pop ebp
ret
Function at 0x537090
Capabilities:
Check mutex on windows

Disassembly:
push esi
xor ecx, ecx
mov esi, 0x60e410
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x5370c0
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, eax
xor eax, eax
mov ecx, edx
lock cmpxchg dword [esi], ecx
test eax, eax
je 0x5370c0
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0xffffffffffffffff
push dword [0x60e410]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [esp + 0xc]
mov esi, dword [edi - 8]
lea eax, [edi - 8]
sub dword [0x60e41c], esi
mov ecx, eax
sub ecx, dword [eax + 4]
cmp dword [ecx], 0
jne 0x5370f7
add dword [ecx + 0x10], esi
lea edx, [ecx + 0x10]
mov eax, dword [edx]
mov dword [eax + ecx + 4], eax
jmp 0x53711f
lea edx, [eax + 0x10]
mov ecx, eax
mov dword [edx], esi
mov esi, dword [0x60e418]
mov dword [eax], 0
mov dword [edi], esi
mov dword [eax + 0xc], 0
test esi, esi
je 0x53711a
mov dword [esi + 0xc], eax
mov dword [0x60e418], eax
mov edi, dword [edx]
cmp dword [edi + ecx], 0
lea esi, [edi + ecx]
jne 0x53715c
mov eax, dword [esi + 0x10]
add eax, edi
mov dword [edx], eax
mov edi, dword [esi + 8]
test edi, edi
je 0x537141
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov edi, dword [esi + 8]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x53714d
mov dword [eax + 8], edi
jmp 0x537153
mov dword [0x60e418], edi
mov eax, dword [edx]
mov dword [eax + ecx + 4], eax
lea esi, [eax + ecx]
cmp dword [ecx + 4], 0
pop edi
jne 0x5371b4
cmp dword [esi], 1
jne 0x5371b4
mov eax, dword [0x60e41c]
mov esi, dword [0x60e420]
sub esi, dword [edx]
lea eax, [eax + eax*2]
shr eax, 1
cmp esi, eax
jbe 0x5371b4
mov edx, dword [ecx + 8]
mov dword [0x60e420], esi
test edx, edx
je 0x537194
mov eax, dword [ecx + 0xc]
mov dword [edx + 0xc], eax
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x5371a0
mov dword [eax + 8], edx
jmp 0x5371a6
mov dword [0x60e418], edx
push 0x8000
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push dword [0x60e410]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret

Function at 0x554bc4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x586885
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00586536

Function at 0x586890
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005866c0

Function at 0x588f35
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00588a88
Function at 0x100249b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a8f97
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x100c6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x10], ecx
push 0x40c
call fcn.100a6b50
mov ebx, eax
add esp, 4
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
lea edi, [ebx + 0xc]
xorps xmm0, xmm0
mov ecx, edi
movq qword [ebx], xmm0
mov dword [ebx + 8], 0
mov dword [ebx + 4], 1
mov dword [ebx + 8], 1
mov dword [ebx], vtable.std::_Ref_count_obj2_class_LagRecord_.0
mov eax, dword [esi]
push eax
mov dword [edi + 0xc], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x3b4], 0
mov dword [edi + 0x3b8], 0
mov dword [edi + 0x3bc], 0
mov byte [edi + 0x3c0], 0
mov dword [edi + 0x3c4], 0
mov byte [edi + 0x3c8], 0
mov dword [edi + 0x3cc], 0
mov dword [edi + 0x3d0], 0
mov dword [edi + 0x3d4], 0
mov dword [edi + 0x3d8], 0
mov dword [edi + 0x3dc], 0
mov dword [edi + 0x3e0], 0
mov word [edi + 0x3f0], 0
call fcn.1001a370
mov eax, dword [ebp - 0x10]
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 4], 0
mov dword [eax], edi
mov dword [eax + 4], ebx
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 0x1002dfc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x10], eax
mov ebx, ecx
dec eax
push edi
mov edi, edx
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 0xc]
mov esi, edi
sar eax, 1
mov ecx, edi
mov dword [ebp - 4], edx
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp edi, eax
jge 0x1002e023
nop dword [eax]
lea esi, [ecx + ecx]
lea edx, [ebx + 8]
lea edx, [edx + esi*4]
lea eax, [edx - 4]
push eax
call fcn.1002dde0
movzx ecx, al
add esp, 4
xor ecx, 1
inc ecx
add ecx, esi
mov eax, dword [ebx + ecx*4]
mov dword [ebx + edi*4], eax
mov edi, ecx
mov eax, dword [ebp - 0xc]
cmp ecx, eax
jl 0x1002dff0
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, ecx
cmp ecx, eax
jne 0x1002e03a
mov eax, dword [ebp - 0x10]
test al, 1
jne 0x1002e03a
mov eax, dword [ebx + eax*4 - 4]
mov edi, dword [ebp - 0x14]
mov dword [ebx + ecx*4], eax
cmp esi, edi
jge 0x1002e084
nop
lea esi, [edi - 1]
sar esi, 1
push edx
lea eax, [ebx + esi*4]
mov edx, eax
call fcn.1002dde0
add esp, 4
test al, al
je 0x1002e075
mov eax, dword [ebx + esi*4]
mov edx, dword [ebp - 4]
mov dword [ebx + edi*4], eax
mov edi, esi
cmp dword [ebp - 8], esi
jl 0x1002e040
mov eax, edx
mov eax, dword [eax]
mov dword [ebx + edi*4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebx + edi*4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edx]
mov dword [ebx + edi*4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret