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

Disassembly:
push ecx
mov eax, dword [esp + 0x14]
lea ecx, [eax + eax]
lea eax, [esp]
push eax
xor edx, edx
push 1
push edx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x18]
mov word [esi], dx
mov edx, dword [esp + 0x14]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40fabf
mov ecx, dword [esp + 0x10]
mov edx, dword [esp]
lea eax, [esp + 0x14]
push eax
push esi
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret

Function at 0x410050
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x10020
call fcn.0041fe20
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x493360]
mov dl, byte [eax + 0x493358]
mov byte [esp + eax + 0xc], cl
mov byte [esp + eax + 0x14], dl
inc eax
cmp eax, 8
jl 0x410060
lea eax, [esp]
push str.XDS1
push eax
call fcn.00414d20
push 4
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00412300
add esp, 0x14
push ebx
push ebp
push esi
mov dword [esp + 0x14], 0
push edi
jmp 0x4100b0
mov eax, dword [esp + 0x10034]
mov ecx, dword [eax]
push ecx
push 0x10000
lea edx, [esp + 0x38]
push 1
push edx
call fcn.00415cf7
add esp, 0x10
cmp eax, 0x18
jl 0x410131
mov ebp, eax
lea edi, [ebp - 0x14]
test edi, edi
jle 0x4100fd
xor edx, edx
mov edi, edi
xor ecx, ecx
lea esi, [esp + edx + 0x30]
mov al, byte [esp + ecx + 0x1c]
cmp al, byte [esi + ecx]
je 0x410121
cmp ecx, 0x14
je 0x42ad61
inc edx
cmp edx, edi
jl 0x4100e0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10034]
lea edx, [ecx + ebp - 0x14]
mov ecx, dword [eax]
push 1
push 0xffffffffffffffec
push ecx
mov dword [esp + 0x24], edx
call fcn.0041568d
add esp, 0xc
jmp 0x4100b0
mov bl, byte [esp + ecx + 0x1d]
lea eax, [ecx + edx]
cmp bl, byte [esp + eax + 0x31]
je 0x410143
inc ecx
jmp 0x4100ef
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10020
ret 4
mov bl, byte [esp + ecx + 0x1e]
lea eax, [ecx + edx]
cmp bl, byte [esp + eax + 0x32]
jne 0x41017a
mov bl, byte [esp + ecx + 0x1f]
lea eax, [ecx + edx]
cmp bl, byte [esp + eax + 0x33]
jne 0x42ad59
mov bl, byte [esp + ecx + 0x20]
lea eax, [ecx + edx]
cmp bl, byte [esp + eax + 0x34]
je 0x42ad48
add ecx, 4
jmp 0x4100ef
add ecx, 2
jmp 0x4100ef
add ecx, 5
cmp ecx, 0x14
jl 0x4100e6
jmp 0x4100ef
add ecx, 3
jmp 0x4100ef
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x10034]
lea ecx, [eax + edx + 0x14]
mov edx, dword [esi]
push 0
push ecx
push edx
call fcn.0041568d
mov eax, dword [esi]
push eax
push 4
lea ecx, [esp + 0x24]
push 1
push ecx
call fcn.00415cf7
lea edx, [esp + 0x2c]
push str.COMM
push edx
mov byte [esp + 0x38], 0
call fcn.00415340
add esp, 0x24
neg eax
sbb eax, eax
and eax, 4
jmp 0x410136
Function at 0x410200
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ac
push esi
push 0x4858e8
or eax, 0xffffffff
call fcn.00410190
mov esi, eax
add esp, 4
lea eax, [esp + 0xa8]
push esi
push eax
call fcn.00414d20
push esi
call fcn.004127bd
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.004102d0
lea eax, [esp + 0xa8]
mov ecx, esi
call fcn.00410300
mov dword [edi + 8], 0
mov eax, dword [edi + 8]
xor ecx, ecx
lea esp, [esp]
movzx edx, byte [esp + ecx + 0x18]
add eax, edx
movzx edx, byte [esp + ecx + 0x19]
add eax, edx
movzx edx, byte [esp + ecx + 0x1a]
add eax, edx
movzx edx, byte [esp + ecx + 0x1b]
add ecx, 4
add eax, edx
cmp ecx, 0x10
jl 0x410260
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
push 0x487eb8
push eax
call fcn.004155ec
add esp, 8
mov dword [edi], eax
test eax, eax
je 0x42d030
push edi
call fcn.00410050
test eax, eax
je 0x42d03a
mov ecx, dword [edi]
push ecx
mov esi, eax
call fcn.004159db
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, 1
jmp 0x4102bf
mov edx, dword [edi]
push edx
push 0x10
lea eax, [esp + 0x10]
push 1
push eax
call fcn.00415cf7
add esp, 0x10
push 0x99f2
push 0x10
lea ecx, [esp + 0x10]
push ecx
call fcn.0044e1c7
xor eax, eax
mov dword [edi + 8], 0
xor ecx, ecx
movzx edx, byte [esp + eax + 8]
inc eax
imul ecx, edx
cmp eax, 0x10
jl 0x42d06a
mov eax, dword [edi]
push eax
mov dword [edi + 8], ecx
call fcn.004173d4
add esp, 4
mov dword [edi + 4], eax
xor eax, eax
jmp 0x4102bf

Function at 0x4102d0
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.00414580
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
ret

Function at 0x410c70
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esi + 0x58]
cmp dword [esi + 0x5c], eax
je 0x410c85
mov ecx, dword [esi + 0x5c]
movzx eax, byte [ecx + esi + 0x14]
inc ecx
mov dword [esi + 0x5c], ecx
ret
cmp eax, 4
push edi
jle 0x410cfc
mov edi, 4
mov eax, 4
sub eax, edi
push eax
lea ecx, [edi + esi + 0x10]
push ecx
lea edx, [esi + 0x10]
push edx
call fcn.00415f40
mov eax, dword [esi + 0x58]
sub eax, edi
mov edx, esi
push edi
lea ecx, [eax + esi + 0x14]
sub edx, edi
push ecx
add edx, 0x14
push edx
call fcn.00412300
mov eax, dword [esi + 4]
push eax
push pe_nt_image_headers32
lea ecx, [esi + 0x14]
push 1
push ecx
mov dword [esi + 0x54], edi
call fcn.00415cf7
add esp, 0x28
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], 0
pop edi
test eax, eax
jne 0x410c78
mov edx, dword [esi + 4]
push edx
call fcn.00415d14
add esp, 4
test eax, eax
je 0x42ae84
or eax, 0xffffffff
ret
mov edi, eax
jmp 0x410c90
mov eax, dword [esi + 4]
push eax
call fcn.00415d48
add esp, 4
test eax, eax
jne 0x410cf8
ret
Function at 0x410d00
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, eax
call fcn.00410c70
cmp eax, 0xffffffff
je 0x410dfc
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
xor ebx, ebx
lea edi, [ebx + 1]
call fcn.00410be0
mov edi, dword [esp + 0x18]
dec edi
test edi, edi
jle 0x410d76
jmp 0x410d30
mov eax, dword [esi + 0x58]
cmp dword [esi + 0x5c], eax
je 0x410d83
mov ecx, dword [esi + 0x5c]
movzx eax, byte [ecx + esi + 0x14]
inc ecx
mov dword [esi + 0x5c], ecx
cmp eax, 0xd
je 0x410d68
cmp eax, 0xffffffff
je 0x410d76
cmp eax, 0xa
je 0x410d76
mov byte [ebx + ebp], al
inc ebx
cmp ebx, edi
jl 0x410d30
pop edi
mov byte [ebx + ebp], 0
pop ebp
pop ebx
mov al, 1
pop esi
ret 8
call fcn.00410c70
cmp eax, 0xa
jne 0x42aecf
pop edi
mov byte [ebx + ebp], 0
pop ebp
pop ebx
mov al, 1
pop esi
ret 8
cmp eax, 4
jle 0x42ae99
mov dword [esp + 0x14], 4
mov eax, dword [esp + 0x14]
lea ecx, [esi + 0x10]
mov edx, 4
sub edx, eax
push edx
add eax, ecx
push eax
push ecx
call fcn.00415f40
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x58]
mov ecx, esi
sub ecx, eax
lea ecx, [ecx + edx + 0x14]
push eax
mov edx, esi
sub edx, eax
push ecx
add edx, 0x14
push edx
call fcn.00412300
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x2c]
push ecx
push pe_nt_image_headers32
lea edx, [esi + 0x14]
push 1
push edx
mov dword [esi + 0x54], eax
call fcn.00415cf7
add esp, 0x28
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], 0
test eax, eax
jne 0x410d38
jmp 0x42aea2
xor al, al
pop esi
ret 8
mov dword [esp + 0x14], eax
jmp 0x410d98
mov eax, dword [esi + 4]
push eax
call fcn.00415d14
add esp, 4
test eax, eax
jne 0x410d76
mov ecx, dword [esi + 4]
push ecx
call fcn.00415d48
add esp, 4
test eax, eax
jne 0x410d76
jmp 0x410d53
cmp eax, 0xffffffff
je 0x410d76
mov edi, 1
call fcn.00410be0
jmp 0x410d76
Function at 0x424ef8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004183f5
and dword [ebp - 4], 0
cmp dword [0x4948fc], 0
mov ebx, eax
jne 0x424fa9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42505a
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x42505a
push eax
call fcn.00418383
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4948fc], eax
call esi
push eax
call fcn.00418383
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x494900], eax
call esi
push eax
call fcn.00418383
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x494904], eax
call esi
push eax
call fcn.00418383
pop ecx
mov dword [0x49490c], eax
test eax, eax
je 0x424fa9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00418383
pop ecx
mov dword [0x494908], eax
mov eax, dword [0x494908]
cmp eax, ebx
je 0x425001
cmp dword [0x49490c], ebx
je 0x425001
push eax
call fcn.004183fe
push dword [0x49490c]
mov esi, eax
call fcn.004183fe
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x425001
test edi, edi
je 0x425001
call esi
test eax, eax
je 0x424ff8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x424ff8
test byte [ebp - 0xc], 1
jne 0x425001
or dword [ebp + 0x10], 0x200000
jmp 0x42503a
mov eax, dword [0x494900]
cmp eax, ebx
je 0x42503a
push eax
call fcn.004183fe
pop ecx
test eax, eax
je 0x42503a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42503a
mov eax, dword [0x494904]
cmp eax, ebx
je 0x42503a
push eax
call fcn.004183fe
pop ecx
test eax, eax
je 0x42503a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4948fc]
call fcn.004183fe
pop ecx
test eax, eax
je 0x42505a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42505c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43708a
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x460]
test eax, eax
je 0x4370b9
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x458]
push ecx
push eax
push 1
push edx
call fcn.004158e2
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
ret 4

