joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f0ed
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0043fd7d
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0043fd7d
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x44f164
cmp word [ecx], dx
je 0x44f164
mov eax, dword [0x467554]
push edi
dec eax
push eax
push 0x467440
call fcn.0044f08c
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x44f1d7
cmp word [eax], dx
je 0x44f1d7
mov eax, dword [edi]
test eax, eax
je 0x44f188
cmp word [eax], dx
je 0x44f188
lea eax, [ebp - 0x10]
push eax
call fcn.0044ea6e
jmp 0x44f191
lea eax, [ebp - 0x10]
push eax
call fcn.0044eb09
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x44f201
mov eax, dword [0x46743c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x467130
call fcn.0044f08c
add esp, 0xc
test al, al
je 0x44f201
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x44f1cc
cmp word [eax], di
je 0x44f1cc
lea eax, [ebp - 0x10]
push eax
call fcn.0044ea6e
pop ecx
jmp 0x44f203
lea eax, [ebp - 0x10]
push eax
call fcn.0044eb09
jmp 0x44f1c9
mov eax, dword [edi]
test eax, eax
je 0x44f1ee
cmp word [eax], dx
je 0x44f1ee
lea eax, [ebp - 0x10]
push eax
call fcn.0044ea05
pop ecx
jmp 0x44f201
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x44f2cc
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0044ef10
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x44f2cc
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x44f2cc
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x44f2cc
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x44f259
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0043e4fc
test ebx, ebx
je 0x44f2c7
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0043e4fc
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44f2cc
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44f2cc
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004594e5
add esp, 0x10
xor eax, eax
inc eax
jmp 0x44f2ce
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b758
leave
ret
Function at 0x4572f8
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x45733b
call fcn.00432c1a
mov dword [eax], 0xf
call fcn.00432c2d
mov dword [eax], 0xd
call fcn.0043d6b4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b758
leave
ret
test eax, eax
jne 0x457342
inc eax
jmp 0x45732f
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x45732d
xor eax, eax
cmp ecx, 1
setne al
jmp 0x45732f
Function at 0x45afa1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0045adc5
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x45b110
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x45b110
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x45b0c5
jg 0x45affd
test eax, eax
je 0x45b0bb
push 1
push 0x1000
call fcn.0043d762
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x45b020
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x45b0b2
push 0x8000
push ebx
call fcn.00438ff0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x45b049
jg 0x45b044
cmp ecx, 0x1000
jb 0x45b049
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00443f1f
add esp, 0x10
cmp eax, 0xffffffff
je 0x45b08e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x45b044
jl 0x45b075
test ecx, ecx
jne 0x45b036
push dword [ebp - 0xc]
push ebx
call fcn.00438ff0
push esi
call fcn.0043d7c5
add esp, 0xc
xor ebx, ebx
jmp 0x45b11e
cmp byte [edi + 0x24], 0
je 0x45b0a5
cmp dword [edi + 0x20], 5
jne 0x45b0a5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x45b0b0
mov ebx, dword [edi + 0x18]
jmp 0x45b0b2
xor ebx, ebx
push esi
call fcn.0043d7c5
pop ecx
jmp 0x45b11e
test ecx, ecx
jg 0x45b087
jl 0x45b0c5
test eax, eax
jae 0x45b087
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00456e40
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x45b0e5
cmp byte [edi + 0x1c], 0
je 0x45b087
jmp 0x45b116
push ebx
call fcn.004465fc
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x45b087
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x45b11e
cmp byte [edi + 0x1c], 0
je 0x45b11b
mov ebx, dword [edi + 0x18]
jmp 0x45b11e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00456e40
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x45dc80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x45dcad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45dcad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x6f8da3
Capabilities:
Execute anti-debugging instructions

Disassembly:
add esp, 4
cld
jmp 0x6f8eaa
mov dx, word [esp]
mov edx, dword [esp]
mov dx, 0xc747
rol edx, 0xf
push eax
xchg edx, eax
jmp 0x6f8e61
xchg word [esp], ax
setg ah
bswap eax
sub dh, ah
mov dl, 0x34
mov ah, byte [esp + 1]
jmp 0x6f8e4b
mov dx, word [esp]
mov dh, ch
lea edx, [esp + edi]
neg dh
inc edx
bts edx, ebx
jmp 0x6f8df3
stc
lea esp, [esp + 1]
mov dword [esp], edx
lea edx, [esp + ebx]
mov dx, word [esp]
lea edx, [ecx*4]
jmp 0x6f8e1c
mov dword [esp], ebp
xchg dx, ax
mov bp, word [esp]
mov bp, word [esp]
jmp 0x6f8e91
push edx
mov byte [esp + 1], ah
mov dx, 0xa983
xchg dword [esp], eax
mov edx, ecx
xchg word [esp], ax
jmp 0x6f8e05
mov byte [esp + 7], ch
push word [esp]
pop dword [esp + 2]
add esp, 0
push word [esp + 5]
cmc
jmp 0x6f8e33
mov ax, 0xc411
bsf dx, ax
mov ebp, dword [esp]
neg bp
not dx
jmp 0x6f8f15
sub esp, 0x10
lea esp, [esp + 3]
lea esp, [esp + 0x10]
pushal
pop word [esp + 0x11]
add esp, 0x11
jmp 0x6f8e7a
lea ebp, [eax + 0xf1]
mov al, ah
lea ebp, reloc.RASAPI32.dll_RasDialA
mov dh, ch
setae dh
jmp 0x6f8eef
xchg ah, dh
mov ax, word [esp]
ror dh, 5
not ah
bts edx, edi
lea ebp, reloc.RASAPI32.dll_RasDialA
jmp 0x6f8ec0
neg dh
lea eax, [ecx + edi]
add al, dh
bswap ebp
push edx
xchg byte [esp + 1], dh
jmp 0x6f8fcf
mov ax, word [esp]
btc eax, esp
lea eax, [ecx + 3]
lea ebp, [ebx*4]
jmp 0x6f8ed9
lea esp, [esp + 0xd]
mov word [esp + 7], bx
mov byte [esp + 7], ch
pop word [esp + 0xe]
jmp 0x6f8f53
pop dword [esp]
lea ebp, [esp + ebx]
mov dl, dh
pop bp
pushal
mov eax, 0x7d84857c
jmp 0x6f8f6a
pop dword [esp]
mov dh, byte [esp + 5]
bts ebp, edi
btc ebp, edx
lea ebp, [eax*4]
xchg word [esp + 5], bp
jmp 0x6f8f82
mov byte [esp + 1], dh
bsf bp, si
bswap eax
push esp
mov ah, byte [esp + 1]
push dword [esp + 2]
jmp 0x6f8fa0

Function at 0x6f9693
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea ebp, [edx*4]
shl ebp, 0x1f
mov dh, 0xa
add al, dh
lea ebp, reloc.RASAPI32.dll_RasDialA
jmp 0x6f965b

Function at 0x6f9fdd
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dh, byte [esp + 5]
rdtsc
xchg word [esp + 0x16], bp
mov ebp, 0x9e301ea4
pop bp
jmp 0x6fa072
mov dh, byte [esp + 0x2d]
lea esp, [esp + 0x19]
pop bp
btr ebp, esp
push word [esp + 0xb]
jmp 0x6f9fa8
mov bp, dx
inc ax
cmc
rdtsc
jmp 0x6f9fc4
rdtsc
xchg bp, ax
btc eax, ebx
lea edx, [ebp*4]
xchg edx, eax
lea esp, [esp + 0xd]
jmp 0x6fa194
mov ax, 0x439d
lea ebp, [edx + edx]
mov dh, 0x38
not bp
rcr ebp, 1
xchg bp, dx
jmp 0x6fa049
xchg dword [esp + 0xc], ebp
btr ebp, edx
mov dh, byte [esp + 0x10]
xchg bp, ax
mov word [esp + 0xd], dx
setg dh
call fcn.006fa11d
lea edx, [edx + esi]
bsr dx, cx
mov dh, 0x1a
mov edx, dword [esp + 0x34]
lea esp, [esp + 0x40]
popfd
jmp 0x6fa1e8
call 0x6fa288
das
mov ch, 0x25
dec esp
mov edi, 0x34a63f0a
push ebx
scasb al, byte es:[edi]
sub dword [edi - 0x42], edx
mov dword [eax], ebp
dec ebx
lea esp, [esp + 4]
jmp 0x6fa1d2
Function at 0x6fa4a6
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
call fcn.006f908f
lea esp, [esp + 0x94]
jmp 0x6fa486
mov word [esp], di
push word [esp + 5]
pop dword [esp]
lea esp, [esp + 2]
mov dword [esp + 0x94], edi
jmp 0x6fa419
push esp
push dword [esp + 2]
pop word [esp + 1]
mov dword [esp], eax
push dword [esp + 4]
pop word [esp + 3]
jmp 0x6fa430
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
jmp 0x6f908a
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x6fa466
push word [esp + 3]
mov word [esp + 2], sp
lea esp, [esp + 3]
lea esp, [esp + 3]
mov dword [esp + 0x94], esi
jmp 0x6fa44e
Function at 0x401833
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push 0x40d9e0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
lea eax, [esp + 4]
push 0
push eax
push 0x1a4
push 0x40d7a0
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ecx
ret

Function at 0x401876
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 4
push edi
push 1
push 0x80000000
push 0x40d9e0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4018a1
xor eax, eax
jmp 0x4018c3
lea eax, [esp + 8]
push edi
push eax
push 0x1a4
push 0x40d7a0
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x4018c7
Capabilities:
Extract resource via kernel32 functions
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x40c948
push dword [ebp + 8]
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0x80
push 4
push esi
push 1
push 0x40000000
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
lea eax, [ebp - 4]
push esi
push eax
push ebx
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0xc]
mov word [ebp - 0x1c], 0x7cd
push eax
lea eax, [ebp - 0x1c]
push eax
mov word [ebp - 0x1a], 1
mov word [ebp - 0x16], 0x12
mov word [ebp - 0x14], 8
mov word [ebp - 0x12], 0x1e
mov word [ebp - 0x10], si
mov word [ebp - 0xe], si
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401ba4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push 0x94
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.004060d0
add esp, 0xc
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401bef
mov eax, dword [ebp - 0x84]
sub eax, 0
je 0x401c11
dec eax
je 0x401c0d
dec eax
je 0x401bf3
xor eax, eax
leave
ret
cmp dword [ebp - 0x90], 4
ja 0x401c00
push 5
jmp 0x401c13
cmp dword [ebp - 0x90], 5
jne 0x401c0d
push 6
jmp 0x401c13
push 7
jmp 0x401c13
push 1
pop eax
leave
ret
Function at 0x401da9
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [str.Vietkey]
push ebx
mov dword [ebp - 0x14], eax
mov eax, dword [0x40ca3c]
mov dword [ebp - 0x10], eax
push esi
lea eax, [ebp - 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
xor ebx, ebx
push 0xf003f
push ebx
mov esi, 0x104
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
mov dword [ebp - 8], esi
call edi
test eax, eax
jne 0x401ece
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401e1f
mov dword [0x40d300], ebx
jmp 0x401ece
lea eax, [ebp - 0x21c]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
push dword [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb eax, eax
neg eax
dec eax
mov dword [0x40d300], eax
call ebx
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call edi
test eax, eax
jne 0x401e93
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.Desktop
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call ebx
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x320]
push str._sVietkey_2000.LNK
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x320]
push eax
call fcn.00401cc6
add esp, 0x10
neg eax
push dword [ebp - 4]
sbb eax, eax
mov dword [0x40d304], eax
call ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403c42
Capabilities:
Create shortcut via ishelllink
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push esi
lea eax, [ebp - 0x108]
push dword [ebp + 0x10]
push str._sVietkey_2000.LNK
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
xor esi, esi
add esp, 0xc
cmp dword [0x40d304], esi
jne 0x403c80
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x403d41
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp + 0x10]
push eax
push 0x4092e8
push 1
push esi
push 0x4092d8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x403d41
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 4]
push edx
push 0x4092f8
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x403d38
mov eax, dword [ebp + 0x10]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
test eax, eax
jge 0x403cd6
push str.SetPath_failed_
call fcn.00403c2a
pop ecx
mov eax, dword [ebp + 0x10]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x403cf1
push str.SetDescription_failed_
call fcn.00403c2a
pop ecx
lea eax, [ebp - 0x310]
push 0x104
push eax
lea eax, [ebp - 0x108]
push 0xffffffffffffffff
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x310]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
jge 0x403d2f
push str.Save_failed_
call fcn.00403c2a
pop ecx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop esi
leave
ret

