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

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x794ffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x795035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.00794e00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x794fc5
mov edi, 0x7af8b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x795035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00794e00
add edi, 4
add esp, 0xc
cmp edi, 0x7af8c0
jb 0x795000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x795070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.0079b082
mov esi, eax
add esp, 8
test esi, esi
je 0x795107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x795102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.0079a946
add esp, 8
test eax, eax
je 0x7950e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x7950e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.0079a946
add esp, 8
test eax, eax
jne 0x7950c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x795102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x795f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x7aa9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x796002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00799dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x796002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.007916e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0079a20b
push 0x10
call fcn.0079a1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x795fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.007861c0
jmp 0x795fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00795b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x795ff0
mov ecx, edi
call fcn.007862c0
push edi
call fcn.0079a1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x796021
inc ebx
cmp ebx, 0x20
jb 0x795f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x797250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7ab808
push 0x79b288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x797329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x797329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0079a1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x797329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x797329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x79732c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00797351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x797d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x797d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x797d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x797d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x797d94
push eax
push esi
call fcn.0079a20b
add esp, 8
pop esi
ret 0x10

Function at 0x797da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x797e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x797e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x7b0320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00799dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x797dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x797e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x797ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x797eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x7b0320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00799dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x797eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x797e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x798000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x798131
push esi
call fcn.0079b145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.0078a080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x798131
push 0
push ebp
call fcn.0078a3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.0078a260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x79808b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.0078a2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x798121
push 0x7b0918
push edi
call fcn.007993f0
push eax
push ebx
push esi
call fcn.00797f60
push 0x7b08f8
push edi
call fcn.007993f0
push eax
push ebx
push esi
call fcn.00797f60
push 0x7b08d8
push edi
call fcn.007993f0
push eax
push ebx
push esi
call fcn.00797f60
push 0x7b08c0
push edi
call fcn.007993f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00797f60
push 0x7b08a0
push edi
call fcn.007993f0
push eax
push ebx
push esi
call fcn.00797f60
push 0x7b0888
push edi
call fcn.007993f0
push eax
push ebx
push esi
call fcn.00797f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x7991b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00799140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00799140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00799140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00799140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x799bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x799c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x7ab87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x799c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x799c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
mov eax, 1
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
xor ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
mov ecx, edi
jns 0x41989b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x405700
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42ab28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x64]
test eax, eax
jne 0x4057aa
mov eax, dword [0x43832c]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.00422132
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.00422181
push 0x437ad8
lea ecx, [esp + 0xc]
call fcn.004220f3
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x405791
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x405791
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x64], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.00421d17
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4057c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x405822
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc

Function at 0x405a30
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x405b22
lea ecx, [esp + 0x10]
push ecx
push str..htm
push SysReAllocString
mov ecx, edi
call fcn.004057c0
test eax, eax
jne 0x405b22
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push SysReAllocString
mov ecx, edi
call fcn.004057c0
test eax, eax
jne 0x405b22
lea edx, [esp + 0x10]
push str.__1_
push edx
call fcn.00410210
mov esi, eax
add esp, 8
test esi, esi
jne 0x405af3
lea eax, [esp + 0x10]
push 0x437df4
push eax
call fcn.00410210
mov esi, eax
add esp, 8
test esi, esi
jne 0x405af3
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x405af6
mov byte [esi], 0
push 0x437df0
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x405f50
Capabilities:
Get file size

Disassembly:
sub esp, 0x12c
lea ecx, [esp + 0x130]
push esi
push 0x12b
call fcn.00422132
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push 0x80
push 3
push 0
push 1
lea ecx, [esp + 0x18]
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405fae
lea ecx, [esp + 0x134]
call fcn.00421d17
or eax, esi
pop esi
add esp, 0x12c
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x138]
call fcn.00421d17
mov eax, edi
pop edi
pop esi
add esp, 0x12c
ret
Function at 0x406910
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42ad40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov dword [esp + 0x24], 0
mov eax, dword [0x43832c]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov bl, 3
push 0x12b
lea ecx, [esp + 0x38]
mov byte [esp + 0x28], bl
call fcn.00422132
push eax
push 0x43ce10
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
push ecx
push edx
push 0
push 2
push 0
push 0x43bf38
push 0
push 0x43ce10
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [esp + 0x30]
push str._de.lng
lea ecx, [esp + 0x10]
push eax
push ecx
mov dword [0x43cf40], 0xfffffc19
mov byte [0x43cf44], 0
call fcn.00421fac
push eax
mov ecx, 0x43cf3c
mov byte [esp + 0x28], 4
call fcn.00421e50
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], bl
call fcn.00421d17
lea edx, [esp + 0x2c]
push 0x43cf3c
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00421f46
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x28], 5
call fcn.00421e50
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], bl
call fcn.00421d17
push ecx
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.00421a8c
push ecx
lea eax, [esp + 0xc]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
mov byte [esp + 0x30], 6
call fcn.00421a8c
mov byte [esp + 0x2c], bl
call fcn.00406400
add esp, 8
cmp eax, 2
jle 0x406a49
mov byte [0x43cf44], 1
mov dword [0x43cf40], 0xb
jmp 0x406b00
mov al, byte [0x43cf44]
test al, al
jne 0x406b00
lea ecx, [esp + 0x30]
push str._new.lng
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.00421fac
push eax
mov ecx, 0x43cf3c
mov byte [esp + 0x28], 7
call fcn.00421e50
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], bl
call fcn.00421d17
lea eax, [esp + 0x2c]
push 0x43cf3c
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00421f46
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x28], 8
call fcn.00421e50
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], bl
call fcn.00421d17
push ecx
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00421a8c
push ecx
lea eax, [esp + 0xc]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov byte [esp + 0x30], 9
call fcn.00421a8c
mov byte [esp + 0x2c], bl
call fcn.00406400
add esp, 8
cmp eax, 2
jle 0x406b00
mov byte [0x43cf44], 1
mov dword [0x43cf40], 0x16
mov ecx, dword [esp + 8]
push 1
push 0xffffffffffffff9c
push 0x43cf40
push str.giLANG
push str.9992777
push 0
push str.dummy
push 0
push ecx
call fcn.00406cd0
mov edx, dword [esp + 0x2c]
add esp, 0x24
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 4]
mov byte [esp + 0x24], 2
call fcn.00421d17
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 1
call fcn.00421d17
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 0
call fcn.00421d17
lea ecx, [esp + 0x34]
mov dword [esp + 0x24], 0xffffffff
call fcn.00421d17
mov ecx, dword [esp + 0x1c]
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x406cd0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x260
push esi
push edi
mov edi, dword [esp + 0x270]
mov dword [esp + 8], 4
test edi, edi
je 0x406d79
mov ecx, dword [esp + 0x288]
lea eax, [esp + 0x13c]
push 0xa
push eax
push ecx
call fcn.00410809
mov esi, dword [esp + 0x290]
lea edx, [esp + 0x1c]
push 0xa
push edx
mov eax, dword [esi]
push eax
call fcn.00410809
mov ecx, dword [esp + 0x2a4]
lea edx, [esp + 0x154]
push ecx
mov ecx, dword [esp + 0x29c]
lea eax, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x29c]
push eax
mov eax, dword [esp + 0x29c]
push ecx
mov ecx, dword [esp + 0x29c]
push edx
mov edx, dword [esp + 0x298]
push eax
push ecx
push edi
push edx
call fcn.00406e10
lea eax, [esp + 0x4c]
push eax
call fcn.00410717
add esp, 0x40
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
add esp, 0x260
ret
mov eax, dword [esp + 0x278]
mov ecx, dword [esp + 0x27c]
cmp eax, 1
je 0x406d93
mov ecx, dword [esp + 0x280]
mov eax, dword [esp + 0x28c]
test eax, eax
jne 0x406ddd
mov eax, dword [esp + 0x26c]
mov esi, dword [esp + 0x284]
test eax, eax
je 0x406dc9
lea edx, [esp + 8]
push edx
lea edx, [esp + 0x10]
push esi
push edx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x406dfa
mov eax, dword [esp + 0x288]
pop edi
mov dword [esi], eax
xor eax, eax
pop esi
add esp, 0x260
ret
mov edx, dword [esp + 0x284]
mov eax, dword [esp + 0x26c]
push 4
push edx
push 4
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
xor eax, eax
pop esi
add esp, 0x260
ret
Function at 0x407640
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42adcf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x43832c]
push esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x20]
push ecx
push edx
push 0
mov dword [esp + 0x20], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0x3e7
lea ecx, [esp + 8]
call fcn.00422132
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call fcn.00422181
push 0x437e40
lea ecx, [esp + 8]
call fcn.004220f3
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.00421a8c
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.00421d17
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret