joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40606a
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 0x406098
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 0x40609f
cmp ebx, dword [eax + 4]
jae 0x40609f
xor eax, eax
jmp 0x40628f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4060b0
xor eax, eax
inc eax
jmp 0x40628e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4060c6
cmp ecx, edx
jae 0x40620b
cmp dword [eax + 4], 0
je 0x4060cf
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4060b7
cmp dword [ebp + 8], 0
je 0x4060f1
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40620b
cmp eax, esi
jae 0x40620b
mov eax, dword [0x40c9d0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x406116
cmp dword [esi*4 + 0x40c9d8], edi
je 0x40620f
inc esi
cmp esi, eax
jl 0x406104
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40628b
cmp dword [ebp - 8], 0x1000000
jne 0x40628b
test byte [ebp - 0xc], 0xcc
je 0x406194
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40628b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40628b
cmp word [eax + 0x18], 0x10b
jne 0x40628b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40628b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x406194
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x406194
test byte [ecx + 0x27], 0x80
jne 0x40620b
push 1
push 0x40ca18
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4060a8
mov ecx, dword [0x40c9d0]
test ecx, ecx
mov edx, ecx
jle 0x4061c8
lea eax, [ecx*4 + 0x40c9d4]
cmp dword [eax], edi
je 0x4061c8
dec edx
sub eax, 4
test edx, edx
jg 0x4061bc
test edx, edx
jne 0x4061f9
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4061d5
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4061ed
lea eax, [edx*4 + 0x40c9d8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4061db
cmp ecx, 0x10
jge 0x4061f9
inc ecx
mov dword [0x40c9d0], ecx
push 0
push 0x40ca18
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4060a8
xor eax, eax
jmp 0x40628e
test esi, esi
jle 0x4060a8
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40ca18
call ebx
test eax, eax
jne 0x4060a8
cmp dword [esi*4 + 0x40c9d8], edi
je 0x406265
mov eax, dword [0x40c9d0]
lea esi, [eax - 1]
test esi, esi
jl 0x406253
cmp dword [esi*4 + 0x40c9d8], edi
je 0x40624f
dec esi
jns 0x406243
test esi, esi
jge 0x406263
cmp eax, 0x10
jge 0x40625e
inc eax
mov dword [0x40c9d0], eax
lea esi, [eax - 1]
jmp 0x406265
je 0x40627d
xor ecx, ecx
test esi, esi
jl 0x40627d
lea eax, [ecx*4 + 0x40c9d8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40626b
push 0
push 0x40ca18
call ebx
jmp 0x4060a8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40631f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x40c1b0]
mov ecx, dword [ebp + 0x3ac]
push ebx
push esi
xor eax, ebp
cmp ecx, dword [0x40dccc]
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x78], edi
jae 0x4064c1
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40dce0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x4064c1
and dword [ebp - 0x70], 0
and dword [ebp - 0x7c], 0
cmp dword [ebp + 0x3b4], 0
jne 0x406395
xor eax, eax
jmp 0x4064d5
test al, 0x20
je 0x4063a8
push 2
push 0
push 0
push ecx
call fcn.00407f55
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40643d
and dword [ebp - 0x68], 0
cmp dword [ebp + 0x3b4], 0
mov dword [ebp - 0x6c], edi
jbe 0x40649e
mov ecx, dword [ebp - 0x6c]
xor edi, edi
sub ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x406402
mov edx, dword [ebp - 0x6c]
inc dword [ebp - 0x6c]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4063f3
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x4063d5
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x74]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406462
mov eax, dword [ebp - 0x74]
add dword [ebp - 0x70], eax
cmp eax, edi
jl 0x40646b
mov eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x78]
cmp eax, dword [ebp + 0x3b4]
jb 0x4063ca
jmp 0x40646b
push 0
lea ecx, [ebp - 0x74]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406462
mov eax, dword [ebp - 0x74]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x70], eax
jmp 0x40646b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x70]
test eax, eax
jne 0x4064bc
cmp dword [ebp - 0x68], eax
je 0x40649b
push 5
pop eax
cmp dword [ebp - 0x68], eax
jne 0x406490
mov dword [0x40c858], 9
mov dword [0x40c85c], eax
jmp 0x4064d2
push dword [ebp - 0x68]
call fcn.00407e40
pop ecx
jmp 0x4064d2
mov edi, dword [ebp - 0x78]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4064b0
cmp byte [edi], 0x1a
je 0x40638e
mov dword [0x40c858], 0x1c
jmp 0x4064cb
sub eax, dword [ebp - 0x7c]
jmp 0x4064d5
mov dword [0x40c858], 9
and dword [0x40c85c], 0
or eax, 0xffffffff
mov ecx, dword [ebp + 0x3a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403602
add ebp, 0x3a4
leave
ret
Function at 0x408555
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00403750
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4085f0
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40c864]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4085f0
cmp eax, 1
je 0x408611
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4085f0
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4085bd
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4085ec
xor eax, eax
inc eax
jmp 0x408630
cmp edi, eax
jae 0x4085f4
xor eax, eax
jmp 0x408630
cmp eax, esi
jae 0x4085fb
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40c864]
jmp 0x408614
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4269b9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4269f8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4269f8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4269f8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4269f8
cmp dword [ecx + 0x74], 0xe
jbe 0x4269f8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x438da0
Capabilities:
Parse pe header

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

Function at 0x40102a
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebx
push esi
push edi
push str._JAVA_LAUNCHER_DEBUG
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xor ebx, ebx
pop ecx
test eax, eax
je 0x401078
push str.Windows_original_main_args:_n
call fcn.004010f9
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
mov esi, ebx
pop ecx
call edi
cmp dword [eax], ebx
jle 0x401078
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
mov eax, dword [eax]
push dword [eax + esi*4]
push esi
push str.wwwd_args__d____s_n
call fcn.004010f9
add esp, 0xc
inc esi
call edi
cmp esi, dword [eax]
jl 0x401058
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
mov edi, eax
lea ecx, [edi*4 + 4]
push ecx
call sub.jli.dll_JLI_MemAlloc
pop ecx
pop ecx
mov esi, eax
call sub.jli.dll_JLI_GetStdArgs
mov edx, ebx
test edi, edi
jle 0x4010b2
mov ecx, dword [eax + edx*8]
mov dword [esi + edx*4], ecx
inc edx
cmp edx, edi
jl 0x4010a7
mov ecx, dword [str.java]
mov dword [esi + edx*4], ebx
test ecx, ecx
jne 0x4010c1
mov ecx, dword [esi]
mov eax, dword [section..data]
test eax, eax
jne 0x4010cc
mov eax, dword [esi]
push ebx
push ebx
push ebx
push 1
push ecx
push eax
push 0x4021a8
push 0x4021ac
push 0x40300c
push 2
push 0x403004
push 2
push esi
push edi
call sub.jli.dll_JLI_Launch
add esp, 0x38
pop edi
pop esi
pop ebx
ret
Function at 0x426120
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00426130

Function at 0x437de0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00437aa0

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1003336
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x1003331
cmp word [edx], 0
jne 0x1003316
push 0xe
jmp 0x1003333
mov eax, edx
push esi
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100331c
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
pop esi
jmp 0x1003334
push 0xa
pop eax
test edx, edx
je 0x1003345
cmp word [edx], 0
jne 0x100334a
mov edx, 0x100139c
jmp 0x100334a
mov edx, 0x1001390
push 0
push 4
lea ecx, [ebp + 0x1c]
push ecx
push eax
push edx
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push 0x2b
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01010ca0
add esp, 0x28
pop ebp
ret 0x18
Function at 0x1004de1
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0xc]
movzx eax, cx
mov dword [ebp - 8], eax
movzx eax, cx
push ebx
mov dword [ebp - 4], eax
push esi
xor eax, eax
xor bl, bl
push edi
movzx edi, cx
mov edx, 0xffff
cmp dword [ebp + 8], eax
je 0x1004ccb
cmp cx, ax
jne 0x1004cee
mov ecx, 0x80070057
mov ebx, ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x1004d5b
test byte [eax + 0x1c], 1
je 0x1004d5b
push ecx
push 0x1001380
push 0x15
jmp 0x1004d50
xor esi, esi
cmp si, cx
jae 0x1004d2f
mov esi, dword [ebp + 8]
movzx ecx, ax
mov ecx, dword [esi + ecx*8]
test ecx, ecx
je 0x1004e31
mov esi, dword [ecx + 8]
test esi, esi
je 0x1004e31
test bl, bl
jne 0x1004d1f
test byte [esi], 4
jne 0x1004d28
movzx edx, ax
inc bl
test byte [esi], 2
je 0x1004e5f
inc eax
cmp ax, word [ebp + 0xc]
jb 0x1004cf5
mov ecx, 0x8007000d
mov ebx, ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x1004d5b
test byte [eax + 0x1c], 1
je 0x1004d5b
push ecx
push 0x1001380
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002fd5
mov esi, dword [ebp + 0x10]
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0xd4]
push eax
push dword [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01004126
test eax, eax
jge 0x1004da2
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1004da2
test byte [ecx + 0x1c], 2
je 0x1004da2
push eax
push 0x1001380
push 0x18
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01002fd5
lea eax, [esi + 0x18]
push eax
lea eax, [esi + 0x12e]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01004126
test eax, eax
jge 0x1004de4
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1004de4
test byte [ecx + 0x1c], 2
je 0x1004de4
push eax
push 0x1001380
push 0x19
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01002fd5
lea eax, [esi + 0x1c]
push eax
add esi, 0x188
push esi
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01004126
test eax, eax
jge 0x1004e28
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1004e28
test byte [ecx + 0x1c], 2
je 0x1004e28
push eax
push 0x1001380
push 0x1a
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01002fd5
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
mov ecx, 0x8000ffff
mov ebx, ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x1004d5b
test byte [eax + 0x1c], 1
je 0x1004d5b
push ecx
push 0x1001380
push 0x16
jmp 0x1004d50
movzx ecx, dx
mov dword [ebp - 8], ecx
cmp ax, dx
jne 0x1004e75
movzx eax, dx
mov dword [ebp - 4], eax
movzx edi, dx
jmp 0x1004e7f
movzx ecx, ax
dec eax
mov dword [ebp - 4], ecx
movzx edi, ax
xor ebx, ebx
jmp 0x1004d5b
Function at 0x10054e6
Capabilities:
Check if file exists
Get windows directory from kuser_shared_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
inc edi
cmp dword [ebp + 8], 0
jl 0x10054b4
mov ebx, dword [ebp + 0xc]
jle 0x10054d7
test ebx, ebx
jne 0x10054d7
mov ecx, 0x80070057
mov esi, ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x1005521
test byte [eax + 0x1c], 1
je 0x1005521
push ecx
push 0x100144c
push 0xa
jmp 0x100554b
cmp dword [ebp + 8], edi
jle 0x100551f
mov esi, dword [sym.imp.msvcrt.dll__wcsicmp]
push 0x1001438
push dword [ebx + edi*4]
call esi
pop ecx
pop ecx
test eax, eax
jne 0x10054fb
mov byte [0x101a44c], 1
jmp 0x1005519
push 0x1001424
push dword [ebx + edi*4]
call esi
pop ecx
pop ecx
test eax, eax
jne 0x100552a
call fcn.01005431
test al, al
jne 0x1005519
mov byte [0x101a004], al
inc edi
cmp edi, dword [ebp + 8]
jl 0x10054e2
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
mov ecx, 0x80070057
mov esi, ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x1005521
test byte [eax + 0x1c], 1
je 0x1005521
push ecx
push 0x100144c
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002fd5
jmp 0x1005521
Function at 0x10058bd
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x14]
xor ecx, ecx
push ebx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
test eax, 0xfffffcff
jne 0x10058d3
test eax, 0x100
je 0x10058fe
test eax, 0x200
je 0x10058fe
mov ecx, 0x80070057
mov ebx, ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x1005a02
test byte [eax + 0x1c], 1
je 0x1005a02
push ecx
push 0x10014c4
push 0x2a
jmp 0x1005931
cmp dword [ebp + 0x1c], ecx
je 0x1005941
cmp dword [ebp + 0x20], ecx
jne 0x1005941
mov ecx, 0x80070057
mov ebx, ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x1005a02
test byte [eax + 0x1c], 1
je 0x1005a02
push ecx
push 0x10014c4
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002fd5
jmp 0x10059ed
push esi
push edi
lea edx, [ebp - 4]
push edx
or eax, 1
push eax
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, 0xffff
mov esi, 0x80070000
test eax, eax
je 0x100598e
jle 0x100596c
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jge 0x100598e
mov eax, dword [section..data]
cmp eax, section..data
je 0x10059eb
test byte [eax + 0x1c], 1
je 0x10059eb
push ebx
push 0x10014c4
push 0x2c
jmp 0x10059dc
push dword [ebp + 0x20]
lea eax, [ebp - 8]
push dword [ebp + 0x1c]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x10059b2
mov edx, dword [ebp - 8]
mov dword [ecx], edx
test eax, eax
je 0x10059e9
jle 0x10059bc
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jge 0x10059e9
mov eax, dword [section..data]
cmp eax, section..data
je 0x10059eb
test byte [eax + 0x1c], 1
je 0x10059eb
push ebx
push 0x10014c4
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002fd5
jmp 0x10059eb
xor ebx, ebx
pop edi
pop esi
cmp dword [ebp - 4], 0
je 0x1005a02
cmp dword [ebp - 4], 0xffffffff
je 0x1005a02
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
leave
ret 0x1c

