joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4065f0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 0x95], dl
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xa0], esi
cmp eax, 0x20
jbe 0x4066da
push 0x6c
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.00410240
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0x6a09e667
mov dword [ebp - 0x84], 0xbb67ae85
mov dword [ebp - 0x80], 0x3c6ef372
mov dword [ebp - 0x7c], 0xa54ff53a
mov dword [ebp - 0x78], 0x510e527f
mov dword [ebp - 0x74], 0x9b05688c
mov dword [ebp - 0x70], 0x1f83d9ab
mov dword [ebp - 0x6c], 0x5be0cd19
mov dword [ebp - 0x28], 0
test eax, eax
je 0x4066a6
push eax
mov edx, esi
lea ecx, [ebp - 0x90]
call fcn.00408cf0
add esp, 4
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x90]
call fcn.00408da0
mov eax, 0x6c
lea ecx, [ebp - 0x90]
nop
mov byte [ecx], 0
lea ecx, [ecx + 1]
dec eax
jne 0x4066c0
lea eax, [ebp - 0x24]
mov dword [ebp - 0xa0], eax
mov eax, 0x20
mov dword [ebp + 0xc], eax
mov cl, byte [ebp - 0x95]
lea esi, [ebp - 0x94]
mov byte [ebp - 0x93], al
mov edx, 0x40
mov eax, dword [ebx]
mov byte [ebp - 0x94], cl
mov ecx, eax
push edi
mov edi, 2
and ecx, 0x3f
add eax, edi
sub edx, ecx
mov dword [ebp - 0x9c], edx
mov dword [ebx], eax
cmp eax, edi
jae 0x406717
inc dword [ebx + 4]
test ecx, ecx
je 0x406791
cmp edx, edi
ja 0x406791
push edx
lea eax, [ebp - 0x94]
push eax
lea eax, [ebx + 0x28]
add eax, ecx
push eax
call fcn.00411150
add esp, 0xc
lea edx, [ebx + 0x28]
mov ecx, ebx
call fcn.004080f0
sub edi, dword [ebp - 0x9c]
lea esi, [ebp - 0x94]
add esi, dword [ebp - 0x9c]
xor ecx, ecx
mov dword [ebp - 0xa4], ecx
cmp edi, 0x40
jb 0x40678d
mov eax, edi
shr eax, 6
mov dword [ebp - 0x9c], eax
lea esp, [esp]
mov edx, esi
mov ecx, ebx
call fcn.004080f0
add esi, 0x40
sub edi, 0x40
dec dword [ebp - 0x9c]
jne 0x406770
mov ecx, dword [ebp - 0xa4]
test edi, edi
je 0x4067a1
push edi
lea eax, [ebx + 0x28]
add eax, ecx
push esi
push eax
call fcn.00411150
add esp, 0xc
mov eax, dword [ebp + 0xc]
pop edi
test eax, eax
je 0x4067ba
mov edx, dword [ebp - 0xa0]
mov ecx, ebx
push eax
call fcn.00408cf0
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a5bf
mov esp, ebp
pop ebp
ret
Function at 0x406c20
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x422064]
push ebx
mov ebx, edx
push esi
mov esi, 0x20
mov dword [ebp - 0x38], esi
test eax, eax
je 0x406e04
mov ecx, dword [0x42206c]
mov dword [ebp - 0x28], ecx
test ecx, ecx
je 0x406e04
cmp dword [eax + 0xc], esi
jae 0x406caa
push dword [0x422068]
mov eax, dword [eax + 0x10]
call eax
mov eax, dword [0x422064]
push esi
push ebx
push dword [0x422068]
mov eax, dword [eax + 0x14]
call eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [0x422064]
push dword [0x422068]
mov eax, dword [eax + 0x18]
call eax
mov eax, dword [0x422064]
lea ebx, [ebp - 0x24]
mov ecx, dword [0x42206c]
add esp, 0x18
mov dword [ebp - 0x28], ecx
mov esi, dword [eax + 8]
mov dword [ebp - 0x38], esi
mov eax, dword [eax + 0xc]
push edi
push eax
push 0x36
lea edi, [eax + ecx]
push ecx
mov dword [ebp - 0x3c], edi
call fcn.00410240
mov eax, dword [0x422064]
push dword [eax + 0xc]
push 0x5c
push edi
call fcn.00410240
add esp, 0x18
xor edx, edx
test esi, esi
je 0x406db6
cmp esi, 0x10
jb 0x406d8c
lea ecx, [ebx - 1]
lea eax, [edi - 1]
add ecx, esi
add eax, esi
cmp edi, ecx
ja 0x406cf9
cmp eax, ebx
jae 0x406d8c
mov ecx, dword [ebp - 0x28]
lea eax, [ecx - 1]
add eax, esi
cmp edi, eax
lea eax, [edi - 1]
lea eax, [eax + esi]
ja 0x406d13
cmp eax, ecx
jae 0x406d8f
lea eax, [ebx - 1]
add eax, esi
cmp ecx, eax
ja 0x406d25
lea eax, [ecx - 1]
add eax, esi
cmp eax, ebx
jae 0x406d8f
mov edi, ecx
mov dword [ebp - 0x2c], esi
mov ecx, dword [ebp - 0x28]
sub edi, ebx
mov eax, esi
mov dword [ebp - 0x34], edi
mov edi, dword [ebp - 0x3c]
and eax, 0xf
sub dword [ebp - 0x2c], eax
mov eax, ebx
mov dword [ebp - 0x30], edi
sub dword [ebp - 0x30], ebx
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
jmp 0x406d50
movdqu xmm0, xmmword [eax]
add edx, 0x10
lea eax, [eax + 0x10]
movdqu xmm1, xmmword [edi + eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [edi + eax - 0x10], xmm1
movdqu xmm1, xmmword [esi + eax - 0x10]
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [esi + eax - 0x10], xmm1
cmp edx, dword [ebp - 0x2c]
jb 0x406d50
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x3c]
jmp 0x406d8f
mov ecx, dword [ebp - 0x28]
cmp edx, esi
jae 0x406db6
sub ecx, ebx
lea eax, [ebx + edx]
sub edi, ebx
mov dword [ebp - 0x34], ecx
sub esi, edx
mov edx, ecx
movzx ecx, byte [eax]
lea eax, [eax + 1]
xor byte [eax + edx - 1], cl
movzx ecx, byte [eax - 1]
xor byte [eax + edi - 1], cl
dec esi
jne 0x406da1
mov eax, 0x20
lea ecx, [ebp - 0x24]
pop edi
nop
mov byte [ecx], 0
lea ecx, [ecx + 1]
dec eax
jne 0x406dc0
mov eax, dword [0x422064]
push dword [0x422068]
mov eax, dword [eax + 0x10]
call eax
mov eax, dword [0x422064]
push dword [eax + 0xc]
mov eax, dword [eax + 0x14]
push dword [ebp - 0x28]
push dword [0x422068]
call eax
add esp, 0x10
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a5bf
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffaf00
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a5bf
mov esp, ebp
pop ebp
ret
Function at 0x408fd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
mov eax, ecx
push esi
mov esi, edx
mov dword [ebp - 4], eax
jle 0x40909b
push ebx
push edi
lea ecx, [eax + 0xf]
mov edi, eax
lea eax, [esi + 0xf]
mov dword [ebp - 8], ecx
xor ebx, ebx
mov dword [ebp - 0xc], eax
sub edi, esi
lea esp, [esp]
movdqu xmm2, xmmword [esi]
mov eax, dword [0x422064]
movdqu xmmword [ebp - 0x1c], xmm2
test eax, eax
je 0x409031
cmp dword [0x42206c], 0
je 0x409031
mov eax, dword [eax + 0x14]
push 0x10
push esi
push dword [0x422068]
call eax
movdqu xmm2, xmmword [ebp - 0x1c]
add esp, 0xc
push esi
mov edx, esi
mov ecx, 0x422080
call fcn.004028f0
add esp, 4
cmp esi, dword [ebp - 8]
ja 0x409070
mov eax, dword [ebp - 0xc]
add eax, ebx
cmp eax, dword [ebp - 4]
jb 0x409070
mov eax, esi
mov edx, 0x10
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
dec edx
jne 0x409057
mov eax, dword [ebp - 4]
jmp 0x409083
mov eax, dword [ebp - 4]
movdqu xmm1, xmmword [esi]
movdqu xmm0, xmmword [eax]
pxor xmm1, xmm0
movdqu xmmword [esi], xmm1
add ebx, 0x10
add esi, 0x10
sub edi, 0x10
movdqu xmmword [eax], xmm2
cmp ebx, dword [ebp + 8]
jl 0x409000
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a1a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2008
call fcn.00415af0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2004], eax
push esi
push edi
lea eax, [esp + 8]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [esp + 8], 0
lea esi, [esp + 8]
je 0x40a21a
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push esi
call edi
cmp eax, 3
je 0x40a1f4
cmp eax, 2
je 0x40a1f4
cmp eax, 4
jne 0x40a1fb
mov ecx, esi
call fcn.00409ea0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a200
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], cx
jne 0x40a1e2
mov ecx, dword [esp + 0x200c]
pop edi
pop esi
xor ecx, esp
call fcn.0040a5bf
mov esp, ebp
pop ebp
ret

Function at 0x40a230
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x41e6b8
movzx eax, cx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ebx, eax
push 0
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, dword [ebp + 8]
push ebx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, dword [esi]
mov edi, eax
lea ecx, [ebx + 1]
push ecx
call fcn.0040a5ce
push ebx
mov esi, eax
push edi
push esi
call fcn.00411150
add esp, 0x10
mov byte [ebx + esi], 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410053
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040b3f7
mov dword [ebp - 0x14], eax
cmp dword [0x422028], esi
jne 0x410146
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4100d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x410226
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x410226
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x410226
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x422028], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x42202c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x422030], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x422038], eax
test eax, eax
je 0x410143
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x422034], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41016b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41015e
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x410180
push 4
pop eax
jmp 0x410228
cmp dword [ebp - 0x14], esi
je 0x410180
push dword [0x422028]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x410165
mov eax, dword [0x422034]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4101de
cmp dword [0x422038], edi
je 0x4101de
push eax
call ebx
push dword [0x422038]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4101de
test eax, eax
je 0x4101de
call ecx
test eax, eax
je 0x4101d3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4101d3
test byte [ebp - 8], 1
jne 0x4101de
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41020e
mov eax, dword [0x42202c]
cmp eax, edi
je 0x41020b
push eax
call ebx
test eax, eax
je 0x41020b
call eax
mov esi, eax
test esi, esi
je 0x41020b
mov eax, dword [0x422030]
cmp eax, edi
je 0x41020b
push eax
call ebx
test eax, eax
je 0x41020b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x422028]
call ebx
test eax, eax
je 0x410226
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x410228
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a5bf
mov esp, ebp
pop ebp
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x490008], 0x8088405
inc edx
mov dword [ebx + 0x490008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cc40
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cc71
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cc59
add dl, dl
jne 0x41cc7c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cccd
xor eax, eax
add dl, dl
jne 0x41cc89
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd6a
add dl, dl
jne 0x41cc98
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cca3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ccae
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ccb9
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41ccc3
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cc68
mov eax, 1
add dl, dl
jne 0x41ccdb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cce6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ccd2
sub eax, ebx
mov ebx, 1
jne 0x41cd19
mov ecx, 1
add dl, dl
jne 0x41ccff
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cd0a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ccf6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cc68
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cd30
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cd3b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cd27
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cc68
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cd8b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cc68
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41e214
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4796d3
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e2c5
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e2ae
test esi, esi
jbe 0x41e2c5
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088dc
test eax, eax
jne 0x41e2a0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e2c5
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e27d
jmp 0x41e2c5
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e2c5
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4796da
ret
Function at 0x41eb1c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x47a0cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41eb57
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41eb70
lea eax, [ebp - 0x10]
mov edx, dword [0x492258]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41eb83
lea eax, [ebp - 0x10]
mov edx, dword [0x492258]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41eb8f
adc edx, 0
mov edx, dword [edx*4 + 0x4910e8]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41ec9d
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41ec90
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dcc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41ec90
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41ec90
cmp dx, 0x150
ja 0x41ec90
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41ec90
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41ecb5
inc ebx
cmp ebx, 0x19
jne 0x41eb49
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a0d2
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x466307]
shl eax, 2
mov dword [0x46630b], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00448040
pop edx
call fcn.00447fa4
call fcn.00448080
push 0
call fcn.004492a4
pop ecx
push 0x4662b0
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x46630f], eax
push 0
jmp fcn.0044d66c
Function at 0x4021d8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
push ebx
mov ebx, eax
mov eax, 0x466f80
call fcn.00448690
lea edx, [ebp - 0x128]
push edx
push 0x100
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea ecx, [ebp - 0x128]
push ecx
call fcn.00448454
pop ecx
movsx edx, byte [ebp + eax - 0x129]
cmp edx, 0x5c
je 0x402229
mov byte [ebp + eax - 0x128], 0x5c
mov byte [ebp + eax - 0x127], 0
mov word [ebp - 0x18], 8
lea edx, [ebp - 0x128]
lea eax, [ebp - 4]
call fcn.00451810
mov edx, eax
inc dword [ebp - 0xc]
lea eax, [ebx + 0x2fc]
call fcn.00451928
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004518f8
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40226c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
mov ebx, eax
mov eax, 0x467008
call fcn.00448690
mov word [ebp - 0x30], 8
xor edx, edx
mov dword [ebp - 4], edx
inc dword [ebp - 0x24]
mov word [ebp - 0x30], 0x14
mov ecx, dword [ebx + 0x2f8]
dec ecx
sub ecx, 2
jb 0x4022ad
je 0x40230c
dec ecx
je 0x402368
jmp 0x4023c2
mov word [ebp - 0x30], 0x20
mov edx, str.win95
lea eax, [ebp - 8]
call fcn.00451810
inc dword [ebp - 0x24]
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebx + 0x2fc]
inc dword [ebp - 0x24]
lea edx, [ebp - 8]
lea ecx, [ebp - 0xc]
call fcn.0045193c
lea edx, [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.00451928
dec dword [ebp - 0x24]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004518f8
dec dword [ebp - 0x24]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004518f8
jmp 0x4023c2
mov word [ebp - 0x30], 0x2c
mov edx, str.win98
lea eax, [ebp - 0x10]
call fcn.00451810
inc dword [ebp - 0x24]
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebx + 0x2fc]
inc dword [ebp - 0x24]
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.0045193c
lea edx, [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.00451928
dec dword [ebp - 0x24]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004518f8
dec dword [ebp - 0x24]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004518f8
jmp 0x4023c2
mov word [ebp - 0x30], 0x38
mov edx, str.winme
lea eax, [ebp - 0x18]
call fcn.00451810
inc dword [ebp - 0x24]
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebx + 0x2fc]
inc dword [ebp - 0x24]
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x1c]
call fcn.0045193c
lea edx, [ebp - 0x1c]
lea eax, [ebp - 4]
call fcn.00451928
dec dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004518f8
dec dword [ebp - 0x24]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004518f8
mov eax, dword [ebx + 0x2f8]
cmp eax, 1
jl 0x402424
cmp eax, 4
jg 0x402424
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x44]
push edx
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x4666c2
push 0x80000002
call sub.ADVAPI32.DLL_RegCreateKeyExA
push 4
cmp dword [ebp - 4], 0
je 0x402403
mov eax, dword [ebp - 4]
jmp 0x402408
mov eax, 0x4666fd
push eax
push 1
push 0
push str.SourcePath
mov edx, dword [ebp - 0x44]
push edx
call sub.ADVAPI32.DLL_RegSetValueExA
mov ecx, dword [ebp - 0x44]
push ecx
call sub.ADVAPI32.DLL_RegCloseKey
dec dword [ebp - 0x24]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004518f8
mov ecx, dword [ebp - 0x40]
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret