joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f7a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x7c], 0
je 0x43f7e4
push dword [ebp + 8]
call fcn.004440b9
mov esi, eax
test esi, esi
je 0x43f80f
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [0x44601c]
push esi
mov edi, eax
call dword [0x446008]
xor eax, eax
test edi, edi
sete al
jmp 0x43f80f
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0x451e8c
push eax
call dword [0x44648c]
add esp, 0xc
lea eax, [ebp - 0x10]
push dword [esi + 0x90]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x44620c]
pop edi
pop esi
leave
ret 0xc

Function at 0x442ead
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x444dfe
call fcn.00411b48
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CNoTrackObject.0
xor eax, eax
push 0xa
lea ecx, [esi + 0x30]
mov dword [ebp - 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call fcn.00436c36
push 0xa
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.00436c36
push 0xa
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
call fcn.00436a1f
mov ecx, dword [ebp - 0xc]
mov dword [esi], vtable.AFX_MODULE_THREAD_STATE.0
mov dword [esi + 0xc], 0x54
mov dword [esi + 0x28], 0x43afa3
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x401f30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
push eax
mov esi, 4
push str.SoftwareRealtekInitAP
push reloc.DSOUND.dll_DirectSoundEnumerateA
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
call dword [0x407008]
test eax, eax
jne 0x401fb9
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.InitChannel
push ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
call dword [0x407004]
test eax, eax
jne 0x401fae
mov edx, dword [esp + 0x10]
push edx
push str.Current_preset_channel_is__d._n
call fcn.0040287b
mov eax, dword [esp + 0xc]
add esp, 8
push eax
call dword [section..rdata]
mov eax, 1
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 4]
push ecx
call dword [section..rdata]
xor eax, eax
pop esi
add esp, 0x10
ret

Function at 0x402320
Capabilities:
Enumerate gui resources

Disassembly:
push 0
push 0x402340
call sub.DSOUND.dll_DirectSoundEnumerateA
jmp 0x402440
push ecx
push 0
push 0x4023c0
mov dword [0x40a66c], 0
mov dword [esp + 8], 0
call dword [0x407110]
push str.FRONT_PANEL_MESSAGE
call dword [0x407104]
mov ecx, dword [0x40a66c]
test ecx, ecx
je 0x4024b7
mov dl, byte [0x40a658]
cmp dl, 1
je 0x40249c
cmp dl, 4
je 0x40249c
cmp dl, 6
jne 0x402493
mov dx, word [0x409ecc]
jmp 0x4024a3
mov dx, word [0x409ec4]
jmp 0x4024a3
mov dx, word [0x409ec8]
mov word [esp], dx
mov edx, dword [esp]
push 2
push edx
push eax
push ecx
call dword [0x407108]
pop ecx
ret
Function at 0x405d34
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 0x405d62
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 0x405d69
cmp ebx, dword [eax + 4]
jae 0x405d69
xor eax, eax
jmp 0x405f59
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x405d7a
xor eax, eax
inc eax
jmp 0x405f58
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x405d90
cmp ecx, edx
jae 0x405ed5
cmp dword [eax + 4], 0
je 0x405d99
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x405d81
cmp dword [ebp + 8], 0
je 0x405dbb
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x405ed5
cmp eax, esi
jae 0x405ed5
mov eax, dword [0x40ab48]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x405de0
cmp dword [esi*4 + 0x40ab50], edi
je 0x405ed9
inc esi
cmp esi, eax
jl 0x405dce
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x407050]
test eax, eax
je 0x405f55
cmp dword [ebp - 8], 0x1000000
jne 0x405f55
test byte [ebp - 0xc], 0xcc
je 0x405e5e
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x405f55
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x405f55
cmp word [eax + 0x18], 0x10b
jne 0x405f55
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x405f55
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x405e5e
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x405e5e
test byte [ecx + 0x27], 0x80
jne 0x405ed5
push 1
push 0x40ab90
call dword [0x407024]
test eax, eax
jne 0x405d72
mov ecx, dword [0x40ab48]
test ecx, ecx
mov edx, ecx
jle 0x405e92
lea eax, [ecx*4 + 0x40ab4c]
cmp dword [eax], edi
je 0x405e92
dec edx
sub eax, 4
test edx, edx
jg 0x405e86
test edx, edx
jne 0x405ec3
push 0xf
pop ebx
cmp ecx, ebx
jg 0x405e9f
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x405eb7
lea eax, [edx*4 + 0x40ab50]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x405ea5
cmp ecx, 0x10
jge 0x405ec3
inc ecx
mov dword [0x40ab48], ecx
push 0
push 0x40ab90
call dword [0x407024]
jmp 0x405d72
xor eax, eax
jmp 0x405f58
test esi, esi
jle 0x405d72
mov ebx, dword [0x407024]
push 1
push 0x40ab90
call ebx
test eax, eax
jne 0x405d72
cmp dword [esi*4 + 0x40ab50], edi
je 0x405f2f
mov eax, dword [0x40ab48]
lea esi, [eax - 1]
test esi, esi
jl 0x405f1d
cmp dword [esi*4 + 0x40ab50], edi
je 0x405f19
dec esi
jns 0x405f0d
test esi, esi
jge 0x405f2d
cmp eax, 0x10
jge 0x405f28
inc eax
mov dword [0x40ab48], eax
lea esi, [eax - 1]
jmp 0x405f2f
je 0x405f47
xor ecx, ecx
test esi, esi
jl 0x405f47
lea eax, [ecx*4 + 0x40ab50]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x405f35
push 0
push 0x40ab90
call ebx
jmp 0x405d72
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d7e0
Capabilities:
Encode data using xor

Disassembly:
dec ebp
int1
invalid
jb 0x40d7e9
mov esi, dword [esp + 0xc]
mov dword [esi], ecx
add eax, 0x66c88b10
adc esi, ecx
push dword [edi + 0x47]
invalid
pop esi
sar eax, 4
lea eax, [eax + ecx + 8]
ja 0x40d7c7
invalid
call [0x8ea56bd]
sub ecx, dword [eax + 0x10]
sar ecx, 0xc
lea eax, [eax + ecx*8 + 0x18]
or eax, 0xc3f1fa0c
dec dword [edi]
mov dh, 0x11
add dword [eax], edx
and byte [ecx], 0
cmp dword [eax], 0x440c710
push ss
jne 0x40d828
xchg ecx, eax
mov byte [edi + 0x7c], bh
jmp 0x40d7a4
or byte [edi], cl
sal byte [ecx], 0xb6
mov dword [ecx + 0x5e], edx
test byte [eax + 0x57], dh
jo 0x40d881
mov edx, dword [esi - 0x7a]
fcompi st(1)
pop es
mov ebp, 0x59f840f
mov edi, dword [esi + 8]
lea ecx, [esi - 0xfca0e8]
add eax, 0x8d087e8b
mov ds, word [eax]
pop edi
add edi, edi
invalid
sub eax, esi
sub eax, 0x18
sar eax, 3
shl eax, 0xc
add eax, edx
cmp edi, ecx
mov dword [ebp - 4], eax
jae 0x40d890
mov ecx, dword [edi]
loop 0x40d81f
psubsb mm7, qword [edi + 0x3b]
retf
fcmovb st(0), st(4)
sbb ebp, edx
inc edi
inc esi
popfd
adc byte [ebp + 0x3bde187e], cl
fidivr word [ebx]
clc
mov edi, edi
std
cmp ecx, dword [ebx + 0x73]
xor ecx, dword [ebx + 0x7cc33b07]
sbb dword [esp + edx + 0x53], ecx
push eax
push dword [ebp - 4]
jns 0x40d834
invalid
jo 0x40d91e
cwde
dec esi
dec ebx
add dword [ebp - 4], 0x3b08c79f
mov ebx, 0x7df670fe
clc
jb 0x40d88c
inc ebp
jo 0x40d842
jo 0x40d934
adc eax, 0x4722335a
invalid
push es
cmp dword [edi + 0xc], 0
jne 0x40d8f2
mov edi, dword [edi]
cmp edi, eax
jmp 0x40d8ec
invalid
pop edi
or al, 0x43
mov esi, ebx
mov eax, ebx
sub esi, edi
sub esi, 0x18
sar esi, 3
sbb cl, al
inc byte [ebx]
shl esi, 0xc
add esi, dword [edi + 0x10]
cmp dword [ebx], 0xffffffff
sbb al, 0xe
pushal
invalid
loopne 0x40d8fd
push eax
push esi
pushfd
mov esi, eax
jo 0x40d8df
test eax, 0x986943b0
fadd dword [edi + ebx*4]
std
jne 0x40d92a
imul ebx, dword [eax - 0x260fb28], 0x3786f875
xchg byte [edi], dh
in al, dx
mov al, 0x1b
mov esi, 0xd2073fe9
mov ecx, ebx
jle 0x40d970
retf
lea esi, [edi - 0x777f03ab]
hlt
mov bh, 0x55
cld
or byte [eax - 0x7200ae0c], 0x11
outsb dx, byte [esi]
cmp bh, ah
push eax
add al, 0x89
push eax
cld
mov edx, 0xc7119b98
inc ecx
pushfd
cld
mov eax, dword [0x831d08ff]
ror dword [eax], 0xff
dec ebp
cld
jne 0x40d93d
dec esp
test byte [eax - 0x73], dh
xchg ebp, edi
invalid
js 0x40d9ad
enter 0xc73, 0xffffffffffffff83
cmp edi, edi
je 0x40d97f
sbb al, 0xeb
cmp ecx, eax
sbb eax, eax
and eax, ecx
mov dword [edi + 0xc], eax
invalid
out dx, eax
add cl, byte [esi - 0x74d68bab]
xor eax, 0x8b297455
dec eax
adc byte [eax + 0x548d0859], cl
sbb dword [eax], ecx
aaa
or byte [ebp + 0x37081954], cl
jno 0x40d9a1
dec eax
jne 0x40d941
adc dword [ebp + 0x2b], esi
rcr dword [ebp + 0xf], cl
mov dh, 0xd3
ror byte [edi + 0x5029fbe0], 0x18
lea eax, [ecx + 0x5b46eb33]
leave
pop edi
jg 0x40d9a4
xchg edx, edi
mov edx, dword [ebp + 0x10]
imul esi, dword [ecx + 4], 0x57
mov edi, dword [ecx]
lea ebx, [ecx - 0xc4e8]
pop ebp
cld
mov dword [ebp - 4], edi
mov eax, edi
invalid
Function at 0x411c20
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
mov edi, dword [ecx + 0xc]
push 0x10
call esi
movsx eax, ax
shr eax, 0x10
test ax, ax
jne 0x411c67
push 0xd
call esi
movsx eax, ax
shr eax, 0x10
test ax, ax
jne 0x411c67
push 0x20
call esi
movsx eax, ax
shr eax, 0x10
test ax, ax
jne 0x411c67
push 0x11
call esi
movsx eax, ax
shr eax, 0x10
test ax, ax
je 0x411c6a
push 1
pop edi
mov eax, edi
pop edi
pop esi
ret
Function at 0x4134ff
Capabilities:
Delete file

Disassembly:
mov eax, 0x45e148
call fcn.0045dac0
mov eax, 0x1214
call fcn.0045da90
and byte [ebp - 0x1220], 0
push esi
push edi
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x121f]
rep stosd dword es:[edi], eax
and byte [ebp - 0x220], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x21f]
push 0xfff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1220]
mov esi, 0x103
push eax
lea eax, [ebp - 0x220]
push esi
push eax
push dword [ebp + 0xc]
and dword [ebp - 0x14], 0
push 0
push dword [ebp + 8]
call fcn.00439f13
add esp, 0x1c
test al, al
je 0x413669
push ebx
mov ebx, 0x40a168
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x1220]
push ecx
push ebx
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x413638
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp + ecx - 0x1220]
mov dword [ebp - 0x18], eax
mov eax, dword [0x40a0f8]
mov dword [ebp - 0x10], eax
and byte [ebp - 0x11c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x11b]
and dword [ebp - 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40a190
lea eax, [ebp - 0x11c]
push esi
push eax
push dword [0x534a50]
call fcn.00426466
add esp, 0x10
lea eax, [ebp - 0x11c]
lea ecx, [ebp - 0x10]
push eax
call fcn.0041463c
xor eax, eax
cmp dword [ebp - 0x18], eax
je 0x413617
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
push eax
call fcn.00414689
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00411e66
inc dword [ebp - 0x14]
lea eax, [ebp - 0x1220]
push 0xfff
push eax
lea eax, [ebp - 0x220]
push esi
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.00439f13
add esp, 0x1c
test al, al
jne 0x413580
pop ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043a4c3
pop ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
movzx eax, al
mov dword fs:[0], ecx
leave
ret
Function at 0x413687
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x45e15c
call fcn.0045dac0
sub esp, 0x904
push ebx
push esi
mov esi, 0x45fc38
mov eax, esi
test eax, eax
je 0x4136ab
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, 0x460570
push esi
push eax
mov ecx, ebx
call fcn.00414587
cmp dword [ebp + 8], 0
je 0x4138a1
cmp dword [ebp + 0xc], 0
je 0x4138a1
and byte [ebp - 0x910], 0
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x90f]
push 0x7ff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x910]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00439fe7
mov esi, 0x40a168
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x910]
push ecx
push esi
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0x20
test eax, eax
jne 0x413837
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [0x40a0f8]
not ecx
dec ecx
mov dword [ebp + 0xc], eax
lea esi, [ebp + ecx - 0x910]
and byte [ebp - 0x110], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x10f]
and dword [ebp - 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40a190
lea eax, [ebp - 0x110]
push 0x103
push eax
push dword [0x534a50]
call fcn.00426466
add esp, 0x10
lea eax, [ebp - 0x110]
lea ecx, [ebp + 0xc]
push eax
call fcn.0041463c
test esi, esi
jne 0x413796
xor eax, eax
jmp 0x41379d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [ebp + 0xc]
call fcn.00414689
push 0
push dword [ebp + 0xc]
call fcn.0042653d
pop ecx
test eax, eax
pop ecx
je 0x413829
push 0x40a240
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
pop ecx
test edi, edi
pop ecx
mov dword [ebp + 8], edi
je 0x413829
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push edi
call esi
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push dword [ebp + 8]
mov edi, eax
call esi
lea eax, [edi + 1]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
push dword [ebp + 8]
mov esi, eax
push 1
push edi
push esi
call dword [sym.imp.MSVCRT.dll_fread]
and byte [esi + edi], 0
add esp, 0x30
mov ecx, ebx
push esi
call fcn.0041463c
push esi
call dword [sym.imp.MSVCRT.dll_free]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00411e66
jmp 0x413845
lea eax, [ebp - 0x910]
mov ecx, ebx
push eax
call fcn.0041463c
mov eax, dword [0x460570]
mov eax, dword [eax - 8]
lea edi, [eax + 1]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov esi, eax
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
test esi, esi
pop edi
je 0x4138a1
push dword [0x460570]
push esi
call fcn.00433730
push 1
push 9
push 0x40a19c
push eax
push esi
push esi
call fcn.0045c5b0
add esp, 0x20
mov ecx, ebx
push esi
call fcn.0041463c
push esi
call fcn.0045da7b
pop ecx
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4138b2
Capabilities:
Hide graphical window

Disassembly:
push 0
push 0x413e4d
push dword [esp + 0xc]
push 0x12d
push dword [0x534a50]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x41503d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0x460578], esi
jne 0x415084
cmp dword [0x4757f0], esi
je 0x415084
call fcn.0041536b
test eax, eax
je 0x415084
call fcn.00427db8
test eax, eax
je 0x415084
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push esi
push esi
push 0x415274
push esi
push esi
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [0x460578], eax
pop esi
leave
ret

