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

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [edx + 0x10]
push esi
mov esi, edx
push ebx
sub esp, 0x24
mov dword [ebp - 0x10], eax
lea eax, [edx + 8]
mov ebx, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 4]
mov dword [esp + 4], eax
mov eax, dword [edx]
mov dword [esp], eax
call ebx
sub esp, 0x18
test eax, eax
je 0x402a40
mov ebx, dword [esi + 4]
xor ecx, ecx
cmp eax, 2
je 0x402a10
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x8045
mov dword [esp], eax
mov dword [ebp - 0x14], ecx
call sym._error_code_messagebox
mov ecx, dword [ebp - 0x14]
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_free]
mov dword [esi + 0xc], 0
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test ebx, ebx
jne 0x4029d4
mov dword [esi + 8], 1
mov dword [esi + 0x10], 2
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll_malloc]
xor ecx, ecx
mov dword [esi + 0xc], eax
mov word [eax], cx
mov eax, 1
jmp 0x402a03
mov eax, dword [esi + 0x10]
add eax, 2
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [esi + 4]
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call ebx
mov ecx, dword [ebp - 0x18]
sub esp, 0x18
test eax, eax
jne 0x402aa8
mov eax, dword [esi + 0x10]
test al, 1
jne 0x402a91
and eax, 0xfffffffe
xor edx, edx
mov word [ecx + eax], dx
mov dword [esi + 0xc], ecx
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [esi + 4]
jmp 0x4029d4

Function at 0x403670
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x10]
push ebx
sub esp, 0x18
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x2001b
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x403710
mov edi, eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0x8150
mov dword [esp + 8], 0x814f
mov dword [esp + 4], 0x34
mov dword [esp], eax
call sym._messagebox
cmp eax, 6
je 0x4036f0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, edi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.shcore.dll_SHDeleteKeyW]
sub esp, 8
test eax, eax
jne 0x403730
mov edi, 1
jmp 0x4036d4
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x7df
xor edi, edi
mov dword [esp], eax
call sym._error_code_messagebox
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x805e
mov dword [esp], eax
call sym._error_code_messagebox
jmp 0x4036d4
Function at 0x403750
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
sub esp, 0x18
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], 0x2001b
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x403798
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
mov ebx, eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 8]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
sub esp, 8
test eax, eax
je 0x4037bb
mov edx, dword [ebp + 0x14]
test edx, edx
jne 0x4037e0
xor ebx, ebx
test eax, eax
sete bl
mov eax, dword [ebp - 8]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, ebx
mov ebx, dword [ebp - 4]
sub esp, 4
leave
ret
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], 0x8045
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._error_code_messagebox
jmp 0x4037c2
Function at 0x403800
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x270
mov eax, dword [ecx]
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x258], 0
mov edx, dword [ecx + 8]
mov ebx, dword [ecx + 0x10]
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x264], eax
mov eax, dword [ecx + 4]
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x260], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0x2001b
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x403a28
mov dword [esp], 0
lea esi, [ebp - 0x210]
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], esi
mov dword [esp + 4], 0x805d
mov dword [esp], eax
call dword [0x4166c0]
sub esp, 0x10
mov edi, eax
test eax, eax
je 0x4039e1
mov edi, 1
jmp 0x4038cc
add edi, 1
cmp edi, 0x64
je 0x403a08
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [0x416748]
mov eax, dword [ebp - 0x25c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
cmp eax, 2
jne 0x4038c0
mov eax, dword [ebp - 0x260]
mov edi, 2
sub eax, 3
cmp eax, 8
ja 0x403932
mov edi, dword [eax*4 + 0x412240]
mov eax, dword [ebp - 0x260]
lea esi, [ebp - 0x258]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x25c]
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
test eax, eax
jne 0x403a08
mov eax, dword [ebp - 0x260]
mov dword [esp + 0x10], edi
mov edi, 1
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 8], eax
mov eax, dword [0x415e20]
mov dword [esp + 0xc], esi
mov dword [esp + 4], ebx
mov eax, dword [eax + 8]
mov dword [esp], eax
call sym._AddEntryToList
lea edx, [ebp - 0x24c]
mov dword [ebp - 0x240], 3
mov dword [esp + 8], eax
mov eax, dword [0x415e20]
mov dword [ebp - 0x23c], 3
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0x102b
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [0x4166fc]
sub esp, 0x10
mov eax, dword [ebp - 0x25c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, edi
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [ebp - 0x264]
mov dword [esp + 4], 0x7dc
xor edi, edi
mov dword [esp], eax
call sym._error_code_messagebox
jmp 0x4039e1
mov eax, dword [ebp - 0x264]
mov dword [esp + 4], 0x7dc
xor edi, edi
mov dword [esp], eax
call sym._error_code_messagebox
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
Function at 0x403a50
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x403b20
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x403b20
mov eax, dword [ebp + 0x10]
lea edi, [ebp - 0x20]
mov dword [esp + 0xc], 0x2001b
mov dword [esp + 0x10], edi
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x403b30
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
mov esi, eax
test eax, eax
je 0x403bb0
mov eax, dword [ebp + 8]
mov edx, edi
mov dword [ebp - 0x1c], ebx
call sym._read_value
mov esi, eax
test eax, eax
jne 0x403b50
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor esi, esi
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x7e1
xor esi, esi
mov dword [esp], eax
call sym._error_code_messagebox
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov esi, eax
test eax, eax
jne 0x403bd0
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], ebx
mov ebx, dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
jne 0x403bf0
mov esi, 1
jmp 0x403af7
mov eax, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x7de
mov dword [esp], eax
call sym._error_code_messagebox
jmp 0x403af7
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x7e1
xor esi, esi
mov dword [esp], eax
call sym._error_code_messagebox
jmp 0x403af7
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call ebx
mov eax, dword [ebp + 8]
sub esp, 8
mov dword [esp + 4], 0x7e1
mov dword [esp], eax
call sym._error_code_messagebox
jmp 0x403af7
Function at 0x4098a0
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [esp], 0
call dword [sym.imp.ucrtbase.dll_exit]
lea esi, [esi]
lea esi, [esi]

Function at 0x4098c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 1
mov ebp, esp
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
call sym._output_formatstring
call sym._error_exit
lea esi, [esi]
nop
Function at 0x40a030
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x18
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov eax, dword [ebx + 0x1c]
sub esp, 0x18
sub eax, 3
cmp eax, 1
jbe 0x40a0a0
xor eax, eax
cmp word [ebx + 0xc], 0
mov dword [ebx + 0x24], 0
setne al
mov dword [ebx + 0x28], 0
add eax, 1
mov dword [ebx + 0x30], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
leave
ret
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x40a078

Function at 0x40a320
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 8
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea ebx, [eax + 2]
movzx eax, word [eax + 2]
cmp ax, 9
je 0x40a348
cmp ax, 0x20
jne 0x40a35b
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 0x20
je 0x40a348
cmp ax, 9
je 0x40a348
test ax, ax
je 0x40a380
cmp ax, 0x3b
je 0x40a380
mov dword [esi + 0x30], 2
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov eax, dword [esi + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x10]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov dword [esi + 0x30], 2
mov eax, ebx
sub esp, 8
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x40a690
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14
mov edi, dword [ebp + 8]
mov eax, dword [0x415d4c]
test edi, edi
je 0x40a791
test eax, eax
je 0x40a7e0
mov ebx, dword [0x415d44]
test ebx, ebx
je 0x40a849
mov dword [esp + 4], 0x412bde
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcspbrk]
test eax, eax
jne 0x40a81e
mov edx, dword [0x415d44]
cmp word [edx], 0
je 0x40a810
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40a6f0
sub eax, edx
mov edi, eax
mov ebx, eax
lea eax, [eax + 2]
sar edi, 1
mov esi, dword [0x415d48]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_memmove]
mov eax, dword [0x415d4c]
mov edx, eax
sub edx, edi
cmp edx, 2
jbe 0x40a7b0
mov edx, edi
mov ecx, dword [ebp + 8]
add ebx, esi
mov dword [esp + 4], 2
not edx
mov dword [esp], ebx
add eax, edx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
call dword [sym.imp.ucrtbase.dll_fread]
test eax, eax
jne 0x40a770
mov dword [0x415d44], 0
mov ebx, dword [0x415d48]
add esp, 0x14
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [0x415d48]
add eax, edi
xor ecx, ecx
mov word [ebx + eax*2], cx
mov dword [0x415d44], ebx
test ebx, ebx
jne 0x40a6bf
mov eax, dword [0x415d4c]
test eax, eax
jne 0x40a849
mov dword [0x415d4c], 0
xor ebx, ebx
add esp, 0x14
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [eax + eax]
shl eax, 2
mov dword [esp], esi
mov dword [0x415d4c], edx
mov dword [ebp - 0x10], edx
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov edx, dword [ebp - 0x10]
mov dword [0x415d48], eax
mov esi, eax
mov eax, edx
jmp 0x40a72d
mov dword [0x415d4c], 0x1000
xor esi, esi
mov dword [esp], 0x2000
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [0x415d48], eax
mov ebx, eax
mov word [eax], si
mov dword [0x415d44], eax
jmp 0x40a6bf
mov eax, 2
xor ebx, ebx
xor edi, edi
jmp 0x40a704
lea edx, [eax + 2]
cmp word [eax], 0xd
mov dword [0x415d44], edx
je 0x40a837
xor edx, edx
mov word [eax], dx
jmp 0x40a765
cmp word [eax + 2], 0xa
jne 0x40a82d
lea edx, [eax + 4]
mov dword [0x415d44], edx
jmp 0x40a82d
mov eax, dword [0x415d48]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x40a799
Function at 0x40a860
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, eax
push ebx
sub esp, 0x10
mov dword [esp + 4], 0x412be4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
jne 0x40a950
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], eax
mov ebx, eax
call dword [sym.imp.ucrtbase.dll__fileno]
mov dword [esp + 4], 0x8000
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__setmode]
mov dword [esp + 0xc], ebx
test edi, edi
je 0x40a920
mov dword [esp + 8], 2
mov esi, dword [sym.imp.ucrtbase.dll_fwrite]
mov dword [esp + 4], 1
mov dword [esp], 0x412cee
call esi
mov edx, 0x69
mov eax, str.Windows_Registry_Editor_Version_5.00_r_n
jmp 0x40a8ec
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x40a8e8
sub eax, str.Windows_Registry_Editor_Version_5.00_r_n
mov dword [esp + 0xc], ebx
sar eax, 1
mov dword [esp + 4], 2
mov dword [esp + 8], eax
mov dword [esp], str.Windows_Registry_Editor_Version_5.00_r_n
call esi
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0xa
mov dword [esp + 4], 1
mov dword [esp], str.REGEDIT4_r_n
call sym._fwrite
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x412be8
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll__wfopen]
mov ebx, eax
test eax, eax
jne 0x40a8b2
mov dword [esp], 0x412bee
call dword [sym.imp.ucrtbase.dll__wperror]
mov dword [esp + 4], esi
mov dword [esp], 0xbbf
call sym._output_message
call sym._error_exit
jmp 0x40a8b2
Function at 0x40ae80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14
mov eax, dword [0x415d5c]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x10], eax
call eax
mov edx, dword [ebp + 8]
mov eax, dword [0x415d58]
test edx, edx
je 0x40af7f
test eax, eax
je 0x40afd0
mov esi, dword [0x415d50]
test esi, esi
je 0x40b040
mov dword [esp + 4], 0x412c09
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strpbrk]
test eax, eax
jne 0x40b000
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov edi, dword [0x415d54]
mov dword [esp + 4], esi
mov ebx, eax
lea eax, [eax + 1]
mov dword [esp + 8], eax
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_memmove]
mov esi, dword [0x415d58]
mov eax, esi
sub eax, ebx
cmp eax, 2
jbe 0x40afa8
mov eax, dword [ebp + 8]
add edi, ebx
mov dword [esp + 4], 1
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov eax, ebx
not eax
lea edx, [eax + esi]
mov dword [esp + 8], edx
call dword [sym.imp.ucrtbase.dll_fread]
test eax, eax
jne 0x40af60
mov eax, dword [0x415d54]
mov dword [0x415d50], 0
test eax, eax
je 0x40af53
call sym._GetWideString.part.0
mov dword [0x415d5c], eax
add esp, 0x14
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [0x415d54]
add ebx, esi
mov dword [0x415d50], esi
mov byte [ebx + eax], 0
test esi, esi
jne 0x40aec1
mov eax, dword [0x415d58]
mov dword [0x415d5c], 0
test eax, eax
jne 0x40b04a
mov dword [0x415d58], 0
add esp, 0x14
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
add esi, esi
mov dword [esp], edi
mov dword [0x415d58], esi
mov dword [esp + 4], esi
call dword [sym.imp.ucrtbase.dll_realloc]
mov dword [0x415d54], eax
mov edi, eax
jmp 0x40af12
mov dword [0x415d58], 0x1000
mov dword [esp], 0x1000
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [0x415d54], eax
mov esi, eax
mov byte [eax], 0
mov dword [0x415d50], eax
jmp 0x40aec1
lea ecx, [eax + 1]
cmp byte [eax], 0xd
mov dword [0x415d50], ecx
je 0x40b028
mov byte [eax], 0
mov eax, esi
call sym._GetWideString.part.0
mov dword [0x415d5c], eax
jmp 0x40af58
cmp byte [eax + 1], 0xa
jne 0x40b00e
lea ecx, [eax + 2]
mov dword [0x415d50], ecx
jmp 0x40b00e
mov dword [0x415d5c], 0
mov eax, dword [0x415d54]
mov dword [esp], eax
mov eax, dword [ebp - 0x10]
call eax
jmp 0x40af91

Function at 0x40b390
Capabilities:
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 0x40b3e0
cmp word [edx], 0
je 0x40b410
mov eax, edx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x40b3b0
sub eax, esi
sar eax, 1
mov dword [esp + 0xc], ebx
mov dword [esp], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 2
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
test edx, edx
je 0x40b3ed
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]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
xor eax, eax
jmp 0x40b3bd
Function at 0x40be00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40be35
lea eax, [ebp - 0x42]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_fread]
cmp eax, 1
je 0x40be48
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, byte [ebp - 0x42]
movzx edx, byte [ebp - 0x41]
mov dword [ebp - 0x48], sym._get_lineA
xor esi, esi
cmp al, 0xff
jne 0x40be73
xor ecx, ecx
mov edi, sym._get_lineW
cmp dl, 0xfe
cmovne edi, dword [ebp - 0x48]
sete cl
mov dword [ebp - 0x48], edi
mov esi, ecx
mov ecx, dword [ebp - 0x48]
mov word [ebp - 0x3a], dx
mov edx, 0xffffffff
mov dword [ebp - 0x40], ebx
lea ebx, [ebp - 0x40]
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x3c]
mov word [ebp - 0x34], dx
mov edx, sym._header_state
mov dword [ebp - 0x38], esi
mov dword [0x415d60], ecx
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
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
jmp 0x40beea
mov edx, dword [ebp - 0x10]
mov edx, dword [edx*4 + 0x412da0]
mov dword [esp + 4], eax
mov dword [esp], ebx
call edx
test eax, eax
jne 0x40bee0
movzx eax, word [ebp - 0x34]
lea edx, [eax - 3]
cmp dx, 1
jbe 0x40bf50
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov ebx, 1
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40be37
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor ebx, ebx
cmp ax, 3
sete bl
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40e430
Capabilities:
Query or enumerate registry key

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

Function at 0x40e890
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.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x40e8e8
cmp byte [esi + ebx - 1], 0xa
je 0x40e8bc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x415e04], 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]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret