joyce8/EMBER2024-capa huggingface dataset:
Function at 0x493379
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x493416
push ebx
push esi
call fcn.00493342
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0049232f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4933c3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x493415
push edi
push eax
call fcn.0048be71
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4933e3
call fcn.0048b321
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x493414
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0049232f
add esp, 0x20
test eax, eax
jne 0x493402
push edi
call fcn.0048b321
jmp 0x49340a
push ebx
call fcn.0048b321
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x493419
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49342a
pop esi
ret
push ebx
push edi
push esi
call fcn.00493342
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0048be71
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x493452
push ebx
push esi
push edi
call fcn.00474c60
add esp, 0xc
push 0
call fcn.0048b321
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x493bac
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004936c7

Function at 0x495d97
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0048d24a
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x495e06
cmp esi, dword [ebp - 4]
je 0x495e01
cmp dword [ebp + 0xc], 0
je 0x495e01
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x495dde
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004958e9
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x495e08
xor eax, eax
inc eax
jmp 0x495e08
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x495e6d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4da080]
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.0048d24a
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.0048d24a
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 0x495ee4
cmp word [ecx], dx
je 0x495ee4
mov eax, dword [0x4adca4]
push edi
dec eax
push eax
push 0x4adb90
call fcn.00495e0c
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x495f57
cmp word [eax], dx
je 0x495f57
mov eax, dword [edi]
test eax, eax
je 0x495f08
cmp word [eax], dx
je 0x495f08
lea eax, [ebp - 0x10]
push eax
call fcn.004957ef
jmp 0x495f11
lea eax, [ebp - 0x10]
push eax
call fcn.0049588a
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x495f81
mov eax, dword [0x4adb8c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4ad880
call fcn.00495e0c
add esp, 0xc
test al, al
je 0x495f81
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x495f4c
cmp word [eax], di
je 0x495f4c
lea eax, [ebp - 0x10]
push eax
call fcn.004957ef
pop ecx
jmp 0x495f83
lea eax, [ebp - 0x10]
push eax
call fcn.0049588a
jmp 0x495f49
mov eax, dword [edi]
test eax, eax
je 0x495f6e
cmp word [eax], dx
je 0x495f6e
lea eax, [ebp - 0x10]
push eax
call fcn.004957a4
pop ecx
jmp 0x495f81
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 0x49604c
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00495c91
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x49604c
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x49604c
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x49604c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x495fd9
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0048b9d2
test ebx, ebx
je 0x496047
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0048b9d2
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x49604c
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 0x49604c
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004998e3
add esp, 0x10
xor eax, eax
inc eax
jmp 0x49604e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00472d8e
leave
ret
Function at 0x4968c2
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.0049683e
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x496a31
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x496a31
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4969e6
jg 0x49691e
test eax, eax
je 0x4969dc
push 1
push 0x1000
call fcn.0048b2c4
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x496941
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4969d3
push 0x8000
push ebx
call fcn.0048706f
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x49696a
jg 0x496965
cmp ecx, 0x1000
jb 0x49696a
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0048a3af
add esp, 0x10
cmp eax, 0xffffffff
je 0x4969af
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 0x496965
jl 0x496996
test ecx, ecx
jne 0x496957
push dword [ebp - 0xc]
push ebx
call fcn.0048706f
push esi
call fcn.0048b321
add esp, 0xc
xor ebx, ebx
jmp 0x496a3f
cmp byte [edi + 0x24], 0
je 0x4969c6
cmp dword [edi + 0x20], 5
jne 0x4969c6
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4969d1
mov ebx, dword [edi + 0x18]
jmp 0x4969d3
xor ebx, ebx
push esi
call fcn.0048b321
pop ecx
jmp 0x496a3f
test ecx, ecx
jg 0x4969a8
jl 0x4969e6
test eax, eax
jae 0x4969a8
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00484b73
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x496a06
cmp byte [edi + 0x1c], 0
je 0x4969a8
jmp 0x496a37
push ebx
call fcn.0048eb7a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4969a8
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 0x496a3f
cmp byte [edi + 0x1c], 0
je 0x496a3c
mov ebx, dword [edi + 0x18]
jmp 0x496a3f
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00484b73
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4987b5
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4da080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x4987f8
call fcn.0047c3ee
mov dword [eax], 0xf
call fcn.0047c401
mov dword [eax], 0xd
call fcn.0047a540
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472d8e
leave
ret
test eax, eax
jne 0x4987ff
inc eax
jmp 0x4987ec
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 0x4987ea
xor eax, eax
cmp ecx, 1
setne al
jmp 0x4987ec
Function at 0x402e38
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push dword [ebp + 8]
call fcn.00402b83
test eax, eax
pop ecx
je 0x402e52
xor eax, eax
leave
ret
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x108]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x10
test eax, eax
je 0x402e87
and byte [eax], 0
lea eax, [ebp - 0x108]
push eax
call fcn.00402e38
pop ecx
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
leave
ret

Function at 0x402ee6
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
lea eax, [ebp - 0x248]
push esi
push eax
push dword [ebp + 0xc]
call fcn.00402da9
pop ecx
lea eax, [ebp - 0x140]
pop ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402f4e
push dword [ebp + 0x10]
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x140]
push eax
call dword [ebp + 8]
test eax, eax
je 0x402f42
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x402f18
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
push 1
pop eax
jmp 0x402f50
xor eax, eax
pop esi
leave
ret

Function at 0x40308e
Capabilities:
Get common file path

Disassembly:
cmp byte [0x40c010], 0
push esi
mov esi, 0x40c010
jne 0x4030ae
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
mov dword [0x40c118], eax
push esi
push dword [esp + 0xc]
call sub.MSVCRT.dll_strcpy
mov eax, dword [0x40c118]
pop ecx
pop ecx
pop esi
ret

Function at 0x4030c1
Capabilities:
Get common file path
Get file attributes

Disassembly:
cmp byte [0x40c11c], 0
push esi
mov esi, 0x40c11c
jne 0x4030ee
push esi
call fcn.00402d0e
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test al, 1
je 0x4030ee
push esi
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
mov eax, esi
pop esi
ret

Function at 0x4030f2
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x40bc00
push 5
push eax
push eax
push dword [esp + 0x14]
push 0x40b07c
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret

Function at 0x40331b
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push dword [esp + 0x10]
mov esi, ecx
push dword [esp + 0x10]
call fcn.004026cd
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
pop ecx
je 0x403374
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ecx, esi
mov edi, eax
call fcn.004032e7
push edi
mov ecx, esi
call fcn.004032ce
push 0
push edi
push dword [esi]
push ebx
call fcn.00403118
mov eax, dword [esi]
add esp, 0x10
and byte [eax + edi], 0
push ebx
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 1
pop eax
pop edi
jmp 0x403376
xor eax, eax
pop esi
pop ebx
ret 8
Function at 0x405eb6
Capabilities:
Delete file

Disassembly:
mov eax, 0x408ad7
call fcn.00408824
sub esp, 0x84
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [esi + 0x2c]
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea ecx, [ebp - 0x90]
call fcn.004033a3
xor ebx, ebx
push 1
push edi
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], ebx
call fcn.004036a6
test eax, eax
je 0x405f2c
xor edi, edi
cmp dword [esi + 0x1c], ebx
jle 0x405f21
mov eax, dword [esi + 0x18]
lea ecx, [ebp - 0x90]
add eax, ebx
push ecx
push eax
push esi
call fcn.00405e0e
add esp, 0xc
inc edi
add ebx, 0xa34
cmp edi, dword [esi + 0x1c]
jl 0x405eff
lea ecx, [ebp - 0x90]
call fcn.00403700
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.0040342f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406220
Capabilities:
Delete file
Get common file path

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0x1a
and byte [edi + 0x2c], 0
lea esi, [edi + 0x2c]
push esi
call fcn.00408279
pop ecx
test eax, eax
pop ecx
je 0x406260
push esi
call fcn.00402727
mov dword [esp], 0x40b534
push esi
call sub.MSVCRT.dll_strcat
cmp dword [edi + 0x24c], 0
pop ecx
pop ecx
je 0x406260
push esi
call fcn.00402e38
pop ecx
cmp byte [esi], 0
jne 0x406271
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push esi
call fcn.00402727
mov dword [esp], 0x40b524
push esi
call sub.MSVCRT.dll_strcat
cmp dword [edi + 0x24c], 0
pop ecx
pop ecx
jne 0x406296
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
pop edi
pop esi
ret
Function at 0x406df4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push 0x40b77c
push eax
call fcn.00402afc
push 1
push 1
lea eax, [ebp - 0x104]
push 1
push eax
push dword [ebp + 8]
call fcn.00406c99
add esp, 0x1c
test eax, eax
je 0x406e57
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call fcn.004028ce
pop ecx
test eax, eax
pop ecx
je 0x406e4a
push eax
push dword [ebp + 8]
call fcn.0040274f
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
leave
ret

Function at 0x406f8d
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push dword [esi + 0xa24]
push 0x2001f
push eax
call fcn.00401458
add esp, 0xc
test eax, eax
jne 0x406fbd
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x406fcb
mov eax, dword [ebp + 8]
push 0
push dword [eax]
call fcn.0040274f
pop ecx
pop ecx
pop esi
pop ebp
ret

Function at 0x40705c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
call fcn.004045cd
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.004045da
add esp, 0xc
test eax, eax
je 0x407099
mov eax, dword [ebp - 4]
push 5
push 0x40bc00
add eax, 0x305
push 0
push eax
push 0x40b07c
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
leave
ret

Function at 0x4070cd
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push dword [ebp + 8]
call fcn.004045cd
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.004045da
add esp, 0xc
test eax, eax
je 0x40713c
mov eax, dword [ebp - 4]
cmp dword [eax + 0xa18], 0
je 0x40713c
push 0xc
call fcn.00403c1a
push eax
push dword [ebp + 8]
call fcn.0040131c
add esp, 0xc
cmp eax, 6
jne 0x40713c
push 2
lea eax, [ebp - 0x314]
push 0
push eax
push dword [ebp - 4]
call fcn.00404c94
add esp, 0x10
test eax, eax
je 0x40713c
lea eax, [ebp - 0x314]
push 5
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
leave
ret

Function at 0x40713e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push dword [ebp + 8]
call fcn.004045cd
lea ecx, [ebp + 8]
push ecx
push eax
call fcn.004045da
add esp, 0xc
test eax, eax
je 0x407193
mov eax, dword [ebp + 8]
cmp dword [eax + 0xa10], 0
jne 0x407193
push 1
lea ecx, [ebp - 0x310]
push 0
push ecx
push eax
call fcn.00404c94
add esp, 0x10
test eax, eax
je 0x407193
lea eax, [ebp - 0x310]
push 5
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
leave
ret

Function at 0x4072e5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov al, byte [0x40bc00]
push edi
push 0x41
mov byte [ebp - 0x108], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x108]
push eax
call fcn.00402cfc
lea eax, [ebp - 0x108]
mov dword [esp], 0x40b780
push eax
call fcn.0040315d
pop ecx
lea eax, [ebp - 0x108]
pop ecx
push 5
push 0x40bc00
push 0
push eax
push 0x40b07c
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
leave
ret
Function at 0x407e7c
Capabilities:
Set registry value

Disassembly:
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret

Function at 0x408279
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push esi
call fcn.004081a8
cmp dword [0x40c9a4], 0
mov esi, dword [ebp + 0xc]
je 0x4082bb
call fcn.00402dff
test eax, eax
je 0x4082a8
push esi
call fcn.004081d7
test eax, eax
pop ecx
jne 0x4082bb
push 0
push esi
push dword [ebp + 8]
push 0
call dword [0x40c9a4]
jmp 0x408350
mov al, byte [0x40bc00]
push edi
push 0x40
mov byte [ebp - 0x124], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x123]
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004081d7
pop ecx
pop edi
test eax, eax
lea eax, [ebp + 0xc]
push 0x20019
push eax
push 0x40b928
je 0x4082f8
push CreateStatusWindowA
jmp 0x4082fd
push 0x80000001
call fcn.00407d8b
add esp, 0x10
test eax, eax
jne 0x408337
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.004081f1
lea eax, [ebp - 0x124]
push 0x104
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
call fcn.00407df1
add esp, 0x18
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x124]
push eax
push esi
call sub.MSVCRT.dll_strcpy
xor eax, eax
pop ecx
cmp byte [esi], al
pop ecx
setne al
pop esi
leave
ret

Function at 0x408353
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
push 0xe
pop ecx
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x24], 0
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x30], 0x40b96c
mov dword [ebp - 0x28], 0x40bc00
mov dword [ebp - 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop edi
leave
ret
Function at 0x4085e3
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
lea eax, [ebp - 0x20]
push edi
push eax
xor ebx, ebx
push dword [ebp + 8]
mov dword [ebp - 0x20], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [ebp - 4], eax
jbe 0x408798
mov esi, dword [ebp + 0xc]
push 0x810
push ebx
push esi
call sub.MSVCRT.dll_memset
push dword [ebp - 4]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x10
mov edi, eax
push edi
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
push 0x40b234
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x408679
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], ebx
mov ecx, dword [eax + 0x30]
mov dword [esi + 4], ecx
mov ecx, dword [eax + 8]
mov dword [esi], ecx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0xc], ecx
mov eax, dword [eax + 0x10]
mov dword [esi + 8], eax
je 0x408681
push 1
push edi
call fcn.004085b6
pop ecx
pop ecx
jmp 0x40879a
cmp dword [ebp + 0x10], ebx
je 0x408681
push ebx
jmp 0x40866c
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x40bac8
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4086d0
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x18]
push 0x40babc
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x18]
push 0x40bc00
push eax
push edi
call fcn.00408520
add esp, 0x20
test eax, eax
jne 0x4086e0
lea eax, [ebp - 0x18]
push 0x40bab0
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x18]
push 0x40b504
push eax
push edi
call fcn.00408520
lea eax, [esi + 0x110]
push eax
lea eax, [ebp - 0x18]
push 0x40b4f4
push eax
push edi
call fcn.00408520
lea eax, [esi + 0x210]
push eax
lea eax, [ebp - 0x18]
push 0x40b4e8
push eax
push edi
call fcn.00408520
lea eax, [esi + 0x310]
push eax
lea eax, [ebp - 0x18]
push 0x40baa0
push eax
push edi
call fcn.00408520
add esp, 0x40
lea eax, [esi + 0x410]
push eax
lea eax, [ebp - 0x18]
push 0x40b4dc
push eax
push edi
call fcn.00408520
lea eax, [esi + 0x510]
push eax
lea eax, [ebp - 0x18]
push 0x40ba90
push eax
push edi
call fcn.00408520
lea eax, [esi + 0x610]
push eax
lea eax, [ebp - 0x18]
push 0x40ba80
push eax
push edi
call fcn.00408520
add esi, 0x710
lea eax, [ebp - 0x18]
push esi
push 0x40ba6c
push eax
push edi
call fcn.00408520
add esp, 0x40
jmp 0x40866a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b3160
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x98000]
push edi
or ebp, 0xffffffff
jmp 0x4b3182
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b3189
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b3178
mov eax, 1
add ebx, ebx
jne 0x4b319b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b31ac
jne 0x4b31cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b31cb
dec eax
add ebx, ebx
jne 0x4b31b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b3190
add ebx, ebx
jne 0x4b31c7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b321d
xor ecx, ecx
sub eax, 3
jb 0x4b31e3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b3252
sar eax, 1
mov ebp, eax
jmp 0x4b31ee
add ebx, ebx
jne 0x4b31ee
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b31bc
inc ecx
add ebx, ebx
jne 0x4b31fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b31bc
add ebx, ebx
jne 0x4b3209
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b31fe
jne 0x4b321a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b31fe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b323c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b322e
jmp 0x4b317e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b323c
add edi, ecx
jmp 0x4b317e
pop esi
mov edi, esi
mov ecx, 0x14ed
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b325a
cmp byte [edi], 0xe
jne 0x4b325a
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 0x4b325f
lea edi, [esi + 0xb0000]
mov eax, dword [edi]
or eax, eax
je 0x4b32ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb31b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb3268]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b328c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb3270]
or eax, eax
je 0x4b32c8
mov dword [ebx], eax
add ebx, 4
jmp 0x4b32a9
call dword [esi + 0xb326c]
mov ebp, dword [esi + 0xb3274]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x4b3302
sub esp, 0xffffff80
jmp 0x42a83c