joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485591
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4855bf
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4855c6
cmp ebx, dword [eax + 4]
jae 0x4855c6
xor eax, eax
jmp 0x4857b6
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4855d7
xor eax, eax
inc eax
jmp 0x4857b5
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4855ed
cmp ecx, edx
jae 0x485732
cmp dword [eax + 4], 0
je 0x4855f6
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4855de
cmp dword [ebp + 8], 0
je 0x485618
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x485732
cmp eax, esi
jae 0x485732
mov eax, dword [0x4dd5b0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x48563d
cmp dword [esi*4 + 0x4dd5b8], edi
je 0x485736
inc esi
cmp esi, eax
jl 0x48562b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4857b2
cmp dword [ebp - 8], 0x1000000
jne 0x4857b2
test byte [ebp - 0xc], 0xcc
je 0x4856bb
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4857b2
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4857b2
cmp word [eax + 0x18], 0x10b
jne 0x4857b2
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4857b2
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4856bb
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4856bb
test byte [ecx + 0x27], 0x80
jne 0x485732
push 1
push 0x4dd5f8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4855cf
mov ecx, dword [0x4dd5b0]
test ecx, ecx
mov edx, ecx
jle 0x4856ef
lea eax, [ecx*4 + 0x4dd5b4]
cmp dword [eax], edi
je 0x4856ef
dec edx
sub eax, 4
test edx, edx
jg 0x4856e3
test edx, edx
jne 0x485720
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4856fc
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x485714
lea eax, [edx*4 + 0x4dd5b8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x485702
cmp ecx, 0x10
jge 0x485720
inc ecx
mov dword [0x4dd5b0], ecx
push 0
push 0x4dd5f8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4855cf
xor eax, eax
jmp 0x4857b5
test esi, esi
jle 0x4855cf
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4dd5f8
call ebx
test eax, eax
jne 0x4855cf
cmp dword [esi*4 + 0x4dd5b8], edi
je 0x48578c
mov eax, dword [0x4dd5b0]
lea esi, [eax - 1]
test esi, esi
jl 0x48577a
cmp dword [esi*4 + 0x4dd5b8], edi
je 0x485776
dec esi
jns 0x48576a
test esi, esi
jge 0x48578a
cmp eax, 0x10
jge 0x485785
inc eax
mov dword [0x4dd5b0], eax
lea esi, [eax - 1]
jmp 0x48578c
je 0x4857a4
xor ecx, ecx
test esi, esi
jl 0x4857a4
lea eax, [ecx*4 + 0x4dd5b8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x485792
push 0
push 0x4dd5f8
call ebx
jmp 0x4855cf
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48c1df
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48c217
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048a2ad
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048a285
jmp 0x48c223
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48d8cd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48d90f
call fcn.0049324f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48d90f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48d906
xor eax, eax
jmp 0x48d917
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048d91d
pop edi
pop esi
pop ebx
ret 4

Function at 0x49377f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4937ad
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4937cb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004936e5
jmp 0x4937cb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4937cb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004936e5
test edi, edi
mov eax, edi
jne 0x4937b5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40aad0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
sub esp, 0x34
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
lea eax, [ebp - 0xc]
sub esp, 0x10
mov dword [esp], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x7f
mov dword [esp + 4], 0x46d320
call dword [sym.imp.kernel32.dll_ReadFile]
mov ebx, dword [ebp - 4]
sub esp, 0x14
test eax, eax
mov eax, 0
cmovne eax, dword [ebp - 0xc]
mov byte [eax + 0x46d320], 0
mov eax, 0x46d320
leave
ret
Function at 0x40b7e0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x19c
mov edx, dword [0x46d7ac]
test edx, edx
je 0x40b980
mov ebx, eax
lea eax, [ebp - 0x174]
mov dword [esp], 0x20019
mov dword [esp + 4], eax
call sub.advapi32.dll_RegOpenCurrentUser
sub esp, 8
mov esi, eax
mov dword [esp + 4], 0x6e4
mov dword [esp], 0x45a2c0
call fcn.0044c860
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.RegOpenCurrentUser_failed:__x_n
lea esi, [ebp - 0x160]
mov dword [esp], eax
call fcn.0044cad0
lea edx, [ebp - 0x15c]
xor eax, eax
mov ecx, 0x10
mov dword [ebp - 0x160], 0x44
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x174]
mov edi, dword [sym.imp.kernel32.dll_GetStdHandle]
mov dword [ebp - 0x134], 0x100
mov dword [esp], 0xfffffff5
mov dword [ebp - 0x128], eax
call edi
sub esp, 4
mov dword [ebp - 0x124], eax
mov dword [esp], 0xfffffff4
call edi
sub esp, 4
mov dword [ebp - 0x120], eax
mov dword [esp + 8], ebx
lea ebx, [ebp - 0x11c]
mov dword [esp], ebx
mov dword [esp + 4], str._s_file_stdin
call fcn.0040aaa0
lea eax, [ebp - 0x170]
mov dword [esp + 0x20], esi
mov dword [esp + 4], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4000020
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateProcessA]
sub esp, 0x28
mov dword [esp + 4], 0x6f4
mov dword [esp], 0x45a2c0
call fcn.0044c860
mov eax, dword [ebp - 0x170]
mov dword [esp], eax
call fcn.0044cdb0
mov eax, dword [ebp - 0x174]
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
sub esp, 4
mov ebx, eax
mov dword [esp + 4], 0x6f7
mov dword [esp], 0x45a2c0
call fcn.0044c860
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.RegCloseKey_failed:__x_n
mov dword [esp], eax
call fcn.0044cad0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x6df
mov dword [esp], 0x45a2c0
call fcn.0044c860
mov dword [esp], str.skipping_invalid_stdin_tests_n
call fcn.0044cbe0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40f230
Capabilities:
Write file on windows

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x41a]
push ebx
mov ebx, 0xae4c415d
sub esp, 0x43c
lea esi, [esi]
mov eax, ecx
mul ebx
mov eax, ecx
shr edx, 6
imul edx, edx, 0x5e
sub eax, edx
add eax, 0x20
mov byte [esi + ecx], al
add ecx, 1
cmp ecx, 0x1ff
jne 0x40f250
mov eax, 0xa
mov ebx, dword [sym.imp.msvcrt.dll_fopen]
mov dword [esp + 4], 0x45b385
mov word [ebp - 0x21b], ax
mov dword [esp], str.boundary.tst
call ebx
mov dword [esp + 8], 1
mov edi, eax
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x200
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll_fwrite]
mov eax, dword [sym.imp.msvcrt.dll_fclose]
mov dword [esp], edi
lea edi, [ebp - 0x219]
mov dword [ebp - 0x42c], eax
call eax
mov dword [esp + 4], 0x45b14a
mov dword [esp], str.boundary.tst
call ebx
mov ebx, eax
lea esi, [esi]
mov dword [esp + 8], 1
add edi, 1
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_fseek]
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_fgetc]
mov byte [edi - 1], al
lea eax, [ebp - 0x19]
cmp eax, edi
jne 0x40f2e0
mov dword [esp], ebx
mov eax, dword [ebp - 0x42c]
mov byte [ebp - 0x19], 0
call eax
mov dword [esp], str.boundary.tst
call dword [sym.imp.msvcrt.dll__unlink]
mov dword [esp + 4], 0x232
mov dword [esp], 0x45a2c0
call fcn.0044c860
lea eax, [ebp - 0x219]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll_strcmp]
mov dword [esp + 4], str.CRLF_on_buffer_boundary_failure_n
test eax, eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
add esp, 0x43c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40f380
Capabilities:
Get common file path
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x25c]
push ebx
lea ebx, [ebp - 0x360]
sub esp, 0x3ec
mov byte [ebp - 0x3c5], 0x74
mov dword [esp + 4], ebx
mov dword [ebp - 0x3c9], 0x7365741a
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
sub esp, 8
mov dword [esp], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x45b3b9
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
sub esp, 0x10
mov dword [esp + 4], str.wbDT
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll_fopen]
mov dword [esp + 8], 5
mov ebx, eax
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x3c9]
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_fwrite]
mov dword [esp], ebx
mov dword [ebp - 0x3dc], eax
call dword [sym.imp.msvcrt.dll_rewind]
lea eax, [ebp - 0x3c4]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x64
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_fread]
mov dword [esp], ebx
mov edi, eax
call dword [sym.imp.msvcrt.dll_fclose]
mov dword [esp + 4], 0x205
mov dword [esp], 0x45a2c0
call fcn.0044c860
cmp dword [ebp - 0x3dc], edi
mov dword [esp + 4], str.fopen_file_mode_T_wrongly_interpreted_as_t_n
sete cl
xor eax, eax
cmp edi, 5
sete al
and eax, ecx
mov dword [esp], eax
call fcn.0044cad0
lea eax, [ebp - 0x158]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindFirstFileA]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0x20a
mov dword [esp], 0x45a2c0
call fcn.0044c860
xor eax, eax
cmp ebx, 0xffffffff
mov dword [esp + 4], str.file_wasnt_deleted_when_closed._n
sete al
mov dword [esp], eax
call fcn.0044cad0
cmp ebx, 0xffffffff
je 0x40f4dc
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x414000
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__get_osfhandle]
lea edx, [ebp - 0x14]
mov dword [esp + 0x10], 0x10
mov dword [esp + 8], edx
lea edx, [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp + 0xc], 4
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
sub esp, 0x14
mov ebx, eax
mov dword [esp + 4], 0xab9
mov dword [esp], 0x45a2c0
call fcn.0044c860
xor eax, eax
test ebx, ebx
mov dword [esp + 4], str.NtQueryInformationFile_failed_n
sete al
mov dword [esp], eax
call fcn.0044cad0
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 4]
leave
shr eax, 2
and eax, 1
ret

Function at 0x414080
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
mov esi, 0x45b429
push ebx
lea ebx, [ebp - 0x220]
sub esp, 0x23c
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
lea eax, [ebp - 0x11c]
sub esp, 8
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x45b3b9
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov dword [ebp - 0x22c], 0
sub esp, 0x10
jmp 0x4140f4
mov eax, dword [edi*8 + 0x45d764]
mov esi, dword [edi*8 + 0x45d760]
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x11c]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_fopen]
mov dword [esp + 4], 0xad4
mov dword [esp], 0x45a2c0
mov ebx, eax
call fcn.0044c860
xor eax, eax
test ebx, ebx
mov dword [esp + 8], esi
setne al
mov dword [esp + 4], str.unable_to_fopen_test_file_with_mode___s__n
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], 0xad5
mov dword [esp], 0x45a2c0
call fcn.0044c860
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll__fileno]
call fcn.00414000
cmp eax, dword [ebp - 0x22c]
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.unexpected_sequential_hint_for_fopen_mode___s__n
add edi, 1
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_fclose]
cmp edi, 5
jne 0x4140e0
lea eax, [ebp - 0x11c]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__unlink]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4141b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
mov esi, 0x8000
push ebx
lea ebx, [ebp - 0x220]
sub esp, 0x23c
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
lea eax, [ebp - 0x11c]
sub esp, 8
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x45b3b9
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov dword [ebp - 0x22c], 0
sub esp, 0x10
lea eax, [ebp - 0x11c]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__open]
mov dword [esp + 4], 0xaf2
mov dword [esp], 0x45a2c0
mov ebx, eax
call fcn.0044c860
xor eax, eax
cmp ebx, 0xffffffff
mov dword [esp + 8], esi
setne al
mov dword [esp + 4], str.unable_to__open_test_file_with_flags__x_n
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], 0xaf3
mov dword [esp], 0x45a2c0
call fcn.0044c860
mov eax, ebx
call fcn.00414000
cmp eax, dword [ebp - 0x22c]
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.unexpected_sequential_hint_for__open_flags__x_n
add edi, 1
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll__close]
cmp edi, 4
je 0x4142c0
mov eax, dword [edi*8 + 0x45d724]
mov esi, dword [edi*8 + 0x45d720]
mov dword [ebp - 0x22c], eax
jmp 0x41420d
lea eax, [ebp - 0x11c]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__unlink]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x42b430
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x42c
mov esi, dword [sym.imp.msvcrt.dll_fopen]
mov dword [esp + 4], 0x462520
mov dword [esp], str.fscanf.tst
call esi
mov dword [esp + 4], 0x25
mov dword [esp], str..._wine_dlls_msvcrt_tests_scanf.c
mov ebx, eax
call fcn.0044c860
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
setne al
mov dword [esp + 4], str.fp___p_n
mov dword [esp], eax
call fcn.0044cad0
test ebx, ebx
je 0x42b670
mov dword [esp + 0xc], ebx
mov edi, str.line1
mov dword [esp + 8], 0xc
mov dword [esp + 4], 1
mov dword [esp], str.line1_nline2
call sub.msvcrt.dll_fwrite
mov edx, dword [sym.imp.msvcrt.dll_fclose]
mov dword [esp], ebx
lea ebx, [ebp - 0x418]
mov dword [ebp - 0x424], edx
call edx
mov dword [esp + 4], 0x462576
mov dword [esp], str.fscanf.tst
call esi
mov ecx, dword [sym.imp.msvcrt.dll_fscanf]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x462579
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x41c], eax
mov dword [esp], eax
call ecx
mov dword [esp + 4], 0x30
mov dword [esp], str..._wine_dlls_msvcrt_tests_scanf.c
mov esi, eax
call fcn.0044c860
xor eax, eax
cmp esi, 1
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], 0x46257c
mov esi, ebx
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], 0x31
mov dword [esp], str..._wine_dlls_msvcrt_tests_scanf.c
call fcn.0044c860
mov ecx, 6
repe cmpsb byte [esi], byte es:[edi]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x46258c
seta al
sbb al, 0
test al, al
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov edi, dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x420]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x462579
mov dword [esp], edi
mov edi, str.line2
call ecx
mov dword [esp + 4], 0x33
mov dword [esp], str..._wine_dlls_msvcrt_tests_scanf.c
mov esi, eax
call fcn.0044c860
xor eax, eax
cmp esi, 1
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], 0x46257c
mov esi, ebx
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], 0x34
mov dword [esp], str..._wine_dlls_msvcrt_tests_scanf.c
call fcn.0044c860
mov ecx, 6
repe cmpsb byte [esi], byte es:[edi]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x46258c
seta al
sbb al, 0
test al, al
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov edi, dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x420]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x462579
mov dword [esp], edi
call ecx
mov dword [esp + 4], 0x36
mov dword [esp], str..._wine_dlls_msvcrt_tests_scanf.c
mov ebx, eax
call fcn.0044c860
xor eax, eax
cmp ebx, 0xffffffff
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], 0x46257c
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp], edi
mov edx, dword [ebp - 0x424]
call edx
mov dword [esp], str.fscanf.tst
call dword [sym.imp.msvcrt.dll__unlink]
add esp, 0x42c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x27
mov dword [esp], str..._wine_dlls_msvcrt_tests_scanf.c
call fcn.0044c860
mov dword [esp], str.failed_to_create_temporary_test_file_n
call fcn.0044cbc0
add esp, 0x42c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x44c5e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp], 1
call dword [0x44e58c]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_fflush]
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]

Function at 0x44cf50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x30
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x28]
mov dword [esp + 8], eax
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
lea eax, [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 0x2c], 0
call sub.msvcrt.dll___getmainargs
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll___set_app_type
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.0044d910
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
and esp, 0xfffffff0
call sub.msvcrt.dll___iob_func
mov edx, dword [ebp + 8]
leave
shl edx, 5
add eax, edx
ret
Function at 0x4014d0
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x18
mov eax, dword [0x436ee0]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
xor ebx, ebx
lea eax, [esp + 8]
push eax
push 8
mov byte [esp + 0x18], bl
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], bl
mov byte [esp + 0x1b], bl
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x401522
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00418f7f
add esp, 0x18
ret
push esi
push 0x10000
call fcn.00419547
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x401549
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00418f7f
add esp, 0x18
ret
mov edx, dword [esp + 0xc]
push edi
lea ecx, [esp + 0x14]
push ecx
push 0x10000
push esi
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x401596
lea ecx, [esp + 0xc]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x4015b3
push esi
call fcn.0041946a
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00418f7f
add esp, 0x18
ret
xor edi, edi
push ebp
cmp dword [esi], ebx
jbe 0x4015d9
mov ebp, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea ebx, [esi + 4]
mov eax, dword [ebx]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call ebp
test eax, eax
jne 0x401602
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x4015c3
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call fcn.0041946a
add esp, 4
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00418f7f
add esp, 0x18
ret
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call fcn.0041946a
mov ecx, dword [esp + 0x28]
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00418f7f
add esp, 0x18
ret
Function at 0x401630
Capabilities:
Check os version

Disassembly:
sub esp, 0x134
mov eax, dword [0x436ee0]
xor eax, esp
mov dword [esp + 0x130], eax
push esi
push edi
push 0x94
lea eax, [esp + 0xa8]
mov esi, ecx
push 0
push eax
mov dword [esi + 8], 0xffffffff
call fcn.004193f0
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [esp + 0xa4]
push ecx
mov dword [esp + 0xa8], 0x94
call edi
cmp dword [esp + 0xa8], 5
jb 0x4016d6
push 0x9c
lea edx, [esp + 0xc]
push 0
push edx
call fcn.004193f0
add esp, 0xc
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x9c
call edi
mov ecx, dword [esp + 0xc]
mov eax, 1
cmp ecx, 5
jne 0x401730
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x4016ef
cmp word [esp + 0x9c], 4
mov dword [esi + 8], ecx
jae 0x40183f
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00418f7f
add esp, 0x134
ret
cmp ecx, eax
jne 0x40170d
pop edi
mov dword [esi + 8], eax
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00418f7f
add esp, 0x134
ret
cmp ecx, 2
jne 0x40183f
pop edi
mov dword [esi + 8], ecx
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00418f7f
add esp, 0x134
ret
cmp ecx, 6
jne 0x4017f4
mov ecx, dword [esp + 0xac]
test ecx, ecx
jne 0x40176b
cmp byte [esp + 0xa2], al
pop edi
setne cl
add ecx, 3
mov dword [esi + 8], ecx
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00418f7f
add esp, 0x134
ret
cmp ecx, eax
jne 0x401798
xor edx, edx
cmp byte [esp + 0xa2], al
pop edi
setne dl
add edx, 5
mov dword [esi + 8], edx
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00418f7f
add esp, 0x134
ret
cmp ecx, 2
jne 0x4017c6
xor ecx, ecx
cmp byte [esp + 0xa2], al
pop edi
setne cl
add ecx, 7
mov dword [esi + 8], ecx
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00418f7f
add esp, 0x134
ret
cmp ecx, 3
jne 0x40183f
xor edx, edx
cmp byte [esp + 0xa2], al
pop edi
setne dl
add edx, 9
mov dword [esi + 8], edx
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00418f7f
add esp, 0x134
ret
cmp dword [esp + 0xa8], 0xa
jne 0x401838
cmp dword [esp + 0xac], 0
mov dword [esi + 8], 0xb
jne 0x401838
xor ecx, ecx
cmp byte [esp + 0xa2], al
pop edi
setne cl
add ecx, 0xb
mov dword [esi + 8], ecx
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00418f7f
add esp, 0x134
ret
mov dword [esi + 8], 0xd
mov ecx, dword [esp + 0x138]
pop edi
pop esi
xor ecx, esp
call fcn.00418f7f
add esp, 0x134
ret