joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40aba0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x40abd1
leave
ret
test byte [0x4111c4], 2
jne 0x40abe7
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_exit]
mov dword [esp + 0xc], str.Out_of_memory__n
mov dword [esp + 8], str.heap_xalloc
mov dword [esp + 4], 0x4111c4
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_4
jmp 0x40abda

Function at 0x40ac10
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov eax, dword [eax + 0x20]
lea edx, [eax - 1]
cmp edx, 1
jbe 0x40ac31
cmp eax, 7
jne 0x40ac57
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0x24]
mov esi, dword [ebx + 0x28]
test eax, eax
je 0x40ac68
mov eax, esi
shr eax, 1
cmp word [edi + eax*2 - 2], 0
je 0x40ac57
and esi, 0xfffffffe
mov word [edi + esi], 0
add dword [ebx + 0x28], 2
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
cmp byte [edi + esi - 1], 0
mov edx, edi
je 0x40ac81
mov byte [edi + esi], 0
mov eax, dword [ebx + 0x28]
mov edx, dword [ebx + 0x24]
lea esi, [eax + 1]
mov dword [ebx + 0x28], esi
xor eax, eax
test edx, edx
je 0x40acff
mov dword [esp + 8], edx
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x14], ecx
mov ecx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
mov dword [esp], 0
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], ecx
call ecx
mov dword [ebx + 0x28], eax
sub esp, 0x18
add eax, eax
mov dword [esp], eax
call sym._heap_xalloc
mov edx, dword [ebp - 0x24]
mov dword [esp + 0xc], esi
mov dword [esp], 0
mov dword [esp + 8], edx
mov ecx, eax
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x1c], ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x20]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 4], eax
call ecx
mov ecx, dword [ebx + 0x28]
mov edx, dword [ebp - 0x1c]
lea eax, [ecx + ecx]
sub esp, 0x18
mov dword [ebx + 0x24], edx
xor edx, edx
mov dword [ebx + 0x28], eax
mov dword [esp + 8], edi
mov dword [esp + 4], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
sub esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x40adf0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
cmp word [edi], 0
jne 0x40ae20
mov dword [esi + 0x30], 0x10
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esi + 0x2c], 0
cmp word [edi], 0
je 0x40afe0
mov eax, edi
lea esi, [esi]
lea edi, [edi]
add eax, 2
cmp word [eax], 0
jne 0x40ae40
sub eax, edi
sar eax, 1
inc eax
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
mov edx, dword [esi + 0x28]
add eax, edx
mov edx, dword [esi + 0x24]
test edx, edx
je 0x40afb0
mov dword [esp + 0xc], eax
xor ebx, ebx
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
sub esp, 0x10
test eax, eax
je 0x40b02b
mov dword [esi + 0x24], eax
mov ecx, dword [esi + 0x28]
add eax, ecx
cmp word [edi], 0
je 0x40af33
mov dword [ebp + 0xc], edi
mov ebx, edi
mov edi, eax
jmp 0x40aef3
test eax, eax
mov edx, dword [ebp - 0x1c]
jne 0x40aec7
cmp edx, ebx
je 0x40aff0
mov byte [edi], al
inc edi
mov ebx, dword [ebp - 0x1c]
inc dword [esi + 0x28]
movzx ecx, word [ebx]
test ecx, ecx
setne al
cmp ecx, 0x2c
setne dl
and al, dl
jne 0x40af68
test ecx, ecx
je 0x40aeed
add ebx, 2
cmp word [ebx], 0
je 0x40af30
mov dword [esp], ebx
lea eax, [ebp - 0x1c]
mov edx, 0x10
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_wcstoul]
cmp eax, 0xff
jbe 0x40aeb8
mov edi, dword [ebp + 0xc]
mov eax, esi
call sym._free_parser_data
mov eax, edi
mov dword [esi + 0x30], 2
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x40af50
mov eax, esi
call sym._prepare_hex_string_data
jmp 0x40ae05
mov dword [esi + 0x2c], 1
lea edi, [edx + 2]
mov dword [esi + 0x30], 0xd
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
cmp ecx, 9
mov edi, dword [ebp + 0xc]
je 0x40af80
cmp ecx, 0x20
jne 0x40af98
lea esi, [esi]
lea edi, [edi]
add ebx, 2
mov dword [ebp - 0x1c], ebx
movzx ecx, word [ebx]
cmp ecx, 0x20
je 0x40af80
cmp ecx, 9
je 0x40af80
test ecx, ecx
setne al
cmp ecx, 0x3b
je 0x40af33
test al, al
jne 0x40af16
jmp 0x40af33
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
jmp 0x40ae8e
xor eax, eax
jmp 0x40ae57
movzx eax, word [edx]
mov edi, dword [ebp + 0xc]
cmp eax, 9
je 0x40b000
cmp eax, 0x20
jne 0x40b013
add edx, 2
mov dword [ebp - 0x1c], edx
movzx eax, word [edx]
cmp eax, 0x20
je 0x40b000
cmp eax, 9
je 0x40b000
cmp eax, 0x5c
je 0x40af46
cmp eax, 0x3b
nop
jne 0x40af16
jmp 0x40af33
nop
lea esi, [esi]
call sym._heap_xrealloc.part.0
lea esi, [esi]
lea edi, [edi]
Function at 0x40b150
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 8]
mov eax, dword fs:[0x18]
mov esi, dword [ebp + 0xc]
mov edx, dword [ebx + 0x18]
mov dword [esp + 8], edx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
lea edx, [ebp - 0xc]
mov eax, esi
mov dword [ebx + 0x18], 0
sub esp, 0xc
call sym._REGPROC_unescape_string
test eax, eax
je 0x40b1e0
cmp word [esi], 0
mov eax, esi
je 0x40b1f0
add eax, 2
cmp word [eax], 0
jne 0x40b1a0
sub eax, esi
add eax, 2
mov dword [esp], eax
call sym._heap_xalloc
xor edx, edx
mov dword [ebx + 0x18], eax
nop
lea esi, [esi]
movzx ecx, word [esi + edx]
mov word [eax + edx], cx
add edx, 2
test ecx, ecx
jne 0x40b1c0
mov dword [ebx + 0x30], 7
mov eax, dword [ebp - 0xc]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [ebx + 0x30], 2
lea esp, [ebp - 8]
mov eax, esi
pop ebx
pop esi
pop ebp
ret
mov eax, 2
jmp 0x40b1ae

Function at 0x40b530
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov dword [esp], eax
call dword [0x416d5c]
test eax, eax
mov ebx, eax
je 0x40b5f3
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x40b638
cmp word [eax], 0
je 0x40b648
lea esi, [esi]
lea edi, [edi]
add eax, 2
cmp word [eax], 0
jne 0x40b570
sub eax, ebx
add eax, 6
mov dword [esp], eax
call sym._heap_xalloc
mov edi, eax
movzx eax, word [esi + 4]
mov word [edi], ax
movzx eax, word [esi + 6]
mov word [edi + 2], ax
xor eax, eax
lea esi, [esi]
movzx edx, word [ebx + eax]
mov word [edi + eax + 4], dx
add eax, 2
test edx, edx
jne 0x40b5a0
mov eax, edi
call sym._parse_file_header
xor edx, edx
mov word [esi + 0xc], ax
mov dword [esp + 8], edi
mov dword [esp + 4], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
movsx eax, word [esi + 0xc]
sub esp, 0xc
test eax, eax
je 0x40b600
dec eax
cmp ax, 1
ja 0x40b618
mov dword [esi + 0x30], 2
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esi + 0x30], 1
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0
xor ebx, ebx
call dword [0x416d5c]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._parse_file_header
cwde
mov word [esi + 0xc], ax
jmp 0x40b5e1
mov eax, 6
jmp 0x40b57e
Function at 0x40b870
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edx, dword [0x416d58]
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x1c], eax
call eax
mov ecx, dword [ebp + 8]
sub esp, 0xc
test ecx, ecx
je 0x40b9ca
mov eax, dword [0x416d54]
test eax, eax
je 0x40b9f0
mov edi, dword [0x416d4c]
test edi, edi
je 0x40ba48
mov dword [esp], edi
mov eax, 0x412b58
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_strpbrk]
test eax, eax
jne 0x40ba20
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_strlen]
mov esi, dword [0x416d50]
mov dword [esp + 4], edi
mov dword [esp], esi
mov ebx, eax
lea eax, [eax + 1]
mov dword [esp + 8], eax
call dword [sym.imp.ucrtbase.dll_memmove]
mov eax, dword [0x416d54]
mov edx, eax
sub edx, ebx
cmp edx, 2
ja 0x40b95a
mov dword [esp + 8], esi
add eax, eax
mov dword [esp + 0xc], eax
mov dword [0x416d54], eax
xor eax, eax
mov dword [esp + 4], eax
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
sub esp, 0x10
test eax, eax
mov esi, eax
je 0x40ba8c
mov dword [0x416d50], eax
mov eax, dword [0x416d54]
mov ecx, dword [ebp + 8]
mov edx, ebx
add esi, ebx
mov dword [esp], esi
not edx
mov edi, 1
mov dword [esp + 4], edi
add eax, edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
call dword [sym.imp.ucrtbase.dll_fread]
test eax, eax
jne 0x40b9b0
mov eax, dword [0x416d50]
xor esi, esi
mov dword [0x416d4c], esi
test eax, eax
je 0x40b999
call sym._GetWideString.part.0
mov dword [0x416d58], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [0x416d50]
mov dword [0x416d4c], edi
add ebx, edi
test edi, edi
mov byte [ebx + eax], 0
jne 0x40b8cb
mov eax, dword [0x416d54]
xor ebx, ebx
mov dword [0x416d58], ebx
test eax, eax
jne 0x40ba4f
xor edx, edx
xor eax, eax
mov dword [0x416d54], edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x1000
mov eax, 0x1000
mov dword [0x416d54], eax
call sym._heap_xalloc
mov dword [0x416d50], eax
mov edi, eax
mov byte [eax], 0
mov dword [0x416d4c], eax
jmp 0x40b8cb
cmp byte [eax], 0xd
lea edx, [eax + 1]
mov dword [0x416d4c], edx
je 0x40ba7b
mov byte [eax], 0
mov eax, edi
call sym._GetWideString.part.0
mov dword [0x416d58], eax
jmp 0x40b99e
xor eax, eax
mov dword [0x416d58], eax
mov edx, dword [0x416d50]
xor ecx, ecx
mov dword [esp + 4], ecx
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x1c]
call eax
sub esp, 0xc
jmp 0x40b9db
cmp byte [eax + 1], 0xa
jne 0x40ba2e
lea edx, [eax + 2]
mov dword [0x416d4c], edx
jmp 0x40ba2e
call sym._heap_xrealloc.part.0
jmp sym._get_lineW
Function at 0x40baa0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edx, dword [ebp + 8]
mov eax, dword [0x416d48]
test edx, edx
je 0x40bbe9
test eax, eax
je 0x40bc00
mov ebx, dword [0x416d40]
test ebx, ebx
je 0x40bc57
mov dword [esp], ebx
mov eax, 0x412b5c
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_wcspbrk]
test eax, eax
jne 0x40bc3e
mov ecx, dword [0x416d40]
cmp word [ecx], 0
je 0x40bc30
mov eax, ecx
nop
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40bb00
sub eax, ecx
mov ebx, eax
lea eax, [eax + 2]
mov edi, ebx
sar edi, 1
mov dword [esp + 4], ecx
mov esi, dword [0x416d44]
mov dword [esp + 8], eax
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_memmove]
mov eax, dword [0x416d48]
mov ecx, eax
sub ecx, edi
cmp ecx, 2
ja 0x40bb80
mov dword [esp + 8], esi
lea ecx, [eax + eax]
mov dword [0x416d48], ecx
shl eax, 2
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 4], eax
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
sub esp, 0x10
test eax, eax
mov esi, eax
je 0x40bc96
mov dword [0x416d44], eax
mov eax, dword [0x416d48]
mov ecx, edi
mov edx, dword [ebp + 8]
not ecx
add eax, ecx
mov dword [esp + 8], eax
mov eax, 2
mov dword [esp + 4], eax
lea eax, [esi + ebx]
mov dword [esp + 0xc], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_fread]
test eax, eax
jne 0x40bbc8
mov ebx, dword [0x416d44]
xor ecx, ecx
mov dword [0x416d40], ecx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [0x416d44]
add eax, edi
mov word [ebx + eax*2], 0
test ebx, ebx
mov dword [0x416d40], ebx
jne 0x40bacf
mov eax, dword [0x416d48]
test eax, eax
jne 0x40bc57
xor eax, eax
xor ebx, ebx
mov dword [0x416d48], eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x2000
mov eax, 0x1000
mov dword [0x416d48], eax
call sym._heap_xalloc
mov dword [0x416d44], eax
mov ebx, eax
mov word [eax], 0
mov dword [0x416d40], eax
jmp 0x40bacf
xor ebx, ebx
xor edi, edi
mov eax, 2
jmp 0x40bb14
cmp word [eax], 0xd
lea edx, [eax + 2]
mov dword [0x416d40], edx
je 0x40bc84
mov word [eax], 0
jmp 0x40bbb8
mov edx, dword [0x416d44]
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x40bbed
cmp word [eax + 2], 0xa
jne 0x40bc4d
lea edx, [eax + 4]
mov dword [0x416d40], edx
jmp 0x40bc4d
call sym._heap_xrealloc.part.0
nop
lea esi, [esi]
Function at 0x40bd50
Capabilities:
Get process heap flags
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x10
test ecx, ecx
je 0x40bda0
cmp word [edx], 0
je 0x40bde8
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40bd70
sub eax, esi
sar eax, 1
mov dword [esp + 0xc], ebx
mov ecx, 2
mov dword [esp], esi
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
test edx, edx
je 0x40bdad
mov eax, edx
call sym._GetMultiByteString.part.0
mov esi, eax
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fputs]
xor edx, edx
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
xor eax, eax
jmp 0x40bd7d
Function at 0x40c6c0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
test eax, eax
je 0x40c700
mov dword [esp + 8], eax
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
mov edx, dword fs:[0x18]
mov dword [esp + 0xc], ecx
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
sub esp, 0x10
test eax, eax
je 0x40c727
leave
ret
mov edx, dword [ebp + 0xc]
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
jmp 0x40c6f7
call sym._heap_xrealloc.part.0
lea esi, [esi]

Function at 0x40c750
Capabilities:
Get process heap flags
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40c880
lea eax, [ebp - 0x4e]
mov esi, 1
mov dword [esp + 0xc], ebx
mov edi, 2
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_fread]
dec eax
jne 0x40c880
movzx eax, byte [ebp - 0x4e]
movzx edx, byte [ebp - 0x4d]
cmp al, 0xff
je 0x40c8a8
xor esi, esi
mov ecx, sym._get_lineA
mov dword [ebp - 0x4c], ebx
lea ebx, [ebp - 0x4c]
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x48]
mov word [ebp - 0x46], dx
mov edx, sym._header_state
mov dword [ebp - 0x44], esi
mov dword [0x416d5c], ecx
mov word [ebp - 0x40], 0xffff
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
jmp 0x40c81a
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx*4 + 0x412d20]
mov dword [esp + 4], eax
mov dword [esp], ebx
call edx
test eax, eax
jne 0x40c810
movsx eax, word [ebp - 0x40]
lea edx, [eax - 3]
cmp dx, 1
jbe 0x40c890
mov edx, dword [ebp - 0x34]
mov ebx, 1
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0x3c]
sub esp, 0xc
test ecx, ecx
je 0x40c882
lea eax, [ebp - 0x3c]
lea edx, [ebp - 0x38]
call sym._close_key.isra.0.part.0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
xor ebx, ebx
cmp eax, 3
sete bl
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dl, 0xfe
mov edi, sym._get_lineA
sete cl
movzx esi, cl
mov ecx, sym._get_lineW
cmovne ecx, edi
jmp 0x40c7a4
Function at 0x40edc0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags
Query or enumerate registry key

Disassembly:
push ebp
mov edx, dword [0x416d60]
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
test edx, edx
jne 0x40edf8
test byte [eax + 0x40], 0x40
mov edx, 1
je 0x40ede8
pop ebp
mov eax, edx
ret
mov edx, dword [eax + 0x3c]
mov eax, ecx
pop ebp
jmp sym._UpdateExpandingTree.part.0
pop ebp
xor edx, edx
mov eax, edx
ret

Function at 0x40f980
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]
test eax, eax
je 0x40f9f0
cmp byte [esi + eax - 1], 0xa
mov ebx, eax
je 0x40f9e8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x416e04], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
xor eax, eax
jmp 0x40f9ad
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x410030
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov ebx, dword [ebp + 0xc]
mov dword [esp], ebx
call sym.___wine_dbg_get_channel_flags
movzx ecx, byte [ebp + 8]
movzx eax, al
sar eax, cl
test al, 1
je 0x410208
mov edx, dword [0x416e04]
mov eax, dword fs:[0x18]
cmp dword [eax + 0x24], edx
je 0x4101f8
test byte [0x411320], 8
jne 0x4101a0
lea edi, [esp + 0x28]
mov esi, edi
test byte [0x411330], 8
jne 0x410160
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov ecx, str._04x:
mov dword [esp + 4], ecx
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4100bb
cmp dword [ebp + 8], 3
jbe 0x410120
mov dword [esp], 2
mov ebx, edi
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov esi, dword [ebx]
add ebx, 4
lea ecx, [esi - 0x1010101]
not esi
and ecx, esi
and ecx, 0x80808080
je 0x4100ca
mov dword [esp + 0xc], eax
mov esi, ecx
mov eax, 1
mov dword [esp + 4], eax
shr esi, 0x10
test ecx, 0x8080
mov dword [esp], edi
cmove ecx, esi
lea esi, [ebx + 2]
mov dl, cl
cmove ebx, esi
add dl, cl
sbb ebx, 3
sub ebx, edi
mov dword [esp + 8], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp + 0x10]
add eax, esi
inc ebx
mov dword [esp + 0x10], ebx
mov dword [esp], eax
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 8]
mov ecx, dword [edx*4 + 0x412ed8]
mov edx, str._s:_s:_s
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov ecx, edi
sub ecx, eax
add ecx, 0xc8
mov dword [esp + 4], ecx
call sym._snprintf.constprop.0
jmp 0x4100bb
mov dword [esp], 0x411330
call sym.___wine_dbg_get_channel_flags
and al, 8
je 0x410090
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov ecx, str._04x:
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sym._sprintf
add esi, eax
jmp 0x410090
mov dword [esp], 0x411320
call sym.___wine_dbg_get_channel_flags
and al, 8
je 0x41007d
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
mov esi, str._3u._03u:
mov dword [esp + 4], esi
lea edi, [esp + 0x28]
mov dword [esp], edi
mov ecx, eax
mul edx
shr edx, 6
mov dword [esp + 8], edx
imul eax, edx, 0x3e8
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea esi, [edi + eax]
jmp 0x410083
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xffffffff
jmp 0x410118
Function at 0x4102e0
Capabilities:
Accept command line arguments
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
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 dl
movzx edx, dl
inc edx
mov dword [esp], edx
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop

Function at 0x410350
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x68
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test eax, eax
je 0x4103e1
cmp eax, 9
je 0x4103d0
cmp eax, 0x20
je 0x4103d0
xor edi, edi
xor esi, esi
jmp 0x410390
cmp eax, 0x5c
je 0x410448
cmp eax, 0x22
je 0x410430
xor esi, esi
movzx eax, word [ebx + 2]
add ebx, 2
test eax, eax
je 0x4103e1
cmp eax, 9
sete cl
cmp eax, 0x20
sete dl
or cl, dl
je 0x410390
test edi, 1
jne 0x410390
mov esi, esi
lea edi, [edi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp eax, 9
je 0x4103d0
cmp eax, 0x20
je 0x4103d0
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x410450
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
xor edx, edx
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._wWinMain_16
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
and esi, 1
jne 0x4103a2
xor edi, 1
jmp 0x4103a4
inc esi
jmp 0x4103a4
mov word [ebp - 0x2c], 1
mov esi, 1
jmp 0x4103fa