joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b820
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 3
push 0
push 7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42b846
or eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [ebp - 4]
push ecx
push esi
mov edi, eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x42b86f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42cc80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1064
call fcn.004929f0
mov eax, dword [0x4c448c]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 0
jne 0x42ccfb
push 0x7ff
lea eax, [ebp - 0x100c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x42ccfb
lea eax, [ebp - 0x100c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42ccc5
sub eax, edx
sar eax, 1
dec eax
test eax, eax
jle 0x42ccfb
mov ecx, 0x5c
mov edi, edi
cmp word [ebp + eax*2 - 0x100c], cx
je 0x42ccf1
dec eax
test eax, eax
jg 0x42cce0
jmp 0x42ccfb
xor ecx, ecx
mov word [ebp + eax*2 - 0x100c], cx
lea edx, [ebp - 0x1064]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea eax, [ebp - 0x101c]
push eax
lea ecx, [ebp - 0x1064]
push ecx
push 0
push 0
push 0x208
push 0
push 0
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp - 8]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x101c]
xor ecx, ebp
call fcn.00474985
mov esp, ebp
pop ebp
ret
Function at 0x42d3b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ddb8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x4c448c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
test esi, esi
je 0x42d415
mov eax, esi
lea edx, [eax + 2]
jmp 0x42d400
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42d400
sub eax, edx
sar eax, 1
je 0x42d415
mov bl, 1
jmp 0x42d417
xor bl, bl
mov edx, dword [0x4c41fc]
mov eax, dword [edx + 0xc]
mov ecx, 0x4c41fc
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov eax, 0x4b1a48
test bl, bl
jne 0x42d442
mov eax, 0x4aab50
mov ebx, dword [ebp + 8]
push esi
push eax
push ebx
push str.__s__s_s
lea edi, [ebp - 0x14]
call fcn.004020e0
mov esi, dword [ebp - 0x14]
add esp, 0x10
cmp dword [esi - 4], 1
jle 0x42d470
mov ecx, dword [esi - 0xc]
push ecx
mov edx, edi
push edx
call fcn.00401ff0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x6c]
push ecx
push 0
push 0
push 0x208
push 0
push 0
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x42d4ca
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42d4b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, 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
mov eax, dword [ebp - 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x42d4da
push eax
call edi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x42d4e4
push eax
call edi
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d507
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
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 0x42d8a0
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.0042d980
test al, al
je 0x42d906
mov edx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 5
push edx
push 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
mov eax, dword [ebp - 4]
je 0x42d8fb
push 0xffffffffffffffff
push eax
push 0x200
push edi
call fcn.004740e7
mov ecx, dword [ebp - 4]
add esp, 0x10
push ecx
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov al, 1
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x42d906
push eax
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
test edi, edi
je 0x42d90f
xor edx, edx
mov word [edi], dx
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x433c70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push 1
push 0
push 0x4c74e8
push SysReAllocString
mov dword [ebp - 8], 4
mov dword [ebp - 4], 0xffffffff
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x433cdb
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 4]
push edx
push 0
push 0
lea eax, [esi + 4]
push eax
push ecx
call edi
test eax, eax
jne 0x433ccd
cmp dword [ebp - 8], 4
je 0x433ccf
mov bl, 1
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x433cdd
mov bl, 1
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
je 0x433cf0
cmp eax, 0x7fffffff
je 0x433cf0
test bl, bl
je 0x433d50
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push 1
push 0
push 0
push 0
push 0x4c74e8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x433d4d
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 4]
push eax
push 0
mov ebx, 4
push 0
add esi, ebx
push esi
push ecx
mov dword [ebp - 8], ebx
call edi
test eax, eax
jne 0x433d3c
cmp dword [ebp - 8], ebx
je 0x433d43
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
cmp eax, 0x7fffffff
jne 0x433d5d
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret

Function at 0x433d70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xa8]
add esi, 0xa8
cmp eax, 0x7fffffff
je 0x433e51
cmp eax, 0xffffffff
je 0x433e51
push ebx
push edi
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push 0x4c74e8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x433df2
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
push 4
push esi
push 3
push 0
add edx, 4
push edx
push eax
call edi
mov ecx, dword [ebp - 4]
push ecx
call ebx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push 0x4c74e8
push SysReAllocString
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x433e46
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push 4
push esi
push 3
push eax
add ecx, 4
push ecx
push edx
call edi
mov eax, dword [ebp - 4]
push eax
call ebx
pop edi
pop ebx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x434530
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0xf01ff
push str.Schedule
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x43455a
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 4]
push eax
push 0
push 0
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x434609
mov eax, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 4], eax
cmp eax, 0x2000
jbe 0x43459a
mov eax, 0x2000
mov dword [ebp - 4], eax
push eax
call fcn.0047125f
mov ecx, dword [ebp - 4]
push ecx
mov esi, eax
push 0
push esi
call fcn.00479dd0
mov eax, dword [ebp - 4]
add esp, 0x10
lea edx, [ebp - 4]
push edx
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x434600
cmp dword [esi + 4], 4
jne 0x434625
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
push ecx
push 0
push edx
mov edx, dword [esi + 0x10]
push eax
mov eax, dword [esi + 0xc]
lea ecx, [esi + 0x14]
push ecx
mov ecx, dword [esi + 8]
push edx
mov edx, dword [esi]
push eax
push ecx
push 3
push edx
push edi
mov dword [esi + 4], 3
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x43461d
push esi
call fcn.00472958
add esp, 4
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push ebx
call esi
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
push 1
call dword [sym.imp.ADVAPI32.dll_NotifyBootConfigStatus]
push esi
call fcn.00472958
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 4
push edi
call esi
push ebx
call esi
pop esi
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x434650
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4c448c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x25
push 0
mov esi, ecx
push 0
mov dword [ebp - 0x28], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x43468d
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474985
mov esp, ebp
pop ebp
ret 4
push edi
push 0xf01ff
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x4346bd
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474985
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x434701
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x434722
cmp eax, 3
je 0x434722
lea ecx, [ebp - 0x20]
push ecx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x434722
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push ebx
call esi
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474985
mov esp, ebp
pop ebp
ret 4
cmp byte [ebp + 8], 0
je 0x43475d
xor esi, esi
lea ebx, [ebx]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x28]
call fcn.004349b0
test al, al
jne 0x434752
inc esi
cmp esi, 0xa
jb 0x434730
mov byte [ebp - 0x21], al
jmp 0x434761
cmp esi, 0xa
jb 0x43475d
mov byte [ebp - 0x21], 0
jmp 0x434761
mov byte [ebp - 0x21], 1
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x21]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00474985
mov esp, ebp
pop ebp
ret 4
Function at 0x4347a0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c448c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x25
push 0
mov esi, ecx
push 0
mov dword [ebp - 0x24], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x4347dd
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474985
mov esp, ebp
pop ebp
ret 4
push edi
push 0xf01ff
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x43480d
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474985
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x43484f
mov eax, dword [ebp - 0x1c]
cmp eax, 4
je 0x434870
cmp eax, 2
je 0x434870
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x434870
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push ebx
call esi
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474985
mov esp, ebp
pop ebp
ret 4
cmp byte [ebp + 8], 0
je 0x4348a0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x24]
call fcn.00434a70
test al, al
jne 0x4348a0
inc esi
cmp esi, 0x1e
jb 0x434883
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00474985
mov esp, ebp
pop ebp
ret 4
Function at 0x436390
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x40], eax
call edi
mov dword [esi + 0x3c], eax
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x4360a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x38], eax
pop edi
test eax, eax
je 0x4363df
cmp dword [esi + 0x3c], 0
je 0x4363df
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x4363f0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi + 0x38]
test eax, eax
je 0x436404
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetHandleInformation]
push esi
mov esi, dword [edi + 0x3c]
test esi, esi
je 0x43642c
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], 0
call ebx
test eax, eax
je 0x43642c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [edi + 0x40]
lea ecx, [ebp - 4]
push ecx
push esi
mov dword [ebp - 4], 0
call ebx
test eax, eax
je 0x436448
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [edi + 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push edx
call esi
test eax, eax
je 0x436465
mov eax, dword [edi + 0x38]
push 0x2710
push eax
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x436960
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0250
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4c448c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, edx
mov eax, dword [ebp + 8]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, 0xffffffff
je 0x436b1c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp byte [ebx + 0x3549], 0
je 0x4369e5
cmp eax, 0x6400000
jbe 0x4369e5
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x4369f2
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [edi + 8]
mov esi, dword [ebx + 0x18]
mov dword [ebp - 0x10], ecx
lea ecx, [esi + 4]
lea ebx, [ebp - 0x10]
lea eax, [ebp - 0x1c]
call fcn.00464c20
mov eax, dword [eax]
mov esi, dword [esi + 8]
cmp eax, esi
je 0x436a2b
lea esi, [eax + 0x10]
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x436a27
mov edx, dword [eax - 0xc]
push edx
push esi
call fcn.00401ff0
mov ecx, dword [esi]
jmp 0x436a41
mov eax, dword [ebp - 0x10]
push eax
push str.WARNING:_Could_not_find_string_for_action__u
call fcn.004261a0
add esp, 8
mov ecx, 0x4aab50
lea edx, [ebp + 8]
push edx
call fcn.00402ba0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], ebx
je 0x436aec
mov edx, dword [0x4c41fc]
mov eax, dword [edx + 0xc]
mov ecx, 0x4c41fc
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [edi + 0x96e]
push ecx
lea edx, [edi + 0x66e]
push edx
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov edx, dword [edi + 0xc]
push eax
lea ecx, [edi + 0x464]
push ecx
push edx
lea eax, [edi + 0x25a]
push eax
lea ecx, [edi + 0x50]
push ecx
add edi, 0x10
push edi
push str._s__s__s__u__s__s__s__s_r_n
lea edi, [ebp - 0x10]
call fcn.004020e0
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
add esp, 0x24
push ebx
mov dword [ebp - 0x18], ebx
mov eax, dword [edi - 0xc]
lea edx, [ebp - 0x18]
push edx
add eax, eax
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x436aec
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x436b1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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
Function at 0x436f80
Capabilities:
Check if file exists
Delete file
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a12c6
mov eax, dword fs:[0]
push eax
sub esp, 0xd88
mov eax, dword [0x4c448c]
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, ecx
call fcn.0044a740
mov eax, dword [0x4c41fc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c41fc
call edx
add eax, 0x10
mov dword [ebp - 0xd88], eax
lea ecx, [esi + 0x60]
lea edi, [ebp - 0xd88]
mov dword [ebp - 4], 0
call fcn.00449640
push 0xc
push str.iologvr.log
mov ebx, edi
call fcn.00418c50
mov edi, dword [ebp - 0xd88]
push 0
push 0x100
push 3
push 0
push 0
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x437153
lea eax, [ebp - 0xd90]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xd74
jb 0x43714c
push 0
lea ecx, [ebp - 0xd94]
push ecx
push 0xd74
lea edx, [ebp - 0xd84]
push edx
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x437060
cmp dword [ebp - 0x14], 0x9090
je 0x437060
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x437125
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [0x4c41fc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c41fc
call edx
add eax, 0x10
mov dword [ebp - 0xd8c], eax
lea eax, [ebp - 0xd8c]
push eax
mov byte [ebp - 4], 1
call fcn.0044afe0
mov ebx, dword [ebp - 0xd8c]
push 0
push ebx
push str._sprolasso.log._d
lea edi, [ebp - 0xd88]
call fcn.004020e0
mov edi, dword [ebp - 0xd88]
add esp, 0xc
push edi
mov esi, 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x437105
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x437105
inc esi
push esi
push ebx
push str._sprolasso.log._d
lea edi, [ebp - 0xd88]
call fcn.004020e0
mov edi, dword [ebp - 0xd88]
add esp, 0xc
push edi
inc esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4370d1
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x437125
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x437148
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov al, 1
jmp 0x437178
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x437176
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
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.00474985
mov esp, ebp
pop ebp
ret
Function at 0x4383c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49eefb
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4c448c]
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 bl, cl
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x21a]
push ecx
mov edi, edx
mov word [ebp - 0x21c], ax
call fcn.00479dd0
add esp, 0xc
movzx edx, bl
neg edx
sbb edx, edx
push 1
and edx, 9
add edx, 0x1a
push edx
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x43844e
push str.iolo_
lea ecx, [ebp - 0x21c]
push 0x105
push ecx
call fcn.00475820
add esp, 0xc
jmp 0x43845b
push str.WARNING:_Couldnt_resolve_common_appdata_dir
call fcn.004261a0
add esp, 4
mov edx, dword [0x4c41fc]
mov eax, dword [edx + 0xc]
mov ecx, 0x4c41fc
call eax
add eax, 0x10
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 0
test bl, bl
je 0x438492
push str.stock_ebprofiles.json
lea ecx, [ebp - 0x220]
push ecx
mov ebx, 0x15
jmp 0x4384a3
push str.user_ebprofiles.json
lea edx, [ebp - 0x220]
push edx
mov ebx, 0x14
call fcn.00402e20
mov esi, dword [ebp - 0x220]
push esi
lea eax, [ebp - 0x21c]
push eax
push str._s_s
call fcn.004020e0
mov ecx, dword [edi]
push ecx
push str.Built_EB_JSON_path__s
call fcn.004261a0
lea eax, [esi - 0x10]
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4384f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.00474985
mov esp, ebp
pop ebp
ret