joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4de800
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
xor edi, edi
mov eax, dword [esi + 0x6af90]
mov dword [esi + 0x6af80], 2
test eax, eax
je 0x4dea29
cmp eax, 3
jb 0x4de876
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
and ecx, 0x7fff
and edx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
test ebx, ebx
je 0x4de8b3
mov eax, dword [esi + 0x6af84]
sub eax, ebx
cmp eax, 0x7efa
ja 0x4de8b3
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x4de89d
mov dword [esi + 0x6afa0], eax
mov edx, ebx
mov ecx, esi
call fcn.004debc0
mov ecx, dword [esi + 0x6af90]
mov edi, eax
cmp edi, ecx
cmova edi, ecx
mov ecx, dword [esi + 0x6af84]
cmp edi, 3
jb 0x4de9ac
sub ecx, dword [esi + 0x6af88]
lea eax, [edi - 3]
mov edx, ecx
mov ecx, esi
push eax
call fcn.004df480
mov ecx, dword [esi + 0x6af90]
add esp, 4
sub ecx, edi
mov dword [ebp - 4], eax
mov dword [esi + 0x6af90], ecx
cmp edi, dword [esi + 0x6af98]
ja 0x4de962
cmp ecx, 3
jb 0x4de962
dec edi
nop word [eax + eax]
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
and edx, 0x7fff
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
sub edi, 1
jne 0x4de900
inc dword [esi + 0x6af84]
mov eax, dword [ebp - 4]
jmp 0x4de9cd
add dword [esi + 0x6af84], edi
mov dl, 1
mov eax, dword [esi + 0x6af84]
xor edi, edi
push 0x609dc4
movzx ecx, byte [esi + eax + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [eax + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
mov ecx, esi
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
call fcn.004e0590
mov eax, dword [ebp - 4]
add esp, 4
jmp 0x4de9cd
movzx eax, byte [esi + ecx + 0x1af70]
xor edx, edx
push eax
mov ecx, esi
call fcn.004df480
dec dword [esi + 0x6af90]
add esp, 4
inc dword [esi + 0x6af84]
mov ecx, dword [esi + 0x6af84]
lea edx, [esi + 0x1af70]
test eax, eax
je 0x4dea07
mov eax, dword [esi + 0x6af74]
sub ecx, eax
push 0
push ecx
xor ecx, ecx
add edx, eax
test eax, eax
cmovs edx, ecx
mov ecx, esi
call fcn.004df670
mov eax, dword [esi + 0x6af84]
add esp, 8
mov dword [esi + 0x6af74], eax
mov eax, dword [esi + 0x6af90]
cmp eax, 0x106
jae 0x4dea21
mov ecx, esi
call fcn.004dea60
mov eax, dword [esi + 0x6af90]
test eax, eax
jne 0x4de825
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x4dea3d
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x4dea3f
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
mov ecx, esi
push 1
push eax
call fcn.004df670
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e6750
Capabilities:
Access peb ldr_data
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d3b47
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x6dd1e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [edi + 0xc]
call fcn.0051df40
cmp eax, 6
jle 0x4e6795
lea ecx, [edi + 0xc]
call fcn.0051dd30
push eax
lea ecx, [edi + 0x34]
call fcn.00517540
mov eax, dword [edi + 0xa4]
test eax, eax
je 0x4e67a8
push eax
call fcn.004191d0
add esp, 4
lea ecx, [edi + 0xa0]
mov dword [edi + 0xa4], 0
call fcn.004e8520
lea ecx, [edi + 0x9c]
call fcn.004e8520
mov eax, dword [edi + 0x98]
test eax, eax
je 0x4e6801
push fcn.0051dfd0
lea esi, [eax - 4]
mov dword [ebp - 4], 0
push dword [esi]
push 0xc
push eax
call fcn.0041eb24
mov eax, dword [esi]
lea eax, [eax + eax*2]
lea eax, [eax*4 + 4]
push eax
push esi
call fcn.0041e89b
add esp, 8
lea ecx, [edi + 0x84]
call fcn.0051dfd0
lea ecx, [edi + 0x78]
call fcn.0051dfd0
mov eax, dword [edi + 0x70]
test eax, eax
je 0x4e6824
push eax
call fcn.0041e896
add esp, 4
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x4e6834
push eax
call fcn.0041e896
add esp, 4
mov eax, dword [edi + 0x48]
test eax, eax
je 0x4e6844
push eax
call fcn.0041e896
add esp, 4
lea ecx, [edi + 0x34]
call fcn.005187c0
lea ecx, [edi + 0x30]
call fcn.005187c0
lea ecx, [edi + 0xc]
call fcn.0051dfd0
mov ecx, edi
call fcn.0051dfd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e6880
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d3bfd
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6dd1e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0051e180
lea ecx, [esi + 0xc]
mov dword [ebp - 4], 0
call fcn.0051e180
lea ecx, [esi + 0x30]
call fcn.00518880
lea ecx, [esi + 0x34]
call fcn.00518880
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 3
call fcn.004e6a20
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 4
call fcn.004e6a20
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 5
call fcn.004e6a20
lea ecx, [esi + 0x78]
call fcn.0051e180
lea ecx, [esi + 0x84]
call fcn.0051e180
mov dword [esi + 0x98], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
lea ecx, [esi + 0x9c]
call fcn.004e8540
lea ecx, [esi + 0xa0]
call fcn.004e8540
mov dword [esi + 0xa4], 0
push ecx
mov ecx, esi
mov byte [ebp - 4], 0xc
call fcn.004e6690
mov dword [esi + 0x1c], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4ebc50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x90
mov dword [ebp - 4], edx
mov ebx, ecx
call fcn.0041eaa4
mov esi, eax
add esp, 4
mov dword [ebp - 8], esi
mov dword [esi], 0
lea ecx, [esi + 0x54]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov byte [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x4c], 0
call fcn.0051e180
lea ecx, [esi + 0x60]
call fcn.0051e180
lea ecx, [esi + 0x6c]
call fcn.0051e180
lea ecx, [esi + 0x78]
call fcn.0051e180
lea ecx, [esi + 0x84]
call fcn.0051e180
push 0x44
push 0
push esi
call fcn.00420580
add esp, 0xc
lea ecx, [esi + 0x6c]
push ebx
call fcn.0051e0b0
push dword [ebp - 4]
mov ebx, dword [ebp + 8]
lea ecx, [esi + 0x60]
mov dword [esi + 0x24], ebx
call fcn.0051e0b0
lea ecx, [esi + 0x60]
call fcn.0051df40
test eax, eax
je 0x4ebd57
lea ecx, [esi + 0x60]
call fcn.0051bdc0
mov eax, dword [ebp + 0x14]
lea ecx, [esi + 0x78]
push dword [ebp + 0x10]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x2c], eax
call fcn.0051e0b0
push 0x604f80
lea ecx, [esi + 0x84]
call fcn.0051e0b0
push 0
push 0
push esi
push 0x4eaeb0
push 0
push 0
call dword [0x5de380]
mov dword [esi + 0x3c], eax
test eax, eax
jne 0x4ebdac
push ecx
mov ecx, esi
call fcn.004020e0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
test bl, 1
je 0x4ebddf
xor edx, edx
mov ecx, eax
call fcn.00503650
test al, al
je 0x4ebddf
mov edi, dword [0x5de438]
call fcn.0051adc0
test al, al
jne 0x4ebdd1
push 5
call edi
mov ecx, dword [esi + 0x3c]
xor edx, edx
call fcn.00503650
test al, al
jne 0x4ebdc4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4efe70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d4513
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6dd1e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0
lea ecx, [esi + 0x30]
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], 0xffffffff
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0xff000000
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi + 0x20], 0xfff0f0ff
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0xc
mov dword [esi + 0x2c], 0
call fcn.004fd600
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push dword [ebp + 0x18]
mov dword [ebp - 4], 0
mov ecx, esi
push dword [ebp + 0x14]
mov dword [esi + 0x290], 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004ef450
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x20
Function at 0x515710
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d5e6e
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x6dd1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
push 0xf01ff
call dword [0x5de4d8]
push eax
call dword [0x5de064]
test eax, eax
jne 0x51576c
xor esi, esi
jmp 0x5158b0
test edi, edi
mov dword [ebp - 0x14], 0
lea esi, [ebp - 0x14]
xorps xmm0, xmm0
cmovne esi, edi
movlpd qword [ebp - 0x20], xmm0
push 0x94
mov dword [ebp - 0x24], esi
mov dword [esi], 0x94
call fcn.0041eeca
mov edi, eax
mov dword [ebp - 0x1c], 0x94
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 1
push dword [esi]
call fcn.0041eeca
push dword [esi]
mov ebx, eax
push 0
push edi
call fcn.00420580
mov esi, dword [section..rdata]
lea eax, [edi + 4]
add esp, 0x14
mov dword [edi], 0xc
push eax
push str.SeRestorePrivilege
push 0
call esi
lea eax, [edi + 0x10]
push eax
push str.SeTakeOwnershipPrivilege
push 0
call esi
lea eax, [edi + 0x1c]
push eax
push str.SeDebugPrivilege
push 0
call esi
lea eax, [edi + 0x28]
push eax
push str.SeSecurityPrivilege
push 0
call esi
lea eax, [edi + 0x34]
push eax
push str.SeBackupPrivilege
push 0
call esi
lea eax, [edi + 0x40]
push eax
push str.SeImpersonatePrivilege
push 0
call esi
lea eax, [edi + 0x4c]
push eax
push str.SeSystemProfilePrivilege
push 0
call esi
lea eax, [edi + 0x58]
push eax
push str.SeAssignPrimaryTokenPrivilege
push 0
call esi
lea eax, [edi + 0x64]
push eax
push str.SeTrustedCredManAccessPrivilege
push 0
call esi
lea eax, [edi + 0x70]
push eax
push str.SeTcbPrivilege
push 0
call esi
lea eax, [edi + 0x7c]
push eax
push str.SeIncreaseQuotaPrivilege
push 0
call esi
lea eax, [edi + 0x88]
push eax
push str.SeShutdownPrivilege
push 0
call esi
lea eax, [edi + 0xc]
mov ecx, 0xc
nop
mov dword [eax], 2
lea eax, [eax + 0xc]
sub ecx, 1
jne 0x515870
mov eax, dword [ebp - 0x24]
push eax
push ebx
push dword [eax]
push edi
push ecx
push dword [ebp - 0x18]
call dword [0x5de140]
test eax, eax
jne 0x5158a5
xor esi, esi
test ebx, ebx
je 0x5158a7
push ebx
call fcn.0041e896
add esp, 4
jmp 0x5158a7
mov esi, ebx
push edi
call fcn.0041e896
add esp, 4
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xffffffff
je 0x5158c3
test ecx, ecx
je 0x5158c3
push ecx
call dword [0x5de390]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e885
mov esp, ebp
pop ebp
ret
Function at 0x401373
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
xor eax, eax
cmp dword [0x4150b4], eax
jne 0x4013b2
cmp dword [ebp + 8], eax
jne 0x40139e
call fcn.00402d22
mov dword [eax], 0x16
call fcn.00402cd0
mov eax, 0x7fffffff
pop ebp
ret
cmp dword [ebp + 0xc], eax
je 0x401387
cmp dword [ebp + 0x10], 0x7fffffff
ja 0x401387
pop ebp
jmp fcn.00402d40
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401291
add esp, 0x10
pop ebp
ret

