joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4990d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e363
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x8870bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
push dword [ebp + 8]
call fcn.0043bc50
mov dword [esi], vtable.QWindowsPipeReader.0
mov dword [esi + 8], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x6f6ba0
mov dword [ebp - 4], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0x1000
push 0xc
mov byte [ebp - 4], 1
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 1
mov word [esi + 0x3c], 0
mov dword [ebp + 8], fcn.004992a0
mov dword [ebp - 0x10], fcn.004c9550
call fcn.00520ff7
mov ecx, dword [ebp + 8]
push 0x80dd68
push 0
push 2
push eax
mov dword [eax], 1
mov dword [ebp - 0x1c], eax
mov dword [eax + 4], 0x499300
mov dword [eax + 8], ecx
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.0043e050
add esp, 0x28
lea ecx, [ebp - 0x14]
call fcn.0043c250
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4995d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5442e8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x8870bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x499617
mov edi, dword [ebp - 0x14]
jmp 0x49962a
cmp byte [esi + 0x3b], 0
jne 0x499628
mov ecx, esi
mov byte [esi + 0x3b], 1
call fcn.004c95a0
xor edi, edi
mov eax, 0x1000
cmp edi, eax
cmovb edi, eax
cmp byte [esi + 0x3b], 0
jne 0x499735
mov ecx, dword [esi + 0x10]
mov eax, ecx
mov edx, dword [esi + 0x14]
or eax, edx
je 0x499723
sub ecx, dword [esi + 0x20]
sbb edx, dword [esi + 0x24]
xor eax, eax
cmp eax, edx
jl 0x499678
jg 0x499660
cmp edi, ecx
jbe 0x499678
mov edi, ecx
mov ecx, edx
test ecx, ecx
jl 0x499735
jg 0x499676
test edi, edi
je 0x499735
mov eax, ecx
push eax
lea ecx, [esi + 0x18]
push edi
call fcn.00445df0
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x14], eax
mov word [esi + 0x38], 0x100
test ecx, ecx
jne 0x4996aa
push 0x18
call fcn.00520ff7
mov dword [ebp - 0x10], eax
mov ecx, eax
add esp, 4
mov dword [eax + 0x14], esi
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x14]
push 0x499430
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
push dword [esi + 0xc]
push edi
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x499735
mov byte [esi + 0x39], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, edi
sub ecx, 0x6d
je 0x49972a
sub ecx, 0x7c
je 0x49972a
push 0x22
push str.QWindowsPipeReader::startAsyncRead
call fcn.00406bb0
add esp, 8
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push edi
mov ecx, esi
call fcn.004c9730
lea ecx, [ebp - 0x10]
call fcn.004011e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x499678
mov ecx, esi
mov byte [esi + 0x3b], 1
call fcn.004c95a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x499cb0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x21], 0
jne 0x499d40
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x499cda
push 0x18
call fcn.00520ff7
add esp, 4
mov dword [esp + 8], eax
mov dword [eax + 0x14], esi
mov dword [esi + 0xc], eax
push dword [esp + 0x10]
xorps xmm0, xmm0
lea ecx, [esi + 0x10]
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
call fcn.0041c8a0
mov eax, dword [esi + 0x10]
push 0x499d50
push dword [esi + 0xc]
mov word [esi + 0x20], 0x100
mov edx, dword [eax + 0xc]
push dword [eax + 4]
add edx, eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
jne 0x499d48
lea ecx, [esi + 0x10]
mov byte [esi + 0x21], al
call fcn.0041cf80
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
je 0x499d40
push str.QWindowsPipeWriter::write_failed.
push eax
call fcn.0041a900
add esp, 8
pop edi
xor al, al
pop esi
pop ecx
ret 4
pop edi
mov al, 1
pop esi
pop ecx
ret 4
Function at 0x4a0170
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54ecce
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x8870bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebx + 4]
cmp dword [edi + 0x3c], 0
jne 0x4a0301
mov eax, dword [0x88ca44]
cmp eax, 0xfffffffe
jg 0x4a01b5
xor esi, esi
jmp 0x4a01da
mov eax, dword fs:[0x2c]
mov ecx, dword [0x88d154]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x88ca50]
cmp eax, dword [ecx + 8]
jg 0x4a0313
mov esi, 0x88ca48
cmp word [esi], 0
jne 0x4a01e4
xor esi, esi
jmp 0x4a0229
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [esi + 4]
push 0
push eax
push 0
push 0xfffffffffffffffd
push 0
push 0
push 0
push 0
push 0
push ecx
push ecx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
jne 0x4a021f
push str.CreateWindow___for_QEventDispatcherWin32_internal_window_failed
call fcn.0041aaa0
add esp, 4
jmp 0x4a0229
push ebx
push 0xffffffffffffffeb
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov dword [edi + 0x3c], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x4a1390
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [edi + 0x40], eax
test eax, eax
jne 0x4a02cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
movaps xmm0, xmmword [0x728b80]
mov esi, eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0x728ab0
push esi
push eax
movups xmmword [ebp - 0x24], xmm0
call fcn.004481a0
add esp, 8
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.0040bc30
push eax
push esi
lea eax, [ebp - 0x24]
push str.Qt:_INTERNAL_ERROR:_failed_to_install_GetMessage_hook:__d___ls
push eax
call fcn.0041a040
mov eax, dword [ebp - 0x10]
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
mov eax, dword [eax]
test eax, eax
je 0x4a02be
cmp eax, 0xffffffff
je 0x4a02cd
mov eax, dword [ebp - 0x10]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x4a02cd
push 4
push 2
push dword [ebp - 0x10]
call fcn.004016c0
add esp, 0xc
mov eax, dword [edi + 0x48]
xor esi, esi
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
test ecx, ecx
jle 0x4a0301
nop dword [eax]
mov ecx, dword [edi + 0x48]
mov eax, dword [ecx + 8]
add eax, esi
push dword [ecx + eax*4 + 0x10]
mov ecx, edi
call fcn.004a1f50
mov eax, dword [edi + 0x48]
inc esi
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
cmp esi, ecx
jl 0x4a02e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x88ca50
call fcn.00521230
add esp, 4
cmp dword [0x88ca50], 0xffffffff
jne 0x4a01d5
mov ecx, 0x88ca48
mov dword [ebp - 4], 1
call fcn.0049f490
push 0x5536d0
mov dword [0x88ca44], 0xffffffff
call fcn.00520d91
push 0x88ca50
mov dword [ebp - 4], 0xffffffff
call fcn.005211e6
add esp, 8
jmp 0x4a01d5
Function at 0x4b3f50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54fd96
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x8870bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0x1c
call fcn.00520ff7
mov esi, eax
mov dword [ebp - 0x14], esi
push 8
mov dword [ebp - 4], 0
call fcn.00520ff7
add esp, 8
mov dword [ebp - 0x18], eax
push 0
push dword [ebp + 8]
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0048c280
mov dword [esi], eax
mov dword [esi + 0x14], 0x6f6ba0
mov byte [esi + 0x18], 0
mov dword [esi + 8], esi
mov dword [esi + 0xc], 2
mov dword [esi + 0x10], 1
mov dword [edi], esi
mov byte [esi + 0x18], 1
mov eax, dword [edi]
push 0x22
mov dword [ebp - 4], 2
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4c6fb0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x550f61
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x8870bc]
xor eax, ebp
mov dword [ebp + 0x200], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x20c]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x14], 0
mov dword [edi], 0x72a82c
push 0
push 0x20019
sub esp, 8
mov dword [ebp - 4], 0
mov eax, esp
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x20]
push 0x80000002
mov dword [eax], 0x37
mov dword [eax + 4], str.SOFTWAREMicrosoftWindows_NTCurrentVersionTime_Zones
call fcn.00460720
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], 1
test eax, eax
je 0x4c7158
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push ecx
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4c7158
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4c7158
xor esi, esi
test eax, eax
je 0x4c7158
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0xff
push eax
lea eax, [ebp]
push eax
push esi
push dword [ebp - 0x20]
call ebx
test eax, eax
jne 0x4c714e
push 0xffffffffffffffff
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00457730
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
call fcn.0040b3c0
or dword [ebp - 0x14], 2
add esp, 0x14
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call fcn.0041cc30
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
je 0x4c710a
cmp eax, 0xffffffff
je 0x4c7119
mov eax, dword [ebp - 0x10]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x4c7119
push 4
push 1
push dword [ebp - 0x10]
call fcn.004016c0
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 1
mov eax, dword [eax]
test eax, eax
je 0x4c713f
cmp eax, 0xffffffff
je 0x4c714e
mov eax, dword [ebp - 0x18]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x4c714e
push 4
push 2
push dword [ebp - 0x18]
call fcn.004016c0
add esp, 0xc
inc esi
cmp esi, dword [ebp - 0x1c]
jb 0x4c7090
lea ecx, [ebp - 0x20]
call fcn.00460750
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.00520afb
lea esp, [ebp + 0x204]
pop ebp
ret
Function at 0x4c8c80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x34
mov eax, dword [0x8870bc]
xor eax, esp
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x3c]
lea edx, [esp]
mov eax, dword [esp + 0x40]
push edi
mov edi, dword [esp + 0x48]
push edx
lea edx, [esp + 0xc]
mov dword [esp + 8], 0x2c
push edx
push 0
push 0
push eax
mov byte [edi], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c8d07
movups xmm0, xmmword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x40]
mov byte [edi], 1
mov dword [esi], eax
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0xc]
movups xmmword [esi + 0xc], xmm0
sub ecx, eax
mov dword [esi + 4], eax
movups xmm0, xmmword [esp + 0x28]
add ecx, dword [esp + 0xc]
mov eax, esi
mov dword [esi + 8], ecx
movups xmmword [esi + 0x1c], xmm0
pop esi
pop edi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00520afb
add esp, 0x34
ret
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
pop edi
xor ecx, esp
call fcn.00520afb
add esp, 0x34
ret
Function at 0x4c8ec0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551140
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x8870bc]
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, dword [ebp + 8]
push 0x10
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetUserGeoID]
push 0
push 3
lea ecx, [ebp - 0x18]
push ecx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_GetGeoInfoW]
cmp eax, 3
jne 0x4c8f1f
lea eax, [ebp - 0x18]
push eax
push 3
call fcn.0042fe50
add esp, 8
jmp 0x4c8f21
xor eax, eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004c90b0
add esp, 4
mov esi, 0x6f6ba0
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 0x24]
or edi, 0xffffffff
mov byte [ebp - 4], 1
test eax, eax
je 0x4c8f99
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00497830
mov ecx, eax
add esp, 0xc
mov eax, dword [ecx]
mov dword [ebp - 0x28], eax
mov dword [ecx], esi
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x4c8f87
cmp eax, edi
je 0x4c8f96
mov eax, dword [ebp - 0x2c]
mov ecx, edi
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x4c8f96
push 4
push 1
push dword [ebp - 0x2c]
call fcn.004016c0
add esp, 0xc
mov esi, dword [ebp - 0x28]
cmp dword [esi + 4], 0
jne 0x4c9027
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004977d0
mov ecx, eax
add esp, 8
mov eax, dword [ecx]
mov dword [ebp - 0x28], eax
mov dword [ecx], esi
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
test eax, eax
je 0x4c8fdd
cmp eax, 0xffffffff
je 0x4c8fec
mov eax, dword [ebp - 0x24]
mov ecx, edi
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x4c8fec
push 4
push 1
push dword [ebp - 0x24]
call fcn.004016c0
add esp, 0xc
mov esi, dword [ebp - 0x28]
cmp dword [esi + 4], 0
jne 0x4c9027
push ebx
lea ecx, [ebp - 0x1d]
mov byte [ebp - 0x1d], 0
call fcn.00493cd0
mov ecx, dword [esi]
mov eax, dword [ebp - 0x28]
test ecx, ecx
je 0x4c9020
cmp ecx, 0xffffffff
je 0x4c905d
mov ecx, edi
lock xadd dword [eax], ecx
cmp ecx, 1
setne cl
test cl, cl
jne 0x4c905d
push 4
push 1
push eax
jmp 0x4c9055
mov dword [ebx], esi
mov eax, dword [0x6f6ba0]
test eax, eax
je 0x4c904c
cmp eax, 0xffffffff
je 0x4c905d
mov eax, edi
mov ecx, 0x6f6ba0
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x4c905d
push 4
push 1
push 0x6f6ba0
call fcn.004016c0
add esp, 0xc
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
test eax, eax
je 0x4c907c
cmp eax, 0xffffffff
je 0x4c908b
mov eax, dword [ebp - 0x1c]
lock xadd dword [eax], edi
cmp edi, 1
setne al
test al, al
jne 0x4c908b
push 4
push 1
push dword [ebp - 0x1c]
call fcn.004016c0
add esp, 0xc
mov eax, ebx
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.00520afb
mov esp, ebp
pop ebp
ret 4
Function at 0x517fc0
Capabilities:
Get system information on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x24
push ebx
push esi
push edi
cmp eax, 1
jb 0x5180ce
mov esi, dword [esp + 0x38]
cmp esi, 1
jb 0x5180ce
push dword [esp + 0x3c]
cmp eax, esi
mov ebx, esi
push 0x10
cmovbe ebx, eax
add ebx, 0x1fff
and ebx, 0xffffe000
call fcn.004e8410
mov edi, eax
add esp, 8
test edi, edi
je 0x5180ce
push ebp
lea ebp, [esi + 0x1fff]
and ebp, 0xffffe000
cmp ebx, ebp
ja 0x51807c
cmp ebx, 1
jb 0x51807c
cmp dword [0x88cdac], 0
jne 0x51803f
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x14]
dec eax
mov dword [0x88cdac], eax
push dword [edi + 8]
mov eax, dword [edi]
push 0x10
call eax
mov esi, eax
add esp, 8
test esi, esi
je 0x51807c
mov eax, dword [0x88cdac]
add ebp, eax
push 4
not eax
push 0x2000
and ebp, eax
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x51808b
push dword [edi + 8]
mov eax, dword [edi + 4]
push esi
call eax
add esp, 8
xor esi, esi
mov eax, edi
pop ebp
mov dword [edi + 0xc], esi
pop edi
pop esi
pop ebx
add esp, 0x24
ret
lea edx, [eax + ebp]
mov dword [esi + 0xc], eax
mov dword [esi + 4], edx
mov ecx, esi
mov dword [esi + 8], edx
sub edx, ebx
call fcn.004fda00
test eax, eax
jne 0x5180bc
mov edx, edi
mov ecx, esi
call fcn.004fd9d0
xor esi, esi
mov eax, edi
pop ebp
mov dword [edi + 0xc], esi
pop edi
pop esi
pop ebx
add esp, 0x24
ret
mov eax, dword [esi + 4]
mov dword [esi], eax
mov eax, edi
pop ebp
mov dword [edi + 0xc], esi
pop edi
pop esi
pop ebx
add esp, 0x24
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x24
ret
Function at 0x51b4e0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [0x88cda8]
test eax, eax
jne 0x51b4fa
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x88cda8], eax
jmp 0x51b503
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
mov ebx, dword [0x88cdb4]
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, dword [edi - 8]
lea eax, [edi - 8]
mov ecx, eax
sub ebx, esi
sub ecx, dword [eax + 4]
mov dword [0x88cdb4], ebx
cmp dword [ecx], 0
jne 0x51b536
add dword [ecx + 0x10], esi
lea edx, [ecx + 0x10]
mov eax, dword [edx]
mov dword [eax + ecx + 4], eax
jmp 0x51b55e
lea edx, [eax + 0x10]
mov ecx, eax
mov dword [edx], esi
mov esi, dword [0x88cdb0]
mov dword [eax], 0
mov dword [edi], esi
mov dword [eax + 0xc], 0
test esi, esi
je 0x51b559
mov dword [esi + 0xc], eax
mov dword [0x88cdb0], eax
mov edi, dword [edx]
cmp dword [edi + ecx], 0
lea esi, [edi + ecx]
jne 0x51b59b
mov eax, dword [esi + 0x10]
add eax, edi
mov dword [edx], eax
mov edi, dword [esi + 8]
test edi, edi
je 0x51b580
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov edi, dword [esi + 8]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x51b58c
mov dword [eax + 8], edi
jmp 0x51b592
mov dword [0x88cdb0], edi
mov eax, dword [edx]
mov dword [eax + ecx + 4], eax
lea esi, [eax + ecx]
cmp dword [ecx + 4], 0
jne 0x51b5ed
cmp dword [esi], 1
jne 0x51b5ed
mov esi, dword [0x88cdb8]
lea eax, [ebx + ebx*2]
sub esi, dword [edx]
shr eax, 1
cmp esi, eax
jbe 0x51b5ed
mov edx, dword [ecx + 8]
mov dword [0x88cdb8], esi
test edx, edx
je 0x51b5cd
mov eax, dword [ecx + 0xc]
mov dword [edx + 0xc], eax
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x51b5d9
mov dword [eax + 8], edx
jmp 0x51b5df
mov dword [0x88cdb0], edx
push 0x8000
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push dword [0x88cda8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebx
ret
Function at 0x51b9e0
Capabilities:
Allocate or change rwx memory
Check mutex on windows

Disassembly:
mov eax, dword [0x88cda8]
push ebx
push esi
push edi
test eax, eax
jne 0x51ba00
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
mov dword [0x88cda8], ebx
jmp 0x51ba0f
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [0x88cda8]
mov esi, dword [0x88cdb0]
mov edi, 0x38
cmp dword [esp + 0x10], edi
cmovae edi, dword [esp + 0x10]
add edi, 0xf
and edi, 0xfffffff8
test esi, esi
je 0x51ba3e
nop dword [eax]
mov ecx, dword [esi + 0x10]
cmp ecx, edi
jae 0x51ba72
mov esi, dword [esi + 8]
test esi, esi
jne 0x51ba30
push 0x40
lea esi, [edi + 0x10007]
push 0x3000
and esi, 0xffff0000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x51bac3
push dword [0x88cda8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
xor eax, eax
pop ebx
ret
lea eax, [edi + 0x40]
cmp ecx, eax
jbe 0x51ba89
sub ecx, edi
mov dword [esi + 0x10], ecx
add esi, ecx
mov dword [esi + 4], ecx
mov dword [esi + edi + 4], edi
jmp 0x51baad
mov edx, dword [esi + 8]
test edx, edx
je 0x51ba99
mov eax, dword [esi + 0xc]
mov dword [edx + 0xc], eax
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x51baa5
mov dword [eax + 8], edx
jmp 0x51baab
mov dword [0x88cdb0], edx
mov edi, ecx
add dword [0x88cdb4], edi
push ebx
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
lea eax, [esi + 8]
pop esi
pop ebx
ret
sub esi, 8
mov dword [ebx + 4], 0
add dword [0x88cdb8], esi
lea eax, [edi + 0x40]
cmp esi, eax
jbe 0x51bafa
sub esi, edi
mov dword [ebx], edi
lea edx, [ebx + edi]
mov dword [edx + 4], edi
push esi
push edx
call fcn.0051b9b0
mov eax, dword [0x88cdb4]
lea ecx, [esi + edx]
add esp, 8
add eax, edi
jmp 0x51bb06
mov eax, dword [0x88cdb4]
lea ecx, [ebx + esi]
mov dword [ebx], esi
add eax, esi
push dword [0x88cda8]
mov dword [0x88cdb4], eax
mov dword [ecx], 1
mov dword [ecx + 4], esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
lea eax, [ebx + 8]
pop ebx
ret

Function at 0x536b32
Capabilities:
Set environment variable

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

Function at 0x539900
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00539776
Function at 0x41a34e
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x462040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4623c0], 0
push esi
push edi
mov esi, edx
je 0x41a4e2
xor eax, eax
lea edi, [ebp - 0x41c]
stosd dword es:[edi], eax
mov ecx, 0x40430e
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi + 4]
dec eax
cmp eax, 0x12
ja case.0x41a38d.16
jmp dword [eax*4 + 0x41a4f2]
mov ecx, 0x402f88
jmp case.0x41a38d.16
mov ecx, 0x402f94
jmp case.0x41a38d.16
mov ecx, 0x402fa0
jmp case.0x41a38d.16
mov ecx, 0x402fac
jmp case.0x41a38d.16
mov ecx, 0x402fbc
jmp case.0x41a38d.16
mov ecx, 0x402fc8
jmp case.0x41a38d.16
mov ecx, 0x402fd4
jmp case.0x41a38d.16
mov ecx, 0x402fe4
jmp case.0x41a38d.16
mov ecx, 0x402ff8
jmp case.0x41a38d.16
mov ecx, 0x403004
jmp case.0x41a38d.16
mov ecx, 0x403010
jmp case.0x41a38d.16
mov ecx, 0x40301c
jmp case.0x41a38d.16
mov ecx, 0x40302c
jmp case.0x41a38d.16
mov ecx, 0x40303c
jmp case.0x41a38d.16
mov ecx, 0x403050
jmp case.0x41a38d.16
mov ecx, 0x403064
jmp case.0x41a38d.16
mov ecx, 0x403074
push ecx
push dword [esi + 8]
lea eax, [ebp - 0x408]
push dword [esi + 0xc]
push dword [esi]
push 0x92c
push dword [0x4623bc]
push dword [0x4623b8]
push 0x403080
push 0x400
push eax
call dword [sym.imp.ntdll.dll_sprintf_s]
add esp, 0x28
lea ecx, [esi + 0x10]
lea edx, [ebp - 0x41c]
mov edi, eax
call fcn.00458daa
or dword [ebp - 0x410], 0xffffffff
or dword [ebp - 0x40c], 0xffffffff
cmp edi, 0xffffffff
je 0x41a4d7
xor esi, esi
lea eax, [ebp - 0x410]
push esi
push eax
push edi
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x424]
push eax
push esi
push esi
push esi
push dword [0x4623c0]
call dword [sym.imp.ntdll.dll_NtWriteFile]
push esi
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x41c]
lea eax, [ebp - 0x424]
push dword [ebp - 0x414]
push eax
push esi
push esi
push esi
push dword [0x4623c0]
call dword [sym.imp.ntdll.dll_NtWriteFile]
push esi
lea eax, [ebp - 0x410]
push eax
push 2
push 0x4030a0
lea eax, [ebp - 0x424]
push eax
push esi
push esi
push esi
push dword [0x4623c0]
call dword [sym.imp.ntdll.dll_NtWriteFile]
lea ecx, [ebp - 0x41c]
call fcn.0041d2e7
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00461687
leave
ret

Function at 0x41a544
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x462040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4623c0], 0
je 0x41a5b2
push esi
lea eax, [ebp + 0xc]
mov esi, 0x4625a0
push eax
push dword [ebp + 8]
push 0x400
push esi
call dword [sym.imp.ntdll.dll_vsprintf_s]
add esp, 0x10
test eax, eax
js 0x41a5b1
or dword [ebp - 0xc], 0xffffffff
mov ecx, esi
or dword [ebp - 8], 0xffffffff
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a58c
sub ecx, edx
lea eax, [ebp - 0xc]
xor edx, edx
push edx
push eax
push ecx
push esi
lea eax, [ebp - 0x14]
push eax
push edx
push edx
push edx
push dword [0x4623c0]
call dword [sym.imp.ntdll.dll_NtWriteFile]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00461687
leave
ret