joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000e880
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov ebp, ecx
mov esi, dword [edi]
cmp dword [esi - 0xc], 0
lea edx, [esi - 0x10]
mov ebx, dword [edx]
je 0x1000e903
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x1000e8bd
cmp dword [esi - 8], 0
jl 0x1000e9bc
mov dword [esi - 0xc], 0
xor ecx, ecx
mov eax, dword [edi]
mov word [eax], cx
mov esi, dword [edi]
jmp 0x1000e903
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1000e8ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, 0x1002ce7c
jne 0x1000e9c6
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebx]
cmp eax, 0x1002ce7c
jne 0x1000e9cd
lock inc dword [ebx + 0x14]
lea eax, [ebx + 8]
lea esi, [eax + 0x10]
mov dword [edi], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x800
or ecx, eax
jge 0x1000e925
push 0x800
mov ecx, edi
call fcn.10006c2a
mov esi, dword [edi]
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x1000
push eax
push esi
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x2c]
push dword [ebp]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x1000e98a
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x1000e962
cmp eax, 2
je 0x1000e962
mov ebx, 0xd
jmp 0x1000e98a
test esi, esi
je 0x1000e988
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1000e983
test al, 1
jne 0x1000e97c
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x1000e988
mov ebx, 0xd
jmp 0x1000e98a
xor eax, eax
mov word [esi], ax
xor ebx, ebx
mov eax, dword [edi]
test eax, eax
je 0x1000e9a0
push dword [eax - 8]
push eax
call fcn.100141a1
add esp, 8
test eax, eax
js 0x1000e9bc
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x1000e9bc
mov dword [ecx - 0xc], eax
xor edx, edx
mov ecx, dword [edi]
pop edi
pop esi
pop ebp
mov word [ecx + eax*2], dx
mov eax, ebx
pop ebx
pop ecx
ret 8
push 0x80070057
call fcn.10004b8e
call esi
jmp 0x1000e8ea
mov ecx, ebx
call dword [eax + 0xc]
jmp 0x1000e8fe

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40c443
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestMaybe.exe_gMozillaPoisonSize], eax
call fcn.00409eb2
pop ecx
mov ecx, dword [sym.TestMaybe.exe_gMozillaPoisonSize]
mov dword [sym.TestMaybe.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40c47b
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestMaybe.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10015217
Capabilities:
Enumerate processes

Disassembly:
push 0x238
mov eax, 0x1002d711
call fcn.10017005
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x10015234
xor eax, eax
jmp 0x10015311
xor edi, edi
push edi
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x1001530f
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.kernel32.dll_Process32FirstW
jmp 0x100152e5
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.1000128b
push ebx
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], edi
call fcn.1000128b
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 1
call fcn.10001cc6
lea ecx, [ebp - 0x240]
call fcn.10001cc6
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.10020ab3
pop ecx
pop ecx
mov ecx, dword [ebp - 0x240]
lea ecx, [ecx - 0x10]
test al, al
jne 0x100152ef
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.10001eb4
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.kernel32.dll_Process32NextW
test eax, eax
jne 0x10015264
jmp 0x10015308
mov edi, dword [ebp - 0x234]
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.10001eb4
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
call fcn.10016faf
ret

Function at 0x10020ab3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x10020ac2
pop dword [ebp - 0x18]
mov eax, 0x10020ac2
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x438c2
push 0
mov eax, 0xcdcb6c33
sub eax, 0xbdc87ad7
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x5537
xor edi, edi
add edi, eax
mov ebx, 0x61c1641c
add ebx, 0xae4347e4
add ebx, dword [ebp - 0x18]
mov esi, 0x5290427f
sub esi, 0x714e5936
mov edx, dword [ebx]
xor edx, esi
sub dword [ebp - 0x10], 0x98a95edd
mov dword [edi], edx
add dword [ebp - 0xc], edx
add edi, 0x7d747a96
sub edi, 0x7d747a92
add ebx, 0x40227d55
sub ebx, 0x40227d51
loop 0x10020b18
add eax, 0x147af
xor ebx, ebx
add ebx, eax
add eax, 0x9843755
add eax, 0xf67bc8b0
mov ecx, 0x10000000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x3001ccbc
Capabilities:
Set thread local storage value

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
cmp ecx, edx
jb 0x3001ccdd
mov eax, dword [eax + 8]
cmp ecx, eax
jb 0x3001ccdd
cmp edx, eax
jb 0x3001ccdd
add eax, 0x10000
cmp eax, ecx
jae 0x3001cd08
mov eax, dword [0x30036574]
push 0
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push 0
push 0x35636561
call fcn.3002c3fa
push 0
push 0
push 1
push 0xe0000001
call dword [sym.imp.kernel32.dll_RaiseException]
ret
Function at 0x3002c3fa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x3002c409
pop dword [ebp - 0x3c]
mov eax, 0x5b98fab2
sub eax, 0x2b9636a9
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x38d5f
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0xe034b047
add ecx, 0x1fcb8cd0
xor edi, edi
add edi, eax
mov edx, 0xc1cb2b95
add edx, 0x6e3bc46b
add edx, dword [ebp - 0x3c]
mov esi, 0x820b35ac
sub esi, 0x7230d2ed
xor dword [ebp - 0x1c], 0xe65fc7aa
mov ebx, dword [edx]
sub ebx, esi
add dword [ebp - 4], edi
mov dword [edi], ebx
add dword [ebp - 4], edx
add edi, 0x1b57b4c0
sub edi, 0x1b57b4bc
add edx, 0xf448bce2
sub edx, 0xf448bcde
loop 0x3002c465
add eax, 0xe72f
mov ebx, eax
add eax, 5
mov ecx, 0x30000000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x300305d2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3001b290]
jne 0x30031279
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x3006bce0], eax
mov dword [0x3006bcdc], ecx
mov dword [0x3006bcd8], edx
mov dword [0x3006bcd4], ebx
mov dword [0x3006bcd0], esi
mov dword [0x3006bccc], edi
mov word [0x3006bcf8], ss
mov word [0x3006bcec], cs
mov word [0x3006bcc8], ds
mov word [0x3006bcc4], es
mov word [0x3006bcc0], fs
mov word [0x3006bcbc], gs
pushfd
pop dword [0x3006bcf0]
mov eax, dword [ebp]
mov dword [0x3006bce4], eax
mov eax, dword [ebp + 4]
mov dword [0x3006bce8], eax
lea eax, [ebp + 8]
mov dword [0x3006bcf4], eax
mov eax, dword [ebp - 0x320]
mov dword [0x3006bc30], 0x10001
mov eax, dword [0x3006bce8]
mov dword [0x3006bbe4], eax
mov dword [0x3006bbd8], 0xc0000409
mov dword [0x3006bbdc], 1
mov eax, dword [0x3001b290]
mov dword [ebp - 0x328], eax
mov eax, dword [0x300671ac]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x3006bc28], eax
push 1
call sub.msvcr80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x3001b568
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x3006bc28], 0
jne 0x30031369
push 1
call sub.msvcr80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x30030e08
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x30034158
call fcn.3003107e
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x3006bf28
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x30030bf8
cmp eax, esi
jne 0x30030beb
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x30030bfb
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x30030bd2
xor esi, esi
inc esi
mov eax, dword [0x3006bf24]
cmp eax, esi
jne 0x30030c0e
push 0x1f
call sub.msvcr80.dll__amsg_exit
pop ecx
jmp 0x30030c49
mov eax, dword [0x3006bf24]
test eax, eax
jne 0x30030c43
mov dword [0x3006bf24], esi
push 0x30001378
push 0x3000136c
call sub.msvcr80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x30030c49
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x30030d20
mov dword [0x3006bbd0], esi
mov eax, dword [0x3006bf24]
cmp eax, esi
jne 0x30030c6d
push 0x30001368
push 0x30001350
call sub.msvcr80.dll__initterm
pop ecx
pop ecx
mov dword [0x3006bf24], 2
cmp dword [ebp - 0x1c], ebx
jne 0x30030c7a
push ebx
push edi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp dword [0x3006bf34], ebx
je 0x30030c9b
push 0x3006bf34
call fcn.3003143c
pop ecx
test eax, eax
je 0x30030c9b
push ebx
push 2
push ebx
call dword [0x3006bf34]
mov eax, dword [0x3006bbb8]
mov ecx, dword [sym.imp.msvcr80.dll___winitenv]
mov dword [ecx], eax
push dword [0x3006bbb8]
push dword [0x3006bbbc]
push dword [0x3006bbb4]
call fcn.3002c3fa
add esp, 0xc
mov dword [0x3006bbcc], eax
cmp dword [0x3006bbc0], ebx
jne 0x30030d06
push eax
call dword [sym.imp.msvcr80.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcr80.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x3006bbd0], ebx
jne 0x30030d14
call dword [sym.imp.msvcr80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x3006bbcc]
call fcn.300310c3
ret
call fcn.3002c3fa
jmp 0x30030bb0
Function at 0x100152c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1007b054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x100152f5
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002225a
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x10015333
mov edx, dword [esi + 0x30]
mov ebx, dword [edx]
lea eax, [ecx + ebx*2]
cmp ecx, eax
jae 0x10015333
lea ecx, [ebx - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], di
pop ebx
mov ax, di
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002225a
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x100153ff
mov ebx, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [ebx], eax
jne 0x1001535d
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov eax, dword [esi + 0x1c]
sar edx, 1
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1001536a
push dword [esi + 0x4c]
push edi
jmp 0x100153a8
movzx eax, di
mov dword [ebp - 0x28], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x100153d2
sub eax, 1
je 0x100153d2
sub eax, 2
jne 0x100153ff
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.1002c20c
mov ecx, 0xffff
add esp, 8
cmp ax, cx
movzx eax, di
jne 0x10015404
pop ebx
pop edi
mov eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002225a
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub ebx, eax
je 0x100153ef
push dword [esi + 0x4c]
push ebx
push 1
push eax
call fcn.1002cc2b
add esp, 0x10
cmp ebx, eax
jne 0x100153ff
lea eax, [ebp - 0x28]
mov byte [esi + 0x3e], 1
cmp dword [ebp - 0x30], eax
jne 0x1001531d
mov eax, 0xffff
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.1002225a
mov esp, ebp
pop ebp
ret 4
Function at 0x10015a80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1007b054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10015b44
cmp byte [esi + 0x3e], 0
je 0x10015b44
mov eax, dword [esi]
push edi
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x10015b32
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x10015afa
sub eax, 1
je 0x10015afe
sub eax, 2
jne 0x10015b32
mov byte [esi + 0x3e], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002225a
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10015b1b
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1002cc2b
add esp, 0x10
cmp edi, eax
jne 0x10015b32
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002225a
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002225a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1002225a
mov esp, ebp
pop ebp
ret