Function at 0x402cc7
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
mov bh, 0x41
adc al, 0xf
mov bh, 0x71
push es

Function at 0x402d40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
inc dword [ebp + 0x58]
popaw
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x3c]
add esi, edi
mov ebx, dword [esi + 0x78]
call fcn.00402c87
dec edi
xor esi, ebp
lahf
push esi
push ebx
call fcn.00402cc7
pop ecx
test eax, eax
pop ecx
je 0x402e1a
push edi
push esi
push ebx
call fcn.00402d07
add esp, 0xc
call fcn.00402c87
push ebx
lahf
xchg ebx, eax
dec esp
mov esi, dword [esi + 0x78]
test esi, esi
je 0x402e1a
mov ebx, dword [esi + edi + 0x24]
add esi, edi
add ebx, edi
call fcn.00402c87
inc ecx
sbb eax, 0x468bdf3e
and byte [ebx], al
invalid
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402e7f
Capabilities:
Inspect section memory permissions

Disassembly:
std
add eax, 0x788b0000
cmp al, 3
clc
movzx eax, word [edi + 0x14]
lea esi, [eax + edi + 0x18]
mov dword [ebp - 0x44], esi
call fcn.00402c87
inc esi
cmp eax, 0xb70f79af
inc edi
push es
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 8], eax
call fcn.00402c87
ja 0x402f31
lodsd eax, dword [esi]
test al, 0x50
Function at 0x403159
Capabilities:
Inspect section memory permissions

