joyce8/EMBER2024-capa huggingface dataset:
Function at 0xcf36c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x68b000]
push edi
jmp 0xcf36da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xcf36e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xcf36d0
mov eax, 1
add ebx, ebx
jne 0xcf36f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xcf3704
jne 0xcf3723
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xcf3723
dec eax
add ebx, ebx
jne 0xcf3710
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xcf36e8
add ebx, ebx
jne 0xcf371f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xcf3775
xor ecx, ecx
sub eax, 3
jb 0xcf373b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xcf37aa
sar eax, 1
mov ebp, eax
jmp 0xcf3746
add ebx, ebx
jne 0xcf3746
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xcf3714
inc ecx
add ebx, ebx
jne 0xcf3754
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xcf3714
add ebx, ebx
jne 0xcf3761
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xcf3756
jne 0xcf3772
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xcf3756
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xcf3794
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xcf3786
jmp 0xcf36d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xcf3794
add edi, ecx
jmp 0xcf36d6
pop esi
mov edi, esi
mov ecx, 0x7f72
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xcf37b2
cmp byte [edi], 0x19
jne 0xcf37b2
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 0xcf37b7
lea edi, [esi + 0x8f1000]
mov eax, dword [edi]
or eax, eax
je 0xcf382f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8f3068]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8f3108]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xcf37e4
mov ecx, edi
jns 0xcf3813
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 + 0x8f310c]
or eax, eax
je 0xcf3829
mov dword [ebx], eax
add ebx, 4
jmp 0xcf3801
call dword [esi + 0x8f311c]
mov ebp, dword [esi + 0x8f3110]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
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 0xcf3863
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x40145b
Capabilities:
Encode data using xor

Disassembly:
jmp 0x418500
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x418647
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCacheEx]
push edi
mov edi, dword [esp + 0x10]
call ebx
add byte [esi + edi], 0x60
call ebx
add byte [esi + edi], 0xb7
call ebx
xor byte [esi + edi], 0x61
call ebx
add byte [esi + edi], 0xd0
call ebx
add byte [esi + edi], 0x1a
call ebx
add byte [esi + edi], 0x9b
call ebx
add byte [esi + edi], 0x31
call ebx
xor byte [esi + edi], 0x60
call ebx
add byte [esi + edi], 0x9f
call ebx
add byte [esi + edi], 0x70
call ebx
xor byte [esi + edi], 0xf9
call ebx
add byte [esi + edi], 0x90
call ebx
add byte [esi + edi], 0x8a
call ebx
add byte [esi + edi], 3
call ebx
add byte [esi + edi], 6
call ebx
add byte [esi + edi], 0x8b
call ebx
xor byte [esi + edi], 0x25
call ebx
add byte [esi + edi], 0x78
call ebx
add byte [esi + edi], 0xdb
call ebx
add byte [esi + edi], 0x7b
call ebx
add byte [esi + edi], 0x52
call ebx
add byte [esi + edi], 0xd
call ebx
add byte [esi + edi], 0x10
call ebx
add byte [esi + edi], 0x46
call ebx
dec byte [esi + edi]
call ebx
xor byte [esi + edi], 0x5e
call ebx
add byte [esi + edi], 7
call ebx
add byte [esi + edi], 0xee
call ebx
add byte [esi + edi], 0x33
call ebx
add byte [esi + edi], 0x43
call ebx
add byte [esi + edi], 0xf9
call ebx
xor byte [esi + edi], 0x3c
call ebx
xor byte [esi + edi], 0xe4
call ebx
xor byte [esi + edi], 0xf5
call ebx
add byte [esi + edi], 0x6a
call ebx
add byte [esi + edi], 0x84
call ebx
xor byte [esi + edi], 0x83
call ebx
add byte [esi + edi], 0x20
call ebx
add byte [esi + edi], 0x77
call ebx
xor byte [esi + edi], 0x64
call ebx
add byte [esi + edi], 0x59
call ebx
xor byte [esi + edi], 0x31
call ebx
add byte [esi + edi], 0xd2
call ebx
call ebx
add byte [esi + edi], 0x84
call ebx
xor byte [esi + edi], 0xb8
call ebx
add byte [esi + edi], 0x6c
call ebx
add byte [esi + edi], 0x3f
call ebx
add byte [esi + edi], 0x7b
inc esi
cmp esi, dword [esp + 0x14]
jb 0x418519
pop edi
pop ebx
pop esi
ret
Function at 0x403175
Capabilities:
Encode data using xor

Disassembly:
jmp 0x418e93
push ecx
push ebx
push esi
push edi
push str.Dont_afraid
push 0x58bf40
call fcn.0040321f
push eax
call fcn.00406e5b
mov edi, dword [esp + 0x20]
add esp, 0xc
lea eax, [edi + 0x10]
mov esi, dword [eax]
mov ebx, esi
xor ebx, dword [esp + 0x18]
cmp dword [edi + 0x14], 0x10
mov dword [esp + 0xc], eax
jb 0x418ece
mov edi, dword [edi]
mov dword [esp + 0x14], edi
push edi
shr esi, 2
push esi
push str._x_and__p
call fcn.00402522
add esp, 0xc
test esi, esi
je 0x418f27
push ebp
mov ebp, edi
mov edi, esi
push 4
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.0040626c
imul ecx, dword [esp + 0x28], 0x5bd1e991
add esp, 0xc
imul ebx, ebx, 0x5bd1e991
add ebp, 4
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebx, eax
mov dword [esp + 0x1c], eax
sub edi, 1
jne 0x418ee9
mov edi, dword [esp + 0x18]
pop ebp
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov eax, dword [eax]
and eax, 3
sub eax, 1
je 0x418f53
sub eax, 1
je 0x418f49
sub eax, 1
jne 0x418f61
movsx ecx, byte [edi + esi*4 + 2]
shl ecx, 0x10
movsx eax, byte [edi + esi*4 + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [edi + esi*4]
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebx, eax
mov eax, ebx
shr eax, 0xd
xor eax, ebx
imul ecx, eax, 0x5bd1e991
pop edi
pop esi
pop ebx
mov eax, ecx
shr eax, 0xf
xor eax, ecx
pop ecx
ret

Function at 0x403bb1
Capabilities:
Terminate process

Disassembly:
jmp 0x458b79
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x458b8a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004064d3
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403d37
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a16b2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a16c3
pop esi
ret
push ebx
push edi
push esi
call fcn.004a1599
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040478c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a16eb
push ebx
push esi
push edi
call fcn.0040626c
add esp, 0xc
push 0
call fcn.00406fe1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x406348
Capabilities:
Parse pe header

Disassembly:
jmp 0x44799f
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4479de
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4479de
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4479de
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4479de
cmp dword [ecx + 0x74], 0xe
jbe 0x4479de
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4073e7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x418ae5
sub esp, 0x20
mov eax, dword [0x588258]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x418b4e
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00402072
lea eax, [esp + 0x14]
push 0x14d
push eax
call fcn.00403175
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x418b66
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402d83
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x418b16
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040354e
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402d83
jmp 0x418b50
Function at 0x49a38c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401ff0
mov eax, dword [0x588258]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00406b36
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49a3ce
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49a52a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406cc1
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x58d578]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004037a6
mov ecx, dword [esi*4 + 0x58d578]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x49a523
cmp eax, dword [edi + ecx + 0x24]
jne 0x49a523
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49a523
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004037a6
add esp, 0x14
test edx, edx
jl 0x49a523
jg 0x49a499
test eax, eax
jb 0x49a523
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49a523
jl 0x49a4b3
cmp dword [ebp - 0x1008], eax
ja 0x49a523
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49a4d1
test ebx, ebx
je 0x49a50a
cmp ecx, edi
jae 0x49a50a
mov al, byte [ecx]
cmp al, 0xd
jne 0x49a4eb
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49a4f7
cmp byte [ecx + 1], 0xa
jne 0x49a4f7
inc ecx
jmp 0x49a4f7
movzx eax, al
movsx eax, byte [eax + 0x588db8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49a4d1
cmp edx, ebx
jne 0x49a4d1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49a528
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040354e
leave
ret
Function at 0x49fc51
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x588258]
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 0x49fc9c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a0113
test al, al
jne 0x49fc96
sub edx, 2
cmp edx, edi
jne 0x49fc7c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49fcbe
lea eax, [edi + 2]
cmp edx, eax
je 0x49fcbe
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049f84a
add esp, 0x10
jmp 0x49fdb8
push esi
lea ecx, [ebp - 0x255]
call fcn.004a0113
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49fd01
push dword [ebp - 0x25c]
jmp 0x49fcae
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 0x49fd3e
cmp word [ebp - 0x226], 0
je 0x49fd5f
cmp word [ebp - 0x226], ax
jne 0x49fd3e
cmp word [ebp - 0x224], 0
je 0x49fd5f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049f84a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49fdab
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49fd18
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49fd93
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49fdb8
push 0x49f232
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040607d
add esp, 0x10
jmp 0x49fd88
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.0040354e
leave
ret
Function at 0x4ab533
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x58d578]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4ab573
cmp byte [ebx], 0xa
jne 0x4ab573
or byte [eax + edi + 0x28], 4
jmp 0x4ab578
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4ab676
mov al, byte [edx]
cmp al, 0x1a
je 0x4ab658
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4ab5a7
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4ab5cc
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4ab5d6
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4ab589
jmp 0x4ab676
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ab653
cmp dword [ebp - 0xc], 0
je 0x4ab653
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x58d578]
test byte [eax + edi + 0x28], 0x48
je 0x4ab62d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4ab618
mov byte [esi], dl
jmp 0x4ab629
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x58d578]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4ab676
cmp byte [ebp - 1], 0xa
jne 0x4ab63c
cmp esi, ebx
jne 0x4ab63c
mov byte [esi], 0xa
jmp 0x4ab675
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401acd
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4ab676
mov byte [esi], 0xd
jmp 0x4ab675
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x58d578]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4ab672
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4ab676
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4ab6d2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x58d578]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4ab715
cmp word [esi], dx
jne 0x4ab715
or byte [edi + eax + 0x28], 4
jmp 0x4ab71a
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4ab86d
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4ab84d
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4ab75c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4ab792
cmp eax, edx
jae 0x4ab79e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4ab734
jmp 0x4ab86d
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ab849
cmp dword [ebp - 0x14], 0
je 0x4ab849
mov eax, dword [ebx*4 + 0x58d578]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4ab821
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4ab7ea
mov word [esi], cx
jmp 0x4ab81d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x58d578]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x58d578]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x58d578]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4ab86d
pop ebx
cmp word [ebp - 4], bx
jne 0x4ab832
cmp esi, dword [ebp + 0xc]
jne 0x4ab832
mov word [esi], bx
jmp 0x4ab86a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401acd
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4ab86d
push 0xd
jmp 0x4ab866
mov ecx, dword [ebx*4 + 0x58d578]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4ab864
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4ab86d
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x75970c63
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
loop 0x432060
nop
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x59d70290
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x412b9a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041285a
Function at 0x401c70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401c89
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401cc4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401cc0
lea ebx, [ebx]
cmp esi, eax
jae 0x401cc4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401cb0
cmp esi, eax
jb 0x401cca
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402150
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
xor ebp, ebp
push ebp
push ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebp
jbe 0x4021d9
push edi
push esi
call fcn.00488a0f
mov edi, eax
add esp, 4
cmp edi, ebp
je 0x4021cd
push edi
push esi
push ebp
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4021cd
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4021c4
mov edx, dword [esp + 0x10]
movzx eax, word [edx]
sub eax, 0x401
je 0x4021bf
sub eax, 0xc
je 0x4021bf
sub eax, 0x1c
jne 0x4021c4
mov ebp, 1
push edi
call fcn.004888bd
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret 4
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x406040
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b5f0b
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x4eb86c]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push esi
push edi
mov eax, dword [0x4eb86c]
xor eax, esp
push eax
lea eax, [esp + 0x428]
mov dword fs:[0], eax
mov edi, ecx
push str.CESInstallerApp::GetSetupPath
lea ecx, [esp + 0x14]
call fcn.00405a40
push 0x208
lea eax, [esp + 0x18]
push eax
push 0
mov dword [esp + 0x43c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jbe 0x406144
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x14]
push ecx
call ebx
lea eax, [esp + 0x14]
lea ecx, [edi + 0x124]
lea esi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4060d0
sub eax, esi
sar eax, 1
push eax
lea edx, [esp + 0x18]
push edx
call fcn.00401700
lea eax, [esp + 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x406144
lea ecx, [esp + 0x21c]
push ecx
call ebx
push str._ESINST_TEMP
lea edx, [esp + 0x220]
push edx
push str._s_s
add edi, 0x128
push edi
call fcn.00404ae0
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x430], 0xffffffff
call fcn.00403f90
mov al, 1
jmp 0x40615a
lea ecx, [esp + 0x10]
mov dword [esp + 0x430], 0xffffffff
call fcn.00403f90
xor al, al
mov ecx, dword [esp + 0x428]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.004888ae
add esp, 0x424
ret

Function at 0x406260
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4b5f7b
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4eb86c]
xor eax, esp
mov dword [esp + 0x84], eax
push esi
push edi
mov eax, dword [0x4eb86c]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov esi, dword [esp + 0xa4]
mov edi, dword [esp + 0xa8]
push str.CESInstallerApp::getMinimumSystem
lea ecx, [esp + 0x10]
call fcn.00405a40
cmp byte [0x4ed054], 0
push edi
mov dword [esp + 0xa0], 0
push 0x80
je 0x4062e0
lea eax, [esp + 0x18]
push eax
push 0x4c11c4
push str.NTx64_Ver
jmp 0x4062ef
lea ecx, [esp + 0x18]
push ecx
push 0x4c11a8
push str.NT_Ver
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x406371
mov dword [esi], 0
mov dword [esi + 4], 0
mov dl, byte [0x4ed054]
lea eax, [esp + 0x10]
push 0x4c1180
push eax
mov byte [esi + 8], dl
call fcn.0048979d
add esp, 8
test eax, eax
je 0x406359
push 0xa
push 0
push eax
call fcn.00489758
push 0x4c117c
push 0
mov dword [esi], eax
call fcn.0048979d
add esp, 0x14
test eax, eax
je 0x406359
push 0xa
push 0
push eax
call fcn.00489758
add esp, 0xc
mov dword [esi + 4], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x9c], 0xffffffff
call fcn.00403f90
mov al, 1
jmp 0x40639a
push str._ERROR_Minimum_operating_system_entry_doesnt_exist_n
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 8
lea ecx, [esp + 0xc]
mov dword [esp + 0x9c], 0xffffffff
call fcn.00403f90
xor al, al
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004888ae
add esp, 0x94
ret 8