joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402840
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x40287c
xor eax, eax
push ebx
nop dword [eax]
mov dh, al
mov ebx, eax
sub dh, 0x22
and ebx, 7
xor dh, byte [esi + eax]
mov ecx, 8
sub ecx, ebx
mov dl, dh
shl dl, cl
mov cl, bl
shr dh, cl
or dl, dh
mov byte [esi + eax], dl
inc eax
cmp eax, 3
jb 0x402850
pop ebx
mov byte [esi + 4], 0
pop esi
ret

Function at 0x402880
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
je 0x4028bc
xor eax, eax
push ebx
nop dword [eax]
mov dh, al
mov ebx, eax
sub dh, 0x22
and ebx, 7
xor dh, byte [esi + eax]
mov ecx, 8
sub ecx, ebx
mov dl, dh
shl dl, cl
mov cl, bl
shr dh, cl
or dl, dh
mov byte [esi + eax], dl
inc eax
cmp eax, 7
jb 0x402890
pop ebx
mov byte [esi + 8], 0
pop esi
ret

Function at 0x4028c0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x100], 0
je 0x402901
xor eax, eax
push ebx
nop
mov dh, al
mov ebx, eax
sub dh, 0x22
and ebx, 7
xor dh, byte [esi + eax]
mov ecx, 8
sub ecx, ebx
mov dl, dh
shl dl, cl
mov cl, bl
shr dh, cl
or dl, dh
mov byte [esi + eax], dl
inc eax
cmp eax, 0xff
jb 0x4028d0
pop ebx
mov byte [esi + 0x100], 0
pop esi
ret

Function at 0x402910
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
je 0x40294c
xor eax, eax
push ebx
nop dword [eax]
mov dh, al
mov ebx, eax
sub dh, 0x22
and ebx, 7
xor dh, byte [esi + eax]
mov ecx, 8
sub ecx, ebx
mov dl, dh
shl dl, cl
mov cl, bl
shr dh, cl
or dl, dh
mov byte [esi + eax], dl
inc eax
cmp eax, 8
jb 0x402920
pop ebx
mov byte [esi + 9], 0
pop esi
ret

Function at 0x402950
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x1e], 0
je 0x40298c
xor eax, eax
push ebx
nop dword [eax]
mov dh, al
mov ebx, eax
sub dh, 0x22
and ebx, 7
xor dh, byte [esi + eax]
mov ecx, 8
sub ecx, ebx
mov dl, dh
shl dl, cl
mov cl, bl
shr dh, cl
or dl, dh
mov byte [esi + eax], dl
inc eax
cmp eax, 0x1d
jb 0x402960
pop ebx
mov byte [esi + 0x1e], 0
pop esi
ret

Function at 0x402990
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x12], 0
je 0x4029cc
xor eax, eax
push ebx
nop dword [eax]
mov dh, al
mov ebx, eax
sub dh, 0x22
and ebx, 7
xor dh, byte [esi + eax]
mov ecx, 8
sub ecx, ebx
mov dl, dh
shl dl, cl
mov cl, bl
shr dh, cl
or dl, dh
mov byte [esi + eax], dl
inc eax
cmp eax, 0x11
jb 0x4029a0
pop ebx
mov byte [esi + 0x12], 0
pop esi
ret

Function at 0x4029d0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xb], 0
je 0x402a0c
xor eax, eax
push ebx
nop dword [eax]
mov dh, al
mov ebx, eax
sub dh, 0x22
and ebx, 7
xor dh, byte [esi + eax]
mov ecx, 8
sub ecx, ebx
mov dl, dh
shl dl, cl
mov cl, bl
shr dh, cl
or dl, dh
mov byte [esi + eax], dl
inc eax
cmp eax, 0xa
jb 0x4029e0
pop ebx
mov byte [esi + 0xb], 0
pop esi
ret
Function at 0x402a10
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 3], 0
je 0x402a4c
xor eax, eax
push ebx
nop dword [eax]
mov dh, al
mov ebx, eax
sub dh, 0x22
and ebx, 7
xor dh, byte [esi + eax]
mov ecx, 8
sub ecx, ebx
mov dl, dh
shl dl, cl
mov cl, bl
shr dh, cl
or dl, dh
mov byte [esi + eax], dl
inc eax
cmp eax, 2
jb 0x402a20
pop ebx
mov byte [esi + 3], 0
pop esi
ret

Function at 0x4035e7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403626
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403626
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403626
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403626
cmp dword [ecx + 0x74], 0xe
jbe 0x403626
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40c6df
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x40c72a
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040c878
test al, al
jne 0x40c724
sub edx, 2
cmp edx, edi
jne 0x40c70a
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40c74c
lea eax, [edi + 2]
cmp edx, eax
je 0x40c74c
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040c62b
add esp, 0x10
jmp 0x40c844
push esi
lea ecx, [ebp - 0x255]
call fcn.0040c878
sub edx, edi
xor ecx, ecx
sar edx, 1
inc edx
test al, al
lea eax, [ebp - 0x254]
cmovne ecx, edx
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
push ebx
push edi
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c78d
push dword [ebp - 0x25c]
jmp 0x40c73c
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40c7ca
cmp word [ebp - 0x226], 0
je 0x40c7eb
cmp word [ebp - 0x226], ax
jne 0x40c7ca
cmp word [ebp - 0x224], 0
je 0x40c7eb
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040c62b
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40c837
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40c7a4
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40c81f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40c844
push 0x40c45b
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00411900
add esp, 0x10
jmp 0x40c814
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402d62
leave
ret
Function at 0x40d37e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x40d38f
pop esi
ret
push ebx
push edi
push esi
call fcn.0040d347
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00409750
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40d3b7
push ebx
push esi
push edi
call fcn.00405750
add esp, 0xc
push 0
call fcn.00409a20
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40d786
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040d3cc
Function at 0x4117eb
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x411805
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x41181c
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x411874
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.0040d9b6
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x411874
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x411874
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x411874
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x41186e
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x411870
xor bl, bl
mov al, bl
jmp 0x411876
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x414e10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x414e3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x414e3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401400
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 0x10], 0x441030
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x23
mov dword [esp], 0
call sub.SHELL32.DLL_SHGetFolderPathA
sub esp, 0x14
call sub.msvcrt.dll_rand
mov edx, eax
mov eax, edx
sar eax, 0x1f
shr eax, 0x1f
lea eax, [edx + eax]
sar eax, 1
add eax, eax
sub edx, eax
mov eax, edx
add eax, 5
mov dword [esp], eax
call sym._u6d:18U_y7UYtUx7Q_6Tn7U_V7_:727UL:77U6L97:7
mov dword [esp + 4], 0x43e005
mov dword [esp], 0x441030
call sub.msvcrt.dll_strcat
mov dword [esp + 4], 0x43d000
mov dword [esp], 0x441030
call sub.msvcrt.dll_strcat
leave
ret

