joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433890
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x928
cmp dword [0x16a7be8], 0x37
jne 0x433962
push 0
push 0x417ab8
push 0
push 0x417af8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAdjustment]
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x417b08
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push 0x417b18
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea ecx, [ebp - 0x528]
push ecx
push 0x417b44
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0
push 0
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x928]
push eax
mov ecx, dword [ebp - 0x124]
push ecx
push 0x417b54
call dword [sym.imp.KERNEL32.dll_FindFirstFileExA]
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
push 0
push 0x417b68
push 0
push 0x417b88
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringA]
mov edx, dword [0x169f634]
add edx, dword [ebp + 8]
mov eax, dword [0x16a7bec]
add eax, dword [ebp + 8]
mov cl, byte [eax + 0x12336]
mov byte [edx], cl
mov esp, ebp
pop ebp
ret 4
Function at 0x433dc0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x18d0
call fcn.004223c0
mov dword [ebp - 4], 0
jmp 0x433ddf
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x32d05d76
jge 0x433e65
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x16a7be8], 0x9e
jne 0x433e55
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
push 0x417bb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push 0
push 0x417c68
push 0
call dword [sym.imp.KERNEL32.dll__hwrite]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
cmp dword [ebp - 4], 0x9be51dc
jle 0x433e60
jmp 0x433e65
jmp 0x433dd6
push 0x438178
mov edx, dword [0x16a7be8]
push edx
mov eax, dword [0x169f634]
push eax
call fcn.00433d50
mov dword [ebp - 0xa4], 0
jmp 0x433e97
mov ecx, dword [ebp - 0xa4]
add ecx, 1
mov dword [ebp - 0xa4], ecx
cmp dword [ebp - 0xa4], 0x3e79e
jge 0x433eb6
cmp dword [ebp - 0xa4], 0x1e673
jne 0x433eb4
call fcn.00433870
jmp 0x433e88
mov dword [ebp - 0xa8], 0
jmp 0x433ed1
mov edx, dword [ebp - 0xa8]
add edx, 1
mov dword [ebp - 0xa8], edx
cmp dword [ebp - 0xa8], 0xdd9a7
jge 0x433efd
cmp dword [0x16a7be8], 0xc01
jne 0x433efb
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
call dword [sym.imp.KERNEL32.dll_CreateTimerQueue]
jmp 0x433ec2
jmp dword [0x169f634]
Function at 0x4076ff
Capabilities:
Write file on windows

Disassembly:
push 0xac
mov eax, 0x4172bb
call fcn.00416f21
mov dword [ebp - 0xac], edx
mov ebx, ecx
mov eax, dword [ebx]
push ebx
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x41b1b4]
call esi
mov ecx, dword [ebx]
mov edi, eax
push ebx
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x41b1b4]
call esi
mov edx, edi
mov ecx, eax
call fcn.0041141f
mov esi, eax
test esi, esi
je 0x4078ad
push dword [ebp - 0xac]
lea ecx, [ebp - 0xb4]
push dword [esi + 0x1c]
push esi
push 0
push esi
call fcn.0040bead
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xb4]
cmp eax, dword [esi + 0x1c]
jne 0x4077b0
cmp ecx, esi
jne 0x4077b0
push 0x402ed8
lea ecx, [ebp - 0x58]
call fcn.0040bb08
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 1
push eax
push 0x80004005
lea ecx, [ebp - 0xa8]
call fcn.00407103
push 0x419584
lea eax, [ebp - 0xa8]
jmp 0x4078d7
mov eax, dword [ecx + eax*4 + 0x20]
lea ebx, [ecx + 8]
push dword [ebp + 0xc]
add ebx, eax
push dword [ebp + 8]
mov eax, dword [eax + ecx + 4]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xac], eax
call fcn.0040e9bf
push 2
pop ecx
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x18], 0
je 0x4077eb
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x4077ed
mov eax, dword [ebp - 0x28]
jmp 0x4077ed
xor eax, eax
push 0
push 0x80
push ecx
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0xb0], esi
mov byte [ebp - 4], 3
cmp esi, 0xffffffff
jne 0x407847
cmp dword [ebp - 0x18], 0
je 0x40782a
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
jb 0x40782c
mov edi, dword [ebp - 0x28]
jmp 0x40782c
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40783e
movzx eax, ax
or eax, 0x80070000
mov edx, edi
mov ecx, eax
call fcn.00410bae
push 0
lea eax, [ebp - 0xb8]
push eax
push dword [ebp - 0xac]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x407892
cmp dword [ebp - 0x18], eax
je 0x407875
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
jb 0x407877
mov edi, dword [ebp - 0x28]
jmp 0x407877
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x407889
movzx eax, ax
or eax, 0x80070000
mov edx, edi
mov ecx, eax
call fcn.00410bae
test esi, esi
je 0x40789d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
call fcn.0040bcd0
call fcn.00416ecb
ret 8
push 0x402ed8
lea ecx, [ebp - 0x40]
call fcn.0040bb08
and dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
push 0x80004005
lea ecx, [ebp - 0x80]
call fcn.00407103
push 0x419584
lea eax, [ebp - 0x80]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
Function at 0x40aa5f
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov eax, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
push ecx
push eax
mov edi, edx
mov dword [ebp - 4], ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 8], eax
test eax, eax
jne 0x40aa8b
xor al, al
jmp 0x40aaf3
push esi
push eax
call fcn.00416ade
pop ecx
mov esi, eax
push esi
push dword [ebp - 8]
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x40aae5
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x4031b4
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x40aae5
cmp dword [ebp - 0xc], 0x34
jb 0x40aae5
mov ecx, dword [ebp - 8]
mov bl, 1
movzx eax, word [ecx + 0xa]
mov dword [edi], eax
movzx eax, word [ecx + 8]
mov dword [edi + 4], eax
movzx eax, word [ecx + 0xe]
mov dword [edi + 8], eax
movzx eax, word [ecx + 0xc]
mov dword [edi + 0xc], eax
test esi, esi
je 0x40aaf0
push esi
call fcn.00416a97
pop ecx
mov al, bl
pop esi
pop edi
pop ebx
leave
ret