Function at 0x4370bd
Capabilities:
Write file on windows

Disassembly:
mov dl, byte [esp + 8]
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x458]
mov ecx, dword [esi + 0x460]
mov byte [eax + ecx], dl
inc dword [esi + 0x460]
mov eax, dword [esi + 0x460]
cmp eax, 0x10000
jne 0x43710c
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x458]
push eax
push 0x10000
push 1
push ecx
call fcn.004158e2
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
ret 8

Function at 0x4371b5
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
cmp dword [esi + 0x14], 1
jne 0x4371db
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00412300
add esp, 0xc
jmp 0x4371f0
mov edx, dword [esi + 0x1c]
push edx
push 8
lea eax, [esp + 0xc]
push 1
push eax
call fcn.00415cf7
add esp, 0x10
movzx ecx, byte [esp + 8]
movzx edx, byte [esp + 9]
movzx eax, byte [esp + 0xa]
add dword [esi + 0xc], 8
shl ecx, 8
or ecx, edx
movzx edx, byte [esp + 0xb]
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x14]
shl ecx, 8
or ecx, edx
mov dword [eax], ecx
lea ecx, [esp + 4]
push str.COMM
push ecx
mov byte [esp + 0x10], 0
call fcn.00415340
add esp, 8
neg eax
sbb eax, eax
neg eax
pop esi
add esp, 8
ret 8

Function at 0x437298
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
mov dword [0x4a4ce8], eax
mov edx, 1
mov eax, 0x4a4ce8
push edi
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x4a56a4
jl 0x4372ac
mov dword [0x49321c], 1
mov dword [0x4a56b8], 1
pop edi
ret
Function at 0x45148d
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x430
push ebx
push ebp
push esi
mov esi, dword [esp + 0x440]
push edi
xor ebp, ebp
mov eax, dword [esi]
push eax
push 4
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.00415cf7
add esp, 0x10
push 0x18ee
push 4
lea edx, [esp + 0x1c]
push edx
call fcn.0044e1c7
lea eax, [esp + 0x14]
push str.RETO
push eax
mov byte [esp + 0x20], 0
call fcn.00415340
add esp, 8
test eax, eax
jne 0x451621
mov ecx, dword [esi]
push ecx
push 1
lea edx, [esp + 0x18]
push 4
push edx
inc ebp
call fcn.00415cf7
mov edi, dword [esp + 0x20]
mov eax, dword [esi]
push eax
xor edi, 0xadbc
lea ebx, [edi + edi]
push ebx
lea ecx, [esp + 0x38]
push 1
push ecx
call fcn.00415cf7
add esp, 0x20
add edi, 0xb33f
push edi
push ebx
lea edx, [esp + 0x28]
push edx
call fcn.0044e1c7
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x234]
xor eax, eax
push edx
mov word [esp + ebx + 0x28], ax
call fcn.00412a21
mov eax, dword [esi]
push eax
push 1
lea ecx, [esp + 0x20]
push 4
push ecx
call fcn.00415cf7
mov edi, dword [esp + 0x28]
mov edx, dword [esi]
push edx
xor edi, 0xf820
lea ebx, [edi + edi]
push ebx
lea eax, [esp + 0x40]
push 1
push eax
call fcn.00415cf7
add esp, 0x28
add edi, 0xf479
push edi
push ebx
lea ecx, [esp + 0x28]
push ecx
call fcn.0044e1c7
mov ecx, dword [esp + 0x44c]
lea eax, [esp + 0x20]
push eax
xor edx, edx
push ecx
mov word [esp + ebx + 0x28], dx
call fcn.00412a21
mov edi, dword [esp + 0x450]
lea edx, [esp + 0x238]
push edi
push edx
call fcn.00414774
add esp, 0x10
test eax, eax
je 0x451612
push 0x488474
push edi
call fcn.00414774
add esp, 8
test eax, eax
jne 0x4515cf
test ebp, ebp
je 0x451612
mov eax, dword [esi]
push 1
push 1
push eax
call fcn.0041568d
mov ecx, dword [esi]
add esp, 0xc
push ecx
push 1
lea edx, [esp + 0x24]
push 4
push edx
call fcn.00415cf7
mov eax, dword [esp + 0x2c]
xor eax, 0x87bc
mov dword [esp + 0x2c], eax
add eax, 0x18
push 1
push eax
mov eax, dword [esi]
push eax
call fcn.0041568d
add esp, 0x1c
jmp 0x4514a0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x430
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
add esp, 0x430
ret 0xc
Function at 0x10008630
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
sub esp, 0x18
test byte [0x100133c0], 8
jne 0x100086a0
mov eax, dword [ebx + 8]
test eax, eax
jne 0x100086d3
mov edx, dword [ebx + 0x28]
cmp edx, dword [ebx + 0x2c]
jb 0x10008693
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
cmp eax, 0xffffffff
je 0x10008700
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
sub eax, edx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x4c]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__read]
test eax, eax
jle 0x10008700
mov edx, dword [ebx + 0x10]
add eax, edx
mov dword [ebx + 0x28], edx
mov dword [ebx + 0x24], edx
mov dword [ebx + 0x2c], eax
movzx eax, byte [edx]
add esp, 0x18
pop ebx
pop ebp
ret
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], str.__p__n
mov dword [esp + 8], str.filebuf_underflow
mov dword [esp + 4], 0x100133c0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov eax, dword [ebx + 8]
test eax, eax
je 0x1000864d
lea eax, [ebp - 5]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x4c]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__read]
test eax, eax
jle 0x10008700
movzx eax, byte [ebp - 5]
add esp, 0x18
pop ebx
pop ebp
ret
mov eax, 0xffffffff
jmp 0x10008696
Function at 0x100094b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x18
mov esi, dword [ebp + 8]
test byte [0x100133c0], 8
jne 0x10009558
mov edx, dword [ebx + 8]
test edx, edx
je 0x10009510
cmp esi, 0xffffffff
jne 0x100094f0
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, dword [ebx + 0x4c]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll_fputc]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov ecx, ebx
call sym.msvcirt.dll_protected:_int___thiscall_streambuf::allocate_void_
cmp eax, 0xffffffff
je 0x100095e9
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x100095c0
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x18]
cmp edx, eax
ja 0x10009590
cmp esi, 0xffffffff
je 0x100094d7
mov eax, dword [ebx + 0x20]
cmp dword [ebx + 0x18], eax
jae 0x100094f0
mov eax, dword [ebx + 0x1c]
lea edx, [eax + 1]
mov dword [ebx + 0x1c], edx
mov edx, esi
mov byte [eax], dl
jmp 0x100094d7
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], str.__p__d__n
mov dword [esp + 8], str.stdiobuf_overflow
mov dword [esp + 4], 0x100133c0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x100094cb
mov edi, edx
mov edx, dword [ebx + 0x4c]
mov dword [esp + 4], 1
sub edi, eax
mov dword [esp], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
call dword [sym.imp.msvcrt.dll_fwrite]
cmp edi, eax
jne 0x100095e9
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x1c], eax
jmp 0x10009535
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 0x10]
mov dword [esp + 4], eax
sub eax, edx
mov ecx, eax
shr eax, 0x1f
add eax, ecx
mov ecx, ebx
sar eax, 1
add eax, edx
mov dword [esp], eax
call sym.msvcirt.dll_protected:_void___thiscall_streambuf::setp_char___char__
sub esp, 8
jmp 0x10009535
mov eax, 0xffffffff
jmp 0x100094dc
Function at 0x10009b10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, ecx
sub esp, 0x14
test byte [0x100133c0], 8
jne 0x10009be0
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10009c40
mov edx, dword [ebx + 8]
test edx, edx
jne 0x10009bc8
mov ecx, ebx
call sym.msvcirt.dll_protected:_int___thiscall_streambuf::allocate_void_
cmp eax, 0xffffffff
je 0x10009c40
mov edx, dword [ebx + 0x2c]
test edx, edx
je 0x10009c10
mov eax, dword [ebx + 0x28]
cmp eax, edx
jb 0x10009bb2
mov eax, dword [ebx + 0x24]
sub edx, eax
test eax, eax
je 0x10009c40
mov ecx, dword [ebx + 0x4c]
mov dword [esp + 8], edx
mov dword [esp + 4], 1
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_fread]
test eax, eax
jle 0x10009c40
mov ecx, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x24]
mov esi, eax
mov dword [esp + 8], eax
neg esi
sub ecx, eax
mov dword [esp + 4], edx
mov dword [esp], ecx
call dword [sym.imp.msvcrt.dll_memmove]
mov eax, dword [ebx + 0x2c]
add eax, esi
lea edx, [eax + 1]
mov dword [ebx + 0x28], edx
movzx eax, byte [eax]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_fgetc]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], str.__p__n
mov dword [esp + 8], str.stdiobuf_underflow
mov dword [esp + 4], 0x100133c0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10009b27
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
sub ecx, edx
mov dword [esp], edx
mov eax, ecx
shr eax, 0x1f
add eax, ecx
mov ecx, ebx
sar eax, 1
add eax, edx
mov dword [esp + 8], eax
mov dword [esp + 4], eax
call sym.msvcirt.dll_protected:_void___thiscall_streambuf::setg_char___char___char__
mov edx, dword [ebx + 0x2c]
sub esp, 0xc
jmp 0x10009b58
mov eax, 0xffffffff
jmp 0x10009bbb

Function at 0x100112e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10011338
cmp byte [esi + ebx - 1], 0xa
je 0x1001130c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10020264], eax
mov dword [esp], 2
call dword [0x10013408]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10011960
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x10011b38
mov edi, dword [0x10020264]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x10011a47
test byte [0x100133e8], 8
jne 0x10011ae0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x100133f8], 8
jne 0x10011aa0
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 sym._sprintf_1
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x100119e9
cmp esi, 3
jbe 0x10011a58
mov dword [esp], 2
call dword [0x10013408]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x100119fa
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x10017ce8]
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 0x100119e9
mov dword [esp], 0x100133f8
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x100119c0
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 sym._sprintf_1
add edi, eax
jmp 0x100119c0
mov dword [esp], 0x100133e8
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x100119ab
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf_1
lea edi, [ebx + eax]
jmp 0x100119b3
mov eax, 0xffffffff
jmp 0x10011a47