joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005860
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edi, dword [esi + 0x138]
test edi, edi
je 0x1000587c
movzx eax, word [edi + 6]
jmp 0x1000587e
xor eax, eax
mov ecx, dword [ebp + 8]
movzx eax, ax
cmp ecx, eax
jle 0x100058b3
mov edx, ecx
mov ecx, edi
call fcn.1000fba0
test eax, eax
jne 0x100058b0
push eax
push eax
push 0x28
push eax
push eax
lea ecx, [esi + 8]
xor edx, edx
call fcn.10009e90
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x138]
test eax, eax
jne 0x100058c1
xor esi, esi
jmp 0x100058c4
mov esi, dword [eax + 8]
lea edi, [ebx + 0x24]
add esi, 0x10
lea ebx, [ebx]
dec ecx
mov ebx, edi
mov dword [ebp + 8], ecx
mov edx, 0x1f
mov eax, esi
sub ebx, esi
nop
lea ecx, [edx + 0x7fffffdf]
test ecx, ecx
je 0x100058fc
mov cl, byte [ebx + eax - 0x24]
test cl, cl
je 0x100058fc
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x100058e0
jmp 0x10005900
test edx, edx
jne 0x10005901
dec eax
mov byte [eax], 0
movzx eax, word [edi - 4]
mov word [esi - 8], ax
mov eax, dword [edi]
mov ecx, dword [ebp + 8]
mov dword [esi - 4], eax
movzx eax, word [edi + 4]
mov word [esi + 0x20], ax
mov eax, dword [edi + 8]
mov dword [esi + 0x24], eax
movzx eax, word [edi + 0xc]
mov word [esi + 0x28], ax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x2c], eax
movzx eax, word [edi + 0x14]
mov word [esi + 0x30], ax
movzx eax, word [edi + 0x16]
mov word [esi + 0x32], ax
movzx eax, word [edi + 0x18]
mov word [esi + 0x34], ax
mov eax, dword [edi + 0x1c]
add edi, 0x44
mov dword [esi + 0x38], eax
sub esi, 0xffffff80
test ecx, ecx
jne 0x100058d0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x1000bc10
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10023f34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x108]
mov esi, ecx
push eax
push 0x104
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1000bca6
cmp eax, 0x104
ja 0x1000bca6
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.msvcrt.dll__tempnam]
mov esi, eax
add esp, 8
test esi, esi
je 0x1000bca6
push edi
push 0x1b6
push 0x8342
push esi
call dword [sym.imp.msvcrt.dll__open]
push esi
mov edi, eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 0x10
cmp edi, 0xffffffff
je 0x1000bc93
push 0x10001e28
push edi
call dword [sym.imp.msvcrt.dll__fdopen]
add esp, 8
mov ebx, eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10021ad0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.10021ad0
mov esp, ebp
pop ebp
ret

Function at 0x1000c520
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, 1
mov word [ebp - 4], ax
mov ecx, dword [esi + 0x2a8]
test ecx, ecx
je 0x1000c591
lea eax, [edx - 1]
imul eax, dword [esi + 0x2b0]
push 0
push eax
push ecx
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1000c572
push dword [esi + 0x2a8]
lea eax, [ebp - 4]
push 1
push 2
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
test eax, eax
jne 0x1000c591
push 0
push 0
push 0x27
push 0
push 0
lea ecx, [esi + 8]
xor edx, edx
call fcn.10009e90
add esp, 0x14
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000c740
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
push 0
mov dword [ebp - 0x14], ebx
lea eax, [ebx - 1]
imul eax, dword [edi + 0x2b0]
push eax
push dword [edi + 0x2a8]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1000c8d9
cmp dword [edi + 0x168], 1
jne 0x1000c788
movzx esi, word [edi + 0x144]
jmp 0x1000c79d
mov eax, dword [edi + 0x138]
test eax, eax
je 0x1000c798
movzx eax, word [eax + 6]
jmp 0x1000c79a
xor eax, eax
movzx esi, ax
xor eax, eax
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], eax
jbe 0x1000c8b1
mov edi, edi
push dword [edi + 0x2a8]
lea ecx, [eax + eax]
mov eax, dword [edi + 0x148]
push 1
add eax, ecx
mov dword [ebp - 0x10], ecx
push 2
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
test eax, eax
je 0x1000c8d9
xor edx, edx
mov ecx, edi
xor ebx, ebx
call fcn.10005360
xor ecx, ecx
cmp cx, si
jge 0x1000c89e
lea esi, [eax + 0x68]
cmp dword [edi + 0x168], 3
jne 0x1000c84e
push dword [edi + 0x2a8]
mov eax, dword [esi - 4]
add eax, dword [ebp - 0x10]
push 1
push 2
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
test eax, eax
je 0x1000c8d9
push dword [edi + 0x2a8]
lea eax, [ebp - 4]
push 1
push 2
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
test eax, eax
je 0x1000c8d9
mov ecx, dword [esi]
test ecx, ecx
je 0x1000c84e
mov edx, dword [ebp - 0x10]
mov ax, word [ebp - 4]
mov word [ecx + edx], ax
movzx eax, word [esi - 0x1c]
cmp ax, 8
je 0x1000c867
cmp ax, 0x18
je 0x1000c867
mov eax, dword [esi - 0x18]
test eax, eax
je 0x1000c88d
jmp 0x1000c86c
mov eax, 8
push dword [edi + 0x2a8]
push 1
push eax
mov eax, dword [esi - 0x14]
imul eax, dword [ebp - 0xc]
add eax, dword [esi - 8]
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
test eax, eax
je 0x1000c8d9
inc ebx
sub esi, 0xffffff80
cmp bx, word [ebp - 8]
jl 0x1000c7f3
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, dword [ebp + 8]
jb 0x1000c7b0
mov ebx, dword [ebp - 0x14]
mov dword [edi + 0x15c], eax
dec eax
add eax, ebx
mov dword [edi + 0x160], ebx
mov dword [edi + 0x164], eax
xor eax, eax
mov dword [edi + 0x154], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x27
push 0
push 0
lea ecx, [edi + 8]
xor edx, edx
call fcn.10009e90
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000c900
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0xc], esi
cmp dword [esi + 0x15c], 0
lea edi, [esi + 0x168]
lea ebx, [esi + 0x2a8]
mov dword [ebp - 0x14], edi
je 0x1000cac6
mov ecx, dword [ebx]
test ecx, ecx
jne 0x1000c94f
push ebx
mov edx, edi
mov ecx, esi
call fcn.1000c620
movzx eax, ax
add esp, 4
test ax, ax
jne 0x1000cac8
mov ecx, dword [ebx]
jmp 0x1000c95e
mov eax, dword [esi + 0x164]
cmp eax, dword [ebx + 4]
jbe 0x1000cac6
mov eax, dword [esi + 0x160]
dec eax
imul eax, dword [ebx + 8]
push 0
push eax
push ecx
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1000cad2
cmp dword [edi], 1
jne 0x1000c98f
movzx ecx, word [esi + 0x144]
mov dword [ebp - 0x10], ecx
jmp 0x1000c9a7
mov eax, dword [esi + 0x138]
test eax, eax
je 0x1000c99f
movzx eax, word [eax + 6]
jmp 0x1000c9a1
xor eax, eax
movzx eax, ax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [esi + 0x15c], eax
jbe 0x1000cab8
jmp 0x1000c9c0
push dword [ebx]
lea ecx, [eax + eax]
mov eax, dword [esi + 0x148]
push 1
add eax, ecx
push 2
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x1000cad2
xor edx, edx
mov ecx, esi
xor edi, edi
call fcn.10005360
xor ecx, ecx
cmp cx, word [ebp - 0x10]
jge 0x1000caa5
lea esi, [eax + 0x68]
lea ecx, [ecx]
mov eax, dword [ebp - 0x14]
cmp dword [eax], 3
jne 0x1000ca59
push dword [ebx]
mov eax, dword [esi - 4]
mov edx, dword [ebp - 8]
push 1
push 2
lea eax, [eax + edx*2]
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x1000cacf
mov eax, dword [esi]
test eax, eax
je 0x1000ca3b
mov edx, dword [ebp - 8]
lea ecx, [edx + edx]
movzx eax, word [eax + ecx]
jmp 0x1000ca3e
or eax, 0xffffffff
push dword [ebx]
mov word [ebp - 4], ax
lea eax, [ebp - 4]
push 1
push 2
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x1000cacf
movzx eax, word [esi - 0x1c]
cmp ax, 8
je 0x1000ca72
cmp ax, 0x18
je 0x1000ca72
mov eax, dword [esi - 0x18]
test eax, eax
je 0x1000ca94
jmp 0x1000ca77
mov eax, 8
push dword [ebx]
push 1
push eax
mov eax, dword [esi - 0x14]
imul eax, dword [ebp - 8]
add eax, dword [esi - 8]
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x1000cacf
inc edi
sub esi, 0xffffff80
cmp di, word [ebp - 0x10]
jl 0x1000ca00
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [esi + 0x15c]
jb 0x1000c9c0
mov eax, dword [esi + 0x164]
cmp dword [ebx + 4], eax
jae 0x1000cac6
mov dword [ebx + 4], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0xc]
push 0
push 0
push 0x27
push 0
push 0
lea ecx, [esi + 8]
xor edx, edx
call fcn.10009e90
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000d970
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
xor edi, edi
mov eax, dword [ebx + 0x138]
mov dword [ebp - 4], edi
test eax, eax
je 0x1000d992
movzx ecx, word [eax + 6]
jmp 0x1000d994
xor ecx, ecx
movzx edx, word [ebx + 0x144]
sub ecx, edx
movzx ecx, cx
test eax, eax
jne 0x1000d9a8
xor esi, esi
jmp 0x1000d9b1
movsx esi, dx
shl esi, 7
add esi, dword [eax + 8]
test cx, cx
je 0x1000daf9
lea ebx, [ebx]
movzx eax, word [esi + 8]
dec ecx
mov dword [ebp - 0x1c], ecx
cmp ax, 8
je 0x1000d9d8
cmp ax, 0x18
jne 0x1000daed
cmp dword [esi + 0x7c], 0
jne 0x1000d9f3
mov ecx, 0x10001e54
call fcn.1000bc10
mov dword [esi + 0x7c], eax
test eax, eax
je 0x1000db1b
test edi, edi
jne 0x1000da16
push 0x10000
push edi
push dword [0x10025d40]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x1000db37
push 2
push 0
push dword [esi + 0x7c]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1000db1b
push dword [esi + 0x7c]
call dword [sym.imp.msvcrt.dll_ftell]
add esp, 4
mov dword [ebp - 0x18], eax
xor edx, edx
mov edi, 0x7fffffff
mov dword [ebp - 8], edx
jmp 0x1000da50
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0xc], 0xffff
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
cmp edi, 0xffff
jg 0x1000da6b
mov dword [ebp - 0xc], edi
movsx eax, word [esi + 0x44]
movzx ecx, word [esi]
push edx
lea edx, [ebp - 0x10]
push edx
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push ecx
push dword [ebx + 0x1c]
push 7
push 0x15
push dword [ebx]
call fcn.1000fe40
add esp, 0x28
test ax, ax
jne 0x1000db74
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 4]
jne 0x1000db58
mov eax, dword [ebp - 0x10]
test eax, eax
jle 0x1000dad9
push dword [esi + 0x7c]
push 1
push eax
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x1000db1b
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
sub edi, dword [ebp - 0x10]
jne 0x1000da50
jmp 0x1000dadc
mov edx, dword [ebp - 8]
mov eax, dword [esi + 0x60]
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 4]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 4], edx
sub esi, 0xffffff80
test cx, cx
jne 0x1000d9c0
xor esi, esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x1000db11
push eax
push 0
push dword [0x10025d40]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ax, si
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x27
push 0
push 0
lea ecx, [ebx + 8]
xor edx, edx
call fcn.10009e90
add esp, 0x14
or esi, 0xffffffff
jmp 0x1000dafb
push 0
push 0
push 0x28
push 0
push 0
lea ecx, [ebx + 8]
xor edx, edx
call fcn.10009e90
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x55
push 0
push 0
lea ecx, [ebx + 8]
xor edx, edx
call fcn.10009e90
add esp, 0x14
or esi, 0xffffffff
jmp 0x1000dafb
push dword [ebx]
mov edx, dword [ebx + 0x1c]
lea ecx, [ebx + 8]
call fcn.10009fa0
add esp, 4
or esi, 0xffffffff
jmp 0x1000dafb
Function at 0x10010690
Capabilities:
Create thread

