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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5964c0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5ff1d4]
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 0x512c57
mov edi, dword [ebx]
jmp 0x512c59
mov edi, ebx
xor ecx, ecx
mov edx, 0x811c9dc5
add eax, eax
je 0x512c7a
mov ebx, eax
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x512c66
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 0x512c99
mov esi, dword [esi + 4]
jmp 0x512c9f
mov esi, dword [eax + ecx + 4]
mov esi, dword [esi]
cmp esi, edi
je 0x512cdb
mov esi, dword [esi + 4]
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
lea edx, [eax + 0x10]
jb 0x512cb4
mov eax, dword [eax]
cmp dword [ebx + 0x14], 8
jb 0x512cbe
mov ecx, dword [ebx]
jmp 0x512cc0
mov ecx, ebx
push dword [edx]
mov edx, dword [ebx + 0x10]
push eax
call fcn.004aa680
add esp, 8
test eax, eax
sete al
test al, al
jne 0x512d25
cmp esi, edi
jne 0x512ca3
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
mov eax, dword [edi]
cmp esi, eax
je 0x512d08
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 0x512d6b
mov dword [ecx], edi
mov eax, dword [edx + 0xc]
mov dword [eax + ebx + 4], edi
jmp 0x512d8d
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.00512b80
push edi
call fcn.00404c10
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 0x512d73
mov dword [ecx], edi
jmp 0x512d8d
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x512d8d
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.00512de0
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 0x512e80
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 0x512e9b
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add ebx, ebx
je 0x512eb7
movzx eax, byte [edx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x512ea6
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 0x512eed
cmp dword [ecx], edi
jne 0x512ee5
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 0x512ef5
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x512ef5
cmp dword [ecx], edi
jne 0x512ef8
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.00512b80
push edi
call fcn.00404c10
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 0x512ff0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x5ff1d4]
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 0x51303e
pop edi
mov eax, 0xfffffff5
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00533fc6
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 0x5130b3
cmp dword [edi + 0x14], 8
jb 0x513059
mov edi, dword [edi]
push 4
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x5130a6
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push edi
test eax, eax
jne 0x513081
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x5130ac
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.00533fc6
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.00533fc6
mov esp, ebp
pop ebp
ret
Function at 0x514870
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5ff1d4]
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.00563230
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x208
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x5148c4
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00533fc6
mov esp, ebp
pop ebp
ret
cmp word [ebp - 0x20c], 0
jne 0x5148d2
xor ecx, ecx
jmp 0x5148ef
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5148e0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004a4ab0
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x51492b
cmp dword [esi + 0x14], 8
jb 0x51490f
mov eax, dword [esi]
jmp 0x514911
mov eax, esi
movzx eax, word [eax + ecx*2 - 2]
cmp eax, 0x5c
je 0x51492b
cmp eax, 0x2f
je 0x51492b
push 0x5c
push 1
mov ecx, esi
call fcn.004a4bb0
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00533fc6
mov esp, ebp
pop ebp
ret

Function at 0x5149b0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.00534b20
mov eax, dword [0x5ff1d4]
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 0x514a0a
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00533fc6
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x1018]
test eax, ebp
out dx, eax
invalid
call dword [eax + 0x68]
add byte [eax], dl
add byte [eax], al
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 0x514a6b
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 0x514a7f
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00533fc6
mov esp, ebp
pop ebp
ret
push edi
xor esi, esi
xor edi, edi
cmp dword [ebp - 0x1004], esi
jbe 0x514ab7
nop dword [eax]
push dword [ebp + esi*8 - 0x1000]
push dword [ebp - 0x1014]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x514ab2
inc esi
cmp esi, dword [ebp - 0x1004]
jb 0x514a90
jmp 0x514ab7
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.00533fc6
mov esp, ebp
pop ebp
ret
Function at 0x514ae0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5ff1d4]
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 0x514b76
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 0x514b7d
inc dword [esi]
cmp dword [esi], 4
jl 0x514b26
cmp dword [esi], 0
je 0x514ba3
call fcn.005149b0
test eax, eax
je 0x514ba3
pop edi
mov dword [esi], 0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00533fc6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00533fc6
mov esp, ebp
pop ebp
ret

