joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100030d5
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, edi
je 0x10003139
lea eax, [ebp - 0x128]
push eax
push esi
call sub.KERNEL32.dll_Process32First
jmp 0x10003129
mov eax, dword [0x1000a348]
lea eax, [eax + 0x1000be88]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x1000312f
lea eax, [ebp - 0x128]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100030ff
jmp 0x10003132
xor edi, edi
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x10003bd3
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push edi
mov edi, eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edi
cmp edi, ebx
jne 0x10003bf1
mov eax, dword [0x1000a310]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
mov edx, esi
call fcn.100071cd
cmp edi, ebx
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
jne 0x10003c57
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x10003c66
add eax, eax
push eax
push ebx
push dword [0x1000a2d8]
call edi
mov ebx, eax
test ebx, ebx
je 0x10003c66
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x10003c46
mov eax, dword [ebp - 4]
add eax, eax
mov edx, ebx
call fcn.100056b9
xor dword [esi], eax
push ebx
push 0
push dword [0x1000a2d8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10003c66
mov eax, dword [esi]
xor eax, dword [0x1000a344]
xor eax, 0x6c7261ae
mov dword [esi], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetComputerNameW]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
call ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x10003cbb
add eax, eax
push eax
push 0
push dword [0x1000a2d8]
call edi
mov edi, eax
test edi, edi
je 0x10003cbb
lea eax, [ebp - 4]
push eax
push edi
call ebx
test eax, eax
je 0x10003cac
mov eax, dword [ebp - 4]
add eax, eax
mov edx, edi
call fcn.100056b9
xor dword [esi + 0xc], eax
push edi
push 0
push dword [0x1000a2d8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
inc eax
xor ecx, ecx
cpuid
lea edi, [ebp - 0x18]
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x10]
pop edi
xor eax, dword [ebp - 0x18]
pop ebx
xor dword [esi + 4], eax
leave
ret
Function at 0x1000415a
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push edi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0x192
push 0x54d38000
push dword [ebp - 4]
push dword [ebp - 8]
call sub.ntdll.dll__aulldiv
push eax
mov dword [ebp - 8], eax
mov eax, dword [0x1000a348]
lea ecx, [eax + 0x1000b7b4]
push ecx
lea eax, [eax + 0x1000b644]
push eax
lea eax, [ebp - 0x34]
push 0x16
push eax
mov dword [ebp - 4], edx
call sub.ntdll.dll__snwprintf
add esp, 0x14
lea eax, [ebp - 0x34]
push eax
push 0x1000
push 0
push 4
push 0x1000a34c
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
test esi, esi
je 0x1000420f
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
je 0x100041dd
push 2
pop edi
jmp 0x10004206
push 0
push 0
push 0
push 6
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x100041fe
mov ecx, dword [ebp + 8]
mov dword [ecx], esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor edi, edi
jmp 0x10004217
call edi
mov edi, eax
test edi, edi
je 0x10004217
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10004217
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret 8

Function at 0x100046ed
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, eax
test esi, esi
jne 0x10004728
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x10004b4f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1000a348]
and dword [ebp - 4], 0
push ebx
lea eax, [eax + 0x1000bbc0]
push eax
mov dword [ebp - 0xc], 4
call fcn.1000661c
mov ebx, eax
test ebx, ebx
je 0x10004be1
mov eax, dword [0x1000a348]
push edi
lea eax, [eax + 0x1000bc44]
push eax
call fcn.1000661c
mov edi, eax
test edi, edi
je 0x10004bda
lea eax, [ebp - 8]
push eax
push 0x20119
push 0
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10004bd4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10004bcb
and dword [ebp - 4], 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.100061da
push ebx
call fcn.100061da
pop edi
mov eax, dword [ebp - 4]
pop ebx
leave
ret

Function at 0x10005498
Capabilities:
Read data from internet
Receive data

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0xc], 0
jne 0x100054aa
call fcn.10003fa5
test eax, eax
jne 0x100054b2
mov eax, esi
pop esi
jmp fcn.1000454f
pop esi
ret
Function at 0x100054b4
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x100054d8
Capabilities:
Check os version

