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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x264]
push ebx
sub esp, 0x27c
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x260], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x25c], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], 0x2001b
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x403b40
mov dword [esp], 0
lea esi, [ebp - 0x218]
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 [0x4176d8]
sub esp, 0x10
mov edi, eax
test eax, eax
je 0x403afe
mov edi, 1
jmp 0x4039f2
inc edi
cmp edi, 0x64
je 0x403b20
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [0x417760]
mov eax, dword [ebp - 0x264]
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 0x4039e8
mov eax, dword [ebp + 0x14]
mov edi, 2
sub eax, 3
cmp eax, 8
ja 0x403a55
mov edi, dword [eax*4 + 0x411240]
mov eax, dword [ebp + 0x14]
lea esi, [ebp - 0x260]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x264]
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 0x403b20
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], edi
mov edi, 1
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 8], eax
mov eax, dword [section..bss]
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 - 0x254]
mov dword [ebp - 0x248], 3
mov dword [esp + 8], eax
mov eax, dword [section..bss]
mov dword [ebp - 0x244], 3
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0x102b
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [0x417714]
sub esp, 0x10
mov eax, dword [ebp - 0x264]
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 eax, dword [ebp + 8]
mov dword [esp + 4], 0x7dc
xor edi, edi
mov dword [esp], eax
call sym._error_code_messagebox
jmp 0x403afe
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x7dc
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
Function at 0x403b60
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, 0x4c
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x403c30
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x403c30
mov eax, dword [ebp + 0x10]
lea edi, [ebp - 0x2c]
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 0x403c40
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
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 0x403cc0
mov eax, dword [ebp + 8]
mov edx, edi
mov dword [ebp - 0x28], ebx
call sym._read_value
mov esi, eax
test eax, eax
jne 0x403c60
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x2c]
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 - 0x1c]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov esi, eax
test eax, eax
jne 0x403ce0
mov eax, dword [ebp - 0x2c]
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 0x403d00
mov esi, 1
jmp 0x403c07
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 0x403c07
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x7e1
xor esi, esi
mov dword [esp], eax
call sym._error_code_messagebox
jmp 0x403c07
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
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 0x403c07
Function at 0x409770
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
lea eax, [ebp - 0x2c]
push ebx
sub esp, 0x5c
mov dword [ebp - 0x2c], edx
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 0x500
call dword [sym.imp.kernel32.dll_FormatMessageW]
sub esp, 0x1c
mov ebx, eax
test eax, eax
jne 0x409820
mov edi, dword fs:[0x18]
cmp dword [edi + 0x34], 0xeb
je 0x409820
test byte [0x410188], 1
je 0x40986b
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x34]
mov dword [esp + 0xc], str.Could_not_format_string:_le_lu__fmt_s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x411b28
mov dword [esp + 4], 0x410188
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebp - 0x20]
mov dword [esp], 0xfffffff5
mov edi, dword [sym.imp.kernel32.dll_GetStdHandle]
call edi
lea ecx, [ebp - 0x1c]
sub esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteConsoleW]
sub esp, 0x14
test eax, eax
je 0x409878
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LocalFree]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [sym.imp.kernel32.dll_GetOEMCP]
mov dword [ebp - 0x3c], edx
call edx
mov dword [esp + 0x1c], 0
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [ebp - 0x38], eax
call eax
sub esp, 0x20
mov dword [ebp - 0x30], eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x3c]
test eax, eax
mov dword [ebp - 0x34], eax
je 0x40985c
call edx
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
lea ebx, [ebp - 0x1c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 4], 0
call eax
sub esp, 0x20
mov dword [esp], 0xfffffff5
call edi
mov edi, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
sub esp, 4
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov dword [esp + 0x10], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x40985c
Function at 0x409a30
Capabilities:
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0xc18]
push ebx
mov ebx, ecx
push ecx
sub esp, 0xc28
mov edi, dword [ecx]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], 0x600
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [0x4176d8]
sub esp, 0x10
test eax, eax
jne 0x409aa0
test byte [0x410188], 1
jne 0x409ac0
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
lea edx, [ebx + 4]
mov eax, esi
call sym._output_formatstring
mov dword [esp], 0
call dword [sym.imp.ucrtbase.dll_exit]
lea esi, [esi]
nop
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.LoadString_failed_with__lu_n
mov dword [esp + 8], str.error_exit
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x410188
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_3
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
Function at 0x40a530
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 0x40a558
cmp ax, 0x20
jne 0x40a56b
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 0x20
je 0x40a558
cmp ax, 9
je 0x40a558
test ax, ax
je 0x40a590
cmp ax, 0x3b
je 0x40a590
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 0x40a840
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [ebp + 8]
mov eax, dword [0x416dc8]
test edi, edi
je 0x40a93c
test eax, eax
je 0x40a990
mov ebx, dword [0x416dc0]
test ebx, ebx
je 0x40a9f9
mov dword [esp + 4], 0x411bc2
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcspbrk]
test eax, eax
jne 0x40a9ce
mov edx, dword [0x416dc0]
cmp word [edx], 0
je 0x40a9c0
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40a8a0
sub eax, edx
mov edi, eax
mov ebx, eax
lea eax, [eax + 2]
sar edi, 1
mov esi, dword [0x416dc4]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_memmove]
mov eax, dword [0x416dc8]
mov edx, eax
sub edx, edi
cmp edx, 2
jbe 0x40a960
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 0x40a920
mov dword [0x416dc0], 0
mov ebx, dword [0x416dc4]
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [0x416dc4]
add eax, edi
xor ecx, ecx
mov word [ebx + eax*2], cx
mov dword [0x416dc0], ebx
test ebx, ebx
jne 0x40a86f
mov eax, dword [0x416dc8]
test eax, eax
jne 0x40a9f9
mov dword [0x416dc8], 0
xor ebx, ebx
add esp, 0x2c
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 [0x416dc8], 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 [0x416dc4], eax
mov esi, eax
mov eax, edx
jmp 0x40a8dd
mov dword [0x416dc8], 0x1000
xor esi, esi
mov dword [esp], 0x2000
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [0x416dc4], eax
mov ebx, eax
mov word [eax], si
mov dword [0x416dc0], eax
jmp 0x40a86f
mov eax, 2
xor ebx, ebx
xor edi, edi
jmp 0x40a8b4
lea edx, [eax + 2]
cmp word [eax], 0xd
mov dword [0x416dc0], edx
je 0x40a9e7
xor edx, edx
mov word [eax], dx
jmp 0x40a916
cmp word [eax + 2], 0xa
jne 0x40a9dd
lea edx, [eax + 4]
mov dword [0x416dc0], edx
jmp 0x40a9dd
mov eax, dword [0x416dc4]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x40a949
Function at 0x40aa10
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, 0x1c
mov dword [esp + 4], 0x411bc8
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
jne 0x40ab00
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 0x40aad0
mov dword [esp + 8], 2
mov esi, dword [sym.imp.ucrtbase.dll_fwrite]
mov dword [esp + 4], 1
mov dword [esp], 0x411cce
call esi
mov edx, 0x69
mov eax, str.Windows_Registry_Editor_Version_5.00_r_n
jmp 0x40aa9c
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x40aa98
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], 0x411bcc
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll__wfopen]
mov ebx, eax
test eax, eax
jne 0x40aa62
mov dword [esp], 0x411bd2
call dword [sym.imp.ucrtbase.dll__wperror]
mov dword [esp + 4], esi
mov dword [esp], 0xbbf
call sym._error_exit
jmp 0x40aa62
Function at 0x40ae00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x416dd8]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x1c], eax
call eax
mov edx, dword [ebp + 8]
mov eax, dword [0x416dd4]
test edx, edx
je 0x40aeff
test eax, eax
je 0x40af50
mov esi, dword [0x416dcc]
test esi, esi
je 0x40afc0
mov dword [esp + 4], 0x411bed
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strpbrk]
test eax, eax
jne 0x40af80
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov edi, dword [0x416dd0]
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 [0x416dd4]
mov eax, esi
sub eax, ebx
cmp eax, 2
jbe 0x40af28
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 0x40aee0
mov eax, dword [0x416dd0]
mov dword [0x416dcc], 0
test eax, eax
je 0x40aed3
call sym._GetWideString.part.0
mov dword [0x416dd8], eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [0x416dd0]
add ebx, esi
mov dword [0x416dcc], esi
mov byte [ebx + eax], 0
test esi, esi
jne 0x40ae41
mov eax, dword [0x416dd4]
mov dword [0x416dd8], 0
test eax, eax
jne 0x40afca
mov dword [0x416dd4], 0
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
add esi, esi
mov dword [esp], edi
mov dword [0x416dd4], esi
mov dword [esp + 4], esi
call dword [sym.imp.ucrtbase.dll_realloc]
mov dword [0x416dd0], eax
mov edi, eax
jmp 0x40ae92
mov dword [0x416dd4], 0x1000
mov dword [esp], 0x1000
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [0x416dd0], eax
mov esi, eax
mov byte [eax], 0
mov dword [0x416dcc], eax
jmp 0x40ae41
lea ecx, [eax + 1]
cmp byte [eax], 0xd
mov dword [0x416dcc], ecx
je 0x40afa8
mov byte [eax], 0
mov eax, esi
call sym._GetWideString.part.0
mov dword [0x416dd8], eax
jmp 0x40aed8
cmp byte [eax + 1], 0xa
jne 0x40af8e
lea ecx, [eax + 2]
mov dword [0x416dcc], ecx
jmp 0x40af8e
mov dword [0x416dd8], 0
mov eax, dword [0x416dd0]
mov dword [esp], eax
mov eax, dword [ebp - 0x1c]
call eax
jmp 0x40af11

Function at 0x40b090
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 0x40b0e0
cmp word [edx], 0
je 0x40b110
mov eax, edx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x40b0b0
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 0x40b0ed
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 0x40b0bd
Function at 0x40bb80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
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 0x40bbf0
cmp word [ebx + 0xc], 1
mov eax, 1
mov dword [ebx + 0x24], 0
sbb eax, 0xffffffff
mov dword [ebx + 0x28], 0
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 0x40bbc8

Function at 0x40c0c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40c0f5
lea eax, [ebp - 0x4e]
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 0x40c108
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
movzx ecx, byte [ebp - 0x4d]
movzx eax, byte [ebp - 0x4e]
xor esi, esi
mov byte [ebp - 0x59], cl
mov ecx, sym._get_lineA
cmp al, 0xff
jne 0x40c131
xor edx, edx
mov edi, sym._get_lineW
cmp byte [ebp - 0x59], 0xfe
sete dl
cmove ecx, edi
mov esi, edx
movzx edx, byte [ebp - 0x59]
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, 0xffffffff
mov word [ebp - 0x40], dx
mov edx, sym._header_state
mov dword [ebp - 0x44], esi
mov dword [0x416ddc], ecx
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 0x40c1aa
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx*4 + 0x411d80]
mov dword [esp + 4], eax
mov dword [esp], ebx
call edx
test eax, eax
jne 0x40c1a0
movzx eax, word [ebp - 0x40]
lea edx, [eax - 3]
cmp dx, 1
jbe 0x40c210
mov eax, dword [ebp - 0x34]
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov ebx, 1
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x40c0f7
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x38], 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 0x40e4c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov edx, dword [0x416dec]
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
test edx, edx
jne 0x40e4f8
mov edx, 1
test byte [eax + 0x40], 0x40
je 0x40e4e8
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 0x40e930
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]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x40e98b
cmp byte [esi + ebx - 1], 0xa
je 0x40e95f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x416ea4], 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]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x40f470
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 al
movzx eax, al
inc eax
mov dword [esp], eax
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 sym._exit
nop
nop

Function at 0x40f4e0
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, 0x78
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40f57b
cmp ax, 9
je 0x40f568
cmp ax, 0x20
je 0x40f568
mov dword [ebp - 0x6c], 0
xor edi, edi
lea esi, [esi]
cmp ax, 0x5c
je 0x40f5d0
cmp ax, 0x22
je 0x40f5e0
mov dword [ebp - 0x6c], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40f57b
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x40f520
test edi, 1
jne 0x40f520
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x40f568
cmp ax, 0x20
je 0x40f568
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x40f5f8
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
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
inc dword [ebp - 0x6c]
jmp 0x40f53b
and dword [ebp - 0x6c], 1
jne 0x40f534
xor edi, 1
jmp 0x40f53b
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x40f594