Function at 0x514bc0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5ff1d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 1
push 0
push 0x5e5e74
mov esi, ecx
call fcn.004a4990
cmp eax, 0xffffffff
je 0x514c41
cmp dword [esi + 0x14], 8
jb 0x514bf3
mov eax, dword [esi]
jmp 0x514bf5
mov eax, esi
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x514c41
cmp word [ebp - 0x20c], 0
jne 0x514c1a
xor ecx, ecx
jmp 0x514c32
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x514c23
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004a4ab0
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00533fc6
mov esp, ebp
pop ebp
ret
Function at 0x514c60
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5ff1d4]
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.00563230
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 0x514cd4
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00533fc6
mov esp, ebp
pop ebp
ret
push esi
push 0x5cc844
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 0x514d05
mov ecx, esi
call dword [0x59a43c]
call esi
jmp 0x514d0b
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x144]
pop esi
cmp ax, 9
je 0x514d33
cmp ax, 6
je 0x514d33
mov byte [edi], 0
xor eax, eax
pop edi
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
mov byte [edi], 1
xor ecx, ebp
pop edi
call fcn.00533fc6
mov esp, ebp
pop ebp
ret
Function at 0x514d50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5ff1d4]
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 0x514eff
movzx eax, word [ebp - 0xc]
mov dword [edi], eax
mov eax, dword [ebp - 0x11c]
cmp eax, 4
jne 0x514ddc
cmp dword [ebp - 0x118], 0
jne 0x514dc4
cmp dword [ebp - 0x110], 2
jne 0x514dc4
pop edi
mov dword [esi], 1
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00533fc6
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.00533fc6
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x514e47
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x514e01
pop edi
mov dword [esi], 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00533fc6
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x514e1e
pop edi
mov dword [esi], 3
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00533fc6
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x514eed
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.00533fc6
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x514ee7
cmp byte [ebp - 6], 1
jne 0x514ea1
mov ecx, dword [ebp - 0x118]
cmp ecx, 2
je 0x514e89
cmp ecx, 3
je 0x514e89
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.00533fc6
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.00533fc6
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x118]
cmp eax, 1
jne 0x514eca
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.00533fc6
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x514eb2
pop edi
mov dword [esi], 0xa
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00533fc6
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.00533fc6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffffe5
pop edi
xor ecx, ebp
pop esi
call fcn.00533fc6
mov esp, ebp
pop ebp
ret
Function at 0x5186e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x5ff1d4]
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.00563230
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00563230
add esp, 0x18
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 0x104
test esi, esi
je 0x518814
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 0x518814
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 0x518814
push ecx
lea eax, [ebp - 0x20c]
mov edx, 0x104
push eax
push ecx
lea ecx, [ebp - 0x414]
call fcn.00516d00
test eax, eax
js 0x518808
push str.SCANAPI.DLL
lea ecx, [ebp - 0x20c]
call fcn.00516be0
test eax, eax
js 0x518808
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00578067
add esp, 8
test eax, eax
jne 0x518808
lea eax, [ebp - 0x414]
mov edx, 0x104
push eax
mov ecx, esi
call fcn.00516ba0
push dword [ebp - 0x418]
test eax, eax
js 0x51880e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00533fc6
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.00533fc6
mov esp, ebp
pop ebp
ret
Function at 0x52fb30
Capabilities:
Check mutex on windows

Disassembly:
push esi
xor ecx, ecx
mov esi, 0x605f98
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x52fb60
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 0x52fb60
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0xffffffffffffffff
push dword [0x605f98]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [esp + 0xc]
mov esi, dword [edi - 8]
lea eax, [edi - 8]
sub dword [0x605fa4], esi
mov ecx, eax
sub ecx, dword [eax + 4]
cmp dword [ecx], 0
jne 0x52fb97
add dword [ecx + 0x10], esi
lea edx, [ecx + 0x10]
mov eax, dword [edx]
mov dword [eax + ecx + 4], eax
jmp 0x52fbbf
lea edx, [eax + 0x10]
mov ecx, eax
mov dword [edx], esi
mov esi, dword [0x605fa0]
mov dword [eax], 0
mov dword [edi], esi
mov dword [eax + 0xc], 0
test esi, esi
je 0x52fbba
mov dword [esi + 0xc], eax
mov dword [0x605fa0], eax
mov edi, dword [edx]
cmp dword [edi + ecx], 0
lea esi, [edi + ecx]
jne 0x52fbfc
mov eax, dword [esi + 0x10]
add eax, edi
mov dword [edx], eax
mov edi, dword [esi + 8]
test edi, edi
je 0x52fbe1
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov edi, dword [esi + 8]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x52fbed
mov dword [eax + 8], edi
jmp 0x52fbf3
mov dword [0x605fa0], edi
mov eax, dword [edx]
mov dword [eax + ecx + 4], eax
lea esi, [eax + ecx]
cmp dword [ecx + 4], 0
pop edi
jne 0x52fc54
cmp dword [esi], 1
jne 0x52fc54
mov eax, dword [0x605fa4]
mov esi, dword [0x605fa8]
sub esi, dword [edx]
lea eax, [eax + eax*2]
shr eax, 1
cmp esi, eax
jbe 0x52fc54
mov edx, dword [ecx + 8]
mov dword [0x605fa8], esi
test edx, edx
je 0x52fc34
mov eax, dword [ecx + 0xc]
mov dword [edx + 0xc], eax
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x52fc40
mov dword [eax + 8], edx
jmp 0x52fc46
mov dword [0x605fa0], edx
push 0x8000
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push dword [0x605f98]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret

Function at 0x54d624
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 0x57f2e5
Capabilities:
Read file on windows

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

Function at 0x57f2f0
Capabilities:
Read file on windows

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

