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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x10006bab
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10007ed0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x10006bcd
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x10006bcf
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x10006c6e
jg 0x10006bec
test esi, esi
je 0x10006c6e
test ecx, ecx
jl 0x10006c39
jg 0x10006bf6
test eax, eax
je 0x10006c39
cmp ebx, ecx
jg 0x10006c0a
jl 0x10006c00
cmp esi, eax
jae 0x10006c0a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.10017630
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x10006c40
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x10006c6e
jg 0x10006c4a
test esi, esi
je 0x10006c6e
cmp dword [edi + 0x4c], 0
je 0x10006c6e
mov ecx, edi
call fcn.10009310
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.100206fa
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10006fa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1004b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10006fd0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10014620
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000700c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1000700c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10014620
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x100070f1
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10007034
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10007067
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.1001f7e3
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10014620
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x100070f1
cmp eax, 1
jle 0x100070c4
cmp eax, 3
jne 0x100070f1
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.100027a0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10014620
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100070e1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100204ad
add esp, 0x10
cmp edi, eax
jne 0x100070f1
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x10006ff7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10014620
mov esp, ebp
pop ebp
ret 4
Function at 0x100093d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1004b004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x10009471
cmp byte [esi + 0x3d], 0
je 0x10009471
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10009427
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x10009439
sub eax, 1
je 0x1000943d
sub eax, 2
je 0x10009471
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10014620
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1000945a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100204ad
add esp, 0x10
cmp edi, eax
jne 0x10009427
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10014620
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.10014620
mov esp, ebp
pop ebp
ret

Function at 0x1000a510
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10037000
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1004b004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1001463f
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.1001579d
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10026d6f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10026be5

Function at 0x403910
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4040fe], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404670], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x404604], eax
mov dword [0x4040f6], eax
mov dword [0x4045f0], 0x30
mov dword [0x4045f4], 2
jmp 0x403955
mov dword [0x4045f8], 0x402f69
mov dword [0x4045fc], 0
mov dword [0x404600], 0
mov dword [0x404618], 0x404564
mov dword [0x404610], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x404608], eax
mov dword [0x40461c], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x40460c], eax
push 0x4045f0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4040f6]
push 0
push 0
push 0x1e5
push 0x203
push 0xfffff98e
push 0xfffff9c0
push 0xcf0000
push str.asdlkjalsdj_ai8
push str.first
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404668], eax
push 5
push dword [0x404668]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404668]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x404620]
jmp 0x403a29
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x403a1b
mov eax, dword [0x404628]
jmp 0x403a44
call 0x402a90
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x409d20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x409d2f
pop dword [ebp - 0x50]
mov eax, 0x409d2f
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x39a2a
push 0
mov eax, 0x6b848c3b
sub eax, 0x6b43ab63
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0xee6ccf55
sub ecx, 0xee6c859b
mov edx, eax
mov ebx, 0x67f2ba8
sub ebx, 0x63defe4
add ebx, dword [ebp - 0x50]
mov edi, 0x26656dab
sub dword [ebp - 4], ecx
mov esi, dword [ebx]
add dword [ebp - 0x44], 0x5015e2b0
xor esi, edi
add dword [ebp - 0x4c], 0x45639796
mov dword [edx], esi
add dword [ebp - 0x10], edi
add edx, 4
add ebx, 0xfb65fd89
add ebx, 0x49a027b
loop 0x409d83
add eax, 0x119bb
xor ebx, ebx
add ebx, eax
add eax, 0x93ae5bdd
sub eax, 0x93ae5bd8
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x401377
Capabilities:
Create thread
Terminate thread

Disassembly:
push 0x1c
mov eax, 0x46a9ad
call fcn.00463ef0
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [0x4872ec]
mov ecx, 0x4872ec
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
lea eax, [ebp + 8]
lea edi, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00401470
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x18], esi
jne 0x4013e6
lea eax, [ebp - 0x14]
push eax
push esi
mov eax, edi
push eax
push 0x40119f
push esi
push esi
mov dword [ebp - 0x10], esi
call fcn.00447898
add esp, 0x18
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], esi
je 0x401456
push 0xa
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x401436
call fcn.004012ee
test al, al
je 0x40140e
push dword [ebp + 0x14]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4013e1
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017b8
xor al, al
call fcn.00463f8f
ret
cmp eax, esi
jne 0x401450
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017b8
mov al, 1
jmp 0x401430

Function at 0x402081
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402098
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4020cd
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4020c9
cmp edi, eax
jae 0x4020cd
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4020bb
cmp edi, eax
jb 0x4020d1
xor eax, eax
jmp 0x4020da
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x4026b7
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x484060]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 4
mov eax, 0x468e37
call fcn.00463ef0
and dword [ebp - 0x10], 0
mov esi, 0x104
push esi
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402724
cmp eax, esi
jge 0x402724
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004021e4
and dword [ebp - 4], 0
push 0x46ed0c
push edi
mov ecx, eax
call fcn.0040522b
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004017b8
jmp 0x40272f
push 0x46f164
push edi
call fcn.004021e4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00447788
add ebp, 0x20c
leave
ret

Function at 0x4027b1
Capabilities:
Create directory

Disassembly:
push 8
mov eax, 0x467638
call fcn.00463ef0
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4027e4
xor esi, esi
inc esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, esi
call fcn.00463f8f
ret
mov eax, dword [0x4872ec]
mov ecx, 0x4872ec
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov ebx, 0x46ed0c
push ebx
xor ecx, ecx
lea esi, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00405122
inc eax
mov ecx, eax
jmp 0x402847
mov ecx, esi
lea edx, [ebp - 0x14]
lea eax, [ebp + 8]
call fcn.00401c1d
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00401470
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004017b8
mov edi, dword [ebp - 0x10]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esi + 1]
push ebx
lea esi, [ebp + 8]
call fcn.00405122
mov esi, eax
cmp esi, 0xffffffff
jne 0x402810
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov esi, eax
neg esi
sbb esi, esi
lea eax, [edi - 0x10]
neg esi
call fcn.004017b8
jmp 0x4027d1
Function at 0x402e14
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 8
mov eax, 0x466a9d
call fcn.00463ef0
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call esi
cmp eax, 0xffffffff
jne 0x402eca
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 3
jne 0x402eb2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jl 0x402ec6
push 0x46ed10
lea eax, [ebp - 0x14]
push eax
call fcn.004021e4
push dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push ecx
mov ecx, eax
call fcn.0040522b
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004017b8
push dword [ebp - 0x10]
call esi
mov ebx, eax
call edi
mov dword [ebp - 0x14], eax
cmp ebx, 0xffffffff
je 0x402ea4
test bl, 0x10
jne 0x402ea4
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004017b8
xor eax, eax
inc eax
jmp 0x402ed5
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp - 0x14]
cmp eax, 2
je 0x402ec6
cmp eax, 3
je 0x402ec6
cmp eax, 0x7b
je 0x402ec6
cmp eax, 0x35
jne 0x402e9f
xor eax, eax
jmp 0x402ed5
not al
movzx eax, al
shr eax, 4
and eax, 1
call fcn.00463f8f
ret

Function at 0x402edb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push str.C:Program_Files
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402f40
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0
push str.ProgramFilesDir
push dword [ebp - 4]
mov dword [ebp - 8], 0x400
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x4035de
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0x1c
mov eax, 0x468de4
call fcn.00463ef0
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.004021e4
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004021e4
push dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 1
call fcn.004021e4
push dword [ebp + 0x14]
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 2
call fcn.004021e4
lea eax, [ebp - 0x10]
push eax
push 0x46c5ac
push 1
push ebx
push 0x46c5cc
mov byte [ebp - 4], 3
call dword [sym.imp.ole32.dll_CoCreateInstance]
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x18]
mov dword [ebp - 0x28], eax
call fcn.00403578
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004017b8
lea esi, [ebp - 0x14]
lea edi, [ebp - 0x18]
call fcn.00403578
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004017b8
cmp dword [ebp - 0x28], ebx
jl 0x403743
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
push edx
push 0x46c5dc
mov dword [ebp - 0x18], ebx
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x403736
cmp dword [ebp - 0x18], ebx
je 0x403736
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov esi, eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00402d03
pop ecx
pop ecx
mov byte [ebp - 4], 4
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x24]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 5
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
push dword [ebp - 0x14]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x20]
cmp dword [eax - 0xc], ebx
je 0x403707
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x1c]
mov ecx, dword [ebp - 0x24]
cmp dword [ecx - 0xc], ebx
je 0x403719
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x2c]
cmp esi, ebx
jl 0x40372d
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push 1
push dword [ebp - 0x1c]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, ebx
jge 0x403777
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, ebx
call fcn.00463f8f
ret
xor ebx, ebx
inc ebx
jmp 0x403743
Function at 0x403e44
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x484060]
xor eax, ebp
mov dword [ebp + 0x198], eax
push ebx
push esi
mov esi, dword [ebp + 0x1a4]
push edi
mov edi, dword [ebp + 0x1a8]
xor ebx, ebx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], edi
cmp dword [0x4853fc], ebx
je 0x403ea4
push str.Advapi32.dll
mov dword [0x4853fc], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x403ea4
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x48878c], eax
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ebp + 0x1ac]
or eax, 8
push eax
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x403f23
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x403ee5
push dword [ebp + 0x1ac]
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call fcn.00403e44
add esp, 0xc
test eax, eax
jne 0x403ef4
push edi
lea eax, [ebp - 0x74]
push eax
push ebx
push dword [ebp - 0x78]
call esi
test eax, eax
je 0x403ecc
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x48878c]
cmp eax, ebx
je 0x403f17
push ebx
push dword [ebp + 0x1ac]
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
call eax
jmp 0x403f23
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00447788
add ebp, 0x19c
leave
ret

Function at 0x404383
Capabilities:
Enumerate files on windows

Disassembly:
push 0x25c
mov eax, 0x468d01
call fcn.00463f59
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x4043a3
mov ecx, ebx
call fcn.00405399
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004015e7
add eax, 0x10
mov dword [ebp - 0x264], eax
push 0x5c
push 0x2f
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 1
call fcn.00404f3e
lea esi, [ebp - 0x264]
call fcn.00405153
mov ecx, eax
inc ecx
lea edx, [ebp - 0x268]
mov eax, esi
call fcn.00401c1d
mov edi, esi
mov byte [ebp - 4], 2
call fcn.00401470
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
call fcn.004017b8
lea eax, [ebp - 0x260]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x404489
test byte [ebp - 0x260], 0x10
jne 0x404470
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x264]
call fcn.0040522b
pop ecx
pop ecx
mov byte [ebp - 4], 3
push dword [ebx + 4]
mov eax, dword [eax]
push eax
mov edi, ebx
call fcn.004053f6
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x404459
mov dword [ecx], eax
jmp 0x40445b
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
call fcn.004017b8
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404419
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017b8
call fcn.00463fa3
ret
Function at 0x404731
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x484060]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x14
mov eax, 0x469c76
call fcn.00463ef0
mov dword [ebp - 4], 2
push dword [ebp + 0x21c]
push dword [ebp + 0x218]
push 0x46ef60
call fcn.00402517
pop ecx
pop ecx
mov eax, esp
mov dword [ebp - 0x18], esp
push 0x46ed0c
push eax
call fcn.004021e4
push ecx
mov byte [ebp - 4], 3
mov eax, esp
mov dword [ebp - 0x20], esp
push str.temp.lnk
push eax
call fcn.004021e4
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0x214]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
call fcn.004015e7
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.00402880
mov byte [ebp - 4], 5
push 0x46f164
push dword [ebp + 0x21c]
push dword [ebp + 0x218]
push dword [ebp - 0x10]
call fcn.0040377c
add esp, 0x20
test eax, eax
jne 0x404841
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp + 0x214]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp + 0x218]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp + 0x21c]
add eax, 0xfffffff0
call fcn.004017b8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00447788
add ebp, 0x20c
leave
ret
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x404898
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp + 0x214]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp + 0x218]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp + 0x21c]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, esi
jmp 0x40481e
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004021e4
lea ecx, [ebp - 0x14]
push str.explorer.exe
push ecx
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.0040522b
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004017b8
push 5
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x7d0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004017b8
cmp esi, 0x20
jle 0x40485d
xor esi, esi
inc esi
jmp 0x40485f