Disassembly:
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x1000a30c], eax
test eax, eax
je 0x10005547
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jne 0x10005504
mov ecx, eax
shr ecx, 8
test cl, cl
ja 0x10005506
cmp al, al
jbe 0x10005542
mov dword [0x1000a2fc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esp + 4]
push eax
push 0
push 0x10047a
mov dword [0x1000a2f8], eax
mov dword [0x1000a304], ecx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [0x1000a2f4], eax
test eax, eax
jne 0x1000553e
or dword [0x1000a2f4], 0xffffffff
xor eax, eax
jmp 0x1000554d
push 0x32
pop eax
jmp 0x1000554d
call dword [sym.imp.KERNEL32.dll_GetLastError]
ret 4

Function at 0x100056b9
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
test edx, edx
je 0x100056fe
or eax, 0xffffffff
test esi, esi
je 0x100056fa
push edi
mov cl, byte [edx]
movzx edi, al
movzx ecx, cl
xor edi, ecx
and edi, 0xf
shr eax, 4
xor eax, dword [edi*4 + 0x10009238]
shr ecx, 4
mov edi, eax
and edi, 0xf
xor ecx, edi
shr eax, 4
xor eax, dword [ecx*4 + 0x10009238]
dec esi
inc edx
test esi, esi
jne 0x100056c8
pop edi
not eax
jmp 0x10005700
xor eax, eax
not eax
pop esi
ret
Function at 0x10005704
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push edi
push edi
push SysStringLen
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, edi
jne 0x1000580d
push ebx
push 8
pop esi
mov ebx, 0x104
push ebx
call fcn.100033dc
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x10005803
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x10]
push edi
push edi
push edi
push edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 8], ebx
push dword [ebp - 4]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, 0xea
jne 0x100057b5
cmp dword [ebp - 8], ebx
jbe 0x1000578d
inc dword [ebp - 4]
xor esi, esi
jmp 0x100057d7
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0xc], eax
jbe 0x100057fb
push dword [ebp - 0x14]
call fcn.100061da
mov eax, dword [ebp - 0xc]
push eax
mov dword [ebp - 0x10], eax
call fcn.100033dc
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x10005789
push 8
pop esi
jmp 0x100057fb
cmp esi, edi
jne 0x100057f1
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.10004c94
mov esi, eax
cmp esi, edi
jne 0x100057f1
push edi
push dword [0x1000a30c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10005757
jmp 0x100057fb
cmp esi, 0x103
jne 0x100057fb
xor esi, esi
push dword [ebp - 0x18]
call fcn.100061da
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret 4
Function at 0x100058bd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 8], ebx
je 0x100058ec
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100050b9
mov esi, eax
cmp esi, ebx
je 0x10005973
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
cmp esi, ebx
jne 0x10005973
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call esi
cmp dword [ebp + 8], ebx
je 0x10005965
push dword [ebp + 8]
call fcn.100033dc
mov edi, eax
cmp edi, ebx
je 0x10005960
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call esi
mov esi, eax
cmp esi, ebx
jne 0x10005958
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x1000596a
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x1000596a
push edi
call fcn.100061da
jmp 0x1000596a
push 8
pop esi
jmp 0x1000596a
mov esi, 0xe8
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
Function at 0x10006269
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edx + 0x3c]
add eax, edx
movzx ecx, word [eax + 0x14]
sub esp, 0x14
push esi
movzx esi, word [eax + 6]
push edi
xor edi, edi
lea eax, [ecx + eax + 0x18]
xor ecx, ecx
cmp dword [eax + 4], edi
jne 0x10006295
cmp dword [eax], 0x7373622e
jne 0x10006295
mov ecx, eax
add eax, 0x28
dec esi
je 0x1000629f
test ecx, ecx
je 0x10006286
test ecx, ecx
je 0x100062bd
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x100062b9
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x100062b9
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
jmp 0x100062c0
push 0xb
jmp 0x100062bf
push 2
pop edi
mov eax, edi
test edi, edi
jne 0x1000638c
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 4]
and esi, 0xfff
neg esi
sbb esi, esi
shr eax, 0xc
neg esi
add esi, eax
mov eax, dword [ebp - 0xc]
lea edi, [eax + edx]
mov eax, esi
push ebx
shl eax, 0xc
push eax
mov dword [ebp - 0x14], edi
call fcn.100033dc
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x10006388
push dword [ebp - 4]
push edi
push ebx
call sub.ntdll.dll_memcpy
and dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
add esp, 0xc
test esi, esi
jbe 0x10006362
mov eax, ebx
sub eax, edi
mov dword [ebp - 8], ebx
lea edi, [eax + ecx + 0x1000b690]
mov ebx, 0x1000
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
lea eax, [eax + ecx - 0x7e47c82f]
push 1
push eax
mov eax, ebx
call fcn.100073f0
mov ecx, dword [edi + 0xc]
sub ecx, dword [edi + 8]
add dword [ebp - 8], ebx
add ecx, dword [edi + 4]
inc dword [ebp - 4]
cmp dword [ebp - 4], esi
jb 0x1000632e
mov ebx, dword [ebp - 0x10]
lea eax, [ecx - 0x43175ac3]
test eax, eax
jne 0x1000637d
sub ebx, dword [ebp - 0x14]
mov dword [0x1000a344], ecx
mov dword [0x1000a348], ebx
jmp 0x1000638b
push ebx
call fcn.100061da
xor eax, eax
inc eax
jmp 0x1000638b
push 8
pop eax
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x10006bf9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x20
call fcn.100033dc
mov esi, eax
test esi, esi
je 0x10006cce
mov eax, dword [0x1000a348]
lea eax, [eax + 0x1000b436]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov eax, dword [0x1000a348]
lea eax, [eax + 0x1000b85c]
push eax
push ebx
mov dword [ebp - 4], 0x7f
call edi
mov dword [esi + 0xc], eax
test eax, eax
je 0x10006cc6
mov eax, dword [0x1000a348]
lea eax, [eax + 0x1000b849]
push eax
push ebx
call edi
mov dword [esi + 0x10], eax
test eax, eax
je 0x10006cc6
mov eax, dword [0x1000a348]
lea eax, [eax + 0x1000b72b]
push eax
push ebx
call edi
mov dword [esi + 0x14], eax
test eax, eax
je 0x10006cc6
mov eax, dword [0x1000a348]
lea eax, [eax + 0x1000b883]
push eax
push ebx
call edi
mov dword [esi + 0x18], eax
test eax, eax
je 0x10006cc6
mov eax, dword [0x1000a348]
lea eax, [eax + 0x1000b87b]
push eax
push ebx
call edi
mov dword [esi + 0x1c], eax
test eax, eax
je 0x10006cc6
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, esi
mov dword [esi + 8], 0x40
call fcn.10007a08
mov dword [ebp - 4], eax
test eax, eax
jne 0x10006cc6
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
jmp 0x10006cd5
push esi
call fcn.100061da
jmp 0x10006cd5
mov dword [ebp - 4], 8
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10007b83
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
push dword [esi + 4]
mov dword [ebp - 0xc], 0xea60
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, eax
mov dword [ebp - 8], eax
inc eax
push eax
call fcn.100033dc
mov ebx, eax
xor edi, edi
cmp ebx, edi
je 0x10007bd5
push edi
lea eax, [ebp - 8]
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
test eax, eax
je 0x10007bcf
push dword [esi + 4]
call fcn.100061da
mov dword [esi + 4], ebx
jmp 0x10007bd5
push ebx
call fcn.100061da
push 0x10000000
push edi
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 0x10], eax
cmp eax, edi
je 0x10007cd4
push 0x10007b18
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
cmp eax, 0xffffffff
je 0x10007cd4
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
push edi
push 3
push edi
push edi
push 0x50
push dword [esi]
push dword [esi + 0x10]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 0x14], eax
cmp eax, edi
jne 0x10007c4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x10007cd4
mov eax, dword [esi + 0x1c]
push 0xea60
call fcn.100016b2
test eax, eax
jne 0x10007cd4
mov ecx, dword [0x1000a348]
push esi
mov eax, 0x84404000
push eax
push edi
push edi
push edi
push dword [esi + 4]
lea ecx, [ecx + 0x1000b845]
push ecx
push dword [esi + 0x14]
mov dword [ebp - 4], eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [esi + 0x18], eax
cmp eax, edi
je 0x10007cd4
push 4
pop ebx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push 0x1f
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
je 0x10007cb0
or dword [ebp - 4], 0x100
push ebx
lea eax, [ebp - 4]
push eax
push 0x1f
push dword [esi + 0x18]
call edi
push ebx
lea eax, [ebp - 0xc]
push eax
push 6
push dword [esi + 0x18]
call edi
test eax, eax
je 0x10007cd4
push ebx
lea eax, [ebp - 0xc]
push eax
push 5
push dword [esi + 0x18]
call edi
test eax, eax
je 0x10007cd4
xor eax, eax
jmp 0x10007cda
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
leave
ret 4
Function at 0x100058d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10246e44]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
je 0x100058f7
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x100058fe
mov al, 1
jmp 0x100059d9
call fcn.10007570
push eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x3c], eax
call fcn.10007570
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.100075a0
add esp, 8
movzx eax, al
test eax, eax
je 0x1000593a
xor al, al
jmp 0x100059d9
mov dword [ebp - 0x48], 0x20
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x38]
call fcn.10008e40
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x10005976
cmp dword [ebp - 0x30], 1
je 0x1000597d
cmp dword [ebp - 0x30], 3
je 0x100059cc
jmp 0x100059d7
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x3d], 0
mov ecx, dword [ebp - 0x44]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x34], ecx
je 0x100059ac
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.101ae3c4
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x100059ac
xor al, al
jmp 0x100059d9
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x100059c0
mov dword [ebp - 0x38], 1
jmp 0x100059c7
mov dword [ebp - 0x38], 0
mov al, byte [ebp - 0x38]
jmp 0x100059d9
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x3d], 0
mov al, 1
jmp 0x100059d9
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a654a
mov esp, ebp
pop ebp
ret
Function at 0x10007c10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10246e44]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov dword [ebp - 0x2c], ecx
call fcn.10007570
mov dword [ebp - 0x44], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.100075a0
add esp, 8
movzx edx, al
test edx, edx
je 0x10007c55
lea eax, [ebp + 8]
push eax
call fcn.10007b80
add esp, 4
jmp 0x10007dd6
mov ecx, dword [ebp - 0x2c]
call fcn.10007fa0
test eax, eax
je 0x10007c97
mov ecx, dword [ebp - 0x2c]
call fcn.10007fa0
mov esi, eax
mov ecx, dword [ebp - 0x2c]
call fcn.10007580
cmp esi, eax
jae 0x10007c97
lea ecx, [ebp + 8]
push ecx
call fcn.10008ab0
add esp, 4
mov bl, al
mov ecx, dword [ebp - 0x2c]
call fcn.100062a0
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x10007dd6
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x4c], 0
jne 0x10007caa
call fcn.10007570
jmp 0x10007dd6
mov ecx, dword [ebp - 0x2c]
call fcn.100062f0
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
jne 0x10007cf9
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x4c]
push edx
lea eax, [ebp + 8]
push eax
call fcn.10008ab0
add esp, 4
movzx ecx, al
push ecx
call fcn.10002420
add esp, 8
movzx edx, al
test edx, edx
je 0x10007ce9
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
jmp 0x10007cf1
call fcn.10007570
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
jmp 0x10007dd6
mov dword [ebp - 0x50], 0x20
lea ecx, [ebp + 8]
push ecx
call fcn.10008ab0
add esp, 4
mov byte [ebp - 0x2e], al
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x2d]
push eax
lea ecx, [ebp - 0x2e]
push ecx
mov edx, dword [ebp - 0x2c]
add edx, 0x40
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x38]
call fcn.10007bd0
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jl 0x10007dd1
cmp dword [ebp - 0x34], 1
jle 0x10007d54
cmp dword [ebp - 0x34], 3
je 0x10007da1
jmp 0x10007dd1
mov ecx, dword [ebp - 0x48]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x38], ecx
je 0x10007d86
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.101ae3c4
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x10007d86
call fcn.10007570
jmp 0x10007dd6
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0x3d], 1
lea edx, [ebp - 0x2e]
cmp dword [ebp - 0x4c], edx
je 0x10007d9a
mov eax, dword [ebp + 8]
jmp 0x10007dd6
call fcn.10007570
jmp 0x10007dd6
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, byte [ebp - 0x2e]
push edx
call fcn.10002420
add esp, 8
movzx eax, al
test eax, eax
je 0x10007dc4
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x40], ecx
jmp 0x10007dcc
call fcn.10007570
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
jmp 0x10007dd6
call fcn.10007570
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a654a
mov esp, ebp
pop ebp
ret 4
Function at 0x10008f60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x10008f80
jl 0x10008f77
cmp dword [ebp + 0xc], 0
ja 0x10008f80
xor eax, eax
xor edx, edx
jmp 0x100090b7
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x10008fa2
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.100090c0
jmp 0x100090b7
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
call fcn.10005cd0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x10009011
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.100025e0
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.100077a0
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.10007070
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.10007720
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x100090a8
mov ecx, dword [ebp - 8]
call fcn.100062f0
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x10009081
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.101add58
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x1000907f
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x100090b7
jmp 0x1000902d
cmp dword [ebp - 4], 0
jbe 0x100090a8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.101add58
add esp, 0x10
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc