joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001c940
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x1001c9db
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x1001c992
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x1001c992
cmp esi, ebx
jge 0x1001c992
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x1001c9d5
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x1001c9d5
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x100252e4]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x100252e4]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1001c9ed
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x1001cc10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
mov eax, dword [ebp + 8]
je 0x1001cc38
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x1001cc52
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.10001d89
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10022930
leave
ret 4

Function at 0x1001ce20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x1001ce56
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x1001ceb5
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.10001d89
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.10001d89
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.10001d89
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10022930
leave
ret 0x10
Function at 0x1001ced0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1001cefc
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x1001cf2d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x1001cf2b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.10001d89
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x1001cf2d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10022930
leave
ret 8
Function at 0x4029c0
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 0x402a80
mov ebx, dword [esi + 4]
xor ecx, ecx
cmp eax, 2
je 0x402a50
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 0x402a14
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 0x402a43
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 0x402ae8
mov eax, dword [esi + 0x10]
test al, 1
jne 0x402ad1
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 0x402a14

Function at 0x4036b0
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 0x403750
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 0x403730
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 0x403770
mov edi, 1
jmp 0x403714
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 0x403714
Function at 0x403790
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 0x4037d8
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 0x4037fb
mov edx, dword [ebp + 0x14]
test edx, edx
jne 0x403820
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 0x403802
Function at 0x403840
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 0x403a68
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 0x403a21
mov edi, 1
jmp 0x40390c
add edi, 1
cmp edi, 0x64
je 0x403a48
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 0x403900
mov eax, dword [ebp - 0x260]
mov edi, 2
sub eax, 3
cmp eax, 8
ja 0x403972
mov edi, dword [eax*4 + 0x411240]
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 0x403a48
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 0x403a21
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 0x403a90
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 0x403b60
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x403b60
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 0x403b70
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 0x403bf0
mov eax, dword [ebp + 8]
mov edx, edi
mov dword [ebp - 0x1c], ebx
call sym._read_value
mov esi, eax
test eax, eax
jne 0x403b90
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 0x403c10
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 0x403c30
mov esi, 1
jmp 0x403b37
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 0x403b37
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x7e1
xor esi, esi
mov dword [esp], eax
call sym._error_code_messagebox
jmp 0x403b37
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 0x403b37
Function at 0x4098d0
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 edi, [edi]

Function at 0x4098f0
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
nop
lea esi, [esi]
Function at 0x40a060
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 0x40a0d0
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 0x40a0a8

Function at 0x40a350
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 0x40a378
cmp ax, 0x20
jne 0x40a38b
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 0x20
je 0x40a378
cmp ax, 9
je 0x40a378
test ax, ax
je 0x40a3b0
cmp ax, 0x3b
je 0x40a3b0
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 0x40a6c0
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 0x40a7c1
test eax, eax
je 0x40a810
mov ebx, dword [0x415d44]
test ebx, ebx
je 0x40a879
mov dword [esp + 4], 0x411bfe
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcspbrk]
test eax, eax
jne 0x40a84e
mov edx, dword [0x415d44]
cmp word [edx], 0
je 0x40a840
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40a720
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 0x40a7e0
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 0x40a7a0
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 0x40a6ef
mov eax, dword [0x415d4c]
test eax, eax
jne 0x40a879
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 0x40a75d
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 0x40a6ef
mov eax, 2
xor ebx, ebx
xor edi, edi
jmp 0x40a734
lea edx, [eax + 2]
cmp word [eax], 0xd
mov dword [0x415d44], edx
je 0x40a867
xor edx, edx
mov word [eax], dx
jmp 0x40a795
cmp word [eax + 2], 0xa
jne 0x40a85d
lea edx, [eax + 4]
mov dword [0x415d44], edx
jmp 0x40a85d
mov eax, dword [0x415d48]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x40a7c9
Function at 0x40a890
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], 0x411c04
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
jne 0x40a970
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 0x40a948
mov dword [esp + 8], 2
mov esi, dword [sym.imp.ucrtbase.dll_fwrite]
mov dword [esp + 4], 1
mov dword [esp], 0x411d0e
call esi
mov eax, str.Windows_Registry_Editor_Version_5.00_r_n
nop
add eax, 2
cmp word [eax], 0
jne 0x40a910
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], 0x411c08
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll__wfopen]
mov ebx, eax
test eax, eax
jne 0x40a8e2
mov dword [esp], 0x411c0e
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 0x40a8e2
Function at 0x40aea0
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 0x40af9f
test eax, eax
je 0x40aff0
mov esi, dword [0x415d50]
test esi, esi
je 0x40b060
mov dword [esp + 4], 0x411c29
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strpbrk]
test eax, eax
jne 0x40b020
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 0x40afc8
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 0x40af80
mov eax, dword [0x415d54]
mov dword [0x415d50], 0
test eax, eax
je 0x40af73
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 0x40aee1
mov eax, dword [0x415d58]
mov dword [0x415d5c], 0
test eax, eax
jne 0x40b06a
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 0x40af32
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 0x40aee1
lea ecx, [eax + 1]
cmp byte [eax], 0xd
mov dword [0x415d50], ecx
je 0x40b048
mov byte [eax], 0
mov eax, esi
call sym._GetWideString.part.0
mov dword [0x415d5c], eax
jmp 0x40af78
cmp byte [eax + 1], 0xa
jne 0x40b02e
lea ecx, [eax + 2]
mov dword [0x415d50], ecx
jmp 0x40b02e
mov dword [0x415d5c], 0
mov eax, dword [0x415d54]
mov dword [esp], eax
mov eax, dword [ebp - 0x10]
call eax
jmp 0x40afb1

Function at 0x40b3a0
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 0x40b3f0
cmp word [edx], 0
je 0x40b420
mov eax, edx
nop
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40b3c0
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 0x40b3fd
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 0x40b3cd
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 + 0x411dc0]
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