joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403fa5
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov ebx, ecx
inc esi
xor eax, eax
push edi
test ebx, ebx
je 0x4040c0
lea edi, [ebp - 0x21c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x21c]
push eax
push edx
xor edi, edi
push edi
push edi
push 0x20
push edi
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40407a
push 0xffffffffffffffff
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x20c]
cmp dword [0x408a28], edi
jne 0x404047
mov eax, dword [0x409a2c]
test al, 1
je 0x404047
test al, 2
jne 0x404047
mov eax, ecx
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x404047
mov dword [0x409a2c], ecx
call fcn.004040d1
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test dword [0x409a34], 0x400
je 0x4040be
cmp dword [ebp - 0x20c], edi
jge 0x4040be
jmp 0x4040bc
call fcn.0040621a
push edi
mov dword [0x409124], eax
lea eax, [ebp - 0x208]
push 0x200
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push edi
push 0x10
lea eax, [ebp - 0x208]
mov edx, 0x4c4
push eax
push ebx
xor ecx, ecx
call fcn.00404469
mov esi, edi
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406ca0
mov esp, ebp
pop ebp
ret
Function at 0x4041d4
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
push str.SHELL32.DLL
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x404362
push str.SHBrowseForFolder
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
test eax, eax
je 0x404354
push 0xc3
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x404354
push str.SHGetPathFromIDList
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x404354
xor ebx, ebx
cmp byte [0x4088c0], bl
jne 0x404296
push 0x4088c0
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, 0x4088c0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40425d
sub ecx, edx
lea eax, [ecx + 0x4088c0]
push eax
push 0x4088c0
call dword [sym.imp.USER32.dll_CharPrevA]
mov dword [ebp - 4], eax
cmp byte [eax], 0x5c
jne 0x404296
push eax
push 0x4088c0
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x3a
je 0x404296
mov eax, dword [ebp - 4]
mov byte [eax], bl
lea eax, [ebp - 0x30]
mov byte [0x4087a0], bl
mov dword [ebp - 0x30], esi
mov esi, esp
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 8]
mov ecx, ebx
push eax
mov dword [ebp - 0x24], 0x408598
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0x4041b0
mov dword [ebp - 0x18], 0x4088c0
call dword [0x40a28c]
call ebx
cmp esi, esp
je 0x4042df
mov ecx, 4
int 0x29
mov dword [ebp - 8], eax
test eax, eax
je 0x404340
mov ebx, dword [ebp - 0xc]
mov esi, esp
push 0x4088c0
push eax
mov ecx, ebx
call dword [0x40a28c]
call ebx
cmp esi, esp
je 0x404306
mov ecx, 4
int 0x29
cmp byte [0x4088c0], 0
je 0x404323
push 0x4088c0
mov edx, 0x104
mov ecx, 0x4087a0
call fcn.00401670
mov ebx, dword [ebp - 0x10]
mov esi, esp
push dword [ebp - 8]
mov ecx, ebx
call dword [0x40a28c]
call ebx
cmp esi, esp
je 0x404340
mov ecx, 4
int 0x29
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
cmp byte [0x4087a0], al
setne al
jmp 0x404377
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, 0x4c1
jmp 0x404367
mov edx, 0x4c2
xor ebx, ebx
mov ecx, esi
push ebx
push 0x10
push ebx
push ebx
call fcn.00404469
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x404651
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0xa
mov edi, ecx
mov ebx, edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, dword [ebp + 8]
ja 0x4046bd
test ebx, ebx
je 0x4046bd
test esi, esi
jne 0x404684
xor eax, eax
jmp 0x4046bd
push 0xa
push edi
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x404680
push esi
push edi
push dword [ebp + 8]
push ebx
call dword [sym.imp.msvcrt.dll_memcpy_s]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x40475a
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push esi
push edi
xor esi, esi
mov edi, ecx
inc esi
call fcn.0040664d
test eax, eax
je 0x4047bf
cmp dword [0x4091dc], 0
jne 0x4047b3
test byte [0x408a38], 1
jne 0x4047b3
push 6
push 0
push 0x403410
push dword [0x408584]
mov edx, 0x7d3
mov dword [0x409404], edi
call fcn.004064b7
sub eax, 6
je 0x4047b3
sub eax, esi
je 0x4047c4
sub eax, 0x832
jne 0x4047b3
mov dword [0x4091dc], esi
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
mov eax, esi
pop esi
ret
xor esi, esi
jmp 0x4047bf

Function at 0x4048f4
Capabilities:
Create directory

Disassembly:
mov edi, edi
push edi
mov edi, ecx
mov al, byte [edi]
test al, al
je 0x40495e
mov cl, byte [edi + 1]
push ebx
xor ebx, ebx
cmp cl, 0x3a
jne 0x404915
cmp byte [edi + 2], 0x5c
jne 0x404915
push 3
pop eax
jmp 0x404927
cmp al, 0x5c
jne 0x404924
cmp cl, al
jne 0x404924
push 2
pop ebx
mov eax, ebx
jmp 0x404927
xor eax, eax
inc eax
push esi
lea esi, [eax + edi]
jmp 0x404957
cmp byte [esi], 0x5c
jne 0x40494e
cmp byte [esi - 1], 0x3a
je 0x40494e
test ebx, ebx
je 0x40493f
dec ebx
jmp 0x40494e
push 0
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
cmp byte [esi], 0
jne 0x40492d
pop esi
pop ebx
pop edi
ret
Function at 0x404f70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebx
push esi
xor ebx, ebx
mov esi, 0x40133c
push ebx
xor edx, edx
mov ecx, esi
call fcn.00404651
push 0xa
push esi
push ebx
mov dword [0x409144], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x409140], eax
test eax, eax
je 0x4050f1
mov eax, dword [0x408584]
test eax, eax
je 0x404fe7
push ebx
push 0x842
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
push 0x841
push dword [0x408584]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00404e76
test eax, eax
jne 0x40500c
mov ecx, dword [0x408584]
mov edx, 0x4ba
push ebx
push 0x10
push ebx
push ebx
call fcn.00404469
mov esi, ebx
jmp 0x405097
push edi
push 0x409148
push 1
push 0x404ba0
push fcn.00404b40
push 0x404ab0
push 0x404a30
push fcn.00404960
push 0x404ca0
push 0x404c80
call dword [sym.imp.Cabinet.dll_FDICreate]
mov edi, eax
add esp, 0x24
test edi, edi
je 0x405078
push 0x409140
push ebx
push 0x404cb0
push ebx
push 0x401130
push str.MEMCAB
push edi
call dword [sym.imp.Cabinet.dll_FDICopy]
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x405096
push edi
call dword [sym.imp.Cabinet.dll_FDIDestroy]
pop ecx
test eax, eax
jne 0x405096
mov edx, dword [0x409148]
mov ecx, dword [0x408584]
push ebx
push 0x10
push ebx
push ebx
lea edx, [edx + 0x514]
call fcn.00404469
mov esi, ebx
pop edi
mov eax, dword [0x409140]
test eax, eax
je 0x4050ad
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [0x409140], ebx
test esi, esi
jne 0x4050ca
cmp dword [0x4091d8], ebx
jne 0x4050ca
push ebx
push 0x10
push ebx
push ebx
mov edx, 0x4f8
xor ecx, ecx
call fcn.00404469
test byte [0x408a38], 1
jne 0x4050ef
test byte [0x409a34], 1
jne 0x4050ef
push ebx
push esi
push 0xfa1
push dword [0x408584]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, esi
pop esi
pop ebx
ret
Function at 0x405246
Capabilities:
Delete file
Set current directory
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x4091e0]
push edi
jmp 0x40529e
cmp dword [0x408a24], 0
jne 0x40528c
cmp dword [0x409a30], 0
jne 0x40528c
push 0x80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [edi]
mov esi, dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, esi
test esi, esi
jne 0x405265
mov eax, dword [0x408a20]
pop edi
pop esi
test eax, eax
je 0x405307
cmp dword [0x408a24], 0
jne 0x405307
cmp dword [0x409a30], 0
jne 0x405307
push ecx
push 0x4091e4
push ecx
mov edx, 0x104
lea ecx, [ebp - 0x108]
call fcn.0040176d
test byte [0x409a34], 0x20
je 0x4052ec
lea ecx, [ebp - 0x108]
call fcn.00406588
push 0x4011ec
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x108]
call fcn.00402369
mov eax, dword [0x408a20]
cmp word [0x409a40], 1
je 0x40531a
test eax, eax
je 0x40531a
call fcn.00401fc8
mov ecx, dword [ebp - 4]
and dword [0x408a20], 0
xor ecx, ebp
call fcn.00406ca0
mov esp, ebp
pop ebp
ret

