joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408aa3
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x485920
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x4a5294]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [0x4a8884]
mov ecx, 0x4a8884
mov dword [esp + 0x1c], 0x80004005
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
and dword [esp + 0x54], 0
lea ebx, [edi + 8]
push ebx
mov dword [esp + 0x30], ebx
call fcn.00401d29
mov esi, ebx
call fcn.00409795
push dword [ebx]
call fcn.00409821
mov eax, dword [edi + 0x20]
mov eax, dword [eax]
add edi, 0x1c
pop ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], eax
cmp dword [esp + 0x34], 0
mov esi, dword [edi + 4]
je 0x408b36
cmp dword [esp + 0x34], edi
je 0x408b3b
call fcn.00453f1a
cmp dword [esp + 0x38], esi
je 0x408c4d
lea esi, [esp + 0x34]
call fcn.00409d0f
mov dword [esp + 0x14], eax
call fcn.00409d0f
mov esi, eax
push 0x48b61c
push dword [esp + 0x18]
add esi, 4
mov dword [esp + 0x2c], esi
call fcn.00407b10
test eax, eax
je 0x408bb1
push dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
call fcn.00409b0e
pop ecx
pop ecx
lea edi, [esp + 0x10]
mov byte [esp + 0x50], 1
call fcn.00401bbe
mov byte [esp + 0x50], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.0040257a
push dword [esp + 0x10]
call fcn.00409821
mov edi, dword [esp + 0x1c]
pop ecx
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], eax
cmp dword [esp + 0x2c], 0
mov eax, dword [esi + 4]
mov dword [esp + 0x40], eax
je 0x408bd2
cmp dword [esp + 0x2c], esi
je 0x408bd7
call fcn.00453f1a
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x30], eax
je 0x408c2a
cmp dword [esp + 0x2c], 0
jne 0x408bed
call fcn.00453f1a
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
cmp eax, dword [ecx + 4]
jne 0x408bff
call fcn.00453f1a
mov eax, dword [esp + 0x30]
mov esi, dword [eax + 8]
push dword [ebx]
mov ebx, esi
call fcn.0040937a
test eax, eax
je 0x408c38
lea esi, [esp + 0x2c]
call fcn.00430637
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x18]
jmp 0x408bbe
lea esi, [esp + 0x34]
call fcn.004262f3
jmp 0x408b26
push dword [esi]
mov esi, 0x4aa264
push str.ExtractMemoryFiles_WriteFile_fail__path:_ws
call fcn.00430060
pop ecx
pop ecx
jmp 0x408c52
and dword [esp + 0x1c], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.0040257a
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4097d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ebx, ecx
push 0
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 8], eax
push eax
jmp 0x409807
mov eax, dword [ebp - 4]
add ebx, eax
sub dword [ebp - 8], eax
je 0x409813
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4097f4
jmp 0x40981a
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret

Function at 0x409821
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 4
mov eax, 0x484fd8
call fcn.00457967
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004022ea
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409861
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040257a
mov eax, esi
call fcn.00457a3f
ret
mov esi, dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40984b
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x40984b
lea ecx, [ebp - 0x10]
call fcn.0040974c
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x409898
xor esi, esi
jmp 0x40984e
push eax
call fcn.00409821
test eax, eax
pop ecx
je 0x409894
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40984b
call edi
cmp eax, ebx
jne 0x409894
jmp 0x40984b

