joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bd120
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568d0d
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push esi
push edi
mov eax, dword [0x5dd024]
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 0x4bd17e
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 0x4bd1fc
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x4bd1f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor al, al
jmp 0x4bd22f
cmp byte [ebp + 0xc], 0
je 0x4bd223
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4bd226
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4bd223
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 0x4bd259
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 0x4bd910
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568f15
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5dd024]
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], 0x5895fc
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 0x4bd97c
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
jmp 0x4bda3a
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 0x4bd9cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4bda1e
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
call fcn.004b1730
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 0x4bda1e
cmp dword [ebp - 0x1c], 0
je 0x4bda1e
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 0x4bda24
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 0x4bda26
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
mov byte [ebp - 4], 0
push esi
call fcn.00525e79
add esp, 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], 0x5895fc
test eax, eax
je 0x4bda5d
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.005255bb
mov esp, ebp
pop ebp
ret
Function at 0x4be110
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x56900d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5dd024]
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], 0x5895fc
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 0x4be1bb
cmp eax, 0x400
jae 0x4be28c
mov byte [ebp + eax], 0
mov ecx, esi
lea eax, [ebp]
push eax
call fcn.00494110
jmp 0x4be185
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
cmp eax, 2
jl 0x4be249
add eax, 0xfffffffe
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040d0a0
mov byte [ebp - 4], 1
mov edx, dword [eax]
mov ebx, dword [esi]
sub ebx, 0x10
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x4be22a
cmp dword [ebx + 0xc], 0
jl 0x4be21f
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x4be21f
call fcn.00408b00
mov dword [ebp - 0x14], eax
lea edx, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4be218
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 0x4be22a
push dword [edx - 0xc]
mov ecx, esi
push edx
call fcn.00408e70
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 0x4be249
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0x5895fc
test edi, edi
je 0x4be269
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.005255bb
lea esp, [ebp + 0x404]
pop ebp
ret
call fcn.00525ba9
int3
Function at 0x4beaa0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5691ff
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x5dd024]
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.00409a10
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xd4]
push esi
push edi
call fcn.004bee10
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.004154d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd8]
push dword [esi]
call fcn.004154d0
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.0048ff50
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.0047fd10
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 0x4bebd2
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 0x4bebf4
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
test edi, edi
je 0x4bec08
add esi, 4
lea eax, [ebp - 0x10]
cmp esi, eax
jne 0x4beb22
jmp 0x4bec0a
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.004a4080
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00407f30
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.005255bb
mov esp, ebp
pop ebp
ret
Function at 0x4c1290
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56985d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5dd024]
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.004092f0
mov ecx, eax
test ecx, ecx
je 0x4c13a4
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.004c11d0
mov esi, eax
mov byte [ebx + 0x10], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4c1347
cmp dword [ebp + 0x10], eax
je 0x4c1347
mov esi, 0x2ee2
jmp 0x4c135f
test esi, esi
jne 0x4c135f
mov esi, dword [ebx + 4]
cmp esi, dword [edi + 4]
je 0x4c135d
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 0x4c138e
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.00408fc0
int3
Function at 0x4c36c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569e0d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5dd024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.004092f0
test eax, eax
je 0x4c38bc
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.004092f0
test eax, eax
je 0x4c38bc
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, 0x59b214
lea ecx, [ebp - 0x18]
test eax, 0xffff0000
jne 0x4c3743
movzx eax, ax
push eax
call fcn.00415370
jmp 0x4c374f
push 3
push 0x59b214
call fcn.00408e70
mov byte [ebp - 4], 3
lea eax, [ebp - 0x14]
push 0x59b214
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004c3cd0
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 0x4c378c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x4c379e
push 0x18
push str.Unable_to_get_temp_file
jmp 0x4c3842
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], 0x5895fc
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 5
cmp esi, 0xffffffff
jne 0x4c37dc
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0x5895fc
push eax
jmp 0x4c382e
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 0x4c381e
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 0x4c385d
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0x5895fc
test esi, esi
je 0x4c383b
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.00408e70
mov eax, dword [ebp - 0x14]
lea ecx, [ebx + 4]
push dword [eax - 0xc]
push eax
call fcn.00419140
xor bl, bl
jmp 0x4c3887
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0x5895fc
test esi, esi
je 0x4c387a
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.004c38d0
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 0x4c38a6
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.00408fc0
int3
Function at 0x4c3cd0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569ed5
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5dd024]
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.00409a10
add esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00486d00
mov edx, eax
mov byte [ebp - 4], 1
cmp dword [edx + 0x14], 8
jb 0x4c3d34
mov edx, dword [edx]
test edx, edx
jne 0x4c3d3c
xor ecx, ecx
jmp 0x4c3d50
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c3d41
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00408e70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00407f30
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407f30
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.005255bb
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4c3fb0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569fa5
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5dd024]
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.00525e7e
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 0x4c4064
add esi, esi
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.00525e79
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.00525e7e
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 0x4c4010
mov ecx, dword [ebp + 8]
call fcn.0047fd10
call fcn.004092f0
mov ecx, eax
test ecx, ecx
je 0x4c4112
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 0x4c40a4
push ecx
lea ecx, [ebp - 0x10]
call fcn.00491360
jmp 0x4c40be
cmp dword [eax - 0xc], 0
je 0x4c40b6
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0048ff50
lea ecx, [ebp - 0x10]
call fcn.00408bc0
inc esi
cmp esi, ebx
ja 0x4c40c8
mov eax, dword [ebp - 0x10]
jmp 0x4c4090
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 0x4c40e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.00525e79
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.00408fc0
int3
Function at 0x4c4330
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a127
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5dd024]
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], 0x59b924
mov dword [ebp - 4], 5
lea ebx, [esi + 0x20]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x4c437c
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 0x4c43a6
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 0x4c43cd
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 0x4c43f4
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 0x4c441b
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 0x4c443f
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 0x4c446a
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 0x4c6140
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a805
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5dd024]
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 0x4c6186
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.004092f0
mov ecx, eax
test ecx, ecx
je 0x4c6273
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 0x59b980
push eax
call fcn.004087a0
add esp, 0x10
lea ecx, [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.004154d0
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 0x4c6205
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi + 0x34], 0
je 0x4c621a
mov ecx, dword [ebp + 8]
lea edx, [esi + 0x24]
call fcn.004b1850
test al, al
jne 0x4c6225
push dword [ebp + 8]
lea ecx, [esi + 0x24]
call fcn.00478ba0
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 0x4c6241
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 0x4c625f
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.00408fc0
int3
Function at 0x4c7300
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5659db
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x5dd024]
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, ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, eax
cmp eax, 0x208
jae 0x4c74b5
xor ecx, ecx
lea esi, [ebp - 0x218]
mov word [ebp + eax - 0x218], cx
cmp word [ebp - 0x218], cx
je 0x4c7378
nop dword [eax + eax]
add esi, 2
cmp word [esi], cx
jne 0x4c7370
mov ecx, str.ADVINST_LOGS
mov eax, 0x41
sub ecx, esi
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x4c7384
xor eax, eax
push eax
mov word [esi], ax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4c73ca
xor al, al
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.005255bb
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 0x28]
mov eax, 0x5c
mov word [esi], ax
add esi, 2
cmp dword [ecx - 0xc], 0
jne 0x4c744e
lea ecx, [ebp - 0x21c]
call fcn.004c74c0
mov dword [ebp - 4], 0
cmp word [esi], 0
mov ecx, dword [eax]
je 0x4c7409
nop dword [eax + eax]
add esi, 2
cmp word [esi], 0
jne 0x4c7400
movzx eax, word [ecx]
test ax, ax
je 0x4c7422
sub ecx, esi
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x4c7413
xor eax, eax
mov word [esi], ax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c7484
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4c7484
cmp word [esi], 0
je 0x4c745d
add esi, 2
cmp word [esi], 0
jne 0x4c7454
movzx eax, word [ecx]
test ax, ax
je 0x4c747f
sub ecx, esi
nop word [eax + eax]
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x4c7470
xor eax, eax
mov word [esi], ax
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4c7490
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.00408e70
mov al, 1
jmp 0x4c73ac
call fcn.00525ba9
int3