Function at 0x1007120
Capabilities:
Delete file
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1007137
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x1007137
cmp ebx, 0x8000
ja 0x1007137
push esi
lea eax, [ebp + 8]
push eax
push edi
call fcn.01006fb2
mov esi, eax
test esi, esi
jl 0x1007126
mov eax, dword [ebp + 8]
lea ecx, [edi + ebx*2]
cmp eax, ecx
jb 0x1007101
mov esi, 0x80070057
test esi, esi
jl 0x1007126
cmp word [eax], 0
push ebx
push edi
jne 0x1007116
call fcn.01006f95
mov esi, eax
jmp 0x1007122
xor ecx, ecx
mov word [eax], cx
call fcn.01006f95
xor esi, esi
test esi, esi
jge 0x1007132
push 0x10013b0
push ebx
push edi
call fcn.01003716
mov eax, esi
pop esi
jmp 0x100713c
mov eax, 0x80070057
pop edi
pop ebx
pop ebp
ret 8
Function at 0x100a872
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, ecx
cmp byte [esi + 0xc], 0
push edi
je 0x100a711
mov ecx, 0x8000ffff
mov edi, ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x100a8b6
test byte [eax + 0x1c], 1
je 0x100a8b6
push ecx
push 0x10018d4
push 0xa
jmp 0x100a854
and dword [esi + 0x10], 0
xor eax, eax
lea edi, [esi + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
movzx ecx, word [esi + 4]
test cx, cx
je 0x100a730
mov eax, 0x3ffc
cmp cx, ax
jbe 0x100a75d
mov eax, 0x80070057
mov edi, eax
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x100a8b6
test byte [ecx + 0x1c], 1
je 0x100a8b6
push eax
push 0x10018d4
push 0xb
jmp 0x100a7ca
cmp dword [esi + 8], 0xc4
jbe 0x100a793
mov eax, 0x80070057
mov edi, eax
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x100a8b6
test byte [ecx + 0x1c], 1
je 0x100a8b6
push eax
push 0x10018d4
push 0xc
jmp 0x100a7ca
mov eax, dword [esi + 0x14]
test eax, eax
jle 0x100a79f
cmp eax, 3
jl 0x100a7d5
mov eax, 0x80070057
mov edi, eax
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x100a8b6
test byte [ecx + 0x1c], 1
je 0x100a8b6
push eax
push 0x10018d4
push 0xd
push dword [ecx + 0x14]
push dword [ecx + 0x10]
jmp 0x100a85a
lea eax, [ebp - 4]
push eax
movzx eax, cx
lea eax, [eax*4 - 4]
push eax
push 0x10
call fcn.0101597e
mov edi, eax
test edi, edi
jge 0x100a815
mov eax, dword [section..data]
cmp eax, section..data
je 0x100a8b6
test byte [eax + 0x1c], 1
je 0x100a8b6
push edi
push 0x10018d4
push 0xe
jmp 0x100a854
mov eax, dword fs:[0x18]
push dword [ebp - 4]
mov eax, dword [eax + 0x30]
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esi + 0x10], eax
test eax, eax
jne 0x100a861
mov ecx, 0x8007000e
mov edi, ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x100a8b6
test byte [eax + 0x1c], 1
je 0x100a8b6
push ecx
push 0x10018d4
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002fd5
jmp 0x100a8b6
movzx edx, word [esi + 4]
lea ecx, [edx - 1]
lea edi, [eax + 0xc]
test edx, ecx
je 0x100a880
or ecx, 0xffffffff
jmp 0x100a877
shr edx, 1
inc ecx
test edx, edx
ja 0x100a874
xor edx, edx
inc edx
shl edx, cl
mov ecx, edx
cmp edx, 0x4000000
jbe 0x100a88f
mov ecx, 0x4000000
and dword [eax], 0
mov edx, ecx
shl edx, 5
mov dword [eax + 8], edi
mov dword [eax + 4], edx
lea ecx, [edi + ecx*4]
or eax, 1
cmp edi, ecx
jae 0x100a8b0
sub ecx, edi
dec ecx
shr ecx, 2
inc ecx
rep stosd dword es:[edi], eax
mov byte [esi + 0xc], 1
xor edi, edi
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x100ad4c
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, ecx
cmp byte [esi + 0xc], 0
push edi
je 0x100ad63
mov ecx, 0x8000ffff
mov edi, ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x100af08
test byte [eax + 0x1c], 1
je 0x100af08
push ecx
push 0x10018d4
push 0xa
jmp 0x100aea6
and dword [esi + 0x10], 0
xor eax, eax
lea edi, [esi + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
movzx ecx, word [esi + 4]
test cx, cx
je 0x100ad82
mov eax, 0x3ffc
cmp cx, ax
jbe 0x100adaf
mov eax, 0x80070057
mov edi, eax
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x100af08
test byte [ecx + 0x1c], 1
je 0x100af08
push eax
push 0x10018d4
push 0xb
jmp 0x100ae1c
cmp dword [esi + 8], 0xe0
jbe 0x100ade5
mov eax, 0x80070057
mov edi, eax
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x100af08
test byte [ecx + 0x1c], 1
je 0x100af08
push eax
push 0x10018d4
push 0xc
jmp 0x100ae1c
mov eax, dword [esi + 0x14]
test eax, eax
jle 0x100adf1
cmp eax, 3
jl 0x100ae27
mov eax, 0x80070057
mov edi, eax
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x100af08
test byte [ecx + 0x1c], 1
je 0x100af08
push eax
push 0x10018d4
push 0xd
push dword [ecx + 0x14]
push dword [ecx + 0x10]
jmp 0x100aeac
lea eax, [ebp - 4]
push eax
movzx eax, cx
lea eax, [eax*4 - 4]
push eax
push 0x10
call fcn.0101597e
mov edi, eax
test edi, edi
jge 0x100ae67
mov eax, dword [section..data]
cmp eax, section..data
je 0x100af08
test byte [eax + 0x1c], 1
je 0x100af08
push edi
push 0x10018d4
push 0xe
jmp 0x100aea6
mov eax, dword fs:[0x18]
push dword [ebp - 4]
mov eax, dword [eax + 0x30]
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esi + 0x10], eax
test eax, eax
jne 0x100aeb3
mov ecx, 0x8007000e
mov edi, ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x100af08
test byte [eax + 0x1c], 1
je 0x100af08
push ecx
push 0x10018d4
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002fd5
jmp 0x100af08
movzx edx, word [esi + 4]
lea ecx, [edx - 1]
lea edi, [eax + 0xc]
test edx, ecx
je 0x100aed2
or ecx, 0xffffffff
jmp 0x100aec9
shr edx, 1
inc ecx
test edx, edx
ja 0x100aec6
xor edx, edx
inc edx
shl edx, cl
mov ecx, edx
cmp edx, 0x4000000
jbe 0x100aee1
mov ecx, 0x4000000
and dword [eax], 0
mov edx, ecx
shl edx, 5
mov dword [eax + 8], edi
mov dword [eax + 4], edx
lea ecx, [edi + ecx*4]
or eax, 1
cmp edi, ecx
jae 0x100af02
sub ecx, edi
dec ecx
shr ecx, 2
inc ecx
rep stosd dword es:[edi], eax
mov byte [esi + 0xc], 1
xor edi, edi
mov eax, edi
pop edi
pop esi
leave
ret