Function at 0x415087
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x14]
push 0x11
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x58]
push 0x40
rep stosd dword es:[edi], eax
xor ebx, ebx
pop ecx
lea edi, [ebp - 0x15b]
mov byte [ebp - 0x15c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x144
xor eax, eax
lea edi, [ebp - 0x66f]
mov byte [ebp - 0x670], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [ebp - 0x15c]
push 0x104
push eax
push dword [0x534a50]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x58], 0x44
call fcn.00426466
add esp, 0x10
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x15c]
push eax
push 0x40a2c4
lea eax, [ebp - 0x670]
push 0x514
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push 0x4000000
push 1
push ebx
lea eax, [ebp - 0x670]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
xor eax, eax
cmp dword [ebp - 4], 1
pop edi
pop esi
sete al
pop ebx
leave
ret
Function at 0x415178
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
push ebx
push 0x24
push 0x40a37c
push 0xcb
call fcn.00424eff
pop ecx
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x415271
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
push 0x40
lea edi, [ebp - 0x157]
pop ecx
mov byte [ebp - 0x158], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x144
xor eax, eax
lea edi, [ebp - 0x66b]
mov byte [ebp - 0x66c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [ebp - 0x158]
push 0x104
push eax
push dword [0x534a50]
mov dword [ebp - 0x54], 0x44
call fcn.00426466
add esp, 0x10
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x158]
push eax
push 0x40a320
lea eax, [ebp - 0x66c]
push 0x514
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push 0x4000000
push 1
push ebx
lea eax, [ebp - 0x66c]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
push dword [0x5341b4]
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x415ed0
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 4], 0xffffffff
push esi
push edi
mov edi, ecx
jne 0x415ee3
mov esi, dword [edi + 0x1fc08]
jmp 0x415ef0
push dword [esp + 0xc]
mov ecx, edi
call fcn.00415ce3
mov esi, eax
test esi, esi
je 0x415f82
mov eax, dword [edi + 0x1fc08]
cmp eax, esi
je 0x415f3a
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x415f19
mov eax, dword [eax + 4]
test eax, eax
je 0x415f19
push 0
push eax
call ebx
push 5
mov dword [edi + 0x1fc08], esi
push dword [esi + 4]
call ebx
push esi
mov ecx, 0x4972e8
call fcn.00441195
lea ecx, [esi + 0x24]
call fcn.00418aa0
pop ebx
mov ecx, edi
call fcn.00417ab9
mov ecx, edi
call fcn.0041570e
mov eax, dword [edi + 0x1fc08]
mov ecx, 0x497318
push dword [eax + 0x10]
call fcn.00439293
push 0
push 1
push 0x68
call fcn.00424eff
pop ecx
push eax
mov ecx, 0x497d60
call fcn.004416e5
push esi
mov ecx, edi
call fcn.00415dd2
push esi
mov ecx, edi
call fcn.004183eb
pop edi
pop esi
ret 4
Function at 0x416337
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
mov dword [ebp - 4], ecx
push edi
xor ebx, ebx
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x80b]
mov byte [ebp - 0x80c], bl
mov esi, SysReAllocStringLen
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push esi
lea eax, [ebp - 0x80c]
push 0x800
push eax
push 0x40a470
push 0x40a468
mov dword [ebp - 0xc], 0x104
call fcn.004245ef
add esp, 0x14
test eax, eax
je 0x4163a1
lea edi, [ebp - 0x80c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4163d9
lea eax, [ebp - 8]
push eax
push 0x40a43c
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4163d9
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x80c]
push eax
push ebx
push ebx
push 0x40a430
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [ebp - 0x80c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x416421
cmp dword [0x473a44], ebx
je 0x41640c
mov ecx, dword [ebp - 4]
push 1
push ebx
lea eax, [ebp - 0x80c]
push dword [ebp + 8]
push 2
push eax
call fcn.004160a5
jmp 0x41641c
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x80c]
push ebx
push eax
call fcn.004161d1
push 1
pop eax
jmp 0x416423
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4166d5
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x45e2f4
call fcn.0045dac0
push ecx
push ecx
mov al, byte [ebp - 0xd]
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x14], esi
mov byte [esi + 4], al
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
lea ecx, [esi + 0x30]
mov dword [ebp - 4], edi
call fcn.0042c893
lea ecx, [esi + 0x14c]
mov byte [ebp - 4], 1
call fcn.0042209c
mov ecx, esi
mov byte [ebp - 4], 2
mov dword [esi], 0x401894
mov dword [esi + 0x144], edi
mov dword [esi + 0x3c], edi
call fcn.004178d4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x417c6e
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0x10], 0
push esi
push edi
lea eax, [ebp - 8]
mov edi, 0x40a530
push eax
mov esi, SysReAllocStringLen
push edi
push esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x417caf
lea eax, [ebp - 8]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x417caf
xor eax, eax
jmp 0x417d2b
lea eax, [ebp - 0xc]
xor edi, edi
push eax
lea eax, [ebp - 4]
push eax
push edi
mov esi, 0x40a51c
push edi
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x417ce5
cmp dword [ebp - 4], 1
sete al
mov dword [ebp - 0x10], eax
xor eax, eax
cmp dword [ebp - 4], edi
sete al
mov dword [ebp - 4], eax
jmp 0x417cec
mov dword [ebp - 4], 1
cmp dword [ebp + 8], edi
je 0x417cfc
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x417d28
push dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push 4
push edi
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0042639c
mov ecx, 0x497338
call fcn.0041c685
mov eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret 4