joyce8/EMBER2024-capa huggingface dataset:
Function at 0x532be0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x622230
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
cmp esi, ebx
mov dword [ebp - 0x10], esp
mov edx, ecx
mov dword [ebp - 4], ebx
je 0x532d76
mov ecx, 0x58
xor eax, eax
lea edi, [ebp - 0x184]
mov dword [ebp + 0xc], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp + 0xc]
mov ecx, edx
push eax
push 0x652de0
push 2
call fcn.00532b00
cmp eax, ebx
je 0x532c5c
push 0x410c
lea ecx, [ebp - 0x184]
push 0x160
push ecx
push ebx
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov dword [ebp + 0xc], eax
jmp 0x532c75
push 0x400c
lea edx, [ebp - 0x184]
push 0x160
push edx
push ebx
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [ebp - 0x180]
mov ecx, dword [ebp + 0xc]
push 1
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push edi
mov dword [ebp + 0x10], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi]
mov dword [ebp + 8], eax
xor eax, eax
push 5
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_GetSysColorBrush]
lea ecx, [ebp - 0x24]
push eax
push ecx
push edi
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x14]
push 3
push 0
push 0
push 0x30
push 0x30
sub eax, 0x30
push edx
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esi]
sub eax, 0x30
cdq
sub eax, edx
sar eax, 1
push eax
push edi
call dword [sym.imp.USER32.dll_DrawIconEx]
mov ecx, dword [esi + 4]
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
push 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
call dword [sym.imp.USER32.dll_GetSysColorBrush]
lea edx, [ebp - 0x24]
push eax
push edx
push edi
call dword [sym.imp.USER32.dll_FrameRect]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov ecx, dword [ebp + 8]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push edi
call esi
push ebx
call esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5339d0
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push edi
mov edi, ecx
push eax
push 0
push edi
push 0x533a40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x533a1f
mov eax, dword [0x6ecc20]
test eax, eax
jne 0x533a21
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SleepEx]
push 1
push 0
call esi
mov eax, dword [0x6ecc20]
test eax, eax
je 0x5339ff
mov dword [edi + 0x24], eax
pop esi
mov dword [0x6ecc20], 0
pop edi
pop ecx
ret
xor eax, eax
mov dword [edi + 0x24], eax
mov dword [0x6ecc20], 0
pop edi
pop ecx
ret

Function at 0x533d80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x622396
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
xor eax, eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov dword [esi + 4], 0x65368c
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x11
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0xa
mov dword [ebp - 4], eax
mov dword [esi + 0x28], vtable.CMenu.0
mov dword [esi + 0x2c], eax
mov dword [esi], 0x653688
mov byte [ebp - 4], 2
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
call fcn.00604991
call fcn.00604991
mov eax, dword [eax + 0xc]
push 0x120
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esi + 0x48], eax
lea eax, [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x534e50
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x6224f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebx + 4]
cmp esi, 0xffffffff
je 0x534eaa
mov edx, dword [esp + 0x1c]
push edi
lea eax, [esp + 0x20]
push 0
push eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
call esi
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x20]
push 0
push ecx
push 2
push 0x6bcdb0
push edx
call esi
pop edi
mov ecx, dword [esp + 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x534ec0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62251b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov eax, dword [edi + 4]
mov dword [ebp - 4], ebx
cmp eax, 0xffffffff
je 0x534fcb
push 0x6d7f0c
lea ecx, [ebp - 0x14]
call fcn.005fa8c7
mov eax, dword [0x6e7b6c]
mov dword [ebp - 0x18], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push 1
push ecx
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 2
call fcn.00579ad0
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push edx
call fcn.005fab97
cmp dword [esi + 0x38], ebx
je 0x534f4b
push 0x6d7f00
lea ecx, [ebp - 0x14]
call fcn.005fab5b
mov eax, dword [esi + 0x38]
lea ecx, [ebp - 0x14]
push eax
call fcn.005fab5b
cmp dword [esi + 0x3c], ebx
je 0x534f69
push 0x6d7ef4
lea ecx, [ebp - 0x14]
call fcn.005fab5b
mov ecx, dword [esi + 0x3c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.005fab5b
mov edx, dword [esi + 0x190]
add esi, 0x190
cmp dword [edx - 8], ebx
je 0x534f90
push 0x6d7eec
lea ecx, [ebp - 0x14]
call fcn.005fab5b
push esi
lea ecx, [ebp - 0x14]
call fcn.005fab97
push 0x6d7ee4
lea ecx, [ebp - 0x14]
call fcn.005fab5b
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x1c]
push ebx
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.005fa859
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.005fa859
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5374f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x6226f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfac
push ebx
mov edx, dword [0x6ec7a0]
push ebp
mov ebp, ecx
push esi
lea eax, [esp + 0xc]
push edi
lea ecx, [esp + 0x7e8]
push eax
push ecx
push 0
push 0
mov esi, 0x7d0
push 0x6c11e4
push edx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x53754c
xor eax, eax
jmp 0x53764a
mov ebx, dword [esp + 0xfcc]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, esi
jae 0x53764a
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x10], esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x30000000
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x1c]
and ecx, 3
lea eax, [esp + 0x1c]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
lea ecx, [esp + 0x7e8]
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, ebp
call fcn.005373c0
mov ebp, eax
test ebp, ebp
jne 0x537648
push 0x3f
push ebx
call fcn.005de150
add esp, 8
test eax, eax
je 0x537648
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x30000000
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x1c]
and ecx, 3
mov dword [esp + 0x14], 0x7d0
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
lea ecx, [esp + 0x18]
push 0x3f
push ecx
call fcn.005de150
add esp, 8
test eax, eax
je 0x537648
mov ecx, dword [esp + 0x14]
mov byte [eax], 0
lea edx, [esp + 0x7e8]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.005373c0
mov ebp, eax
mov eax, ebp
mov ecx, dword [esp + 0xfbc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xfb8
ret 4
Function at 0x537670
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x622700
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfac
mov edx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x14], ecx
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x10], esp
cmp ecx, 0x7d0
mov dword [ebp - 4], 0
jb 0x5376c8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, 0x1f4
xor eax, eax
lea edi, [ebp - 0x7e8]
lea ebx, [ebp - 0x7e8]
rep stosd dword es:[edi], eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x25
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x7e8]
push ecx
call fcn.005de150
add esp, 8
test eax, eax
je 0x53779b
lea edx, [ebp - 0x7e8]
push edx
call fcn.00535c70
add esp, 4
mov bl, al
push 0x6c58bc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x537760
push 0x6d8044
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x537757
push 0x2100000
push 0
lea ecx, [ebp - 0x7e8]
push 0
push ecx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x537784
lea edx, [ebp + 8]
push 0x30000000
lea eax, [ebp - 0x7e8]
push edx
lea ecx, [ebp - 0x7e8]
push eax
push ecx
mov dword [ebp + 8], 0x7d0
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
test bl, bl
je 0x53779b
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x7e8]
push edx
push eax
call fcn.005acfd0
add esp, 8
lea ecx, [ebp - 0x7e8]
push 0x3f
push ecx
call fcn.005de150
add esp, 8
test eax, eax
je 0x5377cb
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x6ec7a0]
test eax, eax
jne 0x537811
push 0
push 0x6ec7a0
push 0
push 0xf003f
push 0
push 0
push 0
push 0x6c0568
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x537811
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x6ec7a0]
lea edx, [ebp - 0x18]
lea eax, [ebp - 0xfb8]
push edx
push eax
push 0
push 0
push 0x6c11e4
push ecx
mov dword [ebp - 0x18], 0x7d0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x537852
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0xfb8]
lea eax, [ebp - 0x7e8]
push edx
push eax
call fcn.005373c0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5378c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x7d4
mov edx, dword [0x6ec7a0]
push esi
mov esi, ecx
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0
push 0x6c11e4
push edx
mov dword [esp + 0x1c], 0x7d0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x537901
xor eax, eax
pop esi
add esp, 0x7d4
ret 4
mov ecx, dword [esp + 0x7dc]
lea eax, [esp + 8]
push eax
push ecx
mov ecx, esi
call fcn.005373c0
pop esi
add esp, 0x7d4
ret 4
Function at 0x537c80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62276e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], edi
mov dword [edi], 0x653fa0
lea esi, [edi + 0x20]
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 0x1c], 0xffffffff
mov byte [ebp - 4], 1
call fcn.005de123
add esp, 4
test eax, eax
jne 0x537cde
lea ecx, [edi + 4]
call fcn.005f546b
jmp 0x537db6
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x1c], esi
je 0x537db6
mov eax, dword [0x6e7b6c]
mov dword [ebp - 0x14], eax
mov ebx, dword [edi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 2
test ebx, ebx
je 0x537d4e
mov eax, ebx
mov ebx, dword [ebx]
add eax, 8
lea ecx, [ebp - 0x14]
push eax
call fcn.005fa992
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
push 0
push ecx
mov edx, dword [eax - 8]
push edx
push eax
push esi
call edi
lea eax, [ebp - 0x20]
push 0
push eax
push 1
push 0x6d5728
push esi
call edi
jmp 0x537d17
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.005fa859
jmp 0x537d95
cmp esi, 0xffffffff
mov dword [ebp - 4], 0
je 0x537da8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.005f546b
mov edi, dword [ebp - 0x18]
lea ecx, [edi + 4]
mov dword [ebp - 4], 0xffffffff
call fcn.005f54a0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x537ed0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6227ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x41c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
push 0xa
lea ecx, [edi + 4]
mov dword [ebp - 0x1c], edi
call fcn.005f542c
lea esi, [edi + 0x20]
push 0x6ec0cc
push esi
mov dword [ebp - 4], 0
mov dword [edi], 0x6542a4
mov dword [ebp - 0x20], 0xffffffff
call fcn.005df06c
mov eax, dword [0x6ec760]
add esp, 8
test eax, eax
mov byte [ebp - 4], 1
jne 0x537f3a
mov eax, 0x6ec764
push 0x6d8220
push eax
push 0x6bd544
push esi
call fcn.005df06c
add esp, 0x10
lea ecx, [ebp - 0x14]
push 0x6ec0c8
call fcn.005fa8c7
mov eax, dword [0x6e7b6c]
mov dword [ebp - 0x18], eax
push 0
push 0
push 4
push 0
push 1
push 0xc0000000
push esi
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x20], ebx
jne 0x537fb2
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.005fa859
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.005fa859
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x100
xor eax, eax
lea edi, [ebp - 0x428]
push eax
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x428]
push ecx
push 0x3ff
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x538058
mov eax, dword [ebp - 0x28]
test eax, eax
jbe 0x538058
lea eax, [ebp - 0x428]
lea ecx, [ebp - 0x14]
push eax
call fcn.005fab5b
push 0xa
lea ecx, [ebp - 0x14]
call fcn.005fac46
mov esi, eax
cmp esi, 0xffffffff
jle 0x537fb2
test esi, esi
jne 0x538015
push 1
push eax
lea ecx, [ebp - 0x14]
call fcn.005f3019
jmp 0x537ff3
lea ecx, [ebp - 0x24]
push esi
push ecx
lea ecx, [ebp - 0x14]
call fcn.005f328d
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.005fa992
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.005fa859
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [eax + 4]
call fcn.005f55d5
inc esi
lea ecx, [ebp - 0x14]
push esi
push 0
call fcn.005f3019
jmp 0x537ff3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.005fa859
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.005fa859
jmp 0x5380ab
cmp ebx, 0xffffffff
je 0x5380b7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5380f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6227fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], edi
mov dword [edi], 0x6542a4
lea esi, [edi + 0x20]
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 0x1c], 0xffffffff
mov byte [ebp - 4], 1
call fcn.005de123
add esp, 4
test eax, eax
jne 0x53814e
lea ecx, [edi + 4]
call fcn.005f546b
jmp 0x538226
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x1c], esi
je 0x538226
mov eax, dword [0x6e7b6c]
mov dword [ebp - 0x14], eax
mov ebx, dword [edi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 2
test ebx, ebx
je 0x5381be
mov eax, ebx
mov ebx, dword [ebx]
add eax, 8
lea ecx, [ebp - 0x14]
push eax
call fcn.005fa992
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
push 0
push ecx
mov edx, dword [eax - 8]
push edx
push eax
push esi
call edi
lea eax, [ebp - 0x20]
push 0
push eax
push 1
push 0x6d5728
push esi
call edi
jmp 0x538187
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.005fa859
jmp 0x538205
cmp esi, 0xffffffff
mov dword [ebp - 4], 0
je 0x538218
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.005f546b
mov edi, dword [ebp - 0x18]
lea ecx, [edi + 4]
mov dword [ebp - 4], 0xffffffff
call fcn.005f54a0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x540240
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x622e88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], ebx
je 0x5403e8
mov eax, dword [0x6ecbd4]
cmp eax, ebx
jne 0x540292
push 0x6bcf14
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [0x6ecbd4], eax
je 0x5403e8
cmp dword [0x6ecc90], ebx
jne 0x5402b0
push 0x6bcf04
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6ecc90], eax
mov eax, dword [0x6ecbd4]
mov ecx, dword [0x6ecc94]
cmp ecx, ebx
jne 0x5402ce
push 0x6bcef4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [0x6ecc94], ecx
cmp dword [0x6ecc90], ebx
je 0x5403e8
cmp ecx, ebx
je 0x5403e8
xor eax, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x1c], bx
mov ecx, 0x6d87e8
mov byte [ebp - 4], 1
test ecx, ecx
je 0x5403b6
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x28], bx
call fcn.004023e0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00401070
push 0x6d87e8
lea ecx, [ebp - 0x38]
call fcn.00402350
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004023d0
push eax
call fcn.005de123
lea esi, [eax + esi + 2]
lea edi, [esi + esi]
push edi
call fcn.005f6c5c
mov edx, eax
add esp, 8
cmp edx, ebx
mov dword [ebp - 0x20], edx
je 0x54039b
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x2c]
call fcn.004023d0
push eax
lea ecx, [ebp - 0x38]
call fcn.004023d0
push eax
mov eax, dword [ebp - 0x20]
push esi
push eax
call fcn.005de0b3
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.005de123
add esp, 0x14
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00401070
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x5403bd
lea eax, [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 0x80
push 1
push ebx
push ebx
push 0xc0020000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x5403f9
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00401070
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
lea edx, [ebp - 0x14]
push ebx
push edx
push ebx
push ebx
push 4
push 1
push esi
call dword [0x6ecc90]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x54041f
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
jne 0x5403dc
mov eax, dword [ebp + 8]
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x60000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x5403dc
mov ecx, dword [ebp - 0x14]
push ebx
push ecx
push ebx
push ebx
push 4
push 1
push esi
call dword [0x6ecc94]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x5403dc
Function at 0x5428a0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5428d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword [ecx], eax
xor eax, eax
ret
lea edx, [esp + 0xc]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [esp + 0x10]
mov dword [esi], eax
mov dword [esi + 4], 0
cmp dword [esi], 0xffffffff
jne 0x542922
mov eax, dword [esi + 4]
test eax, eax
jne 0x542922
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
je 0x542922
mov dword [esi], 0
push edi
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0xc]
push 1
push 0
push 0
push edx
call fcn.005e09d0
mov ecx, dword [esi]
push edi
add ecx, eax
mov dword [esi], ecx
mov ecx, dword [esi + 4]
adc ecx, edx
mov dword [esi + 4], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
ret