joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430af5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45555b
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x479630]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x479630]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
push ecx
lea esi, [esp + 0x24]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], eax
call fcn.00406ed3
mov byte [esp + 0x3c], bl
mov dword [esp + 0x70], ebx
jmp 0x430ba2
lea edx, [esp + 0x20]
add edi, 0xfffffffc
mov ecx, dword [edi]
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x20], edi
call dword [eax + 4]
mov esi, eax
lea edi, [esp + 0x20]
mov byte [esp + 0x70], 1
call fcn.00405cea
mov al, byte [esi + 0x1c]
push ebx
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x44], al
mov byte [esp + 0x78], bl
call fcn.00405e43
cmp byte [esp + 0x3c], bl
jne 0x430ba8
mov edi, dword [esp + 0x18]
cmp edi, dword [esp + 0x14]
jne 0x430b59
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
call fcn.00406ed3
push ebx
push 1
lea ecx, [esp + 0x28]
call fcn.00405e43
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0043a3e1
mov esp, ebp
pop ebp
ret 8
Function at 0x433c8f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x456f85
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x479630]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor ebx, ebx
lea esi, [esp + 0x14]
mov dword [esp + 0x14], ebx
call fcn.00430685
mov cl, byte [eax + 4]
mov edi, dword [eax]
mov byte [esp + 0x10], cl
mov dword [esp + 0x1c], edi
mov byte [eax + 4], bl
mov dword [esp + 0x2c], edi
mov byte [esp + 0x30], cl
mov dword [esp + 0x50], ebx
cmp byte [esp + 0x18], bl
je 0x433cfa
push dword [esp + 0x14]
mov byte [esp + 0x1c], bl
call fcn.00439150
pop ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov esi, 0x100001
lea eax, [esp + 0x34]
mov byte [esp + 0x50], 1
call fcn.00415db7
push edi
mov edi, dword [esp + 0x38]
dec esi
push esi
push 1
push edi
call fcn.00441706
add esp, 0x10
mov dword [esp + 0x14], eax
cmp eax, esi
jbe 0x433d4e
push 0xc8
lea esi, [esp + 0x20]
call fcn.0040bf6e
push 0x46d630
mov eax, esi
push eax
call fcn.00441a01
push dword [esp + 0x1c]
call fcn.00441494
pop ecx
test eax, eax
je 0x433d73
push 0x133
lea esi, [esp + 0x20]
call fcn.0040bf6e
push 0x46d630
mov eax, esi
jmp 0x433d48
push dword [esp + 0x1c]
call fcn.0044146c
pop ecx
test eax, eax
jne 0x433d98
push 0x13b
lea esi, [esp + 0x20]
call fcn.0040bf6e
push 0x46d630
mov eax, esi
jmp 0x433d48
mov esi, dword [esp + 0x14]
mov ecx, esi
mov eax, edi
call fcn.00433c5b
lea eax, [edi + esi]
mov esi, dword [ebp + 8]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
cmp edi, eax
je 0x433dc6
sub eax, edi
push eax
push edi
mov ecx, esi
call fcn.00405ea6
cmp edi, ebx
je 0x433dd1
push edi
call fcn.0043a3d6
pop ecx
cmp byte [esp + 0x10], bl
je 0x433de1
push dword [esp + 0x1c]
call fcn.00439150
pop ecx
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x434039
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x240
lea ebp, [esp - 4]
mov eax, dword [0x479630]
xor eax, ebp
mov dword [ebp + 0x240], eax
push 0x14
mov eax, 0x4566be
call fcn.00441e31
xor esi, esi
lea eax, [ebp + 0x38]
push eax
push esi
push esi
push 0x2c
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, esi
je 0x43408f
push 0xc8
lea esi, [ebp - 0x20]
call fcn.0040bf6e
push 0x46d630
mov eax, esi
push eax
call fcn.00441a01
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp]
call fcn.00414c3b
push 0x4694cc
push eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 4], esi
call fcn.0042a39d
push ebx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00432d9c
add esp, 0xc
push 1
xor edi, edi
lea esi, [ebp + 0x1c]
call fcn.00414d0d
push 1
lea esi, [ebp]
call fcn.00414d0d
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x240]
xor ecx, ebp
call fcn.0043a3e1
add ebp, 0x244
leave
ret
Function at 0x43539f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, eax
xor ecx, ecx
cmp dword [ebp + 0x14], ecx
jl 0x43541f
jg 0x4353cb
cmp esi, ecx
jbe 0x43541f
cmp dword [ebp + 0x14], ecx
jg 0x4353cb
jl 0x4353c7
cmp esi, 0x7fffffff
jae 0x4353cb
mov eax, esi
jmp 0x4353d0
mov eax, SysReAllocString
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 4], ecx
je 0x435410
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4353fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x43541a
jmp 0x435410
mov eax, dword [ebp - 4]
test eax, eax
jle 0x43540b
add ebx, eax
cdq
sub esi, eax
sbb dword [ebp + 0x14], edx
jmp 0x4353ab
cmp eax, 0xffffffff
jne 0x43541a
call fcn.00440635
cmp dword [eax], 4
je 0x4353ab
or eax, 0xffffffff
jmp 0x435421
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x43a3e1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x479630]
jne 0x43a3eb
repz ret
jmp fcn.00444645

Function at 0x45002c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x479630]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00446c82
and dword [ebp - 0x14], 0
cmp dword [0x47d1f8], 0
mov dword [ebp - 0x18], eax
jne 0x4500df
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x450187
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x450187
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x47d1f8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x47d1fc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x47d200], eax
call edi
push eax
call esi
mov dword [0x47d208], eax
test eax, eax
je 0x4500df
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x47d204], eax
mov eax, dword [0x47d204]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x450138
cmp dword [0x47d208], ecx
je 0x450138
push eax
call esi
push dword [0x47d208]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x450138
test ebx, ebx
je 0x450138
call edi
test eax, eax
je 0x45012f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x45012f
test byte [ebp - 8], 1
jne 0x450138
or dword [ebp + 0x10], 0x200000
jmp 0x45016b
mov eax, dword [0x47d1fc]
cmp eax, dword [ebp - 0x18]
je 0x45016b
push eax
call esi
test eax, eax
je 0x45016b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x45016b
mov eax, dword [0x47d200]
cmp eax, dword [ebp - 0x18]
je 0x45016b
push eax
call esi
test eax, eax
je 0x45016b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x47d1f8]
call esi
test eax, eax
je 0x450187
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x450189
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043a3e1
leave
ret
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4024aa
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x18], esi
mov ecx, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov dword [esp + 0x18], esi
mov dword [esp + 8], 1
cmp dword [edi + 0x14], esi
jbe 0x40106f
jmp 0x401050
push esi
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_const]
mov al, byte [eax]
xor al, 0x58
movzx ecx, al
push ecx
mov ecx, ebx
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_]
inc esi
cmp esi, dword [edi + 0x14]
jb 0x401050
mov eax, ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret

Function at 0x4010b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x402523
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x24], eax
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push str.0___bww_u15u3__vo577u_iv_75w4_wl_j_k_hhuo_l_uiimu9_imuli:_nk9l9hwiokiaimlak_kjwkv___
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea edi, [esp + 0x10]
mov eax, esi
mov dword [esp + 0x38], 1
call fcn.00401090
mov ecx, edi
mov dword [esp + 8], 1
mov byte [esp + 0x38], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00401bbc
add esp, 0x34
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

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

Disassembly:
movsd dword es:[edi], dword [esi]
cmp eax, 0xfffffc
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
invalid
test dword [ecx - 4], edx
invalid
Function at 0x405110
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00405200
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40513f
mov eax, 3
jmp 0x4051fb
push 0x104
push 0
lea ecx, [ebp - 0x110]
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
push 0
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00405340
add esp, 0xc
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x405181
mov eax, dword [ebp - 0x114]
jmp 0x4051fb
lea ecx, [ebp - 8]
push ecx
push 1
push 0
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x4051b0
mov eax, 3
jmp 0x4051fb
cmp dword [ebp + 0xc], 0
jne 0x4051c4
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4051fb
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4051ef
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 4
jmp 0x4051fb
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x405c90
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov dword [ebp - 0x10c], 0
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x108]
push edx
call sub.msvcrt.dll_strcpy
add esp, 8
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x21c], 0x104
mov eax, dword [ebp - 0x21c]
push eax
push 0
lea ecx, [ebp - 0x218]
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x21c]
push edx
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.00405580
add esp, 0x10
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
je 0x405d30
jmp 0x405db1
push 0x409e38
lea eax, [ebp - 0x108]
push eax
call sub.msvcrt.dll_strcat
add esp, 8
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x108]
push edx
call sub.msvcrt.dll_strcat
add esp, 8
lea eax, [ebp - 0x108]
push eax
call fcn.00405c90
add esp, 4
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
je 0x405d83
mov eax, dword [ebp - 0x10c]
jmp 0x405edf
push 0x104
push 0
lea ecx, [ebp - 0x108]
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x108]
push eax
call sub.msvcrt.dll_strcpy
add esp, 8
jmp 0x405cd6
mov dword [ebp - 0x32c], 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405200
add esp, 4
mov dword [ebp - 0x32c], eax
cmp dword [ebp - 0x32c], 0
jne 0x405de0
mov eax, 3
jmp 0x405edf
push 0x104
push 0
lea edx, [ebp - 0x438]
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0x328]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x328]
push ecx
lea edx, [ebp - 0x438]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00405340
add esp, 0xc
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
je 0x405e40
mov eax, dword [ebp - 0x10c]
jmp 0x405edf
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405110
add esp, 8
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
je 0x405e65
mov eax, dword [ebp - 0x10c]
jmp 0x405edf
push 0
lea edx, [ebp - 0x330]
push edx
push 0
push 2
push 0
push 0
push 0
lea eax, [ebp - 0x438]
push eax
mov ecx, dword [ebp - 0x32c]
push ecx
call fcn.00405970
add esp, 0x24
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x405ea4
mov eax, 1
jmp 0x405edf
lea edx, [ebp - 0x328]
push edx
mov eax, dword [ebp - 0x330]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x405ed0
mov ecx, dword [ebp - 0x330]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x405edf
mov edx, dword [ebp - 0x330]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x405ef0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407f0c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x338
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
push 0xf003f
push 0
lea ecx, [ebp + 8]
call fcn.00406850
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40609b
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x406091
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
jae 0x406091
mov dword [ebp - 0x14], 0xc8
lea ecx, [ebp - 0x12c]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x40608c
push 0x104
push 0
lea eax, [ebp - 0x23c]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x409e3c
lea ecx, [ebp - 0x124]
push ecx
call dword [sym.imp.msvcrt.dll_strstr]
add esp, 8
test eax, eax
je 0x406083
lea edx, [ebp - 0x124]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x409e40
lea ecx, [ebp - 0x23c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x130]
push edx
push 0xf003f
push 0
lea eax, [ebp - 0x23c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406081
push 0x104
push 0
lea ecx, [ebp - 0x344]
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
lea edx, [ebp - 0x23c]
push edx
push str.HKEY_LOCAL_MACHINE
push str._s_s
lea eax, [ebp - 0x344]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x344]
push ecx
call fcn.00405c20
add esp, 4
mov edx, dword [ebp - 0x10]
sub edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40608c
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
jmp 0x405f6d
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4060c0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x409e64
lea edx, [ebp - 0x250]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x144], 0
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0xffffffff
jne 0x406123
mov eax, 1
jmp 0x406208
mov edx, 1
test edx, edx
je 0x4061cd
movsx eax, byte [ebp - 0x114]
cmp eax, 0x2e
je 0x4061ae
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x250]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [ebp - 0x140], 0x10
je 0x40618b
push 0x80
lea edx, [ebp - 0x250]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4061ae
push 0x409e68
lea ecx, [ebp - 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
lea edx, [ebp - 0x250]
push edx
call fcn.004060c0
add esp, 8
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x144]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4061c8
jmp 0x4061cd
jmp 0x406123
mov edx, dword [ebp - 0x144]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x144], 0
cmp dword [ebp + 0xc], 0
je 0x406203
push 0x80
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x406580
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push edi
mov al, byte [0x409e99]
mov byte [ebp - 0x130], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x12f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x134], 0
mov dword [0x40c018], 0
push 0x24
push 0
lea ecx, [ebp - 0x28]
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.kernel32.dll
lea eax, [ebp - 0x130]
push eax
call sub.msvcrt.dll_strcat
add esp, 8
lea ecx, [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40664a
push str.GetNativeSystemInfo
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x40c018], eax
cmp dword [0x40c018], 0
je 0x40664a
lea eax, [ebp - 0x28]
push eax
call dword [0x40c018]
movzx ecx, word [ebp - 0x28]
cmp ecx, 6
je 0x406640
movzx edx, word [ebp - 0x28]
cmp edx, 9
jne 0x40664a
mov dword [ebp - 0x134], 1
mov eax, dword [ebp - 0x134]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4071b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
push edi
mov dword [ebp - 0x158], 0
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x154]
rep stosd dword es:[edi], eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x168]
push edx
lea eax, [ebp - 0x158]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea ecx, [ebp - 0x110]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x407312
mov edx, dword [ebp - 0x168]
mov dword [ebp - 0x16c], edx
mov dword [ebp - 0x170], 0xffffffff
mov eax, dword [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 1
test ecx, ecx
je 0x407312
push 0x68
mov edx, dword [ebp - 0x170]
push edx
push 0
lea eax, [ebp - 0x16c]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [ebp - 0x174], eax
cmp dword [ebp - 0x174], 0xffffffff
je 0x407283
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 0x174]
mov dword [ebp - 0x194], ecx
cmp dword [ebp - 0x194], 1
je 0x4072a6
cmp dword [ebp - 0x194], 0x102
je 0x4072dd
jmp 0x4072df
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x190]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4072db
lea eax, [ebp - 0x190]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x190]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4072a6
jmp 0x40730d
jmp 0x40730d
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 4], 0x103
jne 0x4072fe
jmp 0x407246
mov ecx, dword [ebp - 0x16c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407312
jmp 0x407246
cmp dword [ebp + 0x10], 0
je 0x407320
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 8]
pop edi
mov esp, ebp
pop ebp
ret