Function at 0x40532f
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10c], ecx
mov edi, edx
xor esi, esi
push ebx
push 0x401368
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0040170a
add esp, 0x10
mov edx, 0x104
mov ecx, edi
inc ebx
push dword [ebp - 0x10c]
call fcn.00401670
lea eax, [ebp - 0x108]
mov edx, 0x104
push eax
mov ecx, edi
call fcn.0040652a
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4053ee
cmp ebx, 0x190
jl 0x405353
push edi
push 0
push 0x401374
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x4053d9
xor esi, esi
push edi
inc esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406ca0
mov esp, ebp
pop ebp
ret 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor esi, esi
test eax, eax
je 0x4053ae
inc esi
mov dword [0x408a20], esi
jmp 0x4053d9
Function at 0x405862
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov edx, edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x405872
sub edx, ecx
lea esi, [edx + 0x14]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4058b3
xor esi, esi
mov edx, 0x4b5
push esi
push 0x10
push esi
push esi
xor ecx, ecx
call fcn.00404469
call fcn.0040621a
mov dword [0x409124], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edx, esi
mov ecx, ebx
call fcn.00401670
push 0x4013a8
mov edx, esi
mov ecx, ebx
call fcn.0040652a
xor esi, esi
push esi
push 0x4000080
push 1
push esi
push esi
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
je 0x4058a0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4058a0
test al, 0x10
je 0x4058a0
xor eax, eax
mov dword [0x409124], esi
inc eax
jmp 0x4058ac
Function at 0x4061b3
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x4061fd
push eax
push 0x10
push eax
push eax
mov edx, 0x4f0
xor ecx, ecx
call fcn.00404469
call fcn.0040621a
mov dword [0x409124], eax
xor eax, eax
jmp 0x40620c
push 2
pop edx
push edx
lea ecx, [ebp - 0x108]
call fcn.00405917
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406ca0
mov esp, ebp
pop ebp
ret

Function at 0x40622d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x1c], ecx
push esi
push 0x4013c4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], esi
xor ebx, ebx
push 0x14
push eax
inc ebx
call fcn.0040170a
jmp 0x4062d0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4062f4
lea edx, [edi + 8]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40627d
sub ecx, esi
mov esi, esp
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x1c]
add eax, edx
push eax
push edx
push dword [edi + 4]
push dword [edi]
call dword [0x40a28c]
call dword [ebp - 0x1c]
cmp esi, esp
je 0x4062ab
mov ecx, 4
int 0x29
push edi
test eax, eax
je 0x4062ea
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
inc esi
push esi
push 0x4013c4
push 0x14
push eax
mov dword [ebp - 0x20], esi
call fcn.0040170a
xor esi, esi
add esp, 0x10
lea eax, [ebp - 0x18]
push 0xa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x406260
jmp 0x406300
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x406300
mov dword [0x409124], 0x80070714
mov ebx, esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406ca0
mov esp, ebp
pop ebp
ret

Function at 0x406435
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push ecx
push 0x4091e4
push ecx
mov edx, 0x104
lea ecx, [ebp - 0x108]
call fcn.0040176d
mov edi, 0x4011c8
lea ecx, [ebp - 0x108]
push edi
mov edx, 0x104
call fcn.0040652a
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4064a1
test al, 0x10
jne 0x4064a1
push 8
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x4064a8
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00406ca0
mov esp, ebp
pop ebp
ret

Function at 0x40664d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40665e
xor eax, eax
ret
shr eax, 4
not eax
and eax, 1
ret
Function at 0x4067bf
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [0x4081d8]
xor esi, esi
mov dword [ebp - 0xb0], 0xc
mov dword [ebp - 0xac], esi
cmp edi, 0xfffffffe
jne 0x4068e7
lea eax, [ebp - 0xa4]
mov dword [0x4081d8], esi
push eax
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4068e1
xor edi, edi
inc edi
cmp dword [ebp - 0x94], edi
jne 0x4068e1
cmp dword [ebp - 0xa0], 4
jne 0x4068e1
cmp dword [ebp - 0x9c], 0xa
jae 0x4068e1
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x4068e1
lea eax, [ebp - 0xa8]
push eax
push 0x20019
push esi
push 0x4013d0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4068e1
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb4]
push eax
push esi
push 0x401130
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xa8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4068b3
mov eax, dword [0x4081d8]
jmp 0x4068e9
lea edx, [ebp - 0xac]
lea ecx, [ebp - 0x10]
call fcn.00406698
test eax, eax
je 0x4068e1
mov eax, dword [ebp - 0xac]
and eax, 0x3ff
cmp eax, edi
je 0x4068d9
cmp eax, 0xd
jne 0x4068e1
mov dword [0x4081d8], edi
jmp 0x4068e7
mov edi, dword [0x4081d8]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00406ca0
mov esp, ebp
pop ebp
ret

Function at 0x4068f9
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp byte [ecx], 0
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
je 0x406948
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x406948
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 8]
push 0x400
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406a60
Capabilities:
Terminate process

Disassembly:
call fcn.00407113
jmp 0x406a6a
push 0x5c
push 0x4072d0
call fcn.004071d0
and dword [ebp - 0x24], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov edi, dword [eax + 4]
xor esi, esi
mov edx, 0x4088ac
mov ecx, edi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x406ab7
cmp eax, edi
jne 0x406ac9
mov esi, ebx
cmp dword [0x4088b0], ebx
jne 0x406ad6
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x406b05
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406aa0
cmp dword [0x4088b0], 0
jne 0x406aff
mov dword [0x4088b0], ebx
push 0x4010b8
push 0x4010ac
call fcn.00406c50
pop ecx
pop ecx
test eax, eax
je 0x406b05
jmp 0x406c3e
mov dword [0x4081e4], ebx
cmp dword [0x4088b0], ebx
jne 0x406b28
push 0x4010a8
push 0x4010a0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4088b0], 2
test esi, esi
jne 0x406b35
xor eax, eax
mov ecx, 0x4088ac
xchg dword [ecx], eax
cmp dword [0x4088b4], 0
je 0x406b63
push 0x4088b4
call fcn.00407020
pop ecx
test eax, eax
je 0x406b63
push 0
push 2
push 0
mov esi, dword [0x4088b4]
mov ecx, esi
call dword [0x40a28c]
call esi
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov edi, dword [ebp - 0x24]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x406bc1
test cl, cl
je 0x406b7f
test edi, edi
jne 0x406bc1
mov al, byte [esi]
test al, al
je 0x406b8f
cmp al, 0x20
ja 0x406b8f
inc esi
mov dword [ebp - 0x20], esi
jmp 0x406b7f
test byte [ebp - 0x40], 1
je 0x406b9b
movzx eax, word [ebp - 0x3c]
jmp 0x406b9e
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x4081e0], eax
cmp dword [0x4081f8], 0
jne 0x406c1a
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x406bd2
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x24], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x406be5
inc esi
mov dword [ebp - 0x20], esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x406b70
cmp dword [0x4081e4], 0
jne 0x406c2e
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x4081e0]
mov dword [ebp - 4], 0xfffffffe
jmp 0x406c4a
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00407218
ret

Function at 0x406f14
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4072f8
call fcn.00407264
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x406f74
cmp eax, 0xffffffff
je 0x406f74
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x406f6d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x406f6d
cmp edx, 0x10000000
jae 0x406f6d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x406f6a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.004072a9
ret 4
Function at 0x406fd0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40700e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407006
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407010
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x406ff6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4070e0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4070f6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x407111
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
xor eax, eax
push 4
push 0
push str.Abrindo_o_Notepad
push 0
call sub.user32.dll_MessageBoxA
mov eax, eax
cmp eax, 6
je 0x40101e
cmp eax, 6
jne 0x40103c
push 1
push 0
push 0
push str.notepad.exe
push str.open
push 0
call sub.shell32.dll_ShellExecuteA
push 0
call sub.kernel32.dll_ExitProcess
push 0
call sub.kernel32.dll_ExitProcess
int3