joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003c10
Capabilities:
Execute anti-debugging instructions

Disassembly:
rdtsc
xor dword [0x1005348c], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor dword [0x1005348c], eax
push 0x10047b34
call ebx
test eax, eax
je 0x10003c51
push str.RtlUniform
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10003c51
push 0x1005348c
call eax
mov ecx, dword [0x1005348c]
mov eax, ecx
xor edx, edx
or esi, 0xffffffff
div esi
lea esi, [ecx + eax]
rdtsc
xor ecx, eax
mov dword [0x1005348c], ecx
call edi
xor dword [0x1005348c], eax
push 0x10047b34
call ebx
test eax, eax
je 0x10003c97
push str.RtlUniform
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10003c97
push 0x1005348c
call eax
mov ecx, dword [0x1005348c]
push esi
mov eax, ecx
xor edx, edx
or esi, 0xffffffff
div esi
add eax, ecx
push eax
push str._x_x
push 0x104
push 0x10055760
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x14
pop edi
pop esi
pop ebx
ret

Function at 0x10003cd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x101
push 0
push str.softwaremicrosoft
push 0x80000001
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10003d2e
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push 0x10056ae4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp eax, dword [ebp - 8]
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret

Function at 0x10003d40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x102
push 0
push str.softwaremicrosoft
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10003d9a
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push eax
push 0x10056ae4
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x10003da0
Capabilities:
Get disk information
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push 0x104
lea eax, [ebp - 0x108]
push eax
push str.SystemDrive
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x10003df6
mov ecx, 0xff00ff
mov eax, 0xc000c001
mul ecx
shr edx, 0xe
imul edx, edx, 0x5555
mov eax, 0x2710
sub eax, edx
add eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x10003e20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x101
push 0
push str.softwaremicrosoft
push 0x80000001
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10003e7b
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push 0x100570fc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x10003e89
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x10003e90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x102
push 0
push str.softwaremicrosoft
push 0x80000001
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10003ee0
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp + 8]
push ecx
push 4
push eax
push 0x100570fc
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10003ee0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp - 4]
test eax, eax
je 0x10003eee
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 4
Function at 0x10004910
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov ecx, dword [str.netuser_n]
mov edx, dword [0x10047068]
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
mov cx, word [0x1004706c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], edx
mov word [ebp - 0x18], cx
cmp ebx, eax
je 0x10004ae0
push esi
push edi
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 4]
push eax
push 0xffffffffffffffff
push 0x3e8
push ecx
push 1
push 0
call dword [sym.imp.NETAPI32.dll_NetQueryDisplayInformation]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000497f
cmp eax, 0xea
jne 0x10004a5a
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10004988
mov ebx, dword [ebp - 4]
inc ebx
imul ebx, ebx, 0x64
sub eax, edx
add ebx, eax
mov esi, 0
je 0x100049cf
mov edx, dword [0x10054278]
lea eax, [ebx + 0x13]
and eax, 0xfffffff0
push eax
push 8
push edx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x100049cf
mov eax, dword [ebp - 8]
push eax
push 0
push esi
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 8], esi
test esi, esi
je 0x10004ae7
lea eax, [ebp - 0x20]
mov edx, esi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100049e3
cmp dword [ebp - 4], 0
je 0x10004a24
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100049f8
sub eax, edx
mov edx, dword [edi]
push edx
push 0x10047070
add eax, esi
push ebx
push eax
call dword [sym.imp.ntdll.dll__snprintf]
mov eax, dword [edi + 0x14]
add esp, 0x10
add edi, 0x18
dec dword [ebp - 4]
mov dword [ebp - 0x10], eax
jne 0x100049f3
dec esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10004a25
mov cx, word [0x10047028]
mov word [esi], cx
mov dl, byte [0x1004702a]
mov byte [esi + 2], dl
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
cmp dword [ebp - 0x14], 0xea
mov ebx, dword [ebp + 8]
je 0x10004950
mov edi, dword [ebp - 8]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10004a62
sub eax, edx
mov esi, eax
mov dword [ebp + 8], 0
test edi, edi
je 0x10004ade
test esi, esi
je 0x10004ab7
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push esi
push 0
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LockFile]
mov eax, dword [ebp - 8]
push 0
lea edx, [ebp + 8]
push edx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push esi
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_UnlockFile]
mov esi, dword [ebp - 8]
mov ecx, dword [0x10054278]
push esi
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x10004ade
mov edx, dword [0x10054278]
push esi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10004b00
Capabilities:
Query or enumerate registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
lea eax, [ebp - 0xc]
push eax
push 0x20119
push 0
push str.SoftwareMicrosoftInternet_ExplorerTypedURLs
push 0x80000001
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10004cf2
push 1
push str.url_i
lea ecx, [ebp - 0x220]
push 0x104
push ecx
mov dword [ebp - 0x14], 1
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x10
test eax, eax
je 0x10004ce8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea edx, [ebp - 0x18]
push edx
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x11c]
push eax
push 0
push 0
lea ecx, [ebp - 0x220]
push ecx
push edx
mov dword [ebp - 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10004ce6
cmp dword [ebp - 0x10], eax
jne 0x10004bdd
push 1
push eax
push eax
push esi
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], eax
call ebx
push 0
push 0xc
push 0
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LockFile]
push 0
lea eax, [ebp - 4]
push eax
push 0xc
push str.IE_history:_n
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0xc
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push 1
push 0
push 0
push esi
mov dword [ebp - 4], 0
call ebx
push 0
push 1
push 0
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LockFile]
push 0
lea ecx, [ebp - 4]
push ecx
push 1
push 0x100470bc
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 1
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
lea eax, [ebp - 0x11c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10004c28
sub eax, edx
mov edi, eax
mov dword [ebp - 4], 0
je 0x10004c7a
push 1
push 0
push 0
push esi
call ebx
push 0
push edi
push 0
push eax
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LockFile]
push 0
lea edx, [ebp - 4]
push edx
push edi
lea eax, [ebp - 0x11c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
push 0
push edi
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push 1
push 0
push 0
push esi
mov dword [ebp - 8], 0
call ebx
push 0
push 2
push 0
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LockFile]
push 0
lea edx, [ebp - 8]
push edx
push 2
push 0x10047028
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 2
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
mov eax, dword [ebp - 0x14]
inc eax
push eax
push str.url_i
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x10
test eax, eax
jne 0x10004b66
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x10006a00
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
xor ebx, ebx
push 0xff
lea eax, [ebp - 0x107]
push ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp - 0x108], bl
call sub.ntdll.dll_memset
push 0x103
lea edx, [ebp - 0x20b]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 8], cx
mov byte [ebp - 0x20c], bl
call sub.ntdll.dll_memset
add esp, 0x18
cmp esi, ebx
je 0x10006aba
push 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
mov word [ebp - 8], 1
xor ecx, ecx
lea esp, [esp]
mov byte [ebp + ecx - 0x108], cl
inc ecx
cmp ecx, 0x100
jl 0x10006a70
xor ecx, ecx
mov dl, byte [eax + str.dabetreswe5puphEgawrede3reswusachunawraCr73enetememudecrefan]
xor byte [ebp + ecx - 0x108], dl
inc eax
cmp eax, 0x3c
jl 0x10006a97
xor eax, eax
inc ecx
cmp ecx, 0x100
jl 0x10006a82
lea eax, [ebp - 0x20c]
push eax
mov ecx, eax
push ecx
mov edx, 0x104
lea eax, [ebp - 0x108]
call fcn.10012820
mov eax, dword [ebp + 8]
lea edx, [ebp - 4]
push edx
push 0x102
push ebx
push str.softwaremicrosoft
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10006b0a
cmp esi, ebx
je 0x10006afb
mov edx, dword [ebp - 4]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 1
push ebx
push 0x10057610
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x10006b0a
mov eax, dword [ebp - 4]
push 0x10057610
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [ebp - 4]
cmp eax, ebx
pop ebx
je 0x10006b19
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 4
Function at 0x10006ba0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push esi
xor esi, esi
push 0xff
lea eax, [ebp - 0x10f]
push esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0x104
mov byte [ebp - 0x110], 0
call sub.ntdll.dll_memset
push 0x103
xor ecx, ecx
lea edx, [ebp - 0x213]
push esi
push edx
mov word [ebp - 0x10], cx
mov byte [ebp - 0x214], cl
call sub.ntdll.dll_memset
mov ecx, dword [ebp + 8]
add esp, 0x18
lea eax, [ebp - 4]
push eax
push 0x101
push esi
push str.softwaremicrosoft
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10006ce4
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 8]
push ecx
push esi
push 0x10057610
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10006ce4
mov word [ebp - 0x10], 1
xor ecx, ecx
jmp 0x10006c50
mov byte [ebp + ecx - 0x110], cl
inc ecx
cmp ecx, 0x100
jl 0x10006c50
xor ecx, ecx
mov dl, byte [eax + str.dabetreswe5puphEgawrede3reswusachunawraCr73enetememudecrefan]
xor byte [ebp + ecx - 0x110], dl
inc eax
cmp eax, 0x3c
jl 0x10006c77
xor eax, eax
inc ecx
cmp ecx, 0x100
jl 0x10006c62
lea eax, [ebp - 0x214]
push eax
mov ecx, eax
push ecx
mov edx, 0x104
lea eax, [ebp - 0x110]
call fcn.10012820
cmp byte [ebp - 0x214], 0
je 0x10006ce4
mov edx, dword [0x10054278]
push 0x110
push 8
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10006ce4
push 0x110
push 0
push esi
call sub.ntdll.dll_memset
add esp, 0xc
test esi, esi
je 0x10006ce4
push 0x104
lea eax, [ebp - 0x214]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x10006cf2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10006d00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push esi
xor esi, esi
push 0xff
lea eax, [ebp - 0x10f]
push esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0x104
mov byte [ebp - 0x110], 0
call sub.ntdll.dll_memset
push 0x103
xor ecx, ecx
lea edx, [ebp - 0x213]
push esi
push edx
mov word [ebp - 0x10], cx
mov byte [ebp - 0x214], cl
call sub.ntdll.dll_memset
add esp, 0x18
lea eax, [ebp - 4]
push eax
push 0x101
push esi
push str.softwaremicrosoft
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10006e44
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 8]
push eax
push esi
push 0x10057610
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10006e44
mov word [ebp - 0x10], 1
xor ecx, ecx
jmp 0x10006db0
mov byte [ebp + ecx - 0x110], cl
inc ecx
cmp ecx, 0x100
jl 0x10006db0
xor ecx, ecx
mov dl, byte [eax + str.dabetreswe5puphEgawrede3reswusachunawraCr73enetememudecrefan]
xor byte [ebp + ecx - 0x110], dl
inc eax
cmp eax, 0x3c
jl 0x10006dd7
xor eax, eax
inc ecx
cmp ecx, 0x100
jl 0x10006dc2
lea eax, [ebp - 0x214]
push eax
mov ecx, eax
push ecx
mov edx, 0x104
lea eax, [ebp - 0x110]
call fcn.10012820
cmp byte [ebp - 0x214], 0
je 0x10006e44
mov edx, dword [0x10054278]
push 0x110
push 8
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10006e44
push 0x110
push 0
push esi
call sub.ntdll.dll_memset
add esp, 0xc
test esi, esi
je 0x10006e44
push 0x104
lea eax, [ebp - 0x214]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x10006e52
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10006e65
push 0x80000001
call fcn.10006ba0
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10006e70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push esi
push edi
xor edi, edi
push 0x40c
lea eax, [ebp - 0x410]
push edi
push eax
mov dword [ebp - 0x414], edi
call sub.ntdll.dll_memset
add esp, 0xc
call fcn.1000f5d0
test eax, eax
jne 0x10006eb8
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call esi
call fcn.1000f5d0
test eax, eax
je 0x10006ea8
cmp dword [ebp + 8], edi
jne 0x10006ed4
mov eax, dword [0x10055a64]
cmp eax, edi
je 0x10006ed4
push eax
call fcn.10006630
test eax, eax
jne 0x10006fbe
mov dword [0x10055a60], edi
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb eax, eax
neg eax
add eax, 0x80000001
push eax
xor esi, esi
call fcn.10006a00
jmp 0x10006f00
mov dword [0x10053774], 0x45ae94b2
xor ebx, ebx
xor esi, esi
cmp ebx, 0x3e8
jge 0x10006f4d
cmp esi, 0x40
jge 0x10006f4d
call fcn.10006390
push 0
push 0
push eax
push 0x10006b20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10006f41
mov dword [ebp + esi*4 - 0x414], eax
jmp 0x10006f43
dec esi
dec ebx
inc ebx
inc esi
cmp ebx, 0x3e8
jl 0x10006f16
push 0xffffffffffffffff
push 1
lea ecx, [ebp - 0x414]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor esi, esi
jmp 0x10006f70
mov edi, dword [ebp + esi*4 - 0x414]
mov dword [ebp + 8], 0
test edi, edi
je 0x10006f9e
lea edx, [ebp + 8]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x10006f9e
test byte [ebp + 8], 2
jne 0x10006f9e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, 0x40
jl 0x10006f70
cmp dword [0x10055a60], 0
jne 0x10006fbe
cmp ebx, 0x3e8
jge 0x10006f00
jmp 0x10006f0c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10006ff0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x100070c0
cmp dword [ebp + 8], edi
je 0x100070c0
cmp ebx, edi
je 0x100070c0
push esi
push edi
push 0x80
push 2
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100070b5
push 1
push edi
push edi
push esi
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push ebx
push 0
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LockFile]
mov ecx, dword [ebp + 8]
push 0
lea eax, [ebp + 0xc]
push eax
push ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push ebx
push 0
push edi
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_UnlockFile]
cmp dword [ebp + 8], 0
je 0x1000708b
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edi, 1
test eax, eax
jne 0x1000708e
mov edi, dword [ebp - 4]
mov dword [ebp + 8], 0
test esi, esi
je 0x100070b5
lea edx, [ebp + 8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x100070b5
test byte [ebp + 8], 2
jne 0x100070b5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100070d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
test eax, eax
je 0x10007215
push esi
push 0x80
push 3
push esi
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10007215
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x100071ee
cmp dword [ebp + 0xc], ebx
je 0x1000712b
inc esi
xor ebx, ebx
test esi, esi
je 0x1000715f
mov ecx, dword [0x10054278]
lea eax, [esi + 0x13]
and eax, 0xfffffff0
push eax
push 8
push ecx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x1000715f
mov edx, dword [ebp - 4]
push edx
push 0
push ebx
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x100071eb
cmp dword [ebp + 0xc], 0
je 0x10007171
dec esi
mov dword [ebp + 0xc], 0
test esi, esi
je 0x100071c1
push 1
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push esi
push 0
push eax
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LockFile]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 8]
push 0
push esi
push 0
push ecx
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_UnlockFile]
cmp dword [ebp - 0xc], 0
jne 0x100071eb
mov edx, dword [0x10054278]
push ebx
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x100071e4
mov eax, dword [0x10054278]
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
mov dword [ebp + 0xc], 0
test edi, edi
je 0x10007215
lea ecx, [ebp + 0xc]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x10007215
test byte [ebp + 0xc], 2
jne 0x10007215
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 8]
test edi, edi
je 0x10007236
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
mov eax, ebx
jne 0x10007238
mov dword [edi], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100075f0
Capabilities:
Delete file
Set file attributes

Disassembly:
xor eax, eax
test esi, esi
je 0x10007605
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
ret

Function at 0x10007610
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 3
mov edi, eax
push 0xc0000000
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x10007660
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x100076fe
lea eax, [esp + 0x10]
push eax
xor ebx, ebx
push esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [esp + 0x10]
push ebx
push ebx
xor ecx, ecx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov dword [esp + 0x10], ebx
cmp dword [ebp + 8], ebx
je 0x100076d3
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x100076d3
push 1
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push edi
push 0
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LockFile]
mov edx, dword [ebp + 8]
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push edi
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
xor ebx, ebx
cmp esi, 0xffffffff
je 0x100076fe
mov dword [esp + 0x10], ebx
cmp esi, ebx
je 0x100076fe
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x100076fe
test byte [esp + 0x10], 2
jne 0x100076fe
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8