joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c1d7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4c5258]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46c21d
cmp word [ebx], dx
jne 0x46c21d
or byte [eax + edi + 0x28], 4
jmp 0x46c222
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x46c385
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x46c365
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x46c263
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46c299
cmp eax, edx
jae 0x46c2a7
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x46c23e
jmp 0x46c385
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46c360
cmp dword [ebp - 0x18], 0
je 0x46c360
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4c5258]
test byte [eax + edi + 0x28], 0x48
je 0x46c336
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x46c2fa
mov word [esi], cx
jmp 0x46c331
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4c5258]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4c5258]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4c5258]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x46c385
pop eax
cmp word [ebp - 4], ax
jne 0x46c346
cmp esi, ebx
jne 0x46c346
mov word [esi], ax
jmp 0x46c382
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0046cd6a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x46c385
push 0xd
pop eax
jmp 0x46c341
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4c5258]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x46c37f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x46c385
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46d134
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0045a340
mov eax, dword [0x4bb050]
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.00468788
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x46d176
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x46d2d2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00476500
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 + 0x4c5258]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0046cd4c
mov ecx, dword [esi*4 + 0x4c5258]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x46d2cb
cmp eax, dword [ecx + edi + 0x24]
jne 0x46d2cb
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46d2cb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046cd4c
add esp, 0x14
test edx, edx
jl 0x46d2cb
jg 0x46d241
test eax, eax
jb 0x46d2cb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x46d2cb
jl 0x46d25b
cmp dword [ebp - 0x1008], eax
ja 0x46d2cb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x46d279
test ebx, ebx
je 0x46d2b2
cmp ecx, edi
jae 0x46d2b2
mov al, byte [ecx]
cmp al, 0xd
jne 0x46d293
lea eax, [edi - 1]
cmp ecx, eax
jae 0x46d29f
cmp byte [ecx + 1], 0xa
jne 0x46d29f
inc ecx
jmp 0x46d29f
movzx eax, al
movsx eax, byte [eax + 0x4bb998]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x46d279
cmp edx, ebx
jne 0x46d279
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x46d2d0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0045a329
leave
ret
Function at 0x46f966
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4bb050]
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 0x46f9b1
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0046fb01
test al, al
jne 0x46f9ab
sub edx, 2
cmp edx, edi
jne 0x46f991
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x46f9d3
lea eax, [edi + 2]
cmp edx, eax
je 0x46f9d3
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0046f8b2
add esp, 0x10
jmp 0x46facd
push esi
lea ecx, [ebp - 0x255]
call fcn.0046fb01
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 0x46fa16
push dword [ebp - 0x25c]
jmp 0x46f9c3
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 0x46fa53
cmp word [ebp - 0x226], 0
je 0x46fa74
cmp word [ebp - 0x226], ax
jne 0x46fa53
cmp word [ebp - 0x224], 0
je 0x46fa74
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0046f8b2
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x46fac0
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x46fa2d
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x46faa8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x46facd
push 0x46f6e2
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004642e0
add esp, 0x10
jmp 0x46fa9d
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.0045a329
leave
ret

Function at 0x46fc07
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x46fc18
pop esi
ret
push ebx
push edi
push esi
call fcn.0046fbd0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00466c62
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x46fc40
push ebx
push esi
push edi
call fcn.0045b7a0
add esp, 0xc
push 0
call fcn.00466c28
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x470010
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046fc55
Function at 0x47376a
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.004736e6
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4738d9
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4738d9
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x47388e
jg 0x4737c6
test eax, eax
je 0x473884
push 1
push 0x1000
call fcn.00466d4c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4737e9
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x47387b
push 0x8000
push ebx
call fcn.004665b5
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x473812
jg 0x47380d
cmp ecx, 0x1000
jb 0x473812
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004717e6
add esp, 0x10
cmp eax, 0xffffffff
je 0x473857
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 0x47380d
jl 0x47383e
test ecx, ecx
jne 0x4737ff
push dword [ebp - 0xc]
push ebx
call fcn.004665b5
push esi
call fcn.00466c28
add esp, 0xc
xor ebx, ebx
jmp 0x4738e7
cmp byte [edi + 0x24], 0
je 0x47386e
cmp dword [edi + 0x20], 5
jne 0x47386e
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x473879
mov ebx, dword [edi + 0x18]
jmp 0x47387b
xor ebx, ebx
push esi
call fcn.00466c28
pop ecx
jmp 0x4738e7
test ecx, ecx
jg 0x473850
jl 0x47388e
test eax, eax
jae 0x473850
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046cd6a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4738ae
cmp byte [edi + 0x1c], 0
je 0x473850
jmp 0x4738df
push ebx
call fcn.00470499
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x473850
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 0x4738e7
cmp byte [edi + 0x1c], 0
je 0x4738e4
mov ebx, dword [edi + 0x18]
jmp 0x4738e7
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0046cd6a
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x474840
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
push ebp
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.00474a50
add esp, 0xc
test eax, eax
js 0x474a47
push ebx
push esi
push edi
mov edi, dword [ebp + 0xf0]
xor ebx, ebx
shl edi, 2
test edi, edi
jle 0x4748c0
lea esi, [ebp + 8]
lea esi, [esi + edi*4]
lea eax, [ebp + 8]
nop dword [eax]
mov edx, dword [eax - 8]
lea eax, [eax + 0x10]
mov ecx, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [eax - 0x18], ecx
add ebx, 4
mov ecx, dword [esi + 0xc]
sub edi, 4
mov dword [esi + 8], edx
mov edx, dword [eax - 0x14]
mov dword [eax - 0x14], ecx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [eax - 0x10]
mov dword [eax - 0x10], ecx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [eax - 0xc]
mov dword [eax - 0xc], ecx
mov dword [esi + 0x14], edx
cmp ebx, edi
jl 0x474880
mov edi, 1
cmp dword [ebp + 0xf0], edi
jle 0x474a42
lea esi, [ebp + 4]
movzx eax, byte [esi + 0xd]
lea esi, [esi + 0x10]
mov edx, dword [esi - 4]
inc edi
movzx ecx, byte [eax*4 + 0x495060]
mov eax, edx
shr eax, 0x18
mov ecx, dword [ecx*4 + 0x496460]
movzx eax, byte [eax*4 + 0x495060]
xor ecx, dword [eax*4 + 0x495c60]
movzx eax, byte [esi - 2]
movzx eax, byte [eax*4 + 0x495060]
xor ecx, dword [eax*4 + 0x496060]
movzx eax, dl
mov edx, dword [esi]
movzx eax, byte [eax*4 + 0x495060]
xor ecx, dword [eax*4 + 0x496860]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [esi - 4], ecx
movzx ecx, byte [eax*4 + 0x495060]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x496060]
movzx eax, byte [eax*4 + 0x495060]
xor ecx, dword [eax*4 + 0x496460]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x495060]
xor ecx, dword [eax*4 + 0x495c60]
movzx eax, dl
mov edx, dword [esi + 4]
movzx eax, byte [eax*4 + 0x495060]
xor ecx, dword [eax*4 + 0x496860]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [esi], ecx
movzx ecx, byte [eax*4 + 0x495060]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x496060]
movzx eax, byte [eax*4 + 0x495060]
xor ecx, dword [eax*4 + 0x496460]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x495060]
xor ecx, dword [eax*4 + 0x495c60]
movzx eax, dl
mov edx, dword [esi + 8]
movzx eax, byte [eax*4 + 0x495060]
xor ecx, dword [eax*4 + 0x496860]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [esi + 4], ecx
movzx ecx, byte [eax*4 + 0x495060]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x496060]
movzx eax, byte [eax*4 + 0x495060]
xor ecx, dword [eax*4 + 0x496460]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x495060]
xor ecx, dword [eax*4 + 0x495c60]
movzx eax, dl
movzx eax, byte [eax*4 + 0x495060]
xor ecx, dword [eax*4 + 0x496860]
mov dword [esi + 8], ecx
cmp edi, dword [ebp + 0xf0]
jl 0x4748d4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4764c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4764ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4764ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x42e004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x1000c500
Capabilities:
Get process heap flags
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x10]
mov esi, edx
push ebx
mov ebx, eax
lea eax, [ebp - 0x14]
sub esp, 0x34
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], ebx
mov dword [ebp - 0x18], eax
call eax
sub esp, 0x18
test eax, eax
jne 0x1000c558
mov eax, dword [ebp - 0x14]
sub eax, 1
cmp eax, 1
jbe 0x1000c560
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000c558
mov ecx, dword fs:[0x18]
mov dword [ebp - 0x24], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x28], eax
call eax
sub esp, 0xc
test eax, eax
je 0x1000c558
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [ebp - 0x20], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], ebx
mov eax, dword [ebp - 0x18]
call eax
sub esp, 0x18
mov dword [esp + 4], 0x10013bd8
mov edx, dword [ebp - 0x20]
mov dword [esp], edx
mov dword [ebp - 0x18], edx
call dword [sym.imp.kernel32.dll_lstrcmpiW]
mov edx, dword [ebp - 0x18]
sub esp, 8
test eax, eax
je 0x1000c60c
cmp dword [ebp - 0x14], 2
je 0x1000c66f
test byte [0x10010060], 8
jne 0x1000c638
mov dword [esp], edx
mov dword [ebp - 0x18], edx
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
sub esp, 4
mov dword [ebx], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x1000c558
mov eax, edx
mov dword [ebp - 0x18], edx
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0xc], str.loading__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.load_mapi_provider
mov dword [esp + 4], 0x10010060
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
mov edx, dword [ebp - 0x18]
jmp 0x1000c5f5
mov dword [esp], edx
mov ebx, dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call ebx
sub esp, 0xc
mov edi, eax
lea eax, [eax + eax + 1]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov esi, dword [ebp - 0x28]
call esi
mov edx, dword [ebp - 0x18]
sub esp, 0xc
test eax, eax
mov esi, eax
je 0x1000c5ec
add edi, 1
mov dword [esp], edx
mov dword [esp + 8], edi
mov dword [esp + 4], eax
call ebx
mov edx, dword [ebp - 0x18]
sub esp, 0xc
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, esi
sub esp, 0xc
jmp 0x1000c5ec
Function at 0x1000c7d0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test byte [0x10010060], 8
jne 0x1000c860
mov eax, dword [0x10020070]
test eax, eax
je 0x1000c800
mov dword [ebp + 0xc], esi
mov dword [ebp + 8], ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp eax
test esi, esi
je 0x1000c8c9
add ebx, 4
mov dword [esp + 4], 0
mov dword [esp + 8], ebx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x1000c8d3
lea edi, [eax + 4]
test byte [0x10010060], 8
jne 0x1000c898
mov dword [ebx], 0
xor eax, eax
mov dword [esi], edi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__ld__p__n
mov dword [esp + 8], str.MAPIAllocateBuffer
mov dword [esp + 4], 0x10010060
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x1000c7e8
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.initial_allocation:_p__returning__p_n
mov dword [esp + 8], str.MAPIAllocateBuffer
mov dword [esp + 4], 0x10010060
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x1000c845
mov eax, 0x80070057
jmp 0x1000c84f
mov eax, 0x8007000e
jmp 0x1000c84f
Function at 0x1000e450
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x40
mov ebx, dword [ebp + 0xc]
test byte [0x10010060], 8
jne 0x1000e4a0
mov eax, dword [0x10020068]
test eax, eax
je 0x1000e4ed
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x10], ecx
mov edx, dword [ebp + 0x14]
mov dword [esp + 0xc], edx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov esi, dword [ebp + 8]
mov dword [esp], esi
call eax
sub esp, 0x14
mov edi, eax
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str._s__s__p__lu__d_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.FGetComponentPath
mov dword [esp + 4], 0x10010060
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
mov eax, dword [0x10020068]
test eax, eax
jne 0x1000e46e
mov eax, dword [ebp + 0x10]
xor edi, edi
mov byte [eax], 0
mov dword [esp], str.msi.dll
call dword [sym.imp.kernel32.dll_LoadLibraryA]
sub esp, 4
mov esi, eax
test eax, eax
je 0x1000e494
mov dword [esp + 4], str.MsiProvideQualifiedComponentA
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
sub esp, 8
test eax, eax
je 0x1000e571
cmp dword [ebp + 0x18], 1
mov dword [ebp - 0x28], esi
lea edx, [ebp - 0x20]
mov esi, eax
sbb edi, edi
mov dword [ebp - 0x24], edi
xor edi, edi
cmp ebx, edx
je 0x1000e590
test ebx, ebx
je 0x1000e590
lea ecx, [ebp + 0x14]
mov eax, esi
mov esi, dword [ebp - 0x28]
mov dword [esp + 0x10], ecx
mov edi, dword [ebp + 0x10]
mov dword [esp + 0xc], edi
mov edx, dword [ebp - 0x24]
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call eax
sub esp, 0x14
test eax, eax
je 0x1000e5fa
xor edi, edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov eax, edi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
call dword [sym.imp.kernel32.dll_GetUserDefaultUILanguage]
lea edx, [ebp - 0x20]
movzx eax, ax
mov dword [esp], edx
mov dword [esp + 8], eax
mov eax, dword [edi*4 + 0x10014098]
mov dword [esp + 4], eax
call sym._sprintf
lea eax, [ebp + 0x14]
lea edx, [ebp - 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call esi
sub esp, 0x14
test eax, eax
je 0x1000e5f7
lea edx, [ebp - 0x20]
add edi, 1
mov ebx, edx
cmp edi, 3
jne 0x1000e536
mov esi, dword [ebp - 0x28]
jmp 0x1000e56f
mov esi, dword [ebp - 0x28]
mov edi, 1
jmp 0x1000e571