joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437883
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov edx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp edx, esi
push edi
mov dword [ebp - 4], esi
jne 0x4378d7
mov edi, dword [0x4943d8]
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
jne 0x4378b5
xor eax, eax
cmp eax, esi
mov dword [ebp - 4], eax
mov edx, eax
jne 0x4378d7
push esi
push esi
push 3
push esi
push 3
push esi
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
jne 0x4378d2
xor eax, eax
mov dword [ebp - 4], eax
mov edx, eax
cmp edx, 0xffffffff
je 0x437921
cmp edx, esi
je 0x437921
push 9
pop ecx
xor eax, eax
push 0x28
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
lea edi, [ebp - 8]
stosd dword es:[edi], eax
mov dword [ebp - 0x38], esi
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
pop eax
push esi
lea ecx, [ebp + 0xc]
push ecx
push eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push edx
mov dword [ebp + 0xc], esi
call dword [fcn.004943dc]
mov esi, dword [ebp - 0x1c]
jmp 0x437924
or esi, 0xffffffff
lea ecx, [ebp - 4]
call fcn.00402b27
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x43b3cf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
push esi
mov esi, dword [ebp + 8]
cmp byte [esi], 0x23
sete al
test eax, eax
mov dword [ebp - 4], eax
je 0x43b3e9
inc esi
cmp byte [esi], 0x23
mov byte [ebp + 0xb], 0
jne 0x43b408
mov al, byte [esi + 1]
test al, al
jne 0x43b400
xor eax, eax
jmp 0x43b48a
inc dword [ebp - 4]
inc esi
mov byte [ebp + 0xb], al
inc esi
push ebx
push edi
mov edi, dword [fcn.00494488]
push esi
call edi
mov ebx, dword [ebp + 0xc]
lea eax, [eax + eax*2 + 3]
push eax
mov ecx, ebx
mov dword [ebp - 8], esi
call fcn.00435c7d
mov eax, dword [ebx]
xor cl, cl
mov byte [eax], 0
xor ebx, ebx
cmp byte [esi], cl
mov dword [ebp - 0xc], eax
je 0x43b450
mov dl, byte [esi]
cmp dl, 0x3d
jne 0x43b48d
test cl, cl
jle 0x43b447
mov byte [eax], bl
inc eax
xor ebx, ebx
xor cl, cl
inc esi
cmp byte [esi], 0
mov dword [ebp - 8], esi
jne 0x43b435
push dword [ebp - 0xc]
mov byte [eax], 0
call edi
xor ecx, ecx
cmp dword [ebp - 4], ecx
mov esi, eax
je 0x43b483
cmp esi, ecx
jle 0x43b483
mov eax, dword [ebp - 0xc]
lea edi, [ecx + eax]
mov eax, ecx
cdq
push 0x14
pop ebx
idiv ebx
mov al, byte [edx + 0x499be4]
xor al, byte [ebp + 0xb]
xor byte [edi], al
inc ecx
cmp ecx, esi
jl 0x43b465
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
pop edi
pop ebx
pop esi
leave
ret
cmp dl, 0x2b
jne 0x43b496
xor dl, dl
jmp 0x43b4bc
cmp dl, 0x2f
jne 0x43b4a0
add dl, 0xd2
jmp 0x43b4bc
cmp dl, 0x39
ja 0x43b4aa
add dl, 0xd2
jmp 0x43b4bc
cmp dl, 0x5a
ja 0x43b4b4
add dl, 0xcb
jmp 0x43b4bc
cmp dl, 0x7a
ja 0x43b4c1
add dl, 0xc5
movzx edx, dl
jmp 0x43b4c4
or edx, 0xffffffff
test edx, edx
jl 0x43b4f3
mov esi, dword [ebp - 8]
shl edx, cl
or ebx, edx
add cl, 6
cmp cl, 8
jge 0x43b4e8
test cl, cl
jle 0x43b447
cmp byte [esi], 0
jne 0x43b447
mov byte [eax], bl
inc eax
shr ebx, 8
add cl, 0xf8
jmp 0x43b4d2
xor eax, eax
jmp 0x43b488
Function at 0x43b4f7
Capabilities:
Encode data using base64
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [fcn.00494488]
mov ebx, eax
lea ecx, [ebp - 8]
mov edi, ebx
mov byte [ebp - 1], 0
call fcn.00435c39
cmp byte [ebp + 0x10], 0
jne 0x43b5cd
cmp ebx, 0x14
jge 0x43b52b
push 0x14
pop edi
lea eax, [edi + 4]
push eax
lea ecx, [ebp - 8]
call fcn.00435c7d
mov esi, dword [ebp - 8]
lea eax, [edi + 4]
push eax
push 0
push esi
call fcn.0047fd70
lea eax, [ebx + 1]
push eax
push dword [ebp + 8]
push esi
call fcn.004102e0
add esp, 0x18
xor eax, eax
test ebx, ebx
jle 0x43b56f
mov cl, byte [ebp - 1]
mov edx, dword [ebp + 8]
shl cl, 1
add cl, byte [eax + edx]
inc eax
cmp eax, ebx
mov byte [ebp - 1], cl
jl 0x43b55c
mov cl, byte [ebp - 1]
shr cl, 5
mov eax, ebx
sar eax, 2
add al, cl
mov cl, byte [ebp - 1]
shl cl, 3
add al, cl
mov cl, byte [ebp - 1]
shr cl, 2
add al, cl
add al, bl
movzx eax, al
cdq
push pe_nt_image_headers32
pop ecx
idiv ecx
xor ecx, ecx
test edi, edi
mov al, byte [edx + 0x499ba0]
mov byte [ebp - 1], al
jle 0x43b5cb
mov eax, dword [ebp - 8]
add eax, ecx
mov dword [ebp + 8], eax
mov eax, ecx
cdq
push 0x14
pop ebx
idiv ebx
mov eax, dword [ebp + 8]
mov dl, byte [edx + 0x499be4]
xor dl, byte [eax]
xor dl, byte [ebp - 1]
inc ecx
cmp ecx, edi
mov byte [eax], dl
jl 0x43b5a6
mov ebx, edi
lea eax, [ebx + ebx*2 + 0x10]
mov ebx, dword [ebp + 0xc]
push eax
mov ecx, ebx
call fcn.00435da9
mov eax, dword [ebx]
xor edx, edx
push 2
mov word [eax], dx
pop ecx
add eax, ecx
mov word [eax], dx
cmp byte [esi], dl
jne 0x43b5f6
mov esi, eax
jmp 0x43b6df
cmp byte [ebp + 0x10], 0
jne 0x43b614
movzx bx, byte [ebp - 1]
mov word [eax], 0x23
add eax, ecx
mov word [eax], 0x23
add eax, ecx
mov word [eax], bx
add eax, ecx
mov word [eax], dx
movzx ebx, byte [esi]
add edi, esi
inc esi
mov byte [ebp + 0xb], 8
cmp byte [ebp + 0xb], 6
jge 0x43b631
cmp byte [ebp + 0xb], 0
jle 0x43b693
cmp esi, edi
jne 0x43b695
mov dl, bl
and dl, 0x3f
cmp byte [ebp + 0x10], 0
je 0x43b647
movzx ecx, dl
mov cl, byte [ecx + 0x499ba0]
jmp 0x43b678
test dl, dl
jne 0x43b650
add dl, 0x2b
jmp 0x43b676
cmp dl, 1
jne 0x43b65a
add dl, 0x2e
jmp 0x43b676
cmp dl, 0xc
jae 0x43b664
add dl, 0x2e
jmp 0x43b676
cmp dl, 0x26
jae 0x43b66e
add dl, 0x35
jmp 0x43b676
cmp dl, 0x40
jae 0x43b676
add dl, 0x3b
mov cl, dl
movzx cx, cl
mov word [eax], cx
inc eax
inc eax
shr ebx, 6
add byte [ebp + 0xb], 0xfa
jns 0x43b621
mov word [eax], 0x3d
inc eax
inc eax
jmp 0x43b621
cmp esi, edi
jae 0x43b6cc
movzx edx, byte [esi]
mov cl, byte [ebp + 0xb]
add byte [ebp + 0xb], 8
shl edx, cl
or ebx, edx
inc esi
cmp esi, edi
jae 0x43b6cc
movzx edx, byte [esi]
mov cl, byte [ebp + 0xb]
add byte [ebp + 0xb], 8
shl edx, cl
or ebx, edx
inc esi
cmp esi, edi
jae 0x43b6cc
movzx edx, byte [esi]
mov cl, byte [ebp + 0xb]
shl edx, cl
or ebx, edx
inc esi
add byte [ebp + 0xb], 8
cmp byte [ebp + 0xb], 0
jg 0x43b621
and word [eax], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
lea ecx, [ebp - 8]
call fcn.0043092f
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43e7f3
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
cmp byte [ecx + 0x92], 0
jne 0x43e80b
test byte [ecx + 9], 0xf
jne 0x43e80b
pop ebp
jmp fcn.0043e6fb
pop ebp
jmp fcn.0043d5b3
Function at 0x476cc7
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0xc], 0x40
push edi
jae 0x476cda
xor eax, eax
jmp 0x476e90
push ebx
mov ebx, dword [ebp + 8]
cmp word [ebx], 0x5a4d
je 0x476cec
xor eax, eax
jmp 0x476e8f
push esi
mov esi, dword [ebx + 0x3c]
lea eax, [esi + 0xf8]
cmp dword [ebp + 0xc], eax
jl 0x476e8c
add esi, ebx
cmp dword [esi], 0x4550
jne 0x476e8c
mov ax, word [esi + 0x16]
test ah, 0x20
jne 0x476e8c
test al, 2
je 0x476e8c
cmp word [esi + 0x14], 0xe0
jne 0x476e8c
lea edi, [esi + 0xf8]
push edi
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00473af8
mov ecx, dword [ebp + 0x1c]
add esp, 0x10
test eax, eax
mov dword [ecx], eax
je 0x476e8c
mov ecx, dword [esi + 0x54]
mov dword [ebp + 0xc], ecx
movzx ecx, word [esi + 6]
test ecx, ecx
jle 0x476d74
lea edx, [edi + 0x14]
mov esi, dword [edx]
test esi, esi
je 0x476d6e
cmp esi, dword [ebp + 0xc]
jae 0x476d6e
mov dword [ebp + 0xc], esi
add edx, 0x28
dec ecx
jne 0x476d60
mov ecx, dword [ebx + 0x3c]
mov ecx, dword [ebx + ecx + 0x34]
mov esi, dword [fcn.00494250]
push pe_nt_image_headers32
push 0x1000
push eax
push ecx
call esi
test eax, eax
mov edi, dword [ebp + 0x18]
mov dword [edi], eax
jne 0x476daf
mov eax, dword [ebp + 0x1c]
push pe_nt_image_headers32
push 0x1000
push dword [eax]
push 0
call esi
test eax, eax
mov dword [edi], eax
je 0x476e8c
push dword [ebp + 0xc]
push ebx
push dword [edi]
call fcn.00410296
mov eax, dword [edi]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 0x14]
add eax, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
add eax, 0xf8
mov dword [edx], eax
mov ecx, dword [ecx]
mov ebx, dword [ecx + 0x38]
mov dword [ebp + 0xc], eax
mov eax, dword [ecx + 0x54]
lea eax, [eax + ebx - 1]
xor edx, edx
div ebx
add esp, 0xc
mov esi, eax
imul esi, ebx
add esi, dword [edi]
xor eax, eax
cmp word [ecx + 6], ax
mov dword [ebp - 4], eax
jbe 0x476e87
mov ebx, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
add eax, ebx
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x476e12
mov esi, dword [edi]
add esi, ecx
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x476e56
mov eax, dword [eax + 0x14]
add eax, dword [ebp + 8]
push ecx
push eax
push esi
call fcn.00410296
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax]
mov eax, dword [ebp + 0xc]
add eax, ebx
mov ecx, dword [eax + 0x10]
add esp, 0xc
cmp dword [eax + 8], ecx
jae 0x476e56
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
mov dword [ebp - 8], eax
lea eax, [ecx + eax - 1]
xor edx, edx
div dword [ebp - 8]
imul eax, dword [ebp - 8]
jmp 0x476e6c
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x38]
mov eax, dword [eax + 8]
lea eax, [eax + ecx - 1]
xor edx, edx
div ecx
imul eax, ecx
add dword [ebp + 0xc], 0x28
add esi, eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
movzx eax, word [eax + 6]
inc dword [ebp - 4]
cmp dword [ebp - 4], eax
jl 0x476e02
xor eax, eax
inc eax
jmp 0x476e8e
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret
Function at 0x486e19
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x486e47
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x486e4e
cmp ebx, dword [eax + 4]
jae 0x486e4e
xor eax, eax
jmp 0x48703e
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x486e5f
xor eax, eax
inc eax
jmp 0x48703d
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x486e75
cmp ecx, edx
jae 0x486fba
cmp dword [eax + 4], 0
je 0x486e7e
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x486e66
cmp dword [ebp + 8], 0
je 0x486ea0
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x486fba
cmp eax, esi
jae 0x486fba
mov eax, dword [0x4addc0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x486ec5
cmp dword [esi*4 + 0x4addc8], edi
je 0x486fbe
inc esi
cmp esi, eax
jl 0x486eb3
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x494378]
test eax, eax
je 0x48703a
cmp dword [ebp - 8], 0x1000000
jne 0x48703a
test byte [ebp - 0xc], 0xcc
je 0x486f43
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x48703a
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x48703a
cmp word [eax + 0x18], 0x10b
jne 0x48703a
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x48703a
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x486f43
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x486f43
test byte [ecx + 0x27], 0x80
jne 0x486fba
push 1
push 0x4ade08
call dword [0x494268]
test eax, eax
jne 0x486e57
mov ecx, dword [0x4addc0]
test ecx, ecx
mov edx, ecx
jle 0x486f77
lea eax, [ecx*4 + 0x4addc4]
cmp dword [eax], edi
je 0x486f77
dec edx
sub eax, 4
test edx, edx
jg 0x486f6b
test edx, edx
jne 0x486fa8
push 0xf
pop ebx
cmp ecx, ebx
jg 0x486f84
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x486f9c
lea eax, [edx*4 + 0x4addc8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x486f8a
cmp ecx, 0x10
jge 0x486fa8
inc ecx
mov dword [0x4addc0], ecx
push 0
push 0x4ade08
call dword [0x494268]
jmp 0x486e57
xor eax, eax
jmp 0x48703d
test esi, esi
jle 0x486e57
mov ebx, dword [0x494268]
push 1
push 0x4ade08
call ebx
test eax, eax
jne 0x486e57
cmp dword [esi*4 + 0x4addc8], edi
je 0x487014
mov eax, dword [0x4addc0]
lea esi, [eax - 1]
test esi, esi
jl 0x487002
cmp dword [esi*4 + 0x4addc8], edi
je 0x486ffe
dec esi
jns 0x486ff2
test esi, esi
jge 0x487012
cmp eax, 0x10
jge 0x48700d
inc eax
mov dword [0x4addc0], eax
lea esi, [eax - 1]
jmp 0x487014
je 0x48702c
xor ecx, ecx
test esi, esi
jl 0x48702c
lea eax, [ecx*4 + 0x4addc8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x48701a
push 0
push 0x4ade08
call ebx
jmp 0x486e57
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409e70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edx, eax
push esi
mov esi, dword [ebp + 8]
and ecx, 0xfffffffc
jbe 0x409eb4
rol eax, 5
xor eax, dword [edx + esi]
add edx, 4
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, 4
imul eax, eax, 0x9e3779b9
cmp edx, ecx
jb 0x409e83
jmp 0x409eb4
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x409ea4
pop esi
pop ebp
ret

Function at 0x40ac4e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x40ac83
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x40acad
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40acad
test edi, edi
je 0x40ac7a
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40ac7a
test edi, edi
je 0x40acb5
mov eax, edi
jmp 0x40ac7c
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40ac7c
mov esi, 0xc3
push esi
push str.c:_builds_moz2_slave_autoland_w32_d_000000000000000_build_src_mfbt_Poison.cpp
push str.no_usable_poison_region_identified
call fcn.0040e0d9
add esp, 0xc
int3
Function at 0x40e10d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestTuple.exe_gMozillaPoisonSize], eax
call fcn.0040ac4e
pop ecx
mov ecx, dword [sym.TestTuple.exe_gMozillaPoisonSize]
mov dword [sym.TestTuple.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40e145
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestTuple.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret

Function at 0x438c9a
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
pop ebx
dec esi
call fcn.00438cd2
and eax, eax
mov esi, 0xd58a8b3
add eax, esi
xor dword [edi], ebx
and esi, esi
inc edi
sub eax, 0x61ff035b
sub eax, 0x47c9f0d9
cmp edi, edx
jne fcn.00438c9a
sub eax, esi
sub eax, esi
sub eax, 0x47c48cf5
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..00cfg
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x30f95353
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x581c2677
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4012b4
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x117]
push ebx
push eax
mov byte [ebp - 0x118], bl
call sub.ntdll.dll_memset
xor eax, eax
mov byte [ebp - 0x14], bl
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
push 0x1c
stosb byte es:[edi], al
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, ebx
je 0x40130b
push 0x8b
push 0x1b
mov edx, 0x405d44
call fcn.0040295d
mov esi, 0x104
push esi
lea ecx, [ebp - 0x118]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x4013b5
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401330
push 0x8004
lea ecx, [ebp - 0x14]
sub eax, edx
push ecx
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00401cce
test eax, eax
je 0x4013b5
xor al, al
lea edi, [ebp - 0x118]
mov ecx, esi
rep stosb byte es:[edi], al
lea eax, [ebp - 0x118]
lea edi, [ebp - 0x14]
call fcn.00401da3
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00402a47
mov ecx, 0x42a570
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x401398
push ecx
lea ecx, [ebp - 0x21c]
sub eax, esi
push ecx
call fcn.00402340
test eax, eax
je 0x4013b5
xor ebx, ebx
inc ebx
mov eax, ebx
lea esp, [ebp - 0x228]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4013c2
Capabilities:
Check os version
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
push 0x11c
lea eax, [ebp - 0x158]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x158]
push eax
mov dword [ebp - 0x158], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x401454
cmp dword [ebp - 0x154], 6
jb 0x401454
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.00401ff5
cmp eax, 0x2000
jae 0x401454
call fcn.00401902
test eax, eax
jne 0x401454
push 6
push eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x401454
lea eax, [ebp - 0x3c]
call fcn.00401b43
test eax, eax
je 0x401446
lea edi, [ebp - 0x3c]
call fcn.00401c7b
test eax, eax
je 0x40143a
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
leave
ret