Function at 0x4015c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str.open
mov dword [esp], 0
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
leave
ret
Function at 0x401d36
Capabilities:
Create directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28c
mov dword [ebp - 0x23c], sym.__SjuU:y_8guntL__M_s3Sa3TL:7.7U7U5TL:7_7U7U_PcT
mov dword [ebp - 0x238], 0x43c046
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x18]
mov dword [eax], edx
mov edx, 0x401f6a
mov dword [eax + 4], edx
mov dword [eax + 8], esp
lea eax, [ebp - 0x254]
mov dword [esp], eax
call fcn.0040d0f0
add dword [0x441018], 0xfffffff9
adc dword [0x44101c], 0xffffffff
mov dword [esp + 0x10], 0x4410b0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x23
mov dword [esp], 0
mov dword [ebp - 0x250], 0xffffffff
call sub.SHELL32.DLL_SHGetFolderPathA
sub esp, 0x14
mov dword [esp + 4], 0x43e005
mov dword [esp], 0x4410b0
call sub.msvcrt.dll_strcat
mov dword [esp + 4], str.Saaaalamm
mov dword [esp], 0x4410b0
call sub.msvcrt.dll_strcat
mov dword [esp + 4], 0
mov dword [esp], 0x4410b0
call sub.KERNEL32.DLL_CreateDirectoryA
sub esp, 8
mov dword [esp + 4], str.Mira.h
mov dword [esp], 0x4410b0
call sub.msvcrt.dll_strcat
mov dword [esp + 4], 0x10
mov dword [esp], 4
call sym.:76Tz_697.t7K_X88nuWVx9_TP6TVz26zU_T97:j6TP_6TV2
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4410b0
lea eax, [ebp - 0x118]
mov dword [esp], eax
call sym.89Uy_77Uy_7U7Uy__R_eU7U7jB89Uy_77Uy_m6TQ7UIAyyyU
mov dword [esp + 4], 8
mov dword [esp], 4
call sym.:76Tz_697.t7K_X88nuWVx9_TP6TVz26zU_T97:j6TP_6TV2
mov dword [esp + 8], eax
mov dword [esp + 4], 0x43d040
lea eax, [ebp - 0x218]
mov dword [esp], eax
mov dword [ebp - 0x250], 2
call sym.89Uy_77Uy_7U7Uy__R_eU7U7jB89Uy_77Uy_m6TQ7UIAyyyU
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov eax, dword [ebp - 0x220]
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], edx
mov edx, dword [ebp - 0x25c]
cmp edx, dword [0x44101c]
jg 0x401f2b
mov eax, dword [ebp - 0x25c]
cmp eax, dword [0x44101c]
jl 0x401ed0
mov edx, dword [ebp - 0x260]
cmp edx, dword [0x441018]
jae 0x401f2b
mov dword [esp + 8], 1
mov dword [esp + 4], 0x441020
lea eax, [ebp - 0x218]
mov dword [esp], eax
mov dword [ebp - 0x250], 1
call sym.7U7U7U7U7U7U7U7U7U7U7U7U7U7U7U7U
mov dword [esp + 8], 1
mov dword [esp + 4], 0x441020
lea eax, [ebp - 0x118]
add eax, 8
mov dword [esp], eax
call sym.p5T4jmwh09_FyW8Tdl996tT477UE7U7UyWo_dlLAUQm7U
lea eax, [ebp - 0x220]
add dword [eax], 1
adc dword [eax + 4], 0
jmp 0x401e8e
lea eax, [ebp - 0x218]
mov dword [esp], eax
mov dword [ebp - 0x250], 1
call sym._y_WMjA7SyU___yU7UEUT6_Uy__R_eyU7U7jb89Uy_T_YzT6uy789
lea eax, [ebp - 0x118]
mov dword [esp], eax
call sym._y_WMjA7SyU___yU7UEUT6_Uy__R_eyU7U7jb89Uy_T_YzT6uy789
mov dword [esp + 4], 2
mov dword [esp], 0x4410b0
call sub.KERNEL32.DLL_SetFileAttributesA
sub esp, 8
jmp 0x401fb6
lea eax, [ebp - 0x218]
mov dword [esp], eax
mov dword [ebp - 0x250], 2
call sym.Ea_C_2E7UUUkllL7U_C_._87LI_k_2AK_U7
jmp 0x402018
lea eax, [ebp - 0x118]
mov dword [esp], eax
mov dword [ebp - 0x250], 0xffffffff
call sym.Ea_C_2E7UUUkllL7U_C_._87LI_k_2AK_U7
lea eax, [ebp - 0x254]
mov dword [esp], eax
call fcn.0040d1d0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4040a0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
je 0x4040d6
mov dword [0x4451d0], eax
mov edx, sym._yzU_V76T_V77UBKCuy677dkThT__J66TCW_T_6Ky_6_6T6_.T9
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040cb80
test eax, eax
sete al
movzx eax, al
mov dword [0x43d0f0], eax
leave
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [0x43d0f0], eax
leave
ret
Function at 0x4041c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0xc]
sub esp, 0x68
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], sym.__SjuU:y_8guntL__M_s3Sa3TL:7.7U7U5TL:7_7U7U_PcT
mov dword [ebp - 0x24], 0x43c6d4
mov dword [ebp - 0x1c], 0x404280
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call fcn.0040d0f0
cmp dword [0x43d0f0], 0
mov dword [ebp - 0x44], 0x4451e0
je 0x404260
jl 0x4042a0
mov dword [ebp - 0x3c], 1
mov eax, dword [0x4451d0]
mov dword [ebp - 0x4c], eax
mov eax, dword [sym.imp.KERNEL32.DLL_GetLastError]
call eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, dword [ebp - 0x54]
sub esp, 4
test eax, eax
mov dword [ebp - 0x48], eax
je 0x404343
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
lea esi, [esi]
lea eax, [ebp - 0x40]
mov dword [esp], eax
call fcn.0040d1d0
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, dword [0x4457f0]
mov eax, 0xffffffff
test edx, edx
je 0x4042ba
mov eax, dword [0x43d0f4]
test eax, eax
je 0x4042fa
xor eax, eax
test eax, eax
jne 0x4042f0
mov edi, dword [0x43d0f0]
test edi, edi
js 0x4042f0
mov dword [ebp - 0x44], 0x4451e0
mov ebx, dword [0x43d0f0]
test ebx, ebx
je 0x404260
jmp 0x40420e
xor esi, esi
mov dword [0x43d0f0], esi
jmp 0x4042c8
mov dword [esp], 0x43d0f8
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.DLL_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x404381
mov eax, dword [0x43d0f4]
test eax, eax
jne 0x4042b8
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.DLL_Sleep]
mov dword [ebp - 0x3c], 1
call eax
sub esp, 4
mov eax, dword [0x43d0f4]
test eax, eax
je 0x40431d
jmp 0x4042b8
mov dword [esp], 8
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x404375
mov dword [esp + 4], eax
mov eax, dword [0x4451d0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x4043aa
test edx, edx
je 0x404395
mov dword [ebp - 0x3c], 1
call sym.:.6T_66VBKCJ6Ta:_8_FD7U__8_6Tm6T8U7zS_6:6TwY6T_5Tzd:5T8U_
call sym.77UBKCuy677dkThT__J66TCW_T_6Ky_6_6T6_.T96T_W6Ky_6_
mov eax, 1
mov dword [0x43d0f4], eax
jmp 0x4042b8
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x404256
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
jmp 0x404371
Function at 0x4099f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._v6o7FN7U__u6_U_6BZ6T
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
mov ebx, eax
jne 0x409a3c
call sub.msvcrt.dll__errno
cmp dword [eax], 4
je 0x409a10
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40ca20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.0040db40
call fcn.0040cc80
call sub.KERNEL32.DLL_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x40ca58
jmp 0x40caf6
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x40ca57
cmp cl, 0x22
je 0x40cab0
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x40cad0
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x40cad0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x40ca90
jmp 0x40cad0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x40cab0
cmp cl, 0x22
je 0x40cb32
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x40caf0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete dl
cmp cl, 9
sete al
or eax, edx
test al, 1
jne 0x40cae0
mov dword [esp], 0
call sub.KERNEL32.DLL_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x40cb14
movzx edx, word [ebp - 0x28]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sym.V7_:727UL:77U6L97:76Tz_697.t7K_X88nuWVx9_TP
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x40cad0

Function at 0x40cfe0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x445850]
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
je 0x40d020
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call fcn.0040cb80
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x716770
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x217000]
push edi
or ebp, 0xffffffff
jmp 0x716792
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x716799
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x716788
mov eax, 1
add ebx, ebx
jne 0x7167ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7167bc
jne 0x7167db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7167db
dec eax
add ebx, ebx
jne 0x7167c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7167a0
add ebx, ebx
jne 0x7167d7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x71682d
xor ecx, ecx
sub eax, 3
jb 0x7167f3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x716862
sar eax, 1
mov ebp, eax
jmp 0x7167fe
add ebx, ebx
jne 0x7167fe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7167cc
inc ecx
add ebx, ebx
jne 0x71680c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7167cc
add ebx, ebx
jne 0x716819
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x71680e
jne 0x71682a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x71680e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x71684c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x71683e
jmp 0x71678e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x71684c
add edi, ecx
jmp 0x71678e
pop esi
mov edi, esi
mov ecx, 0x3842
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x71686a
cmp byte [edi], 0x15
jne 0x71686a
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 0x71686f
lea edi, [esi + 0x313000]
mov eax, dword [edi]
or eax, eax
je 0x7168e7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x31afcc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x31b090]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x71689c
mov ecx, edi
jns 0x7168cb
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 + 0x31b098]
or eax, eax
je 0x7168e1
mov dword [ebx], eax
add ebx, 4
jmp 0x7168b9
call dword [esi + 0x31b094]
mov ebp, dword [esi + 0x31b09c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x71691b
sub esp, 0xffffff80
jmp 0x470a51
Function at 0x424170
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4f210b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004e6a88
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4241f2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004e4508
mov eax, dword [eax]
push 0x51bcd8
push eax
call fcn.004d66a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004e6d13
test bl, bl
je 0x4241f2
push 0x51bcd8
lea ecx, [esp + 0xc]
call fcn.004e70a3
push 0x51bce4
lea ecx, [esp + 0xc]
call fcn.004e70a3
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x42422e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004e6d13
jmp 0x4242f9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA_1]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4242b2
lea edx, [esp + 0x7c]
push 0x51bce0
push edx
call fcn.004d66a4
add esp, 8
test eax, eax
je 0x4242b2
lea eax, [esp + 0x7c]
push 0x51bcdc
push eax
call fcn.004d66a4
add esp, 8
test eax, eax
je 0x4242b2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x424242
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004e6d13
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x424af0
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_1]
mov esi, eax
test esi, esi
jne 0x424b52
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_1]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey_1]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc