joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407660
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push dword [0x411190]
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
mov eax, dword [0x411194]
cmp dword [ebp + 8], 0
je 0x40769e
test eax, eax
je 0x4076cc
mov esi, dword [0x41119c]
test esi, esi
jne 0x407779
mov dword [0x411190], 0
jmp 0x4076ac
mov dword [0x411190], 0
test eax, eax
je 0x4076bb
push dword [0x411198]
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
mov dword [0x411194], 0
xor edi, edi
jmp 0x4077e5
mov dword [0x411194], 0x1000
push 0x1000
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
mov esi, eax
mov dword [0x411198], eax
mov byte [eax], 0
mov dword [0x41119c], eax
jmp 0x407779
push esi
call dword [sym.imp.ucrtbase.dll_strlen]
add esp, 4
mov edi, eax
mov ebx, dword [0x411198]
inc eax
push eax
push esi
push ebx
call sym._memmove
add esp, 0xc
mov esi, dword [0x411194]
mov eax, esi
sub eax, edi
cmp eax, 2
ja 0x407747
add esi, esi
mov dword [0x411194], esi
push esi
push ebx
call dword [sym.imp.ucrtbase.dll_realloc]
add esp, 8
mov ebx, eax
mov dword [0x411198], eax
mov eax, edi
not eax
add eax, esi
add ebx, edi
push dword [ebp + 8]
push eax
push 1
push ebx
call dword [sym.imp.ucrtbase.dll_fread]
add esp, 0x10
test eax, eax
je 0x4077ec
mov esi, dword [0x411198]
add eax, edi
mov byte [esi + eax], 0
mov dword [0x41119c], esi
push 0x40df9e
push esi
call dword [sym.imp.ucrtbase.dll_strpbrk]
add esp, 8
test eax, eax
je 0x407700
lea ecx, [eax + 1]
mov dword [0x41119c], ecx
cmp byte [eax], 0xd
jne 0x4077ac
cmp byte [ecx], 0xa
jne 0x4077ac
lea ecx, [eax + 2]
mov dword [0x41119c], ecx
mov byte [eax], 0
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ebx, eax
add eax, eax
push eax
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
mov edi, eax
push ebx
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [0x411190], edi
mov eax, edi
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [0x41119c], 0
mov ebx, dword [0x411198]
test ebx, ebx
je 0x407828
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov esi, eax
add eax, eax
push eax
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
mov edi, eax
push esi
push eax
push 0xffffffffffffffff
push ebx
jmp 0x4077d5
xor edi, edi
jmp 0x4077df
Function at 0x407830
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], 0
test esi, esi
je 0x4078a6
cmp word [esi], 0
je 0x4078a6
lea edx, [ebp - 0x10]
mov ecx, esi
call sym._parse_key_name
mov edi, eax
mov ebx, dword [ebp - 0x10]
test eax, eax
je 0x407864
test ebx, ebx
jne 0x407885
jmp 0x40788b
test ebx, ebx
je 0x40786e
mov word [ebx - 2], 0
push esi
push 0xbcc
call sym._output_message
add esp, 8
call sym._error_exit
test ebx, ebx
je 0x40788b
cmp word [ebx], 0
jne 0x40789e
push esi
push 0xbce
call sym._output_message
add esp, 8
call sym._error_exit
push ebx
push edi
call dword [sym.imp.advapi32.dll_RegDeleteTreeW]
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x408b50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, edx
mov ebx, ecx
push 0x40dc46
push ecx
call dword [sym.imp.kernel32.dll_lstrcmpW]
test eax, eax
je 0x408bc9
push 0x40e024
push ebx
call dword [sym.imp.ucrtbase.dll__wfopen]
add esp, 8
mov edi, eax
test eax, eax
jne 0x408ba2
push 0x40d582
call dword [sym.imp.ucrtbase.dll__wperror]
add esp, 4
push ebx
push 0xbbf
call sym._output_message
add esp, 8
call sym._error_exit
xor edi, edi
test esi, esi
je 0x408bf3
mov esi, dword [sym.imp.ucrtbase.dll_fwrite]
push edi
push 2
push 1
push str.Windows_Registry_Editor_Version_5.00_r_n
call esi
add esp, 0x10
push edi
push 0x26
push 2
push 0x40df3a
call esi
jmp 0x408c03
push 1
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
add esp, 4
mov edi, eax
push eax
call dword [sym.imp.ucrtbase.dll__fileno]
add esp, 4
push 0x8000
push eax
call dword [sym.imp.ucrtbase.dll__setmode]
add esp, 8
test esi, esi
jne 0x408ba6
push edi
push 1
push 0xa
push str.REGEDIT4_r_n
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
mov eax, edi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x409350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov edi, edx
mov esi, ecx
cmp dword [ebp + 8], 0
je 0x40938d
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x409370
sar eax, 1
push esi
push eax
push 2
push edi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x14
jmp 0x4093e3
test edi, edi
je 0x4093cc
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [ebp - 0x10], eax
push eax
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
mov ebx, eax
push 0
push 0
push dword [ebp - 0x10]
push eax
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
jmp 0x4093ce
xor ebx, ebx
push esi
push ebx
call dword [sym.imp.ucrtbase.dll_fputs]
add esp, 8
push ebx
call dword [sym.imp.ucrtbase.dll_free]
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40b090
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push eax
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.ucrtbase.dll_strlen]
add esp, 4
test eax, eax
je 0x40b0e2
mov esi, eax
xor eax, eax
cmp byte [esi + edi - 1], 0xa
je 0x40b0c1
mov eax, dword fs:[0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
xchg dword [0x411244], eax
push 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
add esp, 4
push eax
push esi
push 1
push edi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
jmp 0x40b0e4
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebp
ret
Function at 0x40b8c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push 1
call sym.__configure_wide_argv
add esp, 4
call sym.__initialize_wide_environment
call sym.___p___argc
mov edi, dword [eax]
call sym.___p___wargv
mov ebx, dword [eax]
call sym.__get_initial_wide_environment
mov esi, eax
call sym._get_nt_header
xor ecx, ecx
cmp word [eax + 0x5c], 2
sete cl
inc ecx
push ecx
call sym.__set_app_type
add esp, 4
push esi
push ebx
push edi
call sym._wmain
add esp, 0xc
push eax
call sym._exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x40b970
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
xor ebx, ebx
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov esi, eax
xor eax, eax
jmp 0x40b99b
xor edx, edx
test eax, eax
je 0x40b9e7
add esi, 2
mov ebx, edx
movzx ecx, word [esi]
cmp ecx, 9
je 0x40b990
test ecx, ecx
je 0x40b9e7
cmp cx, 0x20
jne 0x40b9b1
test eax, eax
je 0x40b9e7
xor edx, edx
cmp ecx, 0x22
je 0x40b9c2
cmp ecx, 0x5c
jne 0x40b996
inc ebx
mov edx, ebx
jmp 0x40b996
xor ecx, ecx
test eax, eax
sete byte [ebp - 0xd]
test bl, 1
jne 0x40b996
movzx eax, byte [ebp - 0xd]
mov cl, al
mov eax, ecx
jmp 0x40b996
movzx ecx, word [esi + 2]
add esi, 2
cmp cx, 0x20
je 0x40b9e0
movzx eax, cx
cmp eax, 9
je 0x40b9e0
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
test byte [ebp - 0x28], 1
jne 0x40ba12
mov word [ebp - 0x24], 1
mov edi, 1
jmp 0x40ba16
movzx edi, word [ebp - 0x24]
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push edi
push esi
push 0
push eax
call sym._wWinMain_16
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10112d41
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10112d80
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10112d80
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10112d80
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10112d80
cmp dword [ecx + 0x74], 0xe
jbe 0x10112d80
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10115a90
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10115b2d
push ebx
push esi
call fcn.10115a59
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.101159ed
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10115ada
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10115b2c
push edi
push eax
call fcn.10114410
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10115afa
call fcn.1011445e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10115b2b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.101159ed
add esp, 0x20
test eax, eax
jne 0x10115b19
push edi
call fcn.1011445e
jmp 0x10115b21
push ebx
call fcn.1011445e
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10115d9a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1011dec8
push 0x1011dec0
push str.FlsAlloc
push 0x1f
call fcn.10115cb6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10115dce
push dword [ebp + 8]
mov ecx, esi
call dword [0x1011c124]
call esi
jmp 0x10115dd4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10115e18
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1011ded8
push 0x1011ded0
push str.FlsGetValue
push 0x21
call fcn.10115cb6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10115e4f
push dword [ebp + 8]
mov ecx, esi
call dword [0x1011c124]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10115e57
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1011dee0
push 0x1011ded8
push str.FlsSetValue
push 0x22
call fcn.10115cb6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10115e91
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1011c124]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1011b2e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1011b30d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1011b30d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x1006d32a
Capabilities:
Packed with generic packer

Disassembly:
mov eax, 0x483cb
jmp fcn.10001058

Function at 0x1006d334
Capabilities:
Packed with generic packer

Disassembly:
mov eax, 0x483a7
jmp fcn.10001058

Function at 0x1006d33e
Capabilities:
Packed with generic packer

Disassembly:
mov eax, 0x4838f
jmp fcn.10001058

Function at 0x1006d348
Capabilities:
Packed with generic packer

Disassembly:
mov eax, 0x4839b
jmp fcn.10001058

Function at 0x1006d352
Capabilities:
Packed with generic packer

Disassembly:
mov eax, 0x483b3
jmp fcn.10001058

Function at 0x1006d35c
Capabilities:
Packed with generic packer

Disassembly:
mov eax, 0x483bf
jmp fcn.10001058
Function at 0x40324c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x40325b
pop dword [ebp - 4]
mov eax, 0x2665097
sub eax, 0x2261e3c
sub dword [ebp - 4], eax
mov dword [ebp - 0x14], 0xf0fa1af3
sub dword [ebp - 0x14], 0xa2a7d5a8
mov dword [ebp - 0x10], 0x2e789fb0
add dword [ebp - 0x10], 0x3baac95
mov dword [ebp - 0xc], 0x1674cd7f
add dword [ebp - 0xc], 0x35d776af
mov dword [ebp - 8], 0x8336c100
sub dword [ebp - 8], 0x8336c100
lea eax, [ebp - 0x14]
push eax
mov eax, 0x74b25278
sub eax, 0x7471d200
add eax, dword [ebp - 4]
call dword [eax]
mov dword [ebp - 0x14], 0x70b7240d
add dword [ebp - 0x14], 0x3bb4549
mov dword [ebp - 0x10], 0x2ab5dd4f
sub dword [ebp - 0x10], 0xe9497bda
mov dword [ebp - 0xc], 0x12487914
sub dword [ebp - 0xc], 0xaed90ca8
mov dword [ebp - 8], 0xabfd417d
sub dword [ebp - 8], 0xabfd417d
lea ebx, [ebp - 0x14]
push ebx
push eax
mov eax, 0xac99fab9
add eax, 0x53a685c3
add eax, dword [ebp - 4]
call dword [eax]
push 0x40
push 0x1000
push 0x35794
push 0
call eax
mov ecx, 0xbc88589f
add ecx, 0x4377e926
xor ebx, ebx
add ebx, eax
mov edi, 0x9136eb43
sub edi, 0x90f16943
add edi, dword [ebp - 4]
mov edx, 0x273f66fe
sub edx, 0x523a376a
mov esi, dword [edi]
xor esi, edx
mov dword [ebx], esi
add ebx, 4
add edi, 0x37632835
sub edi, 0x37632831
loop 0x40337f
add eax, 0xb92563e6
add eax, 0x46db9601
mov ebx, eax
add eax, 0x6fe7702c
add eax, 0x90188fd9
mov ecx, 0x9865799d
add ecx, 0x67da8663
add ecx, dword [ebp - 4]
call ebx
leave
ret
Function at 0x4016b0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x41c470]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0
jg 0x4016d0
xor eax, eax
jmp 0x401804
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x4016e2
or eax, 0xffffffff
jmp 0x401804
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.0040a630
add esp, 8
lea ecx, [ebp - 0x110]
push ecx
call fcn.0040a5a0
add esp, 4
mov dword [ebp - 0x114], eax
mov edx, dword [ebp - 0x114]
movsx eax, byte [ebp + edx - 0x111]
cmp eax, 0x5c
jne 0x40172b
mov ecx, dword [ebp - 0x114]
mov byte [ebp + ecx - 0x111], 0
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x401744
or eax, 0xffffffff
jmp 0x401804
mov eax, dword [ebp + 0xc]
sub eax, 1
mov dword [ebp + 0xc], eax
jne 0x401759
mov eax, 1
jmp 0x401804
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.0040a550
add esp, 0x14
movsx ecx, byte [ebp - 0x218]
test ecx, ecx
je 0x4017b5
push 0x416280
lea edx, [ebp - 0x218]
push edx
call fcn.0040a2d0
add esp, 8
test eax, eax
je 0x4017b5
push 0x416284
lea eax, [ebp - 0x218]
push eax
call fcn.0040a2d0
add esp, 8
test eax, eax
jne 0x4017ba
or eax, 0xffffffff
jmp 0x401804
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.0040a2a3
add esp, 0x14
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x110]
push edx
call fcn.004016b0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
jge 0x4017fe
mov eax, 1
jmp 0x401804
mov eax, dword [ebp - 4]
add eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00409fb6
mov esp, ebp
pop ebp
ret
Function at 0x401820
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x41c470]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 0x10], 0
jg 0x401840
xor eax, eax
jmp 0x401a0d
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x401852
or eax, 0xffffffff
jmp 0x401a0d
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.0040a630
add esp, 8
lea ecx, [ebp - 0x110]
push ecx
call fcn.0040a5a0
add esp, 4
mov dword [ebp - 0x114], eax
mov edx, dword [ebp - 0x114]
movsx eax, byte [ebp + edx - 0x111]
cmp eax, 0x5c
jne 0x40189b
mov ecx, dword [ebp - 0x114]
mov byte [ebp + ecx - 0x111], 0
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4018bf
or eax, 0xffffffff
jmp 0x401a0d
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x21c]
push edx
push 0
push 0
lea eax, [ebp - 0x220]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x401905
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x401a0d
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x220], 0
ja 0x401924
cmp dword [ebp - 0x21c], 0
jbe 0x40192c
or eax, 0xffffffff
jmp 0x401a0d
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x401949
or eax, 0xffffffff
jmp 0x401a0d
mov eax, dword [ebp + 0x10]
sub eax, 1
mov dword [ebp + 0x10], eax
jne 0x40195e
mov eax, 1
jmp 0x401a0d
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.0040a550
add esp, 0x14
movsx ecx, byte [ebp - 0x218]
test ecx, ecx
je 0x4019ba
push 0x416288
lea edx, [ebp - 0x218]
push edx
call fcn.0040a2d0
add esp, 8
test eax, eax
je 0x4019ba
push 0x41628c
lea eax, [ebp - 0x218]
push eax
call fcn.0040a2d0
add esp, 8
test eax, eax
jne 0x4019bf
or eax, 0xffffffff
jmp 0x401a0d
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.0040a2a3
add esp, 0x14
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401820
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
jge 0x401a07
mov eax, 1
jmp 0x401a0d
mov eax, dword [ebp - 4]
add eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00409fb6
mov esp, ebp
pop ebp
ret
Function at 0x401ca0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x41c470]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + 1]
cmp ecx, 0x3a
je 0x401ccc
mov edx, dword [ebp + 8]
movsx eax, word [edx]
cmp eax, 0x5c5c
jne 0x401cdb
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x401e25
mov byte [ebp - 0x228], 0
mov dl, byte [ebp - 0x228]
mov byte [ebp - 0x118], dl
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x118]
push ecx
push str.______
mov edx, dword [ebp + 8]
push edx
call fcn.0040a825
add esp, 0x10
mov dword [ebp - 0xc], 0
push 0
push 0x3f000
push 0
lea eax, [ebp - 0xc]
push eax
call sub.USER32.dll_DdeInitializeA
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x401d3c
xor eax, eax
jmp 0x401e25
push 0x3ec
push str.PROGMAN
mov ecx, dword [ebp - 0xc]
push ecx
call sub.USER32.dll_DdeCreateStringHandleA
mov dword [ebp - 4], eax
push 0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.USER32.dll_DdeConnect
mov dword [ebp - 0x120], eax
mov dword [ebp - 8], 0
cmp dword [ebp - 0x120], 0
je 0x401e00
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x118]
push eax
push str._CreateGroup___s____DeleteItem___s___
lea ecx, [ebp - 0x330]
push ecx
call fcn.0040a733
add esp, 0x10
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x330]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
lea eax, [ebp - 0x330]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.USER32.dll_DdeCreateDataHandle
mov dword [ebp - 0x334], eax
push 0
push 0x2710
push 0x4050
push 0
push 0
mov edx, dword [ebp - 0x120]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x334]
push eax
call sub.USER32.dll_DdeClientTransaction
test eax, eax
je 0x401e00
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call sub.USER32.dll_DdeFreeStringHandle
mov eax, dword [ebp - 0x120]
push eax
call sub.USER32.dll_DdeDisconnect
mov ecx, dword [ebp - 0xc]
push ecx
call sub.USER32.dll_DdeUninitialize
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409fb6
mov esp, ebp
pop ebp
ret
Function at 0x401e40
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x41c470]
xor eax, ebp
mov dword [ebp - 0xc], eax
push str..exe
mov eax, dword [ebp + 8]
push eax
call fcn.0040a5a0
add esp, 4
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax - 4]
push edx
call fcn.00415610
add esp, 8
test eax, eax
je 0x401ed7
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401e92
xor eax, eax
jmp 0x401fb3
push str.DllUnregisterServer
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401ec1
call dword [ebp - 8]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x401fb3
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x401fb3
mov dword [ebp - 0x12c], 0
push 0x44
push 0
lea ecx, [ebp - 0x188]
push ecx
call fcn.0040a9e0
add esp, 0xc
mov dword [ebp - 0x188], 0x44
xor edx, edx
mov word [ebp - 0x158], dx
mov dword [ebp - 0x15c], 1
push str.__UnregServer
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x128]
push ecx
call fcn.0040a630
add esp, 8
push eax
call fcn.0040a640
add esp, 8
lea edx, [ebp - 0x13c]
push edx
lea eax, [ebp - 0x188]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea ecx, [ebp - 0x128]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401fad
push 0x2710
mov edx, dword [ebp - 0x13c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x401f89
push 0
mov eax, dword [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x401f93
mov dword [ebp - 0x12c], 1
mov ecx, dword [ebp - 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00409fb6
mov esp, ebp
pop ebp
ret
Function at 0x403830
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x403841
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esi + 4]
test eax, eax
jne 0x40388e
call fcn.0040b18a
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
push eax
push 0x4000
push 1
push ecx
call fcn.0040b682
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x403889
mov edx, dword [esi + 0x40]
mov dword [esi + 0x3c], 1
or eax, 0xffffffff
test byte [edx + 0xc], 0x20
je 0x4038a0
mov dword [esi + 0x38], eax
pop esi
ret
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov eax, dword [esi + 4]
xor ecx, ecx
dec eax
mov dword [esi + 4], eax
mov eax, dword [esi]
mov cl, byte [eax]
inc eax
mov dword [esi], eax
mov eax, ecx
pop esi
ret