Disassembly:
mov edi, edi
push esi
mov esi, ecx
mov eax, dword [esi + 0x4e4]
test eax, eax
je 0x100106a8
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x100106c0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x4e4], eax
test eax, eax
je 0x1001072c
mov eax, dword [esi + 0x4e8]
test eax, eax
je 0x100106d3
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x100106eb
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x4e8], eax
test eax, eax
je 0x1001072c
cmp dword [esi + 0x4ec], 0
jne 0x10010728
lea eax, [esi + 0x4f0]
push eax
push 0
push esi
push 0x10010260
push 0
push 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x4ec], eax
test eax, eax
je 0x1001072c
push 0xffffffffffffffff
push dword [esi + 0x4e8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x4e4]
test eax, eax
je 0x10010747
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x4e4], 0
mov eax, dword [esi + 0x4e8]
test eax, eax
je 0x10010762
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x4e8], 0
or eax, 0xffffffff
pop esi
ret
Function at 0x10017e60
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10023f34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
movsx eax, dx
mov ebx, dword [esi + 0x2b4]
sub eax, 0
je 0x10017ec9
sub eax, 1
je 0x10017ec2
mov eax, dword [esi + 0x16c]
mov ecx, dword [esi + 0x2a4]
test al, 2
je 0x10018037
or eax, 4
mov dword [esi + 0x16c], eax
test ecx, ecx
je 0x10018037
mov eax, dword [esi + 0x2a0]
mov edx, 5
mov word [ecx + eax*2], dx
jmp 0x10018037
or dword [esi + 0x16c], 4
mov ecx, dword [esi + 0x2a4]
mov edx, 4
inc dword [esi + 0x24]
test ecx, ecx
je 0x10017ee5
mov eax, dword [esi + 0x2a0]
mov word [ecx + eax*2], dx
mov ecx, dword [ebx + 0x1c]
push 1
push 0
push 0xffffffffffffffff
mov eax, dword [ecx + 0x14]
push 0x100036e0
push ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0x18]
push 5
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0x1c]
push 0x19
push dword [ebx]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0xc], eax
call fcn.1000fe40
add esp, 0x20
test eax, eax
jne 0x10018037
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
push eax
push 0xffffffffffffffff
push 0xb
push 0x10
lea eax, [ebp - 0x18]
push eax
push 0xffffffffffffffff
push 0x100036f8
push dword [ebx + 0x1c]
push 0xb
push 8
push dword [ebx]
call fcn.1000fe40
add esp, 0x38
test eax, eax
jne 0x10018037
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
push eax
push 0xffffffffffffffff
push 5
push 0x14
lea eax, [ebp - 0x2c]
push eax
push 0xffffffffffffffff
push 0x100036fc
push dword [ebx + 0x1c]
push 0xb
push 8
push dword [ebx]
call fcn.1000fe40
add esp, 0x38
test eax, eax
jne 0x10018037
push dword [ebx + 0x1c]
push 1
push 0x12
push dword [ebx]
call fcn.1000fe40
add esp, 0x10
test eax, eax
jne 0x10018037
mov ecx, 4
push edi
lea edi, [esi + 0x2a8]
mov word [ebp - 0x30], cx
cmp dword [edi], eax
jne 0x10017fc5
push edi
lea edx, [esi + 0x168]
mov ecx, esi
call fcn.1000c620
add esp, 4
test ax, ax
jne 0x10018036
push 2
push 0
push dword [edi]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1001801f
push dword [edi]
lea eax, [ebp - 0x30]
push 1
push 2
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x1001801f
mov eax, dword [esi + 0x138]
test eax, eax
je 0x10017ffc
mov eax, dword [eax + 8]
push dword [edi]
push 1
push dword [eax + 0x50]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x1001801f
inc dword [esi + 0x298]
inc dword [edi + 4]
jmp 0x10018036
push 0
push 0
push 0x27
push 0
push 0
lea ecx, [esi + 8]
xor edx, edx
call fcn.10009e90
add esp, 0x14
pop edi
lea edx, [ebx + 8]
lea ecx, [esi + 8]
call fcn.10009e30
mov ecx, edx
call fcn.1000a160
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10021ad0
mov esp, ebp
pop ebp
ret
Function at 0x1002139a
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x10023f34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x110]
xor ebx, ebx
push eax
push 0x20019
push ebx
push 0x100041d8
push 0x80000000
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002147d
push edi
lea eax, [ebp - 0x114]
mov dword [ebp - 0x10c], 1
push eax
lea eax, [ebp - 0x108]
mov edi, 0x104
push eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x114], edi
push eax
push ebx
push ebx
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002146c
cmp dword [ebp - 0x10c], 2
mov byte [ebp - 5], bl
jne 0x1002143d
push edi
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb ebx, ebx
inc ebx
jmp 0x1002146c
lea ecx, [ebp - 0x108]
sub ecx, esi
lea eax, [edi + 0x7ffffefa]
test eax, eax
je 0x1002145e
mov al, byte [ecx + esi]
test al, al
je 0x1002145e
mov byte [esi], al
inc esi
sub edi, 1
jne 0x10021445
test edi, edi
jne 0x10021463
dec esi
mov byte [esi], bl
xor ebx, ebx
test edi, edi
setne bl
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
jmp 0x1002147f
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10021ad0
leave
ret

Function at 0x10021ce0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x10021d1e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10021d16
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10021d20
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10021d06
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10021df0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x10021e21
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10021e21
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x10021e21
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1002b2b3
Capabilities:
Encode data using xor

Disassembly:
call 0x1002b22c
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x1002b25c
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x1002b278
xor edx, 0
jmp 0x1002b283
xor edx, edx
jmp 0x1002b29a
jmp 0x1002b2a6
xor eax, eax
push 0x8427d7c0
call 0x1002b2b3
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x1002b2ef
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x1002b2c8
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x1002b306
add eax, 0
jno 0x1002b30b
add esi, 0
ret 0x10

Function at 0x1002c074
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x1002c096
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x1002c238
cmp edi, dword [ebp + 0x10]
jb 0x1002c238
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.1002bb60
inc edi
jmp 0x1002c11f
jmp 0x1002c12c
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1002bb60
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1002bb60
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x1002c180
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x1002c164
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.1002c1ae
add dword [eax], 0x39
jle 0x1002c18a
sub al, 0xf5
mov ch, al
call fcn.1002c1c3
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10