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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572665
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5e8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [edx]
sub ecx, 0x10
call fcn.00409540
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 1
xor ebx, ebx
push 0x5c
push esi
call fcn.0052f997
mov edi, eax
add esp, 8
test edi, edi
je 0x4c44c0
sub edi, esi
sar edi, 1
js 0x4c44c0
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040e090
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
mov eax, dword [esi - 0xc]
sub eax, edi
push eax
push edi
call fcn.004981e0
mov dword [ebp - 0x20], 0x5a32b4
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 0x4c4481
push dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x4c445f
inc ebx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x5a32b4
test eax, eax
je 0x4c4437
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 0x4c4391
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4c4391
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x5a32b4
test eax, eax
je 0x4c447f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
jmp 0x4c44a1
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x5a32b4
test eax, eax
je 0x4c44a1
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 0x4c44c0
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 0x4c44df
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 0x4c4770
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57274d
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push esi
push edi
mov eax, dword [0x5e8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x10], 0
mov dword [ebp - 4], 0
cmp byte [ebp + 8], 0
je 0x4c47ce
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
movzx ecx, byte [ebp - 0x10]
test eax, eax
mov edx, 1
cmovne ecx, edx
mov byte [ebp - 0x10], cl
mov ecx, dword [esi]
lea eax, [ebp - 0x24]
mov edx, dword [edi]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x68]
movlpd qword [ebp - 0x64], xmm0
push eax
push 0
push 0
push dword [ebp + 0x10]
xor eax, eax
movlpd qword [ebp - 0x5c], xmm0
push 0
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
mov dword [ebp - 0x68], 0x44
movups xmmword [ebp - 0x24], xmm0
cmp dword [ecx - 0xc], eax
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]
test eax, eax
jne 0x4c484c
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x4c4848
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor al, al
jmp 0x4c487f
cmp byte [ebp + 0xc], 0
je 0x4c4873
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4c4876
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4c4873
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov byte [ebp + 0xb], al
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x10], 0
je 0x4c48a9
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
movzx ecx, byte [ebp - 0x10]
xor edx, edx
test eax, eax
mov al, byte [ebp + 0xb]
cmovne ecx, edx
mov byte [ebp - 0x10], cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c4f60
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572955
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5e8024]
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], 0x5935fc
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 0x4c4fcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
jmp 0x4c508a
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 0x4c501b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4c506e
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
call fcn.004b89e0
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 0x4c506e
cmp dword [ebp - 0x1c], 0
je 0x4c506e
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 0x4c5074
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 0x4c5076
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
mov byte [ebp - 4], 0
push esi
call fcn.0052e812
add esp, 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], 0x5935fc
test eax, eax
je 0x4c50ad
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.0052df57
mov esp, ebp
pop ebp
ret
Function at 0x4c5760
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x572a4d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5e8024]
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], 0x5935fc
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 0x4c580b
cmp eax, 0x400
jae 0x4c58dc
mov byte [ebp + eax], 0
mov ecx, esi
lea eax, [ebp]
push eax
call fcn.0049b150
jmp 0x4c57d5
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
cmp eax, 2
jl 0x4c5899
add eax, 0xfffffffe
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040df00
mov byte [ebp - 4], 1
mov edx, dword [eax]
mov ebx, dword [esi]
sub ebx, 0x10
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x4c587a
cmp dword [ebx + 0xc], 0
jl 0x4c586f
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x4c586f
call fcn.00409540
mov dword [ebp - 0x14], eax
lea edx, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c5868
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 0x4c587a
push dword [edx - 0xc]
mov ecx, esi
push edx
call fcn.004098b0
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 0x4c5899
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0x5935fc
test edi, edi
je 0x4c58b9
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.0052df57
lea esp, [ebp + 0x404]
pop ebp
ret
call fcn.0052e542
int3
Function at 0x4c60f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572c3f
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x5e8024]
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.0040a470
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xd4]
push esi
push edi
call fcn.004c6460
mov byte [ebp - 4], 1
xor bl, bl
mov dword [ebp - 0x5c], 0
lea esi, [ebp - 0x1c]
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0xdc]
cmovae eax, dword [ebp - 0x34]
push eax
call fcn.00416070
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd8]
push dword [esi]
call fcn.00416070
mov byte [ebp - 4], 3
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0xe8]
call fcn.00496e80
mov eax, dword [ebp - 0xd4]
lea ecx, [ebp - 0xdc]
push ecx
lea ecx, [ebp - 0xe8]
push ecx
lea ecx, [ebp - 0xd4]
call dword [eax + 0x4c]
mov edi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xe8]
call fcn.00486950
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0xd8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c6222
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 - 0xdc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4c6244
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
test edi, edi
je 0x4c6258
add esi, 4
lea eax, [ebp - 0x10]
cmp esi, eax
jne 0x4c6172
jmp 0x4c625a
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 - 0xd4]
call fcn.004ab280
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00408570
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.0052df57
mov esp, ebp
pop ebp
ret
Function at 0x4c88f0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57329d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5e8024]
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.00409d30
mov ecx, eax
test ecx, ecx
je 0x4c8a04
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.004c8830
mov esi, eax
mov byte [ebx + 0x10], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4c89a7
cmp dword [ebp + 0x10], eax
je 0x4c89a7
mov esi, 0x2ee2
jmp 0x4c89bf
test esi, esi
jne 0x4c89bf
mov esi, dword [ebx + 4]
cmp esi, dword [edi + 4]
je 0x4c89bd
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 0x4c89ee
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.00409a00
int3
Function at 0x4cad20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57384d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5e8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00409d30
test eax, eax
je 0x4caf1c
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.00409d30
test eax, eax
je 0x4caf1c
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, 0x5a52f0
lea ecx, [ebp - 0x18]
test eax, 0xffff0000
jne 0x4cada3
movzx eax, ax
push eax
call fcn.00409280
jmp 0x4cadaf
push 3
push 0x5a52f0
call fcn.004098b0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x14]
push 0x5a52f0
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004cb330
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 0x4cadec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x4cadfe
push 0x18
push 0x5a52bc
jmp 0x4caea2
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], 0x5935fc
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 5
cmp esi, 0xffffffff
jne 0x4cae3c
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0x5935fc
push eax
jmp 0x4cae8e
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 0x4cae7e
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 0x4caebd
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0x5935fc
test esi, esi
je 0x4cae9b
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.004098b0
mov eax, dword [ebp - 0x14]
lea ecx, [ebx + 4]
push dword [eax - 0xc]
push eax
call fcn.00419d30
xor bl, bl
jmp 0x4caee7
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0x5935fc
test esi, esi
je 0x4caeda
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.004caf30
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 0x4caf06
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.00409a00
int3
Function at 0x4cb330
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573915
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5e8024]
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.0040a470
add esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0048db40
mov edx, eax
mov byte [ebp - 4], 1
cmp dword [edx + 0x14], 8
jb 0x4cb394
mov edx, dword [edx]
test edx, edx
jne 0x4cb39c
xor ecx, ecx
jmp 0x4cb3b0
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cb3a1
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.004098b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00408570
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00408570
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.0052df57
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4cb610
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5739e5
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5e8024]
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.0052e817
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 0x4cb6c4
add esi, esi
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.0052e812
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.0052e817
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 0x4cb670
mov ecx, dword [ebp + 8]
call fcn.00486950
call fcn.00409d30
mov ecx, eax
test ecx, ecx
je 0x4cb772
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 0x4cb704
push ecx
lea ecx, [ebp - 0x10]
call fcn.004982a0
jmp 0x4cb71e
cmp dword [eax - 0xc], 0
je 0x4cb716
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00496e80
lea ecx, [ebp - 0x10]
call fcn.00409600
inc esi
cmp esi, ebx
ja 0x4cb728
mov eax, dword [ebp - 0x10]
jmp 0x4cb6f0
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 0x4cb747
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.0052e812
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.00409a00
int3
Function at 0x4cb990
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573b67
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5e8024]
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], 0x5a59d0
mov dword [ebp - 4], 5
lea ebx, [esi + 0x20]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x4cb9dc
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 0x4cba06
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 0x4cba2d
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 0x4cba54
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 0x4cba7b
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 0x4cba9f
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 0x4cbaca
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 0x4cd7a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574245
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5e8024]
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 0x4cd7e6
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.00409d30
mov ecx, eax
test ecx, ecx
je 0x4cd8d3
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.00408de0
add esp, 0x10
lea ecx, [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00416070
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 0x4cd865
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi + 0x34], 0
je 0x4cd87a
mov ecx, dword [ebp + 8]
lea edx, [esi + 0x24]
call fcn.004b8bb0
test al, al
jne 0x4cd885
push dword [ebp + 8]
lea ecx, [esi + 0x24]
call fcn.0047f480
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 0x4cd8a1
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 0x4cd8bf
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.00409a00
int3