Function at 0x100169e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x10016ab0
sub eax, 1
jne 0x10016ad1
mov eax, dword [0x1007d500]
mov ecx, eax
inc eax
mov dword [0x1007d500], eax
test ecx, ecx
jne 0x10016ad1
push ebx
push esi
call fcn.10019c90
mov ebx, eax
lea esi, [ebx + 0x28]
mov dword [esi], 0
push esi
push 0
push ebx
push 0x10020790
push 0
push 0
mov dword [ebx + 0x24], 0
call fcn.1002f3e5
add esp, 0x18
mov dword [ebx + 0x24], eax
test eax, eax
je 0x10016a7b
cmp dword [esi], 0
je 0x10016a7b
push edi
xor edi, edi
lea esi, [ebx + 8]
nop dword [eax]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebx + 0x20]
lea eax, [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, 1
je 0x10016a7a
inc edi
lea esi, [ebx + 8]
cmp edi, 0xa
jb 0x10016a50
pop edi
call fcn.1001fd50
mov esi, eax
lea ecx, [esi + 8]
push ecx
push 0
push esi
push 0x1001fe80
push 0
push 0
call fcn.1002f3e5
add esp, 0x18
mov dword [esi + 4], eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
pop ebx
mov eax, 1
pop ebp
ret 0xc
sub dword [0x1007d500], 1
jne 0x10016ad1
call fcn.1001fd50
mov ecx, eax
call fcn.1001fdc0
call fcn.10019c90
mov ecx, eax
call fcn.100206e0
mov eax, 1
pop ebp
ret 0xc
Function at 0x10016ed0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x10016fb7
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x10016fa6
jg 0x10016f10
test edx, edx
je 0x10016fa6
nop dword [eax]
call fcn.10006200
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x10016f63
jg 0x10016f27
test esi, esi
je 0x10016f63
cmp ebx, eax
jg 0x10016f37
jl 0x10016f31
cmp edi, esi
jae 0x10016f37
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
push esi
push dword [esp + 0x14]
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.100239b0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x10016f8a
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x10016fa0
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x10016f10
jl 0x10016fa0
test edi, edi
jne 0x10016f10
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x10016fd9
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x10016fdb
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x10017059
jg 0x10016fee
test esi, esi
je 0x10017059
test eax, eax
jl 0x1001703d
jg 0x10016ff8
test ebx, ebx
je 0x1001703d
cmp edi, eax
jg 0x10017008
jl 0x10017002
cmp esi, ebx
jae 0x10017008
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.100239b0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x10017059
jg 0x10017040
test esi, esi
je 0x10017059
jmp 0x10017040
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x10017059
push eax
push esi
push 1
push edx
call fcn.1002cc2b
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100175e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1007b054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10017610
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002225a
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1001764c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1001764c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002225a
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10017736
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10017674
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100176a7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.1002d359
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002225a
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x25], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x10017709
sub eax, 1
je 0x10017709
sub eax, 2
jne 0x10017736
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.1002d359
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002225a
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10017726
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1002cc2b
add esp, 0x10
cmp edi, eax
jne 0x10017736
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x10017637
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002225a
mov esp, ebp
pop ebp
ret 4
Function at 0x100179a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1007b054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10017a5c
cmp byte [esi + 0x3d], 0
je 0x10017a5c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10017a4a
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x10017a12
sub eax, 1
je 0x10017a16
sub eax, 2
jne 0x10017a4a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002225a
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10017a33
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1002cc2b
add esp, 0x10
cmp edi, eax
jne 0x10017a4a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002225a
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002225a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1002225a
mov esp, ebp
pop ebp
ret