joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4866c3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4bea70
cmp edx, dword [eax]
je 0x4866e5
add eax, 8
inc ecx
cmp eax, 0x4beb00
jl 0x4866d6
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4bea70]
jne 0x486813
mov eax, dword [0x52aca4]
cmp eax, 1
je 0x4867ed
test eax, eax
jne 0x486716
cmp dword [0x4bbe64], 1
je 0x4867ed
cmp edx, 0xfc
je 0x486813
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x48674d
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00483470
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00481ad0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x486790
lea eax, [ebp - 0x1a4]
push eax
call fcn.00481ad0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4aee44
push edi
call fcn.0047e370
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00483470
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00483480
lea eax, [ebp - 0xa0]
push 0x4aee24
push eax
call fcn.00483480
push dword [esi + 0x4bea74]
lea eax, [ebp - 0xa0]
push eax
call fcn.00483480
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00488741
add esp, 0x2c
pop edi
jmp 0x486813
lea eax, [ebp + 8]
lea esi, [esi + 0x4bea74]
push 0
push eax
push dword [esi]
call fcn.00481ad0
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 0x48bc70
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x48bca0
push esi
call fcn.0048d6c0
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x48bc99
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x48bd16
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x48bd0b
mov eax, dword [esi + 8]
test eax, eax
je 0x48bcc4
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x48bd3e
cmp eax, 2
je 0x48bd0b
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x48bcb7
cmp eax, 3
je 0x48bcea
cmp eax, 1
jne 0x48bcb7
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x48bcb7
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x48bcb7
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x48bd36
cmp eax, 0xcc
je 0x48bd36
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
mov edx, dword [esi + 0x18]
cmp dword [edx], 0
jne 0x48bd42
xor al, al
pop esi
ret
push esi
call fcn.0048bd50
add esp, 4
pop esi
ret
Function at 0x498e90
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x498f30
push ebx
push ebp
push esi
mov esi, dword [ecx]
push edi
xor eax, eax
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov edi, dword [ecx + 4]
xor esi, esi
cmp edi, edx
jle 0x498ee2
mov ebp, dword [ecx]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x4c03d0]
xor eax, edx
inc esi
cmp esi, edi
jl 0x498ec3
xor edx, edx
mov edi, dword [ecx + 0xc]
xor esi, esi
cmp edi, edx
jle 0x498f0b
mov ebp, dword [ecx + 8]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x4c03d0]
xor eax, edx
inc esi
cmp esi, edi
jl 0x498eee
mov edx, dword [ecx]
pop edi
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
shr eax, 0x18
pop esi
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret
Function at 0x43d084
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 3
sub ecx, eax
pop edx
movss xmm0, dword [ecx + eax]
xorps xmm0, xmmword [0x10066d30]
movss dword [eax], xmm0
lea eax, [eax + 4]
dec edx
jne 0x43d091
ret
Function at 0x4cef16
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002d9f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1003c634]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x4cf01e
cmp byte [edi + 0x49], 0
je 0x4cf01e
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x4cf012
lea esi, [ebp - 0x2c]
call fcn.004cec16
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x4cef89
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x4cefb2
dec eax
je 0x4cefb6
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x4cf00d
jmp 0x4cf019
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x4cefc6
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x4cefef
cmp ebx, 0x10
jae 0x4cefd5
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004d834b
add esp, 0x10
cmp esi, eax
jne 0x4cf00a
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x4cf016
test esi, esi
jne 0x4cef7d
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.004cec76
jmp 0x4cef77
lea ecx, [ebp - 0x2c]
call fcn.004cfe36
xor al, al
jmp 0x4cf020
lea ecx, [ebp - 0x2c]
call fcn.004cfe36
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d7260
mov esp, ebp
pop ebp
ret
Function at 0x4cf1e6
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002d57b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1003c634]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], 0x1003295c
call fcn.004d691d
push 4
mov dword [ebp - 4], 0
call fcn.004d77c5
mov edi, eax
add esp, 4
test edi, edi
je 0x4cf262
call fcn.004d6e41
mov dword [edi], eax
call fcn.004d6c00
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004d6a63
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4cf258
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004d6a8b
jmp 0x4cf264
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4d55a6
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002e230
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x1003c634]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + esi + 0x38]
xor ebx, ebx
mov edi, 0x100640c0
mov dword [ebp - 0x20], 0x100
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], esi
cmp ecx, eax
je 0x4d5609
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
xor eax, eax
mov dword [ebp - 4], eax
call fcn.004d4ce6
mov byte [ebp - 0x24], al
mov dword [ebp - 4], 1
test al, al
je 0x4d5723
mov byte [ebp - 4], 2
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + esi + 0x38]
mov eax, dword [ecx + 0x20]
cmp dword [eax], 0
je 0x4d5647
mov edx, dword [ecx + 0x30]
cmp dword [edx], 0
jle 0x4d5647
mov eax, dword [eax]
movzx eax, byte [eax]
jmp 0x4d564e
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
cmp eax, 0xffffffff
jne 0x4d5663
or dword [ebp - 0x14], 1
mov dword [ebp - 4], 1
jmp 0x4d5723
movzx ecx, byte [ebp + 0xc]
cmp eax, ecx
jne 0x4d56af
add dword [esi + 8], 1
mov eax, dword [esi]
adc dword [esi + 0xc], 0
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + esi + 0x38]
mov edx, dword [ecx + 0x20]
cmp dword [edx], 0
je 0x4d569f
mov eax, dword [ecx + 0x30]
cmp dword [eax], 0
jle 0x4d569f
dec dword [eax]
mov ecx, dword [ecx + 0x20]
inc dword [ecx]
mov dword [ebp - 4], 1
jmp 0x4d5723
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
mov dword [ebp - 4], 1
jmp 0x4d5723
add dword [ebp - 0x20], 0xffffffff
adc ebx, 0xffffffff
test ebx, ebx
jg 0x4d56cf
jl 0x4d56c2
cmp dword [ebp - 0x20], 0
ja 0x4d56cf
or dword [ebp - 0x14], 2
mov dword [ebp - 4], 1
jmp 0x4d5723
add dword [esi + 8], 1
adc dword [esi + 0xc], 0
mov byte [edi], al
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
mov eax, dword [edx + esi + 0x38]
inc edi
mov dword [ebp - 0x18], edi
call fcn.004d4c66
jmp 0x4d564e
mov eax, dword [ebp - 0x14]
mov byte [edi], 0
mov edx, dword [esi + 8]
or edx, dword [esi + 0xc]
jne 0x4d5734
or eax, 2
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test eax, eax
je 0x4d5752
or eax, dword [ecx + 0xc]
cmp dword [ecx + 0x38], 0
jne 0x4d574b
or eax, 4
push 0
call fcn.004cd586
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
mov ecx, dword [edx + 4]
mov ecx, dword [ecx + eax + 0x38]
test ecx, ecx
je 0x4d5770
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4ea626
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1002deee
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1003c634]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov eax, dword [0x1003c634]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push esi
push 0x1003356c
mov ecx, 0x10062e68
call fcn.004cce76
add esp, 8
xor ebx, ebx
mov eax, esi
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xc], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4ea686
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x14]
call fcn.004d2e16
lea ecx, [edi + 4]
lea eax, [esp + 0xc]
mov dword [esp + 0x38], ebx
call fcn.004d54f6
test eax, eax
setne bl
cmp dword [esp + 0x20], 0x10
jb 0x4ea6c3
mov eax, dword [esp + 0xc]
push eax
call fcn.004d7576
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004d7260
mov esp, ebp
pop ebp
ret

Function at 0x4f3926
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
sub esp, 0xc
cmp byte [eax], 0
push ebx
push esi
push edi
jne 0x4f3a5e
push 0
call dword [0x1002f094]
mov ebx, eax
mov eax, dword [ebx + 0x3c]
movzx ecx, word [eax + ebx + 0x14]
add eax, ebx
lea edi, [ecx + eax + 0x18]
movzx eax, word [eax + 6]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4f3a58
mov ecx, 0x10032568
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4f398d
test dl, dl
je 0x4f3989
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4f398d
add eax, 2
add ecx, 2
test dl, dl
jne 0x4f396d
xor eax, eax
jmp 0x4f3992
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4f39ca
mov ecx, 0x10032570
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4f39bd
test dl, dl
je 0x4f39b9
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4f39bd
add eax, 2
add ecx, 2
test dl, dl
jne 0x4f399d
xor eax, eax
jmp 0x4f39c2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4f3a44
mov esi, dword [edi + 8]
mov edx, dword [edi + 0xc]
add esi, 0xfff
and esi, 0xfffff000
push esi
push edx
push edi
push 0x10032578
mov ecx, 0x10062e68
call fcn.004cce76
mov eax, dword [edi + 0x24]
mov edx, dword [edi + 0xc]
add esp, 0x10
and eax, 0x20000000
neg eax
sbb eax, eax
and eax, 0x3c
lea ecx, [esp + 0x14]
push ecx
add eax, 4
push eax
push esi
add edx, ebx
push edx
call dword [0x1002f090]
test eax, eax
jne 0x4f3a44
push 0x10
push 0x10032840
push 0x100325b0
push eax
call dword [0x1002f1dc]
push 0x100325b0
push 0x1003284c
mov ecx, 0x10062e68
call fcn.004cce76
add esp, 8
mov eax, dword [esp + 0x10]
dec eax
add edi, 0x28
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4f3966
mov eax, dword [ebp + 8]
mov byte [eax], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40a75d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, dword [ebp + 0xc]
and eax, 3
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
sub ecx, eax
je 0x40a7a7
rol edx, 5
xor edx, dword [esi + ebx]
add esi, 4
imul eax, edx, 0x9e3779b9
rol eax, 5
xor eax, 4
imul edx, eax, 0x9e3779b9
cmp esi, ecx
jb 0x40a776
jmp 0x40a7a7
movsx ecx, byte [esi + ebx]
rol edx, 5
xor edx, ecx
imul edx, edx, 0x9e3779b9
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x40a797
pop esi
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x40b6ca
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x40b6ff
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x40b729
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40b729
test edi, edi
je 0x40b6f6
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40b6f6
test edi, edi
je 0x40b731
mov eax, edi
jmp 0x40b6f8
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40b6f8
mov esi, 0xc3
push esi
push str.c:_builds_moz2_slave_m_in_w32_d_0000000000000000000_build_src_mfbt_Poison.cpp
push str.no_usable_poison_region_identified
call fcn.0040f26f
add esp, 0xc
int3
Function at 0x40f2a3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestWeakPtr.exe_gMozillaPoisonSize], eax
call fcn.0040b6ca
pop ecx
mov ecx, dword [sym.TestWeakPtr.exe_gMozillaPoisonSize]
mov dword [sym.TestWeakPtr.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40f2db
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestWeakPtr.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x403e57
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp byte [edi], 0x25
jne 0x403ed4
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push eax
call fcn.00403093
lea eax, [ebp + eax - 0x105]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x25
jne 0x403ebc
and byte [eax], 0
push dword [ebp + 0x1c]
lea eax, [ebp - 0x104]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push eax
push 0x4016ec
call esi
pop edi
pop esi
leave
ret 0x18

Function at 0x4041d7
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0xc]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40422c
push esi
push esi
push esi
lea eax, [ebp - 4]
push esi
push eax
push esi
lea eax, [ebp + 8]
push esi
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x404223
cmp dword [ebp + 8], esi
jne 0x404223
cmp dword [ebp - 4], esi
jne 0x404223
push 1
pop esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 8

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x10001740
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10034b5f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x1007700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
mov dword [edi + 4], vtable.CWorker.0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xaa55aa55
mov byte [ebp - 4], 1
lea esi, [edi + 0xf60]
mov dword [edi + 0x18], vtable.ICallback.0
xorps xmm0, xmm0
mov dword [edi], vtable.CDevice.2.0
mov dword [edi + 4], vtable.CDevice.1.0
mov dword [edi + 0x18], vtable.CDevice.0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
movups xmmword [edi + 0x40], xmm0
mov dword [ebp - 0x14], esi
movups xmmword [edi + 0x50], xmm0
movq qword [edi + 0x60], xmm0
mov dword [edi + 0x20], 0x48
mov dword [edi + 0x24], 0x70000000
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x68], 0x1c
mov dword [edi + 0x6c], 0
mov dword [edi + 0x7e8], 0
mov dword [edi + 0x7ec], 0
mov dword [edi + 0x7f0], 0
mov dword [edi + 0x7f4], 0
mov dword [edi + 0x7e0], 0x1c
mov dword [edi + 0x7e4], 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10006b80
mov dword [esi], eax
lea esi, [edi + 0xf68]
mov byte [ebp - 4], 2
push 0
push 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10006b50
mov dword [esi], eax
lea esi, [edi + 0xf70]
mov byte [ebp - 4], 3
push 0
push 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10006b20
mov dword [esi], eax
lea esi, [edi + 0xfa4]
push esi
mov dword [edi + 0xfa0], 0x1006e294
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [edi + 0xfbc], esi
lea eax, [edi + 0xfc8]
mov dword [edi + 0xfc4], 1
mov ecx, 0x100
mov dword [edi + 0xfc0], 0
nop dword [eax + eax]
mov dword [eax + 8], 0
xorps xmm0, xmm0
mov dword [eax + 0xc], 0
lea eax, [eax + 0x44]
mov dword [eax - 0x34], 0
mov dword [eax - 0x30], 0
mov byte [eax - 0x24], 0
movups xmmword [eax - 0x23], xmm0
movq qword [eax - 0x13], xmm0
mov dword [eax - 0xb], 0
mov word [eax - 7], 0
mov byte [eax - 5], 0
mov dword [eax - 4], 0
mov dword [eax - 0x44], 0x44
mov dword [eax - 0x40], 0xd
sub ecx, 1
jne 0x10001900
mov dword [edi + 0x53d0], ecx
mov eax, edi
mov dword [edi + 0x1c], ecx
mov dword [edi + 0xf9c], ecx
mov dword [edi + 0xf5c], ecx
mov dword [edi + 0xf58], ecx
mov dword [edi + 0x53cc], ecx
mov dword [edi + 0x53c8], ecx
mov dword [edi + 0xf78], ecx
mov dword [edi + 0xf7c], ecx
mov dword [edi + 0xf98], ecx
mov dword [edi + 0xf80], ecx
mov dword [edi + 0xf84], ecx
mov dword [edi + 0xf90], ecx
mov dword [edi + 0xf94], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10001e90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa5c
mov eax, dword [0x1007700c]
xor eax, esp
mov dword [esp + 0xa58], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
jne 0x10001f46
lea ecx, [ebx + 0xf60]
call fcn.100051b0
mov ecx, dword [ebx + 0x1c]
lea edx, [esp + 0xc]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0xc], 0x1c
mov dword [esp + 0x10], esi
mov eax, dword [ecx]
push edx
push 0x5010005
call dword [eax + 0x1c]
test eax, eax
js 0x10001f46
movzx eax, byte [esp + 0x2c]
lea esi, [ebx + 0x68]
push 0x778
mov dword [ebx + 0xf58], eax
movzx eax, byte [esp + 0x31]
push 0
push esi
mov dword [ebx + 0xf5c], eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebx + 0xf5c]
add esp, 0xc
imul eax, dword [ebx + 0xf58]
mov dword [esi], 0x778
mov esi, dword [ebp + 8]
mov dword [ebx + 0x6c], 0x80000000
mov dword [ebx + 0x88], eax
mov ecx, dword [ebx + 0x1c]
lea edx, [esp + 0x30]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x5c], 1
mov dword [esp + 0x30], 0x34
mov dword [esp + 0x34], 0x80000000
mov dword [esp + 0x48], 0x18
mov dword [esp + 0x64], esi
mov eax, dword [ecx]
push edx
push 0x5010013
call dword [eax + 0x1c]
mov edx, eax
test edx, edx
js 0x10001fbb
mov ecx, dword [esp + 0x4c]
xor eax, eax
cmp dword [esp + 0x50], eax
mov dword [edi], ecx
mov ecx, dword [esp + 0x54]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x5c]
jmp 0x1000202d
mov ecx, dword [ebx + 0x1c]
lea edx, [esp + 0x68]
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x68], 0x1c
mov dword [esp + 0x6c], 0
mov dword [esp + 0xa5c], esi
mov eax, dword [ecx]
push edx
push 0x5010009
call dword [eax + 0x1c]
mov edx, eax
test edx, edx
js 0x1000203e
mov ecx, dword [esp + 0x84]
xor eax, eax
cmp dword [esp + 0x88], eax
mov dword [edi], ecx
mov ecx, dword [esp + 0x8c]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x94]
setne al
mov dword [edi + 0xc], 0
inc eax
mov dword [edi + 8], ecx
mov dword [edi + 0xc], eax
mov ecx, dword [esp + 0xa64]
mov eax, edx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10033482
mov esp, ebp
pop ebp
ret 8