Function at 0x58188f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005813e2
Function at 0x10046a2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10046fb
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10046ed
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x10046e9
cmp esi, eax
jae 0x10046ed
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10046db
cmp esi, eax
jb 0x10046f1
xor eax, eax
jmp 0x10046fa
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x1007e14
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp dword [0x104ef80], esi
jne 0x1007e37
push esi
push esi
push esi
push esi
call edi
mov dword [0x104ef80], eax
mov eax, dword [0x104ef84]
cmp eax, esi
jne 0x1007e4c
push esi
push esi
push 1
push esi
call edi
mov dword [0x104ef84], eax
cmp dword [0x104ef80], esi
je 0x1007e84
cmp eax, esi
je 0x1007e84
mov eax, dword [0x104ef88]
cmp eax, esi
jne 0x1007e79
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x1007d85
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x104ef88], eax
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1007e86
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1008ae0
Capabilities:
Hide graphical window

Disassembly:
push 4
mov eax, 0x1044f07
call fcn.01038339
mov esi, ecx
cmp dword [ebp + 8], 0
jne 0x1008b68
mov eax, dword [esi + 0x4b0]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push eax
call edi
mov eax, dword [esi + 0x60]
push 5
push eax
call edi
push 0x1a8
call fcn.01035de2
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
and dword [ebp - 4], 0
test ecx, ecx
je 0x1008b5b
push dword [esi + 0x50]
lea eax, [esi + 0x4ac]
push eax
push dword [esi + 0x1c]
lea eax, [esi + 0x4a0]
push dword [esi + 0x18]
push dword [esi + 0x14]
push eax
push 0xaf
push 0xa5
lea eax, [esi + 0x288]
push eax
lea eax, [esi + 0x5c]
push eax
call fcn.0100e103
jmp 0x1008b5d
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov ecx, eax
mov dword [esi + 0x58], eax
jmp 0x1008b6b
mov ecx, dword [esi + 0x58]
push dword [ebp + 8]
call fcn.0100e013
cmp dword [ebp + 8], 0
jne 0x1008b86
mov ecx, dword [esi + 0x20]
push 0
push dword [esi + 0x58]
call fcn.01016ea7
call fcn.01038425
ret 4

Function at 0x1008b93
Capabilities:
Hide graphical window

Disassembly:
push 4
mov eax, 0x1044f07
call fcn.01038339
mov esi, ecx
cmp dword [ebp + 8], 0
jne 0x1008c1b
mov eax, dword [esi + 0x4b0]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push eax
call edi
mov eax, dword [esi + 0x60]
push 5
push eax
call edi
push 0x218
call fcn.01035de2
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
and dword [ebp - 4], 0
test ecx, ecx
je 0x1008c0e
push dword [esi + 0x50]
lea eax, [esi + 0x4ac]
push eax
push dword [esi + 0x1c]
lea eax, [esi + 0x4a0]
push dword [esi + 0x18]
push dword [esi + 0x14]
push eax
push 0xb4
push 0xaa
lea eax, [esi + 0x300]
push eax
lea eax, [esi + 0x5c]
push eax
call fcn.0100e750
jmp 0x1008c10
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov ecx, eax
mov dword [esi + 0x58], eax
jmp 0x1008c1e
mov ecx, dword [esi + 0x58]
push dword [ebp + 8]
call fcn.0100e62c
cmp dword [ebp + 8], 0
jne 0x1008c39
mov ecx, dword [esi + 0x20]
push 1
push dword [esi + 0x58]
call fcn.01016ea7
call fcn.01038425
ret 4

Function at 0x1008c46
Capabilities:
Hide graphical window

Disassembly:
push 4
mov eax, 0x1044f07
call fcn.01038339
mov esi, ecx
cmp dword [ebp + 8], 0
jne 0x1008cce
mov eax, dword [esi + 0x4b0]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push eax
call edi
mov eax, dword [esi + 0x60]
push 5
push eax
call edi
push 0x200
call fcn.01035de2
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
and dword [ebp - 4], 0
test ecx, ecx
je 0x1008cc1
push dword [esi + 0x50]
lea eax, [esi + 0x4ac]
push eax
push dword [esi + 0x1c]
lea eax, [esi + 0x4a0]
push dword [esi + 0x18]
push dword [esi + 0x14]
push eax
push 0xb4
push 0xaa
lea eax, [esi + 0x3dc]
push eax
lea eax, [esi + 0x5c]
push eax
call fcn.0100efde
jmp 0x1008cc3
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov ecx, eax
mov dword [esi + 0x58], eax
jmp 0x1008cd1
mov ecx, dword [esi + 0x58]
push dword [ebp + 8]
call fcn.0100eee5
cmp dword [ebp + 8], 0
jne 0x1008cec
mov ecx, dword [esi + 0x20]
push 2
push dword [esi + 0x58]
call fcn.01016ea7
call fcn.01038425
ret 4
Function at 0x1009e54
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [ecx + 0x50]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
mov ecx, 0x104efd8
call fcn.01009de5
ret