Function at 0x401456
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x104
push 0x42a408
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call fcn.004020b1
call fcn.00401df8
mov dword [0x42a50c], eax
call fcn.0040262c
call fcn.004013c2
jmp loc.0042c664
Function at 0x4023c0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, 0x104
push esi
lea eax, [ebp - 0x24c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x402621
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 8], eax
test eax, eax
je 0x402420
push 0x99
push 4
mov edx, 0x405434
call fcn.0040295d
push 0x1c
pop eax
call sub.ntdll.dll__alloca_probe
mov edi, esp
test edi, edi
je 0x402441
push 0x87
push 0x1b
mov eax, edi
mov edx, 0x4051b0
call fcn.0040295d
push 0x14
pop eax
call sub.ntdll.dll__alloca_probe
mov ebx, esp
test ebx, ebx
je 0x402462
push 0x86
push 0x13
mov eax, ebx
mov edx, 0x4051cc
call fcn.0040295d
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 4], eax
test eax, eax
je 0x402484
push 0x89
push 4
mov edx, 0x4057dc
call fcn.0040295d
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x4024a3
push 0x8f
push 6
mov edx, 0x4058e0
call fcn.0040295d
lea ecx, [ebp - 0x24c]
push ecx
push eax
lea eax, [ebp - 0x454]
push esi
push eax
call dword [sym.imp.ntdll.dll__snprintf]
lea ecx, [ebp - 0x148]
add esp, 0x10
mov eax, edi
sub ecx, edi
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x4024c6
push 0xa
call fcn.00402b46
add eax, 0xa
push eax
jmp section..htext
lea esp, [ebp - 0x460]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40262c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push edi
mov edi, 0x42a408
push edi
xor ebx, ebx
call esi
test eax, eax
je 0x40269c
push 0x14
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x40266b
push 0x91
push 0x12
mov edx, 0x4059b0
call fcn.0040295d
push edi
push eax
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
je 0x40269c
lea edi, [ebp - 0x104]
call fcn.0040239f
mov ebx, eax
mov eax, ebx
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4026a9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push edi
push 3
xor edi, edi
call fcn.00402b46
add eax, 3
push eax
call fcn.00402a1d
mov ebx, eax
cmp ebx, edi
je 0x402716
push esi
lea eax, [ebp - 0x104]
push eax
push edi
push edi
call fcn.00402929
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x40270e
mov esi, 0x104
call fcn.00402ac3
mov edi, eax
test edi, edi
je 0x40270e
push edi
push 0xffffffffffffffff
call fcn.00402b46
push eax
push ebx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov esi, ebx
call fcn.00402b12
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret
Function at 0x4027a8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp edi, ebx
je 0x40288c
push edi
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x40288c
push 4
pop eax
call sub.ntdll.dll__alloca_probe
mov esi, esp
cmp esi, ebx
je 0x4027f4
push 0x93
push 2
mov eax, esi
mov edx, 0x405a1c
call fcn.0040295d
push 0xffffffffffffffff
call fcn.00402b46
push eax
push esi
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.ntdll.dll__snprintf]
lea eax, [ebp - 0x104]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40281b
sub eax, edx
cmp eax, 6
jb 0x4027f4
cmp byte [ebp - 0x104], bl
je 0x402855
lea ecx, [ebp - 0x104]
movsx eax, byte [ecx]
lea edx, [eax - 0x30]
and edx, 0x80000001
jns 0x40284a
dec edx
or edx, 0xfffffffe
inc edx
je 0x402850
add al, 0x31
mov byte [ecx], al
inc ecx
cmp byte [ecx], bl
jne 0x402837
lea eax, [ebp - 0x104]
push eax
push edi
call fcn.00402a47
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, ebx
je 0x402881
push 0x8b
push 4
mov edx, 0x4055ec
call fcn.0040295d
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionA]
xor esi, esi
inc esi
mov eax, esi
lea esp, [ebp - 0x10c]
pop esi
pop ebx
leave
ret

Function at 0x402898
Capabilities:
Access pe header
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push edi
xor edi, edi
and dword [ebp - 4], edi
cmp dword [ebp + 8], edi
je 0x402922
push esi
push 0x104
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004022a9
mov esi, eax
test esi, esi
je 0x402904
cmp dword [ebp - 4], edi
je 0x402904
push esi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov edi, eax
test edi, edi
je 0x402904
push 0xffffffffffffffff
call fcn.00402b46
push esi
push dword [ebp + 8]
mov dword [edi + 0x58], eax
mov eax, dword [ebp - 4]
call fcn.00402340
mov edi, eax
test edi, edi
jne 0x402918
push 1
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, eax
test esi, esi
je 0x402921
call fcn.00402b12
pop esi
mov eax, edi
pop edi
leave
ret 4