joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f1160
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
push ebx
xor eax, 0xa1c7da5e
mov dword [ebp - 0x1c], 0xaa7575b3
mov dword [ebp - 0x18], 0xf0a59521
mov dword [ebp - 0x14], 0x315b1289
mov dword [ebp - 0x10], 0x5985ddca
push esi
push edi
cmp eax, 0xa1c7da5f
jne 0x4f1378
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x3c]
mov eax, dword [eax + edx + 0xc0]
mov ecx, eax
xor ecx, 0xd41a4afc
lea esi, [eax + edx]
xor eax, eax
cmp ecx, 0xd41a4afc
cmove esi, eax
mov eax, esi
xor eax, 0x6353233
cmp eax, 0x6353233
je 0x4f1378
mov ebx, dword [esi + 0xc]
lea eax, [ebp - 0x1c]
push 0
push 0xf67b7b8d
push eax
lea edx, [esi + 0x324]
mov dword [ebp - 0xc], ebx
lea ecx, [esi + 0xbc]
call section..gcode
mov eax, dword [ebx + 4]
add esp, 0xc
xor eax, 0x26ceb048
cmp eax, 0x26ceb048
je 0x4f1378
mov eax, dword fs:[0x18]
xor edx, edx
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 8]
mov eax, dword fs:[0x18]
lea edi, [ebx + 0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x3c]
movzx eax, word [ecx + ebx + 0x14]
add eax, ecx
add edi, eax
movzx eax, word [ecx + ebx + 6]
xor ecx, ecx
mov dword [ebp - 8], edi
mov dword [ebp + 0xc], eax
cmp cx, ax
jae 0x4f1281
nop dword [eax]
movzx eax, dx
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0xc]
lea edi, [edi + eax*8]
lea eax, [ecx + ebx]
cmp eax, entry1
ja 0x4f1275
mov eax, dword [edi + 0x10]
add eax, ecx
add eax, ebx
cmp eax, entry1
ja 0x4f1283
inc edx
cmp dx, word [ebp + 0xc]
jae 0x4f1281
mov edi, dword [ebp - 8]
jmp 0x4f1250
xor edi, edi
mov eax, edi
xor eax, 0xa2f25b9c
cmp eax, 0xa2f25b9c
je 0x4f1378
mov eax, dword fs:[0x18]
mov ecx, dword [edi + 0xc]
mov edi, dword [edi + 0x10]
add edi, ecx
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 8]
add edi, edx
lea eax, [ecx + edx]
cmp eax, edi
jae 0x4f1360
mov ebx, dword [esi + 0x2fc]
nop dword [eax]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
xor ecx, ebx
xor edx, dword [esi + 0x300]
xor ecx, 0x45ecc763
xor edx, 0
cmp ecx, 0x45ecc763
jne 0x4f1357
test edx, edx
jne 0x4f1357
mov ecx, dword [esi + 0x304]
xor ecx, dword [eax + 8]
mov edx, dword [esi + 0x308]
xor ecx, 0xc3464624
xor edx, dword [eax + 0xc]
xor edx, 0
cmp ecx, 0xc3464624
jne 0x4f1357
test edx, edx
jne 0x4f1357
mov ecx, dword [esi + 0x30c]
xor ecx, dword [eax + 0x10]
mov edx, dword [esi + 0x310]
xor ecx, 0x5ce40551
xor edx, dword [eax + 0x14]
xor edx, 0
cmp ecx, 0x5ce40551
jne 0x4f1357
test edx, edx
jne 0x4f1357
mov ecx, dword [esi + 0x314]
xor ecx, dword [eax + 0x18]
mov edx, dword [esi + 0x318]
xor ecx, 0x15070819
xor edx, dword [eax + 0x1c]
xor edx, 0
cmp ecx, 0x15070819
jne 0x4f1357
test edx, edx
je 0x4f1362
inc eax
cmp eax, edi
jb 0x4f12c0
xor eax, eax
mov ecx, eax
xor ecx, 0x13a49b90
cmp ecx, 0x13a49b90
je 0x4f1378
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x432002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x405b24
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sar eax, 2
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x405ba4
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
jbe 0x405ba3
push ebx
mov ebx, 0x481a88
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebx
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00402409
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebx
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00402409
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x428558
mov byte [edi + esi], al
call fcn.0040f68e
xor byte [edi + esi], al
add esp, 0x1c
inc esi
cmp esi, dword [ebp + 0x18]
jb 0x405b46
pop ebx
pop esi
lea ecx, [ebp + 8]
call fcn.0040563b
pop edi
pop ebp
ret 0x14

Function at 0x40951b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40953c
jl 0x409533
test edi, edi
jne 0x40953c
xor eax, eax
xor edx, edx
jmp 0x4095fd
cmp dword [ebx + 0x38], 0
je 0x409551
push eax
push edi
push dword [ebp + 8]
call fcn.00409603
jmp 0x4095fd
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x409598
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x409598
cmp eax, edi
jb 0x409572
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040ad60
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40959e
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4095f2
mov ecx, ebx
call fcn.00408db5
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4095dd
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00413408
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4095f2
jmp 0x4095b0
test edx, edx
je 0x4095f2
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00413408
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40a8bf
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a8fe
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40a8fe
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a8fe
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40a8fe
cmp dword [ecx + 0x74], 0xe
jbe 0x40a8fe
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41ccb8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041cb29

Function at 0x41d0b2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040ad10
mov eax, dword [0x47fe00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041ac75
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41d0f4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41d250
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00426840
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x482430]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041de51
mov ecx, dword [esi*4 + 0x482430]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41d249
cmp eax, dword [edi + ecx + 0x24]
jne 0x41d249
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d249
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041de51
add esp, 0x14
test edx, edx
jl 0x41d249
jg 0x41d1bf
test eax, eax
jb 0x41d249
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41d249
jl 0x41d1d9
cmp dword [ebp - 0x1008], eax
ja 0x41d249
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41d1f7
test ebx, ebx
je 0x41d230
cmp ecx, edi
jae 0x41d230
mov al, byte [ecx]
cmp al, 0xd
jne 0x41d211
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41d21d
cmp byte [ecx + 1], 0xa
jne 0x41d21d
inc ecx
jmp 0x41d21d
movzx eax, al
movsx eax, byte [eax + 0x4800c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41d1f7
cmp edx, ebx
jne 0x41d1f7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41d24e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a123
leave
ret
Function at 0x41d2ef
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x482430]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41d32f
cmp byte [ebx], 0xa
jne 0x41d32f
or byte [eax + edi + 0x28], 4
jmp 0x41d334
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41d432
mov al, byte [edx]
cmp al, 0x1a
je 0x41d414
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41d363
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41d388
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41d392
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41d345
jmp 0x41d432
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d40f
cmp dword [ebp - 0xc], 0
je 0x41d40f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x482430]
test byte [eax + edi + 0x28], 0x48
je 0x41d3e9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41d3d4
mov byte [esi], dl
jmp 0x41d3e5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x482430]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41d432
cmp byte [ebp - 1], 0xa
jne 0x41d3f8
cmp esi, ebx
jne 0x41d3f8
mov byte [esi], 0xa
jmp 0x41d431
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041de6f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41d432
mov byte [esi], 0xd
jmp 0x41d431
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x482430]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d42e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d432
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41d43b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x482430]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41d47e
cmp word [esi], dx
jne 0x41d47e
or byte [edi + eax + 0x28], 4
jmp 0x41d483
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41d5d6
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41d5b6
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41d4c5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41d4fb
cmp eax, edx
jae 0x41d507
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41d49d
jmp 0x41d5d6
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d5b2
cmp dword [ebp - 0x14], 0
je 0x41d5b2
mov eax, dword [ebx*4 + 0x482430]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41d58a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41d553
mov word [esi], cx
jmp 0x41d586
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x482430]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x482430]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x482430]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41d5d6
pop ebx
cmp word [ebp - 4], bx
jne 0x41d59b
cmp esi, dword [ebp + 0xc]
jne 0x41d59b
mov word [esi], bx
jmp 0x41d5d3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041de6f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41d5d6
push 0xd
jmp 0x41d5cf
mov ecx, dword [ebx*4 + 0x482430]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d5cd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d5d6
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10002ed6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
jne 0x10002ef0
xor esi, esi
jmp 0x10002f1e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.10004fe0
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 4], edi
jne 0x10002f59
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x10002f52
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x10002fee
xor esi, esi
jmp 0x10002fee
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x10002f7c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x10002f8f
xor esi, esi
jmp 0x10002fe5
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
jne 0x10002fa1
jmp 0x10002f6c
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x10002fe5
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov eax, dword [ebp + 8]
cmp byte [esi + eax], bl
je 0x10002fd7
lea eax, [esi + 1]
add eax, 3
and al, 0xfc
call fcn.10004fe0
lea eax, [esi + 1]
mov edi, esp
push eax
push dword [ebp + 8]
push edi
call fcn.10004bc0
add esp, 0xc
mov byte [edi + esi], bl
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push edi
call fcn.10003055
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esp, [ebp - 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10003a0b
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [ebp - 4]
push dword [ebx]
mov dword [ebp - 4], esi
call fcn.100039cd
mov edi, eax
cmp edi, esi
je 0x10003a4b
cmp dword [ebp - 4], esi
je 0x10003a44
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x10003ae8
lea eax, [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 8], 0x100
push eax
push esi
push dword [ebp - 4]
call edi
test eax, eax
jne 0x10003abc
lea eax, [ebp - 0x114]
lea ecx, [ebp - 4]
push eax
call fcn.10003a0b
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x10003aa9
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 0x100
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push dword [ebp - 4]
jmp 0x10003a6e
cmp dword [ebp - 4], esi
je 0x10003ab7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
jmp 0x10003ae8
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x10003acf
push dword [ebp - 4]
call edi
mov dword [ebp - 4], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 4], esi
mov ebx, eax
je 0x10003ae6
push dword [ebp - 4]
call edi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10003aef
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.10004fe0
push ebx
push esi
lea eax, [ebp - 0x2014]
push edi
mov esi, ecx
push eax
mov dword [ebp - 0x14], esi
call fcn.100031ae
xor edi, edi
cmp eax, edi
jl 0x10003ca7
lea eax, [ebp - 0xa]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.10003cb4
pop ecx
test eax, eax
pop ecx
jne 0x10003b3a
mov eax, 0x80020009
jmp 0x10003ca7
mov ecx, esi
call fcn.10003186
lea eax, [ebp - 0x1014]
mov ecx, esi
push eax
call fcn.100031ae
cmp eax, edi
jl 0x10003ca7
movzx eax, word [ebp - 0xa]
sub eax, 8
je 0x10003c6f
sub eax, 9
je 0x10003bd4
dec eax
dec eax
jne 0x10003c96
lea eax, [ebp - 0x1014]
test eax, eax
jne 0x10003b7f
xor ebx, ebx
jmp 0x10003bb4
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.10004fe0
mov ebx, esp
push esi
push ebx
lea eax, [ebp - 0x1014]
push 0xffffffffffffffff
push eax
push edi
push edi
mov word [ebx], di
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x10]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
jmp 0x10003c87
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 8], eax
jne 0x10003c10
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.10004fe0
mov dword [ebp - 4], esp
push ebx
push edi
push dword [ebp - 4]
call fcn.10005480
add esp, 0xc
cmp dword [ebp - 4], edi
jne 0x10003c1a
mov eax, 0x80004005
jmp 0x10003ca7
cmp dword [ebp - 8], 0
jle 0x10003c54
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov al, byte [ebp + edi - 0x1014]
push eax
call fcn.10003d3b
pop ecx
mov ecx, edi
push 4
and ecx, 1
shl ecx, 2
mov edx, ecx
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x10003c20
mov eax, dword [ebp + 8]
push ebx
push dword [ebp - 4]
mov eax, dword [eax]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
jmp 0x10003c96
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.100031ae
cmp eax, edi
jl 0x10003ca7
xor eax, eax
lea esp, [ebp - 0x2020]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10007866
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10010510
cmp edx, dword [eax]
je 0x10007888
add eax, 8
inc ecx
cmp eax, 0x100105a0
jl 0x10007879
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10010510]
jne 0x100079b6
mov eax, dword [0x10010ed0]
cmp eax, 1
je 0x10007990
test eax, eax
jne 0x100078b9
cmp dword [0x10010ed4], 1
je 0x10007990
cmp edx, 0xfc
je 0x100079b6
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100078f0
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.100082e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.100083d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10007933
lea eax, [ebp - 0x1a4]
push eax
call fcn.100083d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1000c7dc
push edi
call fcn.100088d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.100082e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.100082f0
lea eax, [ebp - 0xa0]
push 0x1000c7bc
push eax
call fcn.100082f0
push dword [esi + 0x10010514]
lea eax, [ebp - 0xa0]
push eax
call fcn.100082f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1000883f
add esp, 0x2c
pop edi
jmp 0x100079b6
lea eax, [ebp + 8]
lea esi, [esi + 0x10010514]
push 0
push eax
push dword [esi]
call fcn.100083d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401800
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x401839
mov eax, ebx
call dbg.free_system_information
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov ebx, dword [ebp - 4]
leave
ret