Function at 0x403d44
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push esi
push edi
push 0xb
mov esi, str.Shortcut_to_Vietkey_2000___Vietnamese_keyboard
pop ecx
lea edi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push 0x40dbe0
lea eax, [ebp - 0x244]
mov edi, 0x104
push str._sVKNT.EXE
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403e19
lea eax, [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.Desktop
push dword [ebp - 8]
call esi
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.00403c42
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.Start_Menu
push dword [ebp - 8]
call esi
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.00403c42
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret
Function at 0x403e1d
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [str.Vietkey]
mov dword [ebp - 0xc], eax
mov eax, dword [0x40ca3c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403eb4
cmp dword [0x40d300], eax
je 0x403e9e
lea eax, [ebp - 0x110]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x110]
push eax
push 1
lea eax, [ebp - 0xc]
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x403eab
leave
ret
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x404474
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
push 0xffffffffffffffeb
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0
mov esi, eax
push 0
push 0x130b
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x4044a5
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, edi
push 0
shl eax, 4
push dword [eax + 0x40babc]
push dword [esi]
push dword [esi + edi*4 + 0x18]
push dword [0x40db40]
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
push 5
push eax
mov dword [esi + 4], eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
ret 4

Function at 0x404b4e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x40d644]
push esi
push 0
push 0x80
push 2
push 0
push 1
add eax, 0x48
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov eax, dword [0x40db74]
test eax, eax
mov dword [0x40d64c], eax
je 0x404bd5
cmp byte [eax + 9], 0
lea ecx, [eax + 9]
je 0x404bd0
push ecx
push eax
lea eax, [ebp - 0x104]
push str._s_s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x40d64c]
mov eax, dword [eax + 0x4c]
jmp 0x404b80
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
leave
ret
Function at 0x407c81
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40cd70
cmp edx, dword [eax]
je 0x407ca3
add eax, 8
inc ecx
cmp eax, 0x40ce00
jl 0x407c94
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40cd70]
jne 0x407dd1
mov eax, dword [0x40d35c]
cmp eax, 1
je 0x407dab
test eax, eax
jne 0x407cd4
cmp dword [0x40ccc4], 1
je 0x407dab
cmp edx, 0xfc
je 0x407dd1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407d0b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00406260
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406350
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407d4e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406350
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4095e8
push edi
call fcn.00406160
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00406260
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00406270
lea eax, [ebp - 0xa0]
push 0x4095c8
push eax
call fcn.00406270
push dword [esi + 0x40cd74]
lea eax, [ebp - 0xa0]
push eax
call fcn.00406270
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00408537
add esp, 0x2c
pop edi
jmp 0x407dd1
lea eax, [ebp + 8]
lea esi, [esi + 0x40cd74]
push 0
push eax
push dword [esi]
call fcn.00406350
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret