joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e483
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x429c07
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
mov esi, ecx
push edi
mov ebx, edx
test esi, esi
je 0x40e54b
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi + 0x7c], 0
je 0x40e54b
mov eax, dword [edi + 0x78]
add eax, esi
mov dword [esp + 0x18], eax
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
add ecx, esi
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x24]
add ecx, esi
add edx, esi
cmp byte [ebx], 0xff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], edx
je 0x40e506
push ebx
call fcn.0041d950
push eax
push ebx
call fcn.00411be6
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
add esp, 0xc
jmp 0x40e510
mov ecx, dword [ebx + 1]
xor ecx, dword [ebp + 0xc]
mov dword [esp + 0x10], ecx
xor ebx, ebx
cmp dword [eax + 0x18], ebx
jbe 0x40e54b
mov eax, dword [edx + ebx*4]
test eax, eax
je 0x40e541
add eax, esi
push eax
mov dword [esp + 0x20], eax
call fcn.0041d950
push eax
push dword [esp + 0x24]
call fcn.00411be6
add esp, 0xc
cmp dword [esp + 0x10], eax
je 0x40e55f
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc ebx
cmp ebx, dword [eax + 0x18]
jb 0x40e517
xor eax, eax
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
movzx eax, word [eax + ebx*2]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [edi + 0x78]
jb 0x40e65b
mov eax, dword [edi + 0x7c]
add eax, dword [edi + 0x78]
cmp ecx, eax
jae 0x40e65b
lea eax, [ecx + esi]
push eax
lea ecx, [esp + 0x2c]
call fcn.004021ea
xor ebx, ebx
mov dword [esp + 0x64], ebx
push 1
push ecx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x18], 0x2e
call fcn.0040235b
mov esi, eax
cmp esi, 0xffffffff
je 0x40e648
push esi
push ebx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x34]
call fcn.00410c58
mov byte [esp + 0x64], 1
cmp dword [eax + 0x14], 0x10
jb 0x40e5d6
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov byte [esp + 0x64], bl
lea ecx, [esp + 0x40]
call fcn.00402217
test edi, edi
je 0x40e648
push 0xffffffffffffffff
lea ecx, [esi + 1]
push ecx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x34]
call fcn.00410c58
mov byte [esp + 0x64], 2
cmp dword [eax + 0x14], 0x10
jb 0x40e611
mov eax, dword [eax]
push ebx
push dword [ebp + 0xc]
mov edx, eax
push dword [ebp + 8]
mov ecx, edi
call fcn.0040e483
add esp, 0xc
mov esi, eax
mov byte [esp + 0x64], bl
lea ecx, [esp + 0x40]
call fcn.00402217
or dword [esp + 0x64], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.00402217
mov eax, esi
jmp 0x40e54d
or dword [esp + 0x64], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.00402217
jmp 0x40e54b
lea eax, [ecx + esi]
jmp 0x40e54d
Function at 0x40ee75
Capabilities:
Parse pe header

Disassembly:
push 8
push 0x436970
call fcn.00428ba0
mov esi, ecx
and dword [ebp - 4], 0
lea edi, [esi + 0x80]
push dword [ebp + 0xc]
push 0x40
push 0
push edi
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x40ef76
or dword [ebp - 4], 0xffffffff
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x40ef65
mov eax, dword [esi + 0xbc]
test eax, eax
je 0x40ef65
mov dword [ebp - 4], 1
lea edi, [esi + 0xc0]
push dword [ebp + 0xc]
push 0xf8
push eax
push edi
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x40ef76
or dword [ebp - 4], 0xffffffff
cmp dword [edi], 0x4550
jne 0x40ef65
mov eax, 0x10b
cmp word [esi + 0xd8], ax
jne 0x40ef65
movzx eax, word [esi + 0xc6]
test ax, ax
je 0x40ef65
mov edi, eax
imul edi, edi, 0x28
movzx ecx, word [esi + 0xd4]
mov ebx, dword [esi + 0xbc]
add ecx, 0x18
add ebx, ecx
push edi
call fcn.0041e1c8
pop ecx
mov dword [esi + 0x1b8], eax
test eax, eax
jne 0x40ef3a
push 8
jmp 0x40ef7c
mov dword [ebp - 4], 2
push dword [ebp + 0xc]
push edi
push ebx
push eax
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x40ef76
or dword [ebp - 4], 0xffffffff
lea eax, [ebx + edi]
mov dword [esi + 0x18], eax
xor eax, eax
jmp 0x40ef7d
push 0xb
jmp 0x40ef7c
or dword [ebp - 4], 0xffffffff
push 0x1e
pop eax
call fcn.00428bdb
ret 8

Function at 0x411be6
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov ecx, 0xf7f733c0
test edi, edi
je 0x411c1f
movzx eax, byte [ebx]
cdq
push 0
xor esi, edx
push 0x1000193
xor ecx, eax
push esi
push ecx
inc ebx
call fcn.00428570
xor esi, esi
mov ecx, eax
dec edi
jne 0x411c01
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411c28
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [0x5121a0]
or eax, dword [0x5121a4]
push ebx
push esi
mov ebx, edx
push edi
mov dword [esp + 0xc], ebx
mov edi, ecx
jne 0x411c88
xor esi, esi
mov eax, esi
push 8
cdq
pop ebx
mov ecx, eax
shrd eax, edx, 1
and ecx, 1
shr edx, 1
or ecx, 0
je 0x411c6a
xor eax, 0xd7870f42
xor edx, 0xc96c5795
dec ebx
jne 0x411c4f
mov dword [esi*8 + 0x5119a8], eax
mov dword [esi*8 + 0x5119ac], edx
inc esi
cmp esi, 0x100
jl 0x411c49
mov ebx, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
not ecx
not edx
test edi, edi
je 0x411cb9
movzx eax, byte [edi]
xor eax, ecx
shrd ecx, edx, 8
and eax, 0xff
shr edx, 8
xor ecx, dword [eax*8 + 0x5119a8]
xor edx, dword [eax*8 + 0x5119ac]
inc edi
dec ebx
jne 0x411c96
pop edi
not ecx
pop esi
not edx
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4173ba
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x429b71
push eax
mov dword fs:[0], esp
sub esp, 0x38
cmp dword [0x51197c], 0
push esi
je 0x417459
mov esi, 0x51196c
push ecx
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.004195e2
mov ecx, eax
call fcn.0041980b
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x41740a
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
push dword [eax + ecx*4]
lea ecx, [esp + 0x24]
call fcn.00410eca
and dword [esp + 0x44], 0
mov ecx, esi
call fcn.00419497
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x41743b
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
or dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00402217
cmp dword [0x51197c], 0
jne 0x4173e7
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x417469
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x42a69c
call fcn.0041e9a8
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 0x10
mov edi, edx
jb 0x417487
mov eax, dword [esi]
jmp 0x417489
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x417537
push ecx
push ecx
mov ecx, esi
call fcn.00418aed
cmp eax, 0xffffffff
je 0x4174dc
push eax
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00410c58
and dword [ebp - 4], 0
mov edx, edi
mov ecx, eax
call fcn.00417469
mov bl, al
neg bl
sbb bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00402217
inc bl
je 0x4174dc
xor al, al
jmp 0x417543
mov ecx, dword [0x511918]
test ecx, ecx
je 0x4174f9
cmp dword [esi + 0x14], 0x10
jb 0x4174f0
mov eax, dword [esi]
jmp 0x4174f2
mov eax, esi
push 0
push eax
call ecx
jmp 0x417523
cmp dword [0x50fc48], 0
je 0x417521
push 0x18
pop eax
call fcn.0041edd0
push esp
push 0x435090
call fcn.0040e178
push eax
call dword [0x50fc48]
add esp, 0xc
jmp 0x4174d8
xor eax, eax
test eax, eax
je 0x4174d8
push esi
mov ecx, 0x51196c
call fcn.00419414
mov byte [edi], 0
jmp 0x417541
test eax, 0x410
je 0x4174d8
mov byte [edi], 1
mov al, 1
lea esp, [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4181a1
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x42a6eb
call fcn.0041e9a8
mov eax, 0x1030
call fcn.0041edd0
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x1048], ebx
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebx
push 0x50ab18
push 0x80000001
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0xf
pop edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov dword [esp + 0x1048], ebx
xor ebp, ebp
inc ebp
mov dword [esp + 0x1c], ebp
test eax, eax
jne 0x418297
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x20]
push eax
push ebx
push dword [esp + 0x1068]
mov dword [esp + 0x24], 0x1000
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x3c], bl
test eax, eax
jne 0x41828d
mov eax, dword [esp + 0x18]
dec eax
cmp eax, 2
ja 0x41828d
push ecx
lea eax, [esp + 0x40]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00402571
mov dword [esp + 0x1048], ebp
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.00410b54
mov byte [esp + 0x1048], bl
lea ecx, [esp + 0x20]
call fcn.00402217
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1040]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x41aa22
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
push esi
mov esi, dword [0x50a120]
push edi
test edx, edx
je 0x41aa4c
lea eax, [edx - 1]
shr eax, 2
inc eax
imul ecx, ecx, 0x7fff0000
xor ecx, esi
sub edx, 4
dec eax
jne 0x41aa3e
mov eax, dword [ebp + 8]
shr edx, 2
lea edi, [eax + edx*4]
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x41aa84
dec edx
shr edx, 2
inc edx
imul ecx, ecx, 0x7fff0000
xor ecx, esi
mov eax, ecx
not eax
xor eax, dword [edi]
xor eax, 0x1010101
mov dword [edi], eax
lea edi, [edi + 4]
dec edx
je 0x41aa84
mov esi, dword [0x50a120]
jmp 0x41aa61
pop edi
pop esi
pop ebp
ret
Function at 0x426202
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x509b10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [fcn.0041b29e]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0041f8be
mov dword [ebp - 0x14], eax
cmp dword [0x50fb78], edi
jne 0x4262f3
push 0x800
push edi
push 0x42d298
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x426280
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4263d3
push 0x42d298
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4263d3
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4263d3
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x50fb78], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x50fb7c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x50fb80], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x50fb88], eax
test eax, eax
je 0x4262f0
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x50fb84], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x426318
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42630b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x42632d
push 4
pop eax
jmp 0x4263d5
cmp dword [ebp - 0x14], edi
je 0x42632d
push dword [0x50fb78]
call dword [fcn.0041b2a2]
push 3
jmp 0x426312
mov eax, dword [0x50fb84]
mov ebx, dword [fcn.0041b2a2]
cmp eax, esi
je 0x42638b
cmp dword [0x50fb88], esi
je 0x42638b
push eax
call ebx
push dword [0x50fb88]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x42638b
test eax, eax
je 0x42638b
call ecx
test eax, eax
je 0x426380
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x426380
test byte [ebp - 8], 1
jne 0x42638b
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4263bb
mov eax, dword [0x50fb7c]
cmp eax, esi
je 0x4263b8
push eax
call ebx
test eax, eax
je 0x4263b8
call eax
mov edi, eax
test edi, edi
je 0x4263b8
mov eax, dword [0x50fb80]
cmp eax, esi
je 0x4263b8
push eax
call ebx
test eax, eax
je 0x4263b8
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x50fb78]
call ebx
test eax, eax
je 0x4263d3
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4263d5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f61f
leave
ret
Function at 0x403288
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x4041fc
sub eax, eax
test esi, esi
je 0x403360
sub eax, 1
test ecx, ecx
je 0x40335e
test esi, 3
je 0x4032c6
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x4032ab
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x403345
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x4032d0
mov ecx, edx
test ecx, ecx
je 0x40335e
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40334b
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x401910
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov eax, dword [esp + 8]
mov dword [0x4040c0], eax
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x401923
push esp
mov dword [ebp - 0x24], 0x401640
mov eax, dword [0x4040c0]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], str.zeenty
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4040c0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.upsent
push str.zeenty
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4040c8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x4019c2
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call esi
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x4019a3
pop ebp
ret 0x10
Function at 0x6ffc1480
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x6ffc14db
cmp byte [esi + ebx - 1], 0xa
je 0x6ffc14af
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x6ffc5084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x6ffc1a30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov edi, dword [0x6ffc5094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x6ffc1bf0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x6ffc5094]
movzx eax, al
bt eax, esi
jae 0x6ffc1c50
mov ecx, dword [0x6ffc5084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x6ffc1af6
test byte [0x6ffc2030], 8
jne 0x6ffc1b90
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x6ffc2040], 8
jne 0x6ffc1b40
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x6ffc1ac5
cmp esi, 3
jbe 0x6ffc1b00
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 8], str._s:_s:_s
lea edx, [edi + 1]
mov dword [esp], eax
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x6ffc40e8]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x6ffc1ac5
mov ecx, dword [0x6ffc5094]
test ecx, ecx
je 0x6ffc1c30
mov dword [esp], 0x6ffc2040
call dword [0x6ffc5094]
test al, 8
je 0x6ffc1a9c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x6ffc1a9c
mov ebx, dword [0x6ffc5094]
test ebx, ebx
je 0x6ffc1c10
mov dword [esp], 0x6ffc2030
call dword [0x6ffc5094]
test al, 8
je 0x6ffc1a89
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x6ffc1a8f
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x6ffc5094
call sym._load_func.part.0
jmp 0x6ffc1a50
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x6ffc5094
call sym._load_func.part.0
jmp 0x6ffc1b9a
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x6ffc5094
call sym._load_func.part.0
jmp 0x6ffc1b4e
mov eax, 0xffffffff
jmp 0x6ffc1af6
Function at 0x1000d760
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebx + 8]
test edi, edi
jne 0x1000d7a7
push str.filename_null_
push edi
push 4
push 0x100bd690
call fcn.1000da20
mov eax, dword [0x100bd6c8]
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
mov ecx, 0x100bd690
call fcn.1000d630
push 0x100a3758
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push edi
push eax
call fcn.1007d2f3
add esp, 0xc
test eax, eax
jne 0x1000d8c1
mov esi, dword [ebp - 4]
test esi, esi
je 0x1000d8c1
mov ecx, 0x100bd690
call fcn.1000d630
push 0
push 0
push esi
call fcn.10079e13
add esp, 0xc
push esi
call fcn.1007a0ac
add esp, 4
cmp eax, 0xffffffff
jne 0x1000d813
push esi
call fcn.100798f8
add esp, 4
test eax, eax
jne 0x1000d895
push 2
push 0
push esi
call fcn.10079e13
add esp, 0xc
push esi
call fcn.100797c4
add esp, 4
mov edi, eax
push 0
push 0
push esi
call fcn.10079e13
add esp, 0xc
cmp edi, 0xffffffff
je 0x1000d895
cmp edi, 0xffffffff
jae 0x1000d895
test edi, edi
jne 0x1000d84c
push edi
push edi
push 0xd
jmp 0x1000d89b
lea eax, [edi + 1]
push eax
call fcn.100754d3
add esp, 4
mov dword [0x100bd6e0], eax
push esi
push edi
push 1
push eax
call fcn.1007d522
add esp, 0x10
cmp eax, edi
jne 0x1000d895
mov eax, dword [0x100bd6e0]
mov byte [eax + edi], 0
call fcn.1000db10
push esi
call fcn.10079ae7
mov eax, dword [0x100bd6c8]
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
push 0
push 0
push 5
push 0x100bd690
call fcn.1000da20
add esp, 0x10
push esi
call fcn.10079ae7
mov eax, dword [0x100bd6c8]
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
push edi
push str.filename_s
push 0
push 3
push 0x100bd690
call fcn.1000da20
mov eax, dword [0x100bd6c8]
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4

Function at 0x1000dd00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
jle 0x1000dd4a
nop
mov eax, dword [edi + 0x40]
test eax, eax
je 0x1000dd2b
push eax
push 4
push 1
push 0x100a37bc
call fcn.1007d1e1
add esp, 0x10
jmp 0x1000dd45
push 4
lea ecx, [edi + 0xd0]
call fcn.1000ead0
mov ecx, dword [0x100a37bc]
mov dword [eax - 1], ecx
mov byte [eax + 3], 0
sub esi, 1
jne 0x1000dd10
pop edi
pop esi
pop ebp
ret 4