joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bc710
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563cd5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5d6024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [edx]
sub ecx, 0x10
call fcn.00408b20
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 1
xor ebx, ebx
push 0x5c
push esi
call fcn.00522f2a
mov edi, eax
add esp, 8
test edi, edi
je 0x4bc880
sub edi, esi
sar edi, 1
js 0x4bc880
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040d290
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
mov eax, dword [esi - 0xc]
sub eax, edi
push eax
push edi
call fcn.00490c30
mov dword [ebp - 0x20], 0x593788
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x20]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4bc841
push dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x4bc81f
inc ebx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x593788
test eax, eax
je 0x4bc7f7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4bc751
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4bc751
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x593788
test eax, eax
je 0x4bc83f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
jmp 0x4bc861
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x593788
test eax, eax
je 0x4bc861
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4bc880
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4bc89f
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, 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 0x4bcb30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563dbd
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push esi
push edi
mov eax, dword [0x5d6024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x68], 0x44
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x10], 0
mov dword [ebp - 4], 0
cmp byte [ebp + 0x10], 0
je 0x4bcbc1
call fcn.004ca9a0
mov eax, dword [0x5dc330]
test eax, eax
je 0x4bcbc1
lea ecx, [ebp - 0x14]
push ecx
call eax
mov byte [ebp - 0x10], 1
mov ecx, dword [esi]
lea eax, [ebp - 0x24]
mov edx, dword [edi]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push 0
push dword [ebp + 0xc]
xor eax, eax
cmp dword [ecx - 0xc], eax
push 0
push 0
cmovne eax, ecx
push 0
push eax
xor eax, eax
cmp dword [edx - 0xc], eax
cmovne eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, dword [ebp + 8]
test eax, eax
jne 0x4bcc09
test esi, esi
je 0x4bcc05
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor al, al
jmp 0x4bcc2d
test esi, esi
je 0x4bcc22
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov byte [ebp + 0x13], al
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x10], 0
je 0x4bcc58
call fcn.004ca9a0
mov eax, dword [0x5dc32c]
test eax, eax
je 0x4bcc55
lea ecx, [ebp - 0x14]
push ecx
call eax
mov byte [ebp - 0x10], 0
mov al, byte [ebp + 0x13]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4bd310
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563fc5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5d6024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], 0x583c78
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x24]
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x20]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4bd37c
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
jmp 0x4bd43a
xor esi, esi
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 1
lea eax, [ebp - 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push esi
push esi
push 1
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], esi
call ebx
test eax, eax
jne 0x4bd3cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4bd41e
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
call fcn.004b1280
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push esi
push 1
push dword [ebp - 0x20]
call ebx
test eax, eax
je 0x4bd41e
cmp dword [ebp - 0x1c], 0
je 0x4bd41e
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0x18]
mov word [ebp - 0x14], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4bd424
push dword [ebp - 0x2c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x2c]
cmp eax, 1
sete bl
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x4bd426
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
mov byte [ebp - 4], 0
push esi
call fcn.00521d18
add esp, 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], 0x583c78
test eax, eax
je 0x4bd45d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00521461
mov esp, ebp
pop ebp
ret
Function at 0x4bdb10
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x5640bd
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5d6024]
xor eax, ebp
mov dword [ebp + 0x400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x20], 0x583c78
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0x3ff
lea eax, [ebp]
push eax
push edi
call ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4bdbbb
cmp eax, 0x400
jae 0x4bdc8c
mov byte [ebp + eax], 0
mov ecx, esi
lea eax, [ebp]
push eax
call fcn.00493a90
jmp 0x4bdb85
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
cmp eax, 2
jl 0x4bdc49
add eax, 0xfffffffe
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040d100
mov byte [ebp - 4], 1
mov edx, dword [eax]
mov ebx, dword [esi]
sub ebx, 0x10
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x4bdc2a
cmp dword [ebx + 0xc], 0
jl 0x4bdc1f
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x4bdc1f
call fcn.00408b20
mov dword [ebp - 0x14], eax
lea edx, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4bdc18
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [esi], eax
jmp 0x4bdc2a
push dword [edx - 0xc]
mov ecx, esi
push edx
call fcn.00408e90
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4bdc49
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0x583c78
test edi, edi
je 0x4bdc69
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.00521461
lea esp, [ebp + 0x404]
pop ebp
ret
call fcn.00521a4e
int3
Function at 0x4be570
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5642df
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x5d6024]
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 esi, edx
mov edi, ecx
push str.TEST
push 0
mov edx, str.tin9999.tmp
mov dword [ebp - 0x1c], str.http:__www.google.com
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x18], str.http:__www.yahoo.com
mov dword [ebp - 0x14], str.http:__www.example.com
call fcn.00409a30
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xd0]
push esi
push edi
call fcn.004be8e0
mov byte [ebp - 4], 1
xor bl, bl
mov dword [ebp - 0x58], 0
lea esi, [ebp - 0x1c]
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0xd8]
cmovae eax, dword [ebp - 0x34]
push eax
call fcn.00415360
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd4]
push dword [esi]
call fcn.00415360
mov byte [ebp - 4], 3
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0xe4]
call fcn.0048f8e0
mov eax, dword [ebp - 0xd0]
lea ecx, [ebp - 0xd8]
push ecx
lea ecx, [ebp - 0xe4]
push ecx
lea ecx, [ebp - 0xd0]
call dword [eax + 0x4c]
mov edi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xe4]
call fcn.0047f5b0
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0xd4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4be6a2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
or ecx, 0xffffffff
mov eax, dword [ebp - 0xd8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4be6c4
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
test edi, edi
je 0x4be6d8
add esi, 4
lea eax, [ebp - 0x10]
cmp esi, eax
jne 0x4be5f2
jmp 0x4be6da
mov bl, 1
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd0]
call fcn.004a39d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00407f50
mov al, bl
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.00521461
mov esp, ebp
pop ebp
ret
Function at 0x4c07f0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5647bd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5d6024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 0x10]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
push esi
mov dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0x10]
cmp byte [ebx + 0x40], 0
mov dword [ebp + 0xc], eax
cmovne ecx, eax
mov byte [ebx + 0x10], 1
lea eax, [ebp - 0x14]
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x10], eax
call fcn.00409310
mov ecx, eax
test ecx, ecx
je 0x4c0904
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 2
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 0x10]
mov ecx, ebx
push eax
push dword [ebp + 8]
call fcn.004c0730
mov esi, eax
mov byte [ebx + 0x10], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4c08a7
cmp dword [ebp + 0x10], eax
je 0x4c08a7
mov esi, 0x2ee2
jmp 0x4c08bf
test esi, esi
jne 0x4c08bf
mov esi, dword [ebx + 4]
cmp esi, dword [edi + 4]
je 0x4c08bd
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [edi + 4], esi
xor esi, esi
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x14]
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edi, dword [ebp - 0x14]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4c08ee
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
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 0x10
push 0x80004005
call fcn.00408fe0
int3
Function at 0x4c2ba0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564d6d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5d6024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00409310
test eax, eax
je 0x4c2d9c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
call fcn.00409310
test eax, eax
je 0x4c2d9c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
mov eax, 0x595640
lea ecx, [ebp - 0x18]
test eax, 0xffff0000
jne 0x4c2c23
movzx eax, ax
push eax
call fcn.00415200
jmp 0x4c2c2f
push 3
push 0x595640
call fcn.00408e90
mov byte [ebp - 4], 3
lea eax, [ebp - 0x14]
push 0x595640
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004c31b0
test al, al
sete byte [ebp - 0xd]
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x18]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c2c6c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x4c2c7e
push 0x18
push 0x59560c
jmp 0x4c2d22
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x24], 0x583c78
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 5
cmp esi, 0xffffffff
jne 0x4c2cbc
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0x583c78
push eax
jmp 0x4c2d0e
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 0xfeff
push eax
push 2
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4c2cfe
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x18]
push 0
push edx
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4c2d3d
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0x583c78
test esi, esi
je 0x4c2d1b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
push 0x1b
push str.Unable_to_save_script_file
lea ecx, [ebx + 4]
call fcn.00408e90
mov eax, dword [ebp - 0x14]
lea ecx, [ebx + 4]
push dword [eax - 0xc]
push eax
call fcn.00418fd0
xor bl, bl
jmp 0x4c2d67
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0x583c78
test esi, esi
je 0x4c2d5a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.004c2db0
mov bl, al
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4c2d86
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00408fe0
int3
Function at 0x4c31b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564e35
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5d6024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push 0
mov edx, dword [edx]
push eax
call fcn.00409a30
add esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004865b0
mov edx, eax
mov byte [ebp - 4], 1
cmp dword [edx + 0x14], 8
jb 0x4c3214
mov edx, dword [edx]
test edx, edx
jne 0x4c321c
xor ecx, ecx
jmp 0x4c3230
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c3221
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00408e90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00407f50
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407f50
mov al, 1
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.00521461
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4c3490
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564f05
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d6024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 0x200
mov esi, 0x100
call fcn.00521d1d
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
push dword [ebx + 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov ebx, eax
cmp ebx, 0xfe
jne 0x4c3544
add esi, esi
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.00521d18
xor ecx, ecx
mov dword [ebp - 0x14], 0
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00521d1d
mov edi, eax
add esp, 8
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
push dword [eax + 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov ebx, eax
lea eax, [esi - 2]
cmp ebx, eax
je 0x4c34f0
mov ecx, dword [ebp + 8]
call fcn.0047f5b0
call fcn.00409310
mov ecx, eax
test ecx, ecx
je 0x4c35f2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
xor esi, esi
nop dword [eax]
movzx ecx, word [edi + esi*2]
test cx, cx
je 0x4c3584
push ecx
lea ecx, [ebp - 0x10]
call fcn.00490cf0
jmp 0x4c359e
cmp dword [eax - 0xc], 0
je 0x4c3596
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0048f8e0
lea ecx, [ebp - 0x10]
call fcn.00408be0
inc esi
cmp esi, ebx
ja 0x4c35a8
mov eax, dword [ebp - 0x10]
jmp 0x4c3570
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c35c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.00521d18
add esp, 4
mov dword [ebp - 0x14], 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 4
push 0x80004005
call fcn.00408fe0
int3
Function at 0x4c3810
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565087
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d6024]
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], 0x595d20
mov dword [ebp - 4], 5
lea ebx, [esi + 0x20]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x4c385c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 4
lea eax, [esi + 0x34]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
or edi, 0xffffffff
mov edx, dword [eax]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c3886
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
lea eax, [esi + 0x30]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
mov edx, dword [eax]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c38ad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
lea eax, [esi + 0x28]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
mov edx, dword [eax]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c38d4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
lea eax, [esi + 0x24]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov edx, dword [eax]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c38fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebx]
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c391f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [eax]
sub edx, 0x10
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4c394a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 0x4c5620
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565765
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5d6024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov al, byte [esi + 0x18]
lea edi, [esi + 0x18]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x18], 0
test al, al
jne 0x4c5666
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov al, 1
xchg byte [edi], al
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
call fcn.00409310
mov ecx, eax
test ecx, ecx
je 0x4c5753
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
push dword [esi + 0x24]
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x10]
push str.Logger::SetLogFile___s___while_OLD_path_is:_s
push eax
call fcn.004087c0
add esp, 0x10
lea ecx, [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00415360
mov byte [ebp - 4], 3
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 2
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c56e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi + 0x34], 0
je 0x4c56fa
mov ecx, dword [ebp + 8]
lea edx, [esi + 0x24]
call fcn.004b13a0
test al, al
jne 0x4c5705
push dword [ebp + 8]
lea ecx, [esi + 0x24]
call fcn.00478250
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4c5721
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x18]
test al, al
jne 0x4c573f
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
lea ecx, [ebp - 0x18]
xchg byte [ecx], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00408fe0
int3