joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4046b4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
call fcn.004018bc
pop ecx
mov ebx, eax
test eax, eax
jne 0x4046d8
xor eax, eax
jmp 0x404781
lea edx, [ebp - 4]
push edx
push ebx
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
mov esi, eax
test esi, esi
je 0x4046f9
cmp esi, 0x104
jb 0x404704
push ebx
call fcn.004018cc
pop ecx
xor eax, eax
jmp 0x404781
cmp byte [ebx + 1], 0x3a
jne 0x404734
mov dl, byte [ebx]
lea ecx, [ebp - 8]
mov byte [ebp - 8], dl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0
push ecx
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
jae 0x404734
push ebx
call fcn.004018cc
pop ecx
xor eax, eax
jmp 0x404781
inc esi
test edi, edi
je 0x404777
cmp esi, dword [ebp + 0x10]
jbe 0x404749
push ebx
call fcn.004018cc
pop ecx
xor eax, eax
jmp 0x404781
push edi
mov esi, edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
call fcn.004018cc
pop ecx
mov eax, edi
jmp 0x404781
push esi
push ebx
call fcn.004018dc
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4047bc
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x404801
lea eax, [ebp - 0x10c]
push eax
push 0x103
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
je 0x4047f0
cmp eax, dword [ebp + 0x10]
jle 0x40488a
mov dword [0x40cecc], 8
xor eax, eax
jmp 0x4048f5
cmp dword [0x40e1d4], 1
jne 0x404846
mov eax, ebx
lea ecx, [ebp - 0x10c]
mov edx, eax
add dl, 0x40
add ecx, 3
mov byte [ebp - 0x10c], dl
mov dl, al
mov byte [ebp - 0x10b], 0x3a
mov byte [ebp - 0x10a], 0x5c
mov byte [ebp - 0x109], 0
mov ah, 0x47
mov esi, ecx
int 0x21
jae 0x40488a
xor eax, eax
jmp 0x4048f5
call sub.KERNEL32.DLL_GetLogicalDrives
lea ecx, [ebx - 1]
mov edx, 1
shl edx, cl
test edx, eax
je 0x404886
add bl, 0x40
lea eax, [ebp - 8]
mov byte [ebp - 4], bl
lea edx, [ebp - 0x10c]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x2e
mov byte [ebp - 1], 0
push eax
push edx
lea ecx, [ebp - 4]
push 0x103
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
jmp 0x40488a
xor eax, eax
jmp 0x4048f5
lea edx, [ebp - 0x10c]
push edx
call fcn.004027dc
pop ecx
cmp eax, dword [ebp + 0x10]
jl 0x4048aa
mov dword [0x40cecc], 0x22
xor eax, eax
jmp 0x4048f5
test edi, edi
jne 0x4048cc
mov edx, dword [ebp + 0x10]
push edx
call fcn.004018bc
pop ecx
mov edi, eax
test eax, eax
jne 0x4048cc
mov dword [0x40cecc], 8
xor eax, eax
jmp 0x4048f5
push edi
mov esi, edi
xor eax, eax
lea edi, [ebp - 0x10c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x407582
call fcn.004074d0
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004027dc
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004027dc
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4075e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x40ced4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4076ba
cmp dword [0x40ced0], 0
jne 0x4076ba
cmp dword [0x40d118], 0
je 0x407674
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004073d0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40765a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004073d0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40765a
lea ebx, [ebp - 0x84]
jmp 0x40765b
inc ebx
call fcn.0040759c
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4076f5
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x40ced8
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004027dc
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x40cedb
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4076f5
cmp dword [0x40ced0], 0
je 0x4076d4
cmp dword [0x40ced0], 0xffffffff
je 0x4076f5
push esi
call dword [0x40ced0]
pop ecx
mov eax, dword [0x40ced4]
test eax, eax
je 0x4076f5
cmp dword [0x40ced4], 0xffffffff
je 0x4076f5
cmp byte [eax], 0
je 0x4076f5
push esi
push eax
call fcn.00407520
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40869c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x40e1ec], 0
jne 0x40871d
cmp dword [0x40e20c], 0
jne 0x4086cc
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x40e20c], eax
test eax, eax
jne 0x4086cc
push str.GetEnvironmentStrings_failed
call fcn.0040770c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x40e20c]
jmp 0x4086e0
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004027dc
pop ecx
mov edi, eax
test eax, eax
jne 0x4086d8
lea edi, [ebp + 1]
push edi
call fcn.004018bc
pop ecx
mov ebx, eax
mov dword [0x40e1f0], ebx
test ebx, ebx
jne 0x40870a
xor eax, eax
jmp 0x4087e0
push edi
mov edx, dword [0x40e20c]
push edx
push ebx
call fcn.00402638
add esp, 0xc
jmp 0x40873d
xor esi, esi
mov ebx, dword [0x40e1ec]
jmp 0x408737
push eax
call fcn.004027dc
pop ecx
test eax, eax
jne 0x408733
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x408727
lea ebx, [esi + 4]
push 4
mov dword [0x40e1f4], ebx
inc ebx
push ebx
call fcn.004016bc
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x408760
xor eax, eax
jmp 0x4087e0
cmp dword [0x40e1ec], 0
jne 0x408791
xor esi, esi
mov ebx, dword [0x40e1f0]
mov eax, dword [esp]
mov ebp, eax
jmp 0x408782
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004027dc
pop ecx
mov edi, eax
test eax, eax
jne 0x408778
jmp 0x4087c2
xor esi, esi
mov ebx, dword [0x40e1ec]
mov eax, dword [esp]
mov edi, eax
jmp 0x4087bc
push eax
call fcn.004027dc
pop ecx
test eax, eax
je 0x4087b1
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4087b5
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4087a0
mov eax, dword [0x40e1ec]
test eax, eax
je 0x4087d2
push eax
call fcn.004018cc
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x40e1ec], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401ad5
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
push str.bjhwhrjgs
call fcn.004038bc
add esp, 4
mov eax, dword [0x41128c]
add eax, 0x5c8
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.32968701.dll
mov ecx, dword [0x41128c]
add ecx, 0x5c8
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.BINARY
mov edx, dword [ebp + 0xc]
and edx, 0xffff
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401b40
jmp 0x401bdd
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401b5c
jmp 0x401bdd
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
push 0x64
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00403938
add esp, 0xc
push 0
push 0
push 2
push 0
push 0
push 0x40000000
mov edx, dword [0x41128c]
add edx, 0x5c8
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov esp, ebp
pop ebp
ret 8
Function at 0x402db6
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov ecx, dword [0x41128c]
call fcn.004013ca
push 1
lea eax, [ebp - 0xc8]
push eax
mov ecx, dword [0x41161c]
call fcn.00404ed0
mov ecx, dword [0x41128c]
cmp dword [ecx + 0x20c], 0
je 0x402eac
mov dword [ebp - 0x240], 0
push str._setup64.exe
lea edx, [ebp - 0xc8]
push edx
lea eax, [ebp - 0x1cc]
push eax
mov ecx, dword [0x41128c]
call fcn.0040120c
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x234], 0
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x238], eax
push str.Wow64DisableWow64FsRedirection
mov ecx, dword [ebp - 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x23c], eax
push str.Wow64RevertWow64FsRedirection
mov edx, dword [ebp - 0x238]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x240]
push eax
call dword [ebp - 0x23c]
cmp dword [ebp - 0x234], 0
je 0x402e91
mov ecx, dword [ebp - 0x240]
push ecx
call dword [ebp - 0x234]
cmp dword [ebp - 0x238], 0
je 0x402ea7
mov edx, dword [ebp - 0x238]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x402f58
mov ecx, dword [0x411630]
call fcn.00404fb0
cmp eax, 1
jne 0x402f3a
push 0x50
lea eax, [ebp - 0x344]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x411470
lea ecx, [ebp - 0x344]
push ecx
call fcn.004054c0
add esp, 8
lea edx, [ebp - 0x1cc]
push edx
lea eax, [ebp - 0x448]
push eax
call fcn.004054b0
add esp, 8
mov ecx, dword [0x41128c]
call fcn.004017d0
push eax
lea ecx, [ebp - 0x448]
push ecx
call fcn.004054c0
add esp, 8
push str.GdiPlus.dll
lea edx, [ebp - 0x448]
push edx
call fcn.004054c0
add esp, 8
lea eax, [ebp - 0x344]
push eax
lea ecx, [ebp - 0x448]
push ecx
call fcn.00402d80
add esp, 8
push str._setup32.exe
lea edx, [ebp - 0xc8]
push edx
lea eax, [ebp - 0x1cc]
push eax
mov ecx, dword [0x41128c]
call fcn.0040120c
push 0xa
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00405c3b
add esp, 0xc
push 1
push 0
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x1cc]
push ecx
push 0x4114a0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esp, ebp
pop ebp
ret
Function at 0x40342f
Capabilities:
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x9e3779b9
mov dword [ebp - 0x20], 0x20
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 0x14]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
sub eax, 1
mov dword [ebp - 0x20], eax
test edx, edx
jbe 0x4034e9
mov ecx, dword [ebp - 0x18]
shl ecx, 4
mov edx, dword [ebp - 0x18]
shr edx, 5
xor ecx, edx
add ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
and eax, 3
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 4]
add esi, dword [edx + eax*4]
xor ecx, esi
mov eax, dword [ebp - 0x10]
add eax, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x10]
shl edx, 4
mov eax, dword [ebp - 0x10]
shr eax, 5
xor edx, eax
add edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
shr ecx, 0xb
and ecx, 3
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 4]
add esi, dword [eax + ecx*4]
xor edx, esi
mov ecx, dword [ebp - 0x18]
add ecx, edx
mov dword [ebp - 0x18], ecx
jmp 0x403477
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 4], edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4034ff
Capabilities:
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xc6ef3720
mov dword [ebp - 0x14], 0x9e3779b9
mov dword [ebp - 0x20], 0x20
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x20]
sub edx, 1
mov dword [ebp - 0x20], edx
test ecx, ecx
jbe 0x4035b0
mov eax, dword [ebp - 0x10]
shl eax, 4
mov ecx, dword [ebp - 0x10]
shr ecx, 5
xor eax, ecx
add eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
shr edx, 0xb
and edx, 3
mov ecx, dword [ebp - 8]
mov esi, dword [ebp - 4]
add esi, dword [ecx + edx*4]
xor eax, esi
mov edx, dword [ebp - 0x18]
sub edx, eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
shl ecx, 4
mov edx, dword [ebp - 0x18]
shr edx, 5
xor ecx, edx
add ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
and eax, 3
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 4]
add esi, dword [edx + eax*4]
xor ecx, esi
mov eax, dword [ebp - 0x10]
sub eax, ecx
mov dword [ebp - 0x10], eax
jmp 0x40353e
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 0x14]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 4], edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4045d0
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x18c
mov ecx, 0xc
xor eax, eax
lea edx, [esp + 0x24]
push ebx
push ebp
push esi
push edi
mov esi, str.SystemCurrentControlSetControlKeyboard_Layouts
lea edi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0xc
lea edi, [esp + 0x66]
rep stosd dword es:[edi], eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
stosw word es:[edi], ax
mov eax, dword [esp + 0x1a8]
push 0
push edx
push 0x80000002
mov byte [eax], 0
call ebx
test eax, eax
je 0x404636
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18c
ret 0xc
mov ecx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea eax, [esp + 0x20]
xor esi, esi
push 0x14
push eax
push esi
push ecx
call ebp
test eax, eax
jne 0x4046e9
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0xf003f
lea eax, [esp + 0x28]
push 0
push eax
push ecx
call ebx
test eax, eax
jne 0x4046d1
mov byte [esp + 0x98], al
lea edx, [esp + 0x18]
lea eax, [esp + 0x98]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push str.Layout_Text
push edx
mov dword [esp + 0x30], 0x104
call edi
test eax, eax
jne 0x4046c6
mov ecx, dword [esp + 0x1a4]
lea eax, [esp + 0x98]
push eax
push ecx
call fcn.0040e200
add esp, 8
test eax, eax
je 0x404703
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
inc esi
push 0x14
push eax
push esi
push ecx
call ebp
test eax, eax
je 0x40465b
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18c
ret 0xc
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x1a0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
cmp dword [esp + 0x1a8], 0x44
jne 0x40474e
mov edx, dword [esp + 0x10]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0x10]
push eax
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18c
ret 0xc

Function at 0x404770
Capabilities:
Delete file
Move file

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40479f
mov eax, dword [esp + 0xc]
push 4
test eax, eax
je 0x404796
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop esi
ret 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop esi
ret 8
Function at 0x404cd0
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x10c
mov ecx, 0xd
xor eax, eax
push ebx
push esi
push edi
mov ebx, dword [esp + 0x11c]
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x124]
mov ecx, 0x34
lea edi, [esp + 0x48]
cmp esi, 0x44
rep stosd dword es:[edi], eax
je 0x404d28
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
push 0x4115dc
lea eax, [esp + ecx + 0x1c]
push eax
call fcn.00405450
add esp, 0xc
mov edi, dword [esp + 0x120]
cmp esi, 0x43
jne 0x404d88
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push edx
push 0
push 0x20006
push 0
push str.REG_SZ
lea eax, [esp + 0x2c]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x404d70
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret 0xc
mov ecx, dword [esp + 0xc]
push edi
push str.Path
push ecx
mov ecx, dword [0x41161c]
call fcn.00404ea0
jmp 0x404ddf
lea edx, [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push 0x20019
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404db6
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret 0xc
cmp esi, 0x44
jne 0x404dc9
mov ecx, dword [esp + 0xc]
push ebx
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
jmp 0x404ddf
mov edx, dword [esp + 0xc]
mov ecx, dword [0x41161c]
push edi
push str.Path
push edx
call fcn.00404e60
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
pop esi
mov eax, ecx
pop ebx
add esp, 0x10c
ret 0xc

Function at 0x404e60
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
mov byte [eax], 0
push eax
mov eax, dword [esp + 0x14]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
pop ecx
ret 0xc

Function at 0x404ea0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 0xc]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + ecx + 1]
mov ecx, dword [esp + 0xc]
push eax
push edx
mov edx, dword [esp + 0x10]
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
ret 0xc
Function at 0x404fb0
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x4150a4]
sub esp, 0x9c
test eax, eax
jne 0x405126
push edi
mov ecx, 0x25
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
jne 0x404fee
add esp, 0x9c
ret
mov eax, dword [esp + 0x10]
dec eax
je 0x4050d6
dec eax
jne 0x405121
mov eax, dword [esp + 4]
sub eax, 4
je 0x4050c0
dec eax
je 0x40506c
dec eax
jne 0x405121
mov eax, dword [esp + 8]
test eax, eax
jne 0x405041
mov cl, byte [esp + 0x9a]
dec cl
neg cl
sbb ecx, ecx
and ecx, 0xb
add ecx, 0x1f
mov dword [0x4150a4], ecx
mov eax, ecx
add esp, 0x9c
ret
cmp eax, 1
jne 0x405121
mov dl, byte [esp + 0x9a]
dec dl
neg dl
sbb edx, edx
and edx, 2
add edx, 0x29
mov dword [0x4150a4], edx
mov eax, edx
add esp, 0x9c
ret
mov eax, dword [esp + 8]
test eax, eax
jne 0x40508a
mov dword [0x4150a4], 0x15
mov eax, dword [0x4150a4]
add esp, 0x9c
ret
cmp eax, 1
jne 0x4050a5
mov dword [0x4150a4], 0x16
mov eax, dword [0x4150a4]
add esp, 0x9c
ret
cmp eax, 2
jne 0x405121
mov dword [0x4150a4], 0x17
mov eax, dword [0x4150a4]
add esp, 0x9c
ret
mov dword [0x4150a4], 0xb
mov eax, dword [0x4150a4]
add esp, 0x9c
ret
cmp dword [esp + 4], 4
jne 0x405117
mov eax, dword [esp + 8]
cmp eax, 0xa
jne 0x4050fc
mov dword [0x4150a4], 2
mov eax, dword [0x4150a4]
add esp, 0x9c
ret
cmp eax, 0x5a
jne 0x405121
mov dword [0x4150a4], 3
mov eax, dword [0x4150a4]
add esp, 0x9c
ret
mov dword [0x4150a4], 1
mov eax, dword [0x4150a4]
add esp, 0x9c
ret

Function at 0x405190
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
push 0
push esi
push edi
call ebx
test eax, eax
jne 0x4051bb
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x4051bb
pop edi
pop esi
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4051dd
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4051dd
test al, 1
je 0x4051dd
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
mov eax, 1
pop ebx
ret 0xc

Function at 0x4053e0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
mov esi, ecx
push 0x202
call edi
test eax, eax
je 0x405436
lea ecx, [esp + 8]
push ecx
push 0x101
call edi
test eax, eax
je 0x405436
push 0
push 0x414988
push 0x411664
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [esi + 4], 0
pop edi
xor eax, eax
pop esi
add esp, 0x190
ret
mov eax, 1
pop edi
mov dword [esi + 4], eax
pop esi
add esp, 0x190
ret