Function at 0x40bdc6
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
cmp dword [edx + 0x14], 8
mov ebx, ecx
mov edi, dword [edx + 0x10]
jb 0x40bdde
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add edi, edi
je 0x40bdfa
movzx eax, byte [ecx + edx]
xor eax, esi
imul esi, eax, 0x1000193
inc ecx
cmp ecx, edi
jb 0x40bde9
mov eax, dword [ebx + 0x18]
pop edi
and eax, esi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x40d4e3
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x6c
mov eax, 0x417add
call fcn.00416f21
mov ebx, ecx
mov eax, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0xc]
push edx
mov dword [ebp - 0x70], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov esi, 0x80070000
cmp edi, 0xffffffff
jne 0x40d539
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40d533
movzx eax, ax
or eax, esi
test eax, eax
js 0x40d62c
mov dword [ebp - 0x74], edi
and dword [ebp - 4], 0
lea eax, [ebp - 0x68]
push eax
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSizeEx]
test eax, eax
jne 0x40d566
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40d560
movzx eax, ax
or eax, esi
test eax, eax
js 0x40d62c
cmp dword [ebp - 0x64], 0
je 0x40d59b
push 0x40361c
lea ecx, [ebp - 0x28]
call fcn.0040bb08
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
push 0x80aa0003
lea ecx, [ebp - 0x60]
call fcn.00407103
push 0x419584
lea eax, [ebp - 0x60]
jmp 0x40d63c
mov eax, dword [ebx]
push dword [ebp - 0x68]
push ebx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x41b1b4]
call esi
mov esi, eax
test esi, esi
jne 0x40d5c6
lea ecx, [ebp - 0x1c]
call fcn.004070bf
push 0x4195cc
lea eax, [ebp - 0x1c]
jmp 0x40d63c
push 0
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x68]
push esi
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x40d60c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x40d5f0
movzx edi, di
or edi, 0x80070000
mov eax, dword [ebx]
push esi
push ebx
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x41b1b4]
call esi
push edi
lea ecx, [ebp - 0x60]
call fcn.004070d7
jmp 0x40d58e
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x70]
mov dword [eax], esi
mov eax, dword [ebp - 0x68]
mov dword [ecx], eax
test edi, edi
je 0x40d624
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00416ecb
ret 8
push eax
lea ecx, [ebp - 0x38]
call fcn.004070d7
push 0x419584
mov eax, ecx
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3

Function at 0x4109fc
Capabilities:
Allocate thread local storage

Disassembly:
push 0x41adc0
push 1
call dword [sym.imp.OLE32.dll_CoGetMalloc]
test eax, eax
js 0x410a7a
mov eax, dword [0x41adc0]
push esi
push 0x10
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x41b1b4]
call esi
mov esi, eax
mov dword [0x41adbc], esi
test esi, esi
jne 0x410a54
mov eax, dword [0x41adc0]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x41b1b4]
call esi
and dword [0x41adc0], 0
mov eax, 0x8007000e
pop esi
ret
mov dword [esi], 0x40118c
and dword [esi + 8], 0
and dword [esi + 0xc], 0
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsAlloc]
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi], 0x40118c
mov dword [0x41adbc], esi
pop esi
ret
Function at 0x410e4d
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x410eae
push esi
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x41b1b4]
call esi
push eax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x41b1b4]
call esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
test eax, eax
jne 0x410eae
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x410ea4
movzx eax, ax
or eax, 0x80070000
mov edx, dword [ebp + 8]
mov ecx, eax
call fcn.00410bae
pop edi
pop ebx
leave
ret 4

Function at 0x415fa1
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x415fde
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x415fd7
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x415fe3
add edx, 0x28
cmp edx, esi
jne 0x415fc8
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x415fe0
Function at 0x403d10
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea ebx, [eax + 2]
movzx eax, word [eax + 2]
cmp ax, 9
je 0x403d38
cmp ax, 0x20
jne 0x403d4b
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 0x20
je 0x403d38
cmp ax, 9
je 0x403d38
test ax, ax
je 0x403d70
cmp ax, 0x3b
je 0x403d70
mov dword [esi + 0x34], 2
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov dword [esi + 0x34], 2
mov eax, ebx
sub esp, 8
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x403f70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 8]
test eax, eax
je 0x4040fe
mov edi, dword [global_size.0]
test edi, edi
je 0x4040c0
mov ebx, dword [global_next.0]
test ebx, ebx
je 0x4040fe
mov dword [esp + 4], 0x4092b2
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcspbrk]
test eax, eax
jne 0x404109
mov edx, dword [global_next.0]
cmp word [edx], 0
je 0x4040f0
mov eax, edx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x403fd0
sub eax, edx
mov edi, eax
mov ebx, eax
lea eax, [eax + 2]
sar edi, 1
mov esi, dword [global_buf.0]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_memmove]
mov eax, dword [global_size.0]
mov edx, eax
sub edx, edi
cmp edx, 2
jbe 0x404090
mov ecx, dword [ebp + 8]
mov edx, edi
mov dword [esp + 4], 2
not edx
add eax, edx
mov dword [esp + 0xc], ecx
lea ecx, [esi + ebx]
mov dword [esp + 8], eax
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_fread]
test eax, eax
jne 0x404050
mov dword [global_next.0], 0
mov ebx, dword [global_buf.0]
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [global_buf.0]
add eax, edi
xor ecx, ecx
mov word [ebx + eax*2], cx
mov dword [global_next.0], ebx
test ebx, ebx
jne 0x403fa0
mov dword [esp], ebx
xor ebx, ebx
call dword [sym.imp.ucrtbase.dll_free]
mov eax, ebx
mov dword [global_size.0], 0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [eax + eax]
shl eax, 2
mov dword [esp], esi
mov dword [global_size.0], edx
mov dword [ebp - 0x1c], edx
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov edx, dword [ebp - 0x1c]
mov dword [global_buf.0], eax
mov esi, eax
mov eax, edx
jmp 0x40400d
mov dword [global_size.0], 0x1000
xor esi, esi
mov dword [esp], 0x2000
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [global_buf.0], eax
mov ebx, eax
mov word [eax], si
mov dword [global_next.0], eax
jmp 0x403fa0
mov eax, 2
xor ebx, ebx
xor edi, edi
jmp 0x403fe4
mov ebx, dword [global_buf.0]
jmp 0x40406c
lea edx, [eax + 2]
cmp word [eax], 0xd
mov dword [global_next.0], edx
je 0x404122
xor edx, edx
mov word [eax], dx
jmp 0x404046
cmp word [eax + 2], 0xa
jne 0x404118
lea edx, [eax + 4]
mov dword [global_next.0], edx
jmp 0x404118
Function at 0x4043b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [global_lineW]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x1c], eax
call eax
mov edx, dword [ebp + 8]
test edx, edx
je 0x404528
mov eax, dword [global_size]
test eax, eax
je 0x4044f8
mov esi, dword [global_next]
test esi, esi
je 0x404528
mov dword [esp + 4], 0x4092b8
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strpbrk]
test eax, eax
jne 0x404538
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov edi, dword [global_buf]
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 [global_size]
mov eax, esi
sub eax, ebx
cmp eax, 2
jbe 0x4044d0
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 0x404490
mov eax, dword [global_buf]
mov dword [global_next], 0
test eax, eax
je 0x404483
call sym._GetWideString.part.0
mov dword [global_lineW], eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [global_buf]
add ebx, esi
mov dword [global_next], esi
mov byte [ebx + eax], 0
test esi, esi
jne 0x4043f1
mov dword [esp], esi
mov eax, dword [ebp - 0x1c]
mov dword [global_lineW], 0
call eax
xor eax, eax
mov dword [global_size], 0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
add esi, esi
mov dword [esp], edi
mov dword [global_size], esi
mov dword [esp + 4], esi
call dword [sym.imp.ucrtbase.dll_realloc]
mov dword [global_buf], eax
mov edi, eax
jmp 0x404442
mov dword [global_size], 0x1000
mov dword [esp], 0x1000
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [global_buf], eax
mov esi, eax
mov byte [eax], 0
mov dword [global_next], eax
jmp 0x4043f1
mov esi, dword [global_buf]
jmp 0x4044aa
lea ecx, [eax + 1]
cmp byte [eax], 0xd
mov dword [global_next], ecx
je 0x404560
mov byte [eax], 0
mov eax, esi
call sym._GetWideString.part.0
mov dword [global_lineW], eax
jmp 0x404488
cmp byte [eax + 1], 0xa
jne 0x404546
lea ecx, [eax + 2]
mov dword [global_next], ecx
jmp 0x404546
Function at 0x4046a0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4046df
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x18], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebx + 0x14], 0
sub esp, 4
movzx eax, word [esi]
and eax, 0xffffffdf
cmp ax, 0x48
je 0x404700
mov dword [ebx + 0x34], 2
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x5c
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcschr]
mov dword [esp], esi
mov edi, eax
test eax, eax
je 0x404740
call dbg.path_get_rootkey
test eax, eax
je 0x4046eb
cmp word [edi + 2], 0
je 0x4046eb
add edi, 2
mov dword [esp], eax
mov dword [esp + 4], edi
call dword [sym.imp.advapi32.dll_RegDeleteTreeW]
sub esp, 8
jmp 0x4046eb
call dbg.path_get_rootkey
jmp 0x4046eb

Function at 0x404a80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov eax, dword [ebx + 0x20]
sub esp, 0x18
sub eax, 3
cmp eax, 1
jbe 0x404af0
cmp word [ebx + 0xc], 1
mov eax, 1
mov dword [ebx + 0x28], 0
sbb eax, 0xffffffff
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x34], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
leave
ret
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x404ac8
Function at 0x404fa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
cmp dword [ebp + 8], 4
mov ebx, dword [ebp + 0xc]
jg 0x404fca
mov dword [parser.is_unicode], 0
jne 0x405028
mov edx, dword [ebx + 0xc]
movzx eax, word [edx]
and eax, 0xfffffffd
cmp ax, 0x2d
je 0x405000
mov dword [esp], 0x69
call dbg.output_message
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsupr]
mov dword [esp], 0x6a
mov dword [esp + 4], eax
call dbg.output_message
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esi, [edx + 2]
mov dword [esp + 4], str.reg:32
mov edi, dword [sym.imp.kernel32.dll_lstrcmpiW]
mov dword [esp], esi
call edi
sub esp, 8
test eax, eax
jne 0x4051b0
mov dword [parser.is_unicode], 0x200
mov esi, dword [ebx + 8]
mov dword [esp + 4], 0x409320
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll__wfopen]
mov ebx, eax
test eax, eax
je 0x405190
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x52]
mov dword [esp + 8], 1
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_fread]
cmp eax, 1
jne 0x405178
movzx ecx, byte [ebp - 0x51]
movzx eax, byte [ebp - 0x52]
xor esi, esi
mov byte [ebp - 0x59], cl
mov ecx, dbg.get_lineA
cmp al, 0xff
jne 0x405098
xor edx, edx
mov edi, dbg.get_lineW
cmp byte [ebp - 0x59], 0xfe
sete dl
cmove ecx, edi
mov esi, edx
movzx edx, byte [ebp - 0x59]
mov dword [parser.file], esi
lea esi, [ebp - 0x50]
mov word [ebp - 0x4c], ax
lea eax, [ebp - 0x4c]
mov word [ebp - 0x4a], dx
mov edx, 0xffffffff
mov word [parser.two_wchars], dx
mov edx, dbg.header_state
mov dword [0x40c07c], ecx
mov dword [ebp - 0x50], ebx
mov dword [parser.reg_version], 0
mov dword [parser.sam], 0
mov dword [parser.hkey], 0
mov dword [parser.key_name], 0
mov dword [parser.value_name], 0
mov dword [parser.parse_type], 0
mov dword [parser.data_type], 0
mov dword [parser.data], 0
mov dword [parser.data_size], 0
jmp 0x405112
mov edx, dword [parser.data_size]
mov edx, dword [edx*4 + 0x4093e0]
mov dword [esp + 4], eax
mov dword [esp], esi
call edx
test eax, eax
jne 0x405108
cmp word [parser.two_wchars], 4
je 0x405178
mov eax, dword [parser.hkey]
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call esi
mov eax, dword [parser.reg_version]
test eax, eax
je 0x405160
mov eax, dword [parser.sam]
mov dword [esp], eax
call esi
mov eax, dword [parser.reg_version]
mov dword [parser.sam], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [parser.reg_version], 0
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fclose]
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fclose]
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], esi
mov dword [esp], 0x192
call dbg.output_message
mov eax, 1
jmp 0x404ff7
mov dword [esp + 4], 0x409312
mov dword [esp], esi
call edi
sub esp, 8
test eax, eax
jne 0x404fca
mov dword [parser.is_unicode], 0x100
jmp 0x405028