Function at 0x409950
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4a5294]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
test byte [0x4aa3a0], 1
jne 0x40999a
mov eax, dword [0x4a8884]
or dword [0x4aa3a0], 1
mov ecx, 0x4a8884
call dword [eax + 0xc]
add eax, 0x10
push 0x4876ba
mov dword [0x4aa39c], eax
call fcn.004547ef
pop ecx
mov eax, dword [0x4aa39c]
cmp dword [eax - 0xc], 0
jne 0x4099e4
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x4099df
push esi
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x4aa39c
push esi
call fcn.00401d29
call fcn.00409795
push str.drivers_
push esi
call fcn.00407bf8
pop esi
mov eax, dword [0x4aa39c]
add eax, 0xfffffff0
call fcn.00401dbc
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [edi], eax
xor ecx, ebp
mov eax, edi
call fcn.00451a25
leave
ret
Function at 0x4146a9
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x484e58
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4a5294]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x258]
push dword [esi + 8]
mov eax, dword [esi]
xor ebx, ebx
push ebx
mov ecx, esi
call dword [eax + 4]
lea eax, [esp + 0x10]
add edi, 0x1c8
push eax
call fcn.004061ac
push 0xe
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], ebx
call fcn.00414625
pop ecx
push 0xf
lea ecx, [esp + 0x14]
call fcn.00414625
pop ecx
push 0x11
push esi
lea edi, [esp + 0x18]
call fcn.004145e1
push 0x10
push esi
call fcn.004145e1
push 9
push esi
call fcn.004145e1
push 6
push esi
call fcn.004145e1
push 0x12
push esi
call fcn.004145e1
push 0x14
push esi
call fcn.004145e1
push 0x13
push esi
call fcn.004145e1
push 0x15
push esi
call fcn.004145e1
add esp, 0x40
push 0xa
push esi
call fcn.004145e1
push 0x16
push esi
call fcn.004145e1
add esp, 0x10
mov eax, esi
call fcn.0040625b
push ebx
push 0x61
call fcn.004052f1
push ebx
push 0x62
call fcn.004052f1
push ebx
push 0x63
call fcn.004052f1
push 0x14
mov eax, esi
call fcn.0041465b
pop ecx
push 6
mov eax, esi
call fcn.0041465b
pop ecx
push 9
mov eax, esi
call fcn.0041465b
pop ecx
push 0x11
mov eax, esi
call fcn.0041465b
pop ecx
or dword [esp + 0x30], 0xffffffff
mov ecx, edi
call fcn.0040292d
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41ae71
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
je 0x41ae7d
xor eax, eax
pop ebp
ret
lea eax, [esi + 0x30]
push eax
call fcn.0041fd43
test eax, eax
pop ecx
je 0x41ae90
push 0xc
pop eax
pop ebp
ret
push edi
xor edi, edi
lea eax, [esi + 0x14]
inc edi
push eax
mov dword [esi + 0x28], edi
call fcn.0041fce8
test eax, eax
pop ecx
jne 0x41af04
lea eax, [esi + 0x18]
push eax
call fcn.0041fce8
test eax, eax
pop ecx
jne 0x41af04
lea eax, [esi + 0x1c]
push eax
call fcn.0041fce8
test eax, eax
pop ecx
jne 0x41af04
push dword [ebp + 0x10]
lea eax, [esi + 0x20]
push dword [ebp + 0x10]
push eax
call fcn.0041fcf9
add esp, 0xc
test eax, eax
jne 0x41af04
push dword [ebp + 0x10]
push eax
lea eax, [esi + 0x24]
push eax
call fcn.0041fcf9
add esp, 0xc
test eax, eax
jne 0x41af04
push dword [ebp + 0xc]
lea eax, [esi + 0x10]
push dword [ebp + 8]
mov dword [esi + 4], edi
push eax
call fcn.0041fc4b
add esp, 0xc
test eax, eax
je 0x41af09
push 0xc
pop eax
jmp 0x41af0d
mov dword [esi], edi
xor eax, eax
pop edi
pop ebp
ret

Function at 0x41d585
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
mov eax, 0x100
push edi
mov ebx, eax
or esi, eax
shl dword [ebp + 0x10], 1
mov eax, esi
shr eax, 7
and eax, 1
push eax
mov eax, ebx
and eax, dword [ebp + 0x10]
mov ecx, esi
add eax, ebx
shr ecx, 8
add ecx, eax
mov eax, dword [ebp + 0xc]
lea edi, [eax + ecx*2]
mov eax, dword [ebp + 8]
call fcn.0041d4ff
add esi, esi
mov eax, esi
xor eax, dword [ebp + 0x10]
pop ecx
not eax
and ebx, eax
cmp esi, 0x10000
jb 0x41d596
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41d5d7
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
or ecx, 0x100
push esi
mov esi, dword [esp + 8]
mov edx, ecx
shr edx, 8
movzx edx, word [esi + edx*2]
mov esi, ecx
shr esi, 7
and esi, 1
neg esi
sar esi, 4
and esi, 0x7f
shr edx, 4
xor edx, esi
mov esi, dword [esp + 0xc]
add eax, dword [esi + edx*4]
add ecx, ecx
cmp ecx, 0x10000
jb 0x41d5e0
pop esi
ret

Function at 0x41d615
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x100
push esi
xor eax, eax
or edx, ecx
push edi
shl dword [ebp + 0xc], 1
mov esi, ecx
and esi, dword [ebp + 0xc]
mov edi, edx
add esi, ecx
shr edi, 8
add edi, esi
mov esi, dword [ebp + 8]
movzx esi, word [esi + edi*2]
mov edi, edx
shr edi, 7
and edi, 1
neg edi
shr esi, 4
sar edi, 4
and edi, 0x7f
xor esi, edi
mov edi, dword [ebp + 0x10]
add eax, dword [edi + esi*4]
add edx, edx
mov esi, edx
xor esi, dword [ebp + 0xc]
not esi
and ecx, esi
cmp edx, 0x10000
jb 0x41d623
pop edi
pop esi
pop ebp
ret

Function at 0x41d71b
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
push esi
mov esi, eax
xor eax, eax
inc edx
test esi, esi
je 0x41d75b
push ebx
push edi
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
movzx edi, word [edi + edx*2]
shr dword [esp + 0x14], 1
and ecx, 1
mov ebx, ecx
neg ebx
sar ebx, 4
and ebx, 0x7f
shr edi, 4
xor edi, ebx
mov ebx, dword [esp + 0x18]
add eax, dword [ebx + edi*4]
add edx, edx
or edx, ecx
dec esi
jne 0x41d729
pop edi
pop ebx
pop esi
ret
Function at 0x41f0a3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
xor edx, edx
lea ecx, [esi + 0x19c]
mov dword [esi + 0x3bcd4], edx
mov dword [esi + 0x3bcd0], edx
push ebx
mov dword [ecx + 0x30], edx
mov dword [ecx + 0x4c], edx
mov dword [ecx + 0x20], edx
mov dword [ecx + 0x2c], 0x20
mov dword [ecx + 0x54], 1
mov dword [ecx + 0x48], 4
mov dword [ecx + 0x58], edx
mov dword [ebp - 4], edx
lea eax, [ecx + 0x70]
push edi
mov edi, dword [ebp - 4]
mov dword [ebp - 8], 8
mov ebx, edi
and ebx, 1
dec ebx
not ebx
and ebx, 0xedb88320
shr edi, 1
xor edi, ebx
dec dword [ebp - 8]
jne 0x41f0f0
inc dword [ebp - 4]
mov dword [eax], edi
add eax, 4
cmp dword [ebp - 4], 0x100
jb 0x41f0e6
mov dword [esi + 0x118], edx
lea eax, [esi + 0x148]
mov dword [eax], edx
mov dword [eax + 0x28], edx
mov dword [eax + 0x2c], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x74], edx
mov dword [esi + 0x78], edx
mov dword [esi + 0x5c], edx
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], edx
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], edx
mov dword [esi + 0x70], edx
lea eax, [ebp - 0x38]
mov dword [esi + 0x198], ecx
call fcn.0041d1f5
mov ebx, esi
call fcn.0041d2f8
push 2
pop edi
mov byte [esi + 0x306a0], 0
mov byte [esi + 0x306a1], 1
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 4]
xor ebx, ebx
sar ecx, 1
dec ecx
inc ebx
shl ebx, cl
test ebx, ebx
jbe 0x41f1a7
push ebx
push dword [ebp - 4]
lea eax, [edi + esi + 0x306a0]
push eax
call fcn.00451930
add esp, 0xc
add edi, ebx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x16
jl 0x41f182
push 8
pop edi
mov edx, 0x10000
push 4
mov eax, edi
xor ecx, ecx
pop ebx
imul eax, eax
add ecx, ecx
jmp 0x41f1c9
shr eax, 1
inc ecx
cmp eax, edx
jae 0x41f1c6
dec ebx
jne 0x41f1bf
mov eax, 0xa1
sub eax, ecx
mov ecx, edi
shr ecx, 4
add edi, 0x10
cmp edi, 0x800
mov dword [esi + ecx*4 + 0x30ea0], eax
jb 0x41f1b8
and dword [esi + 0x325ac], ebx
and dword [esi + 0x3bd14], ebx
pop edi
pop ebx
leave
ret

Function at 0x41fc4b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.00454996
mov ecx, dword [ebp + 8]
add esp, 0x18
test eax, eax
mov dword [ecx], eax
je 0x41fc74
xor eax, eax
leave
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x41fc7f
inc eax
leave
ret
Function at 0x42321a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x423233
mov eax, dword [ebp - 4]
jmp 0x42330d
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x4232e8
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
nop
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x490f48]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x490f48]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x490f48]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x490f48]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x490f48]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x490f48]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x490f48]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x490f48]
dec ebp
jne 0x423252
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x423304
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x490f48]
dec ecx
jne 0x4232f2
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42457b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x10
mov esi, eax
mov eax, dword [ebp + 0x14]
pop edi
cmp dword [ebp + 0xc], edi
mov dword [ebp - 4], eax
jb 0x42463f
mov eax, dword [ebp + 0xc]
shr eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov edx, esi
sub ecx, eax
sub edx, eax
mov dword [ebp - 4], 4
mov ebx, dword [ecx + eax]
xor ebx, dword [eax]
mov dword [edx + eax], ebx
add eax, 4
dec dword [ebp - 4]
jne 0x4245b3
push dword [ebp + 0x10]
push esi
push esi
call fcn.00423a92
sub dword [ebp + 0xc], edi
add dword [ebp + 8], edi
mov dword [ebp - 4], esi
add esp, 0xc
add esi, edi
dec dword [ebp - 8]
jne 0x4245a0
jmp 0x42463f
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
sub edx, eax
mov dword [ebp - 8], edx
mov edx, esi
xor ecx, ecx
sub edx, eax
cmp ecx, dword [ebp + 0xc]
jae 0x424609
mov ebx, dword [ebp - 8]
mov bl, byte [eax + ebx]
xor bl, byte [eax]
inc ecx
mov byte [eax + edx], bl
inc eax
cmp ecx, edi
jb 0x4245f3
cmp ecx, edi
jae 0x424622
mov ebx, dword [ebp - 4]
mov eax, edi
sub ebx, esi
lea edx, [ecx + esi]
sub eax, ecx
mov cl, byte [ebx + edx]
mov byte [edx], cl
inc edx
dec eax
jne 0x424619
push dword [ebp + 0x10]
push esi
push esi
call fcn.00423a92
add esp, 0xc
cmp dword [ebp + 0xc], edi
mov dword [ebp - 4], esi
jbe 0x424645
sub dword [ebp + 0xc], edi
add dword [ebp + 8], edi
add esi, edi
cmp dword [ebp + 0xc], 0
jne 0x4245e2
push edi
push dword [ebp - 4]
push dword [ebp + 0x14]
call fcn.00451cb0
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424659
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x4a5294]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, edx
cmp eax, ebx
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
je 0x4246e4
mov eax, dword [ebp + 0xc]
push 0x10
pop edi
cmp eax, edi
jb 0x4246d1
shr eax, 4
mov dword [esp + 0x10], eax
push dword [esp + 0x18]
push ebx
push dword [esp + 0x14]
call fcn.0042400d
add esp, 0xc
mov ecx, esi
push 4
mov eax, ebx
sub ecx, ebx
pop edx
mov esi, dword [ecx + eax]
xor dword [eax], esi
add eax, 4
dec edx
jne 0x4246b3
mov esi, dword [esp + 0xc]
sub dword [ebp + 0xc], edi
add dword [esp + 0xc], edi
add ebx, edi
dec dword [esp + 0x10]
jne 0x424699
push edi
push esi
push dword [esp + 0x1c]
call fcn.00451cb0
add esp, 0xc
jmp 0x424771
cmp dword [ebp + 0xc], 0x10
jb 0x42476e
mov esi, eax
lea ecx, [esp + 0x24]
mov eax, ecx
sub esi, eax
mov eax, dword [ebp + 0xc]
shr eax, 4
mov edi, ebx
mov dword [esp + 0x20], eax
shl eax, 4
sub edi, ecx
add ebx, eax
push dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x14]
call fcn.0042400d
add esp, 0xc
and dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
shl eax, 2
mov edx, dword [esp + eax + 0x24]
lea ecx, [esi + eax]
mov ecx, dword [esp + ecx + 0x24]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x14]
add ecx, eax
xor edx, dword [ecx]
add eax, edi
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 4
mov dword [esp + eax + 0x24], edx
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
jb 0x424725
push 0x10
pop eax
sub dword [ebp + 0xc], eax
add dword [esp + 0xc], eax
add esi, eax
add edi, eax
dec dword [esp + 0x20]
jne 0x42470b
push 0x10
pop edi
cmp dword [ebp + 0xc], 0
je 0x424816
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x24]
sub eax, ecx
mov dword [esp + 0x1c], eax
mov eax, ecx
sub ebx, eax
mov dword [esp + 0x10], ebx
sub esi, eax
push dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x14]
call fcn.0042400d
add esp, 0xc
xor eax, eax
cmp eax, dword [ebp + 0xc]
jae 0x4247de
mov bl, byte [esp + eax + 0x24]
mov edi, dword [esp + 0x10]
lea ecx, [esi + eax]
mov dl, byte [esp + ecx + 0x24]
mov ecx, dword [esp + 0x1c]
add ecx, eax
lea ecx, [esp + ecx + 0x24]
xor bl, byte [ecx]
add edi, eax
mov byte [esp + edi + 0x24], bl
push 0x10
inc eax
pop edi
cmp eax, edi
mov byte [ecx], dl
jb 0x4247ae
cmp dword [ebp + 0xc], edi
jbe 0x4247f8
sub dword [ebp + 0xc], edi
add dword [esp + 0xc], edi
add dword [esp + 0x10], edi
add esi, edi
cmp dword [ebp + 0xc], 0
jne 0x424797
jmp 0x424816
cmp eax, edi
jae 0x424816
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
lea edx, [ecx + eax]
sub esi, ecx
mov ecx, edi
sub ecx, eax
mov al, byte [esi + edx]
mov byte [edx], al
inc edx
dec ecx
jne 0x42480d
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00451a25
mov esp, ebp
pop ebp
ret
Function at 0x42488b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x424919
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x4248c2
cmp dword [ebp - 8], 2
jne 0x424918
push esi
mov esi, dword [ebp + 0xc]
call fcn.004024ea
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.004025aa
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x424900
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov dword [ebp - 0xc], 1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x424910
push eax
call fcn.00451a34
pop ecx
mov edx, esi
call fcn.0040252a
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8

Function at 0x4274e6
Capabilities:
Set registry value

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x427514
push dword [esp + 0xc]
call fcn.00451a34
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push edi
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x427514
inc edi
mov eax, edi
pop edi
ret 8

Function at 0x4275a2
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
mov dword [esi], eax
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42762b
push ebx
call fcn.0044ffdc
pop ecx
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42761c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x48b618
push dword [ebp - 4]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42761c
cmp dword [ebp - 0xc], ebx
je 0x42761c
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov eax, dword [eax + 0xc]
mov dword [esi], eax
mov dword [ebp - 0x14], 1
cmp dword [ebp - 4], 0
je 0x42762b
push dword [ebp - 4]
call fcn.00451709
pop ecx
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret
Function at 0x4277c2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x120
mov eax, dword [0x4a5294]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa8]
push edi
push eax
call fcn.00451930
add esp, 0xc
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x427825
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0x114
call esi
cmp eax, edi
je 0x4278db
mov eax, dword [ebp - 0x98]
dec eax
je 0x4278c7
dec eax
jne 0x4278db
mov eax, dword [ebp - 0xa4]
xor edx, edx
push 6
pop ecx
inc edx
cmp eax, ecx
jne 0x427874
cmp dword [ebp - 0xa0], edx
jne 0x42785e
xor eax, eax
cmp byte [ebp + 0x72], dl
setne al
add eax, 8
jmp 0x4278c3
cmp dword [ebp - 0xa0], edi
jne 0x4278ac
xor eax, eax
cmp byte [ebp + 0x72], dl
setne al
lea eax, [eax + eax + 7]
jmp 0x4278c3
cmp eax, 5
jne 0x42789e
cmp dword [ebp - 0xa0], 2
jne 0x427885
push eax
jmp 0x4278a5
cmp dword [ebp - 0xa0], 1
jne 0x427892
mov edi, ecx
jmp 0x4278db
cmp dword [ebp - 0xa0], edi
jne 0x4278db
push 3
jmp 0x4278a5
cmp eax, 4
ja 0x4278a8
push 4
pop edi
jmp 0x4278db
cmp eax, ecx
jb 0x4278db
cmp dword [ebp - 0xa0], 2
jae 0x4278b9
cmp eax, ecx
jbe 0x4278db
cmp byte [ebp + 0x72], dl
jne 0x4278db
call fcn.00427707
mov edi, eax
jmp 0x4278db
mov eax, dword [ebp - 0x9c]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov ecx, dword [ebp + 0x74]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00451a25
add ebp, 0x78
leave
ret

Function at 0x427c1d
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.00426a4d
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x427cca
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
cmp edi, 0x200000
ja 0x427cc9
lea eax, [edi + 1]
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp + 8], edi
call fcn.00426a8c
mov esi, eax
mov dword [ebp - 4], esi
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x427cc9
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x427cc9
sub dword [ebp + 8], eax
add dword [ebp - 4], eax
cmp dword [ebp + 8], ebx
jne 0x427c7a
mov byte [esi + edi], bl
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
cmp eax, ebx
jne 0x427cb4
xor eax, eax
jmp 0x427cbb
push eax
call fcn.00452390
pop ecx
mov edx, esi
call fcn.00426aba
mov dword [ebp - 0x10], 1
pop edi
cmp dword [ebp - 8], ebx
pop esi
pop ebx
je 0x427cda
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8