Disassembly:
inc esi
inc ebp
adc byte [ecx - 0x3a], 0x45
xor dword [ebx - 0x3a], 0xc6628245
inc ebp
sbb dword [ebx - 0x3a], 0x45
test byte [ecx - 0x3a], bh
inc ebp
test dword [edx - 0x3a], esi
inc ebp
xchg byte [ebx - 0x3a], ah
inc ebp
xchg dword [edx - 0x3a], edi
inc ebp
mov byte [ebx - 0x3a], dh
inc ebp
mov dword [esi - 0x3a], ebx
inc ebp
mov dh, byte [edi - 0x3a]
inc ebp
mov edi, dword [eax - 0x3a]
inc ebp
invalid
jp 0x403121
inc ebp
invalid

Function at 0x40319f
Capabilities:
Inspect section memory permissions

Disassembly:
mov esi, eax
cmp esi, ebx
je 0x403480
push dword [ebp - 0xb4]
push dword [ebp + 0x10]
push esi
call fcn.00402bf8
add esp, 0xc
cmp word [edi + 6], bx
invalid

Function at 0x4031c0
Capabilities:
Inspect section memory permissions

Disassembly:
adc byte [eax], al
add bh, bh
jne 0x4031a4
push ebx
call dword [ebp - 0x88]
test bh, dl
add al, byte [eax]
add bh, bh
mov ch, 0x4c
pop ebp
or al, 0x76
xor ecx, dword [edi]
mov bh, 0x45
or al, 0x8b
dec ebp
mov esp, 0xff80048d
je 0x403192
adc byte [ebp + 0x488bc104], cl
adc al, 0x8b
inc eax
or al, 3
dec ebp
adc byte [ebx], al
invalid

Function at 0x4031ec
Capabilities:
Inspect section memory permissions

Disassembly:
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.00402bf8
add esp, 0xc
inc dword [ebp + 0xc]
or al, 0x66
mov eax, dword [ebp + 0xc]
or al, 0x66
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x4031c4
call fcn.00402c87
stosb byte es:[edi], al
jae 0x40324f
push cs
mov edi, dword [esi + 0x3c]
add edi, esi
mov dword [ebp - 0x88], edi
invalid
dec dword [ebx + 0x8087]
add byte [ebx], bh
ret
je 0x403476
add eax, esi
mov dword [ebp - 0x44], eax
invalid
push 0x8000
push ebx
push esi
Function at 0x407d50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x41403c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.HKLM__SYSTEMCurrentControlSetServices_sParametersPnpInterface____i__0x00010003_1_r_n
push 0xfe
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
push 0
push 0x4272d4
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [0x41664c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
push eax
push str._HKEY_LOCAL_MACHINESETUPREGControlSet001Services_sParametersPnpInterface__r_n
push 0xfe
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x10
push 0
push 0x4272d4
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [0x416964]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp + 0xc]
push edx
push str.__i_dword:00000001_r_n_r_n
push 0xfe
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x10
push 0
push 0x4272d4
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [ebp - 0x108]
push edx
mov eax, dword [0x416964]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
movzx ecx, byte [0x4272c6]
test ecx, ecx
je 0x407e95
push 0xfe
push 0
lea edx, [ebp - 0x108]
push edx
call fcn.00401050
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.0x4__ControlSet001Services_sParametersPnpInterface____i__0x1
push 0xfe
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
push 0x426ea0
lea eax, [ebp - 0x108]
push eax
push str.SetupReg.AddReg
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401035
mov esp, ebp
pop ebp
ret 8
Function at 0x407eb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2134
call fcn.00405340
mov eax, dword [0x41403c]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetFieldCount]
mov dword [ebp - 0x10ac], eax
mov dword [ebp - 0x2134], 1
jmp 0x407ef9
mov ecx, dword [ebp - 0x2134]
add ecx, 1
mov dword [ebp - 0x2134], ecx
mov edx, dword [ebp - 0x2134]
cmp edx, dword [ebp - 0x10ac]
ja 0x4080a7
push 0x4272d0
push 0x80
lea eax, [ebp - 0x10a8]
push eax
mov ecx, dword [ebp - 0x2134]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
lea eax, [ebp - 0x10]
push eax
push 0
lea ecx, [ebp - 0x10a8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
test eax, eax
je 0x4080a2
push 0x4272d0
push 0x200
lea eax, [ebp - 0x1028]
push eax
push 0
lea ecx, [ebp - 0x10a8]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetLineTextA]
push 4
push str.HKR_
lea ecx, [ebp - 0x1028]
push ecx
call fcn.00401373
add esp, 0xc
test eax, eax
jne 0x40808c
push 0x4272d0
push 0x80
lea edx, [ebp - 0x1130]
push edx
push 2
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
push str.ParametersPnpInterface
lea ecx, [ebp - 0x1130]
push ecx
call fcn.0040124a
add esp, 8
test eax, eax
jne 0x407ffd
push 0x4272d0
push 0x10
lea edx, [ebp - 0x28]
push edx
push 3
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
push 0x4271b8
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push str.PnpInterface
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [ebp - 0x14], 1
movzx eax, byte [0x4272c3]
test eax, eax
je 0x40808c
movsx ecx, byte [ebp - 0x1130]
test ecx, ecx
je 0x40803e
lea edx, [ebp - 0x1024]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0x412558
push 0x1000
lea ecx, [ebp - 0x2130]
push ecx
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
jmp 0x408063
lea edx, [ebp - 0x1024]
push edx
mov eax, dword [ebp + 0x10]
push eax
push str.HKLM___Services___s_s_r_n
push 0x1000
lea ecx, [ebp - 0x2130]
push ecx
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
push 0
push 0x4272d4
lea edx, [ebp - 0x2130]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x2130]
push eax
mov ecx, dword [0x416b74]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x407f4c
jmp 0x407eea
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00401035
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4080c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x14]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx + 0x18]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
cmp eax, dword [edx + 0x14]
jae 0x4080f0
mov eax, dword [ebp + 0xc]
jmp 0x4081ba
xor ecx, ecx
mov word [ebp - 0xc], cx
jmp 0x408104
mov dx, word [ebp - 0xc]
add dx, 1
mov word [ebp - 0xc], dx
movzx eax, word [ebp - 0xc]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 6]
cmp eax, edx
jge 0x4081b8
movzx eax, word [ebp - 0xc]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + eax + 0x10], 0
je 0x40813b
movzx edx, word [ebp - 0xc]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + edx + 0x10]
mov dword [ebp - 8], ecx
jmp 0x40814c
movzx edx, word [ebp - 0xc]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + edx + 8]
mov dword [ebp - 8], ecx
movzx edx, word [ebp - 0xc]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [eax + edx + 0xc]
jb 0x4081b3
movzx edx, word [ebp - 0xc]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + edx + 0xc]
add ecx, dword [ebp - 8]
cmp dword [ebp + 0xc], ecx
jae 0x4081b3
movzx edx, word [ebp - 0xc]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x10]
cmp dword [eax + edx + 0x14], 0
je 0x4081ae
movzx ecx, word [ebp - 0xc]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
sub eax, dword [edx + ecx + 0xc]
mov dword [ebp - 4], eax
movzx ecx, word [ebp - 0xc]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
add eax, dword [edx + ecx + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x4081ba
jmp 0x4080f8
xor eax, eax
mov esp, ebp
pop ebp
ret 8