joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d2e10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call fcn.004d3420
add esp, 8
test al, al
je 0x4d2e35
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4d2e35
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x4d3420
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x4d4890
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4d48bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4d48bb
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x4d7130
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x594624]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi], 0
je 0x4d7174
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4d7174
push 4
push dword [esi]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4d7187
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493dce
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x4d71b5
call esi
push edi
call esi
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493dce
mov esp, ebp
pop ebp
ret
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x1c], 4
pop edi
sete al
xor ecx, ebp
pop esi
call fcn.00493dce
mov esp, ebp
pop ebp
ret
Function at 0x4d90d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c8
mov eax, dword [0x594624]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c4], ecx
mov dword [ebp - 0x4c0], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test ecx, ecx
je 0x4d91b1
test eax, eax
je 0x4d91b1
lea eax, [ebp - 0x4bc]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4d91b1
mov ax, word [ebp - 0x4bc]
xor esi, esi
test ax, ax
je 0x4d91b1
xor ecx, ecx
movzx edx, ax
nop dword [eax + eax]
mov ax, word [ebp + ecx - 0x4ba]
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xd4]
push 0x64
push eax
lea eax, [ebp - 0xc]
mov word [ebp - 0xc], dx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4d919c
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea eax, [ebp - 0xd4]
push ebx
push eax
push dword [ebp - 0x4c4]
mov dword [ebp - 0x4c8], ebx
call fcn.00516411
add esp, 0xc
test eax, eax
je 0x4d91c4
add esi, 4
lea ecx, [esi + esi]
movzx eax, word [ebp + ecx - 0x4bc]
mov edx, eax
test ax, ax
jne 0x4d9140
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493dce
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4d9212
cmp edi, 0x7fffffff
ja 0x4d9212
mov ecx, dword [ebp - 0x4c0]
lea ebx, [ebp - 0xc]
mov esi, SysReAllocString
mov edx, edi
sub esi, edi
sub ebx, ecx
lea eax, [esi + edx]
test eax, eax
je 0x4d91ff
movzx eax, word [ebx + ecx]
test ax, ax
je 0x4d91ff
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4d91e4
mov ebx, dword [ebp - 0x4c8]
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
xor ecx, ecx
test edi, edi
je 0x4d9220
cmp edi, 0x7fffffff
jbe 0x4d9225
mov ecx, 0x80070057
test ecx, ecx
js 0x4d925b
mov eax, dword [ebp - 0x4c0]
mov esi, edi
test edi, edi
je 0x4d9243
cmp word [eax], 0
je 0x4d9243
add eax, 2
sub esi, 1
jne 0x4d9235
xor eax, eax
mov ecx, 0x80070057
test esi, esi
cmovne ecx, eax
mov eax, edi
sub eax, esi
neg esi
sbb esi, esi
and esi, eax
jmp 0x4d925d
xor esi, esi
test ecx, ecx
js 0x4d92ae
mov eax, dword [ebp - 0x4c0]
mov edx, edi
lea ecx, [eax + esi*2]
sub edx, esi
je 0x4d92a1
mov eax, edx
sub eax, edi
mov edi, dword [ebp - 0x4c4]
add eax, 0x7fffffff
add esi, eax
lea eax, [ebx + ebx]
sub eax, ecx
add edi, eax
test esi, esi
je 0x4d92a1
movzx eax, word [edi + ecx]
test ax, ax
je 0x4d92a1
mov word [ecx], ax
dec esi
add ecx, 2
sub edx, 1
jne 0x4d9288
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493dce
mov esp, ebp
pop ebp
ret
Function at 0x4d9690
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00493de0
mov eax, dword [0x594624]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
je 0x4d97c1
mov edi, dword [ebp + 0x10]
cmp edi, 0x64
jl 0x4d97c1
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4d97c1
push 0x400
lea eax, [ebp - 0x804]
mov dword [ebp - 0x804], 0
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
mov dword [ebp - 0x1008], eax
test eax, eax
je 0x4d9796
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.004daa30
lea eax, [ebp - 0x804]
push 0x7e
push eax
call fcn.004dbace
add esp, 0x14
test eax, eax
je 0x4d9758
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
cmp eax, 0x3fe
ja 0x4d9758
mov ecx, 1
jmp 0x4d975a
xor ecx, ecx
test ecx, ecx
lea edx, [ebp - 0x1004]
lea eax, [ebp - 0x804]
push edi
cmovne eax, edx
push eax
push ebx
call fcn.00508ade
add esp, 0xc
mov edi, dword [ebp - 0x1008]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493dce
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x804]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x4d9776
push edi
lea eax, [ebp - 0x804]
push ebx
push eax
call fcn.004d90d0
add esp, 0xc
mov edi, eax
jmp 0x4d977c
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493dce
mov esp, ebp
pop ebp
ret
Function at 0x4d97e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547538
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x594624]
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 edx, dword [ebp + 8]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d9830
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00432180
push 0
push 2
mov dword [ebp - 4], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [ebp - 0x270], ebx
cmp ebx, 0xffffffff
je 0x4d9993
push 0x22c
lea eax, [ebp - 0x26c]
push 0
push eax
call fcn.004daa30
add esp, 0xc
mov dword [ebp - 0x26c], 0x22c
lea eax, [ebp - 0x26c]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4d998c
nop
xor eax, eax
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d98c0
sub ecx, edx
lea eax, [ebp - 0x248]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00432180
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x40]
mov edi, dword [ebp - 0x40]
lea esi, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmp ebx, 8
cmovae eax, edi
cmp dword [ebp - 0x14], 8
cmovae esi, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x30]
jne 0x4d993d
mov edx, ecx
test edx, edx
je 0x4d9921
sub esi, eax
nop dword [eax]
mov cx, word [esi + eax]
cmp cx, word [eax]
jne 0x4d993d
add eax, 2
sub edx, 1
jne 0x4d9910
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x264]
lea ecx, [ebp - 0x40]
call fcn.00421a70
jmp 0x4d9995
cmp ebx, 8
jb 0x4d9971
lea ecx, [ebx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x4d9967
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d99e9
push ecx
push edi
call fcn.004939be
add esp, 8
mov ebx, dword [ebp - 0x270]
lea eax, [ebp - 0x26c]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4d98a0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4d99cb
mov edx, dword [ebp - 0x28]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4d99c1
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d99e9
push ecx
push edx
call fcn.004939be
add esp, 8
mov eax, esi
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.00493dce
mov esp, ebp
pop ebp
ret
call fcn.004e61b8
int3
Function at 0x4d9c80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5475d6
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x594624]
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 edi, dword [ebp + 8]
lea eax, [ebp - 0x2e0]
push 0x2d0
push 0
push eax
call fcn.004daa30
mov esi, dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
lea eax, [ebp - 0x2e4]
add esp, 0xc
mov dword [ebp - 0x2e4], 0x168
push eax
lea eax, [ebp - 0x2e0]
push eax
push 0x54e3e0
push str.http
push 1
push 0
call esi
xor ebx, ebx
test eax, eax
setns bl
test eax, eax
jns 0x4d9d22
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x2e0]
push eax
push 0
push str.iexplore.exe
push 2
push 2
call esi
xor ebx, ebx
test eax, eax
setns bl
test ebx, ebx
je 0x4d9e66
call fcn.0040dca0
mov ecx, eax
test ecx, ecx
je 0x4d9e84
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2e8], eax
lea eax, [ebp - 0x2e0]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x2e8]
call fcn.0041db10
test al, al
jne 0x4d9d92
lea ecx, [ebp - 0x2e0]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d9d70
sub ecx, edx
lea eax, [ebp - 0x2e0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2e8]
call fcn.0040e3c0
mov esi, dword [ebp - 0x2e8]
mov dword [ebp - 4], 1
cmp dword [esi - 0xc], 0
jge 0x4d9daa
or eax, 0xffffffff
jmp 0x4d9dc5
push str..exe
push esi
call fcn.004dbb95
add esp, 8
test eax, eax
jne 0x4d9dc1
or eax, 0xffffffff
jmp 0x4d9dc5
sub eax, esi
sar eax, 1
mov ecx, dword [esi - 0xc]
test eax, eax
jle 0x4d9df6
sub ecx, eax
add eax, 4
add ecx, 4
push ecx
push eax
lea ecx, [ebp - 0x2e8]
call fcn.00469750
push 1
push 0
lea ecx, [ebp - 0x2e8]
call fcn.00469750
mov esi, dword [ebp - 0x2e8]
push 1
push 0
push dword [edi]
push esi
push 0x54e3e0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x4d9e30
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4d9e66
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x4d9e66
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
push 1
push dword [edi]
push esi
call fcn.004da180
add esp, 0x20
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4d9e66
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.00493dce
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040b4c0
int3
Function at 0x4d9e90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547608
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x594624]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push esi
mov dword [ebp - 0x10], 0
call fcn.00410300
push 0x564484
push 0x564488
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00423450
push 0xa
push 0
push dword [esi]
push str.C:progra1intern1iexplore.exe
push 0x54e3e0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x20
mov dword [ebp - 4], 0xffffffff
cmp ecx, eax
mov eax, dword [ebp - 0x10]
sbb esi, esi
add eax, 0xfffffff0
neg esi
or ecx, 0xffffffff
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4d9f25
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4da180
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547688
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x594624]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], eax
test edi, edi
jne 0x4da1c4
xor eax, eax
jmp 0x4da346
cmp word [edi], 0
je 0x4da1bd
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4da1d0
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
ja 0x4da1bd
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4da1bd
cmp dword [ebp + 0x14], 0
je 0x4da208
push dword [ebp - 0x6c]
push edi
call fcn.00470ec0
add esp, 8
test eax, eax
je 0x4da1bd
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], 0
call fcn.004165b0
push esi
push edi
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 0
push 0x54ebdc
push eax
call fcn.0041de00
mov esi, dword [ebp - 0x68]
add esp, 0x10
cmp dword [esi - 4], 1
jle 0x4da248
push dword [esi - 0xc]
lea ecx, [ebp - 0x68]
call fcn.0040cd20
mov esi, dword [ebp - 0x68]
xorps xmm0, xmm0
mov dword [ebp - 0x6c], 0
xor eax, eax
movlpd qword [ebp - 0x60], xmm0
mov word [ebp - 0x22], ax
mov eax, 0xa
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x32], xmm0
movlpd qword [ebp - 0x2a], xmm0
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x38], 0x81
mov word [ebp - 0x34], ax
call fcn.004b5d20
mov dword [ebp - 0x74], eax
test eax, eax
je 0x4da31d
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4da2c0
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x4da305
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4da305
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push 0
push 0
push 0
push esi
push 0
push 0
push dword [ebp - 0x74]
call eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4da30b
push dword [ebp - 0x1c]
call esi
push dword [ebp - 0x20]
call esi
mov dword [ebp - 0x6c], 1
jmp 0x4da30b
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x74]
call esi
cmp dword [ebp - 0x6c], 0
je 0x4da31d
mov esi, 1
jmp 0x4da33c
push 0xa
push 0
push dword [ebp - 0x70]
push edi
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov dword [ebp - 0x70], ecx
mov esi, ecx
lea ecx, [ebp - 0x68]
call fcn.0040d6a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00493dce
mov esp, ebp
pop ebp
ret

Function at 0x51d496
Capabilities:
Read file on windows

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

Function at 0x51d4a1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0051d21c
Function at 0x525947
Capabilities:
Set environment variable

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

Function at 0x525952
Capabilities:
Set environment variable

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

Function at 0x525de5
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00525b6c
Function at 0x52fc40
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54778a
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x594624]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.LogUtils::LogAppender.0
lea edi, [esi + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [esi + 0xc], 1
mov dword [esi + 0x10], 0
call fcn.0040dca0
mov ecx, eax
test ecx, ecx
je 0x52fe04
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
lea ebx, [esi + 0x18]
call fcn.0040dca0
mov ecx, eax
test ecx, ecx
je 0x52fe0e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 1
call fcn.0040dca0
mov ecx, eax
test ecx, ecx
je 0x52fe18
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0xffffffff
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 5
mov dword [esi + 0x10], eax
test edx, edx
jne 0x52fd22
xor ecx, ecx
jmp 0x52fd40
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x52fd30
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.0040e3c0
push edi
mov ecx, ebx
call fcn.004167b0
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x52fd5c
xor ecx, ecx
jmp 0x52fd74
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x52fd64
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x1c]
call fcn.0040e3c0
push ebx
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
call fcn.005307e0
push eax
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.004167b0
mov edx, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x52fdb5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
test eax, eax
je 0x52fdee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x52fdee
cmp dword [esi + 0x10], 0
je 0x52fde5
push dword [edi]
call fcn.005334ef
add esp, 4
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
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
push 0x80004005
call fcn.0040b4c0
push 0x80004005
call fcn.0040b4c0
push 0x80004005
call fcn.0040b4c0
int3
Function at 0x5305e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5478c8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x594624]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
test esi, esi
je 0x5307b4
push str.__set_log_lev0
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x530635
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 4]
jmp 0x5307b4
push str.__set_log_lev1
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x530653
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
jmp 0x5307b4
push str.__set_log_lev2
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x530671
mov eax, dword [edi]
mov ecx, edi
push 2
call dword [eax + 4]
jmp 0x5307b4
push str.__set_log_lev3
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x53068f
mov eax, dword [edi]
mov ecx, edi
push 3
call dword [eax + 4]
jmp 0x5307b4
push str.__reload_log_switch
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x5307b4
lea eax, [edi + 4]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x5306b4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x2c]
mov dword [edi + 0x1c], 3
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], ecx
jb 0x5306e7
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
cmp ecx, 8
jae 0x5306ff
movups xmm0, xmmword [eax]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
jmp 0x53073d
mov esi, ecx
mov eax, SysReAllocString
or esi, 7
lea ecx, [ebp - 0x28]
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.00431e30
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x2c]
push eax
call fcn.004da4b0
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
push 0x56e78c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.005315c0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x53076b
mov dword [edi + 0x1c], 0
cmp dword [edi + 0x28], 0
je 0x5307a4
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x5307a4
push str._______log_reload_switch
lea ecx, [ebp - 0x4c]
call fcn.0048072d
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x4c]
push edx
mov byte [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x4c]
call fcn.00421a70
lea ecx, [ebp - 0x28]
call fcn.00421a70
lea ecx, [ebp - 0x34]
call fcn.004599d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00493dce
mov esp, ebp
pop ebp
ret 4