joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4055c7
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x40737c
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x40736c
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x405618
xor eax, eax
jmp 0x40563f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x40563f
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x405614
call esi
pop esi
leave
ret 4

Function at 0x405679
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x421510], 0x44
push eax
xor eax, eax
push 0x421510
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4056b8
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4056bc
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
ret 4

Function at 0x40575a
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405b4e
mov edi, eax
cmp edi, 0xffffffff
je 0x40579b
test byte [esp + 0x10], 1
push esi
je 0x40577d
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405783
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40578c
xor eax, eax
inc eax
jmp 0x40579d
test byte [esp + 0x10], 4
jne 0x40579b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4057a2
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405a60
test bl, 8
mov dword [ebp - 0xc], eax
je 0x4057e1
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4237a8], eax
jmp 0x40596b
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4057fb
test eax, eax
je 0x405919
test bl, 2
je 0x405919
mov esi, 0x420d10
push edi
push esi
call fcn.00405fda
cmp dword [ebp + 8], 0
je 0x40581a
push 0x4093ac
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405820
push edi
call fcn.004059b9
cmp byte [edi], 0
jne 0x40582e
cmp byte [0x420d10], 0x5c
jne 0x405839
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40590f
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.0040599d
cmp byte [eax], 0
je 0x40587f
cmp byte [ebp - 0x1c], 0
je 0x40587f
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405895
mov al, byte [esi + 1]
test al, al
je 0x4058ee
cmp al, 0x2e
jne 0x405895
cmp byte [esi + 2], 0
je 0x4058ee
push esi
push ebx
call fcn.00405fda
test byte [ebp - 0x14c], 0x10
je 0x4058ba
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4058ee
push dword [ebp + 0xc]
push edi
call fcn.004057a2
jmp 0x4058ee
push dword [ebp - 4]
push edi
call fcn.0040575a
test eax, eax
jne 0x4058e6
cmp dword [ebp - 4], eax
je 0x4058de
push edi
push 0xfffffffffffffff1
call fcn.00405101
push 0
push edi
call fcn.00405db9
jmp 0x4058ee
inc dword [0x4237a8]
jmp 0x4058ee
push edi
push 0xfffffffffffffff2
call fcn.00405101
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40585d
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405919
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40596b
cmp dword [ebp - 0xc], esi
jne 0x40592d
inc dword [0x4237a8]
jmp 0x40596b
push edi
call fcn.004062dd
test eax, eax
je 0x40596b
push edi
call fcn.00405972
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.0040575a
test eax, eax
jne 0x405963
cmp dword [ebp - 4], esi
je 0x405925
push edi
push 0xfffffffffffffff1
call fcn.00405101
push esi
push edi
call fcn.00405db9
jmp 0x40596b
push edi
push 0xffffffffffffffe5
call fcn.00405101
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405a60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421110
push esi
call fcn.00405fda
push esi
call fcn.00405a0b
mov edi, eax
test edi, edi
jne 0x405a81
xor eax, eax
jmp 0x405ad3
push edi
call fcn.00406244
test byte [0x42371c], 0x80
je 0x405a9a
mov al, byte [edi]
test al, al
je 0x405a7d
cmp al, 0x5c
je 0x405a7d
sub edi, esi
jmp 0x405ab2
call fcn.004062dd
test eax, eax
je 0x405aac
test byte [eax], 0x10
je 0x405a7d
push esi
call fcn.004059b9
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405a9e
call fcn.00405972
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405b4e
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405b6d
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x405b73
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405ba2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x4093b4]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405be7
test edi, edi
jne 0x405bad
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405be1
Function at 0x405c49
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x421a98], 0x4c554e
mov edi, 0x400
mov ebp, 0x421a98
je 0x405c95
push 1
push 0
push esi
call fcn.00405b73
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405db4
cmp eax, edi
jg 0x405db4
mov esi, 0x421e98
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405db4
cmp eax, edi
jg 0x405db4
push esi
push ebp
push str._s_s_r_n
push 0x421698
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423714]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405ffc
push 4
push 0xc0000000
push esi
call fcn.00405b73
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405db4
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405dad
push edi
push esi
push ebp
call fcn.00405beb
test eax, eax
je 0x405dad
push str._Rename__r_n
push esi
call fcn.00405ad8
test eax, eax
jne 0x405d4b
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405d80
add eax, 0xa
push 0x4093b8
push eax
call fcn.00405ad8
mov ebp, eax
test ebp, ebp
je 0x405d7c
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405d6d
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405d67
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405d82
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x421698
push eax
call fcn.00405b2e
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405c1a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405db9
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405ddc
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405c49
pop ecx
pop ecx
inc dword [0x4237b0]
ret 8

Function at 0x405ec1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x400
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405e60
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x405f30
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [esi + 0x3ff], 0
test edi, edi
pop edi
jne 0x405f30
cmp dword [ebp + 0xc], 1
je 0x405f33
cmp dword [ebp + 0xc], 2
je 0x405f33
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x406304
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406328
xor eax, eax
test eax, eax
je 0x40633a
cmp byte [ebp + eax - 0x121], 0x5c
je 0x40633a
xor ecx, ecx
jmp 0x40633d
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x406429
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42229c], 0
push esi
jne 0x406460
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40643a
mov dword [ecx*4 + 0x422298], eax
inc ecx
cmp ecx, 0x100
jl 0x406435
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406491
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422298]
xor eax, esi
inc ecx
dec edx
jne 0x406473
pop edi
not eax
pop esi
ret 0xc
Function at 0x4011ac
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4011e9
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x401209
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00401734
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x401cdc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x401d50
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00401734
mov edx, dword [ebp - 0x10c]
mov eax, ebx
mov ecx, 0x401d64
call fcn.00401798
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401d57
lea eax, [ebp - 0x10c]
call fcn.00401634
ret

Function at 0x401d68
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x401ddc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00401734
mov edx, dword [ebp - 0x10c]
mov eax, ebx
mov ecx, 0x401df0
call fcn.00401798
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401de3
lea eax, [ebp - 0x10c]
call fcn.00401634
ret

Function at 0x401df4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathA
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00401734
add esp, 0x108
pop ebx
ret

Function at 0x401e28
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x401e9f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0
push 0
push 0x26
push 0
call sub.shfolder.dll_SHGetFolderPathA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00401734
mov edx, dword [ebp - 0x10c]
mov eax, ebx
mov ecx, 0x401eb4
call fcn.00401798
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401ea6
lea eax, [ebp - 0x10c]
call fcn.00401634
ret
Function at 0x401eb8
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x401f2f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0
push 0
push 7
push 0
call sub.shfolder.dll_SHGetFolderPathA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00401734
mov edx, dword [ebp - 0x10c]
mov eax, ebx
mov ecx, 0x401f44
call fcn.00401798
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401f36
lea eax, [ebp - 0x10c]
call fcn.00401634
ret

Function at 0x401f48
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004018b0
xor eax, eax
push ebp
push 0x401fea
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00401634
push 0xa
mov eax, dword [ebp - 4]
call fcn.004018c0
push eax
mov eax, dword [0x40466c]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x401fd4
push ebx
mov eax, dword [0x40466c]
push eax
call sub.kernel32.dll_SizeofResource
mov esi, eax
test esi, esi
jbe 0x401fd4
push ebx
mov eax, dword [0x40466c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
je 0x401fd4
push ebx
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401fce
mov eax, edi
mov ecx, esi
mov edx, dword [ebp - 8]
call fcn.004016f8
push ebx
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401ff1
lea eax, [ebp - 4]
call fcn.00401634
ret
Function at 0x401000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 9], 0
mov dword [ebp - 4], 0x2a
movsx eax, byte [0x46f03c]
add eax, 4
mov byte [0x46f03c], al
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
movsx edx, byte [0x46f03c]
add edx, 4
mov byte [0x46f03c], dl
cmp dword [ebp - 8], 0xffffffff
je 0x4010de
mov dword [ebp - 0x1c], 0
jmp 0x401075
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp + 0xc]
jae 0x4010d2
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x1c]
movsx eax, byte [edx]
movsx ecx, byte [ebp + 0x14]
sub eax, ecx
sub eax, dword [ebp - 0x1c]
mov byte [ebp - 0x15], al
movsx edx, byte [0x46f03c]
add edx, 4
mov byte [0x46f03c], dl
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea ecx, [ebp - 0x15]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
movsx eax, byte [0x46f03c]
add eax, 4
mov byte [0x46f03c], al
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
jmp 0x40106c
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp + 0xc]
jne 0x4010de
mov byte [ebp - 9], 1
movsx eax, byte [0x46f03c]
add eax, 4
mov byte [0x46f03c], al
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movsx edx, byte [0x46f03c]
add edx, 4
mov byte [0x46f03c], dl
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret
Function at 0x401330
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x46f120]
mov dword [ebp - 0xc], eax
push edi
mov byte [ebp - 0x50], 0
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x4f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0xd0], 0
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0xcf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 8], 0x7f
movsx eax, byte [0x46f03c]
add eax, 4
mov byte [0x46f03c], al
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xd0]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
movsx eax, byte [0x46f03c]
add eax, 4
mov byte [0x46f03c], al
lea ecx, [ebp - 0xd0]
push ecx
movzx edx, byte [ebp + 8]
push edx
lea eax, [ebp - 0x50]
push eax
call fcn.004011b0
add esp, 0xc
movsx ecx, byte [0x46f03c]
add ecx, 4
mov byte [0x46f03c], cl
movsx edx, byte [0x46f03c]
add edx, 4
mov byte [0x46f03c], dl
lea eax, [ebp - 0x50]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [ebp - 4], eax
movsx ecx, byte [0x46f03c]
add ecx, 4
mov byte [0x46f03c], cl
cmp dword [ebp - 4], 0
je 0x401408
jmp 0x401467
movsx edx, byte [0x46f03c]
add edx, 4
mov byte [0x46f03c], dl
lea eax, [ebp - 0x50]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 4], eax
movsx ecx, byte [0x46f03c]
add ecx, 4
mov byte [0x46f03c], cl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
je 0x40145c
cmp dword [ebp - 0xd4], 0xb7
je 0x40145e
jmp 0x401460
jmp 0x401462
jmp 0x401467
jmp 0x401467
mov eax, dword [ebp - 4]
jmp 0x401493
movsx edx, byte [0x46f03c]
add edx, 4
mov byte [0x46f03c], dl
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movsx ecx, byte [0x46f03c]
add ecx, 4
mov byte [0x46f03c], cl
xor eax, eax
mov ecx, dword [ebp - 0xc]
call fcn.00402581
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x402290
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x46f120]
mov dword [ebp - 8], eax
mov byte [ebp - 0x150], 0
xor eax, eax
mov dword [ebp - 0x14f], eax
mov dword [ebp - 0x14b], eax
mov dword [ebp - 0x147], eax
mov dword [ebp - 0x143], eax
mov dword [ebp - 0x13f], eax
mov dword [ebp - 0x13b], eax
mov dword [ebp - 0x137], eax
mov word [ebp - 0x133], ax
mov byte [ebp - 0x131], al
movsx ecx, byte [0x46f03c]
add ecx, 4
mov byte [0x46f03c], cl
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0xffffffff
jne 0x402320
movsx edx, byte [0x46f03c]
add edx, 4
mov byte [0x46f03c], dl
xor al, al
jmp 0x4024e3
movsx eax, byte [0x46f03c]
add eax, 4
mov byte [0x46f03c], al
mov dword [ebp - 0x130], 0x128
movsx ecx, byte [0x46f03c]
add ecx, 4
mov byte [0x46f03c], cl
lea edx, [ebp - 0x130]
push edx
mov eax, dword [ebp - 0x154]
push eax
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x402384
movsx ecx, byte [0x46f03c]
add ecx, 4
mov byte [0x46f03c], cl
mov edx, dword [ebp - 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4024e3
mov dword [ebp - 0x158], 0
mov dword [ebp - 4], 0
movsx eax, byte [0x46f03c]
add eax, 4
mov byte [0x46f03c], al
lea ecx, [ebp - 0x10c]
push ecx
call fcn.00401110
add esp, 4
movsx edx, byte [0x46f03c]
add edx, 4
mov byte [0x46f03c], dl
mov dword [ebp - 0x158], str.1__ufbrquw_dwd
mov eax, dword [ebp - 0x158]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4024aa
mov edx, dword [ebp - 0x158]
add edx, 2
push edx
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
movsx ecx, byte [0x46f03c]
add ecx, 4
mov byte [0x46f03c], cl
mov dword [ebp - 0x15c], 0
jmp 0x402420
mov edx, dword [ebp - 0x15c]
add edx, 1
mov dword [ebp - 0x15c], edx
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [ebp - 0x15c], eax
jge 0x402455
mov ecx, dword [ebp - 0x15c]
movsx edx, byte [ebp + ecx - 0x150]
add edx, 1
mov eax, dword [ebp - 0x15c]
mov byte [ebp + eax - 0x150], dl
jmp 0x402411
lea ecx, [ebp - 0x150]
push ecx
lea edx, [ebp - 0x10c]
push edx
call fcn.00406148
add esp, 8
test eax, eax
jne 0x402488
movsx eax, byte [0x46f03c]
add eax, 4
mov byte [0x46f03c], al
mov ecx, dword [ebp - 0x158]
mov al, byte [ecx]
jmp 0x4024e3
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x158]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x158], edx
jmp 0x4023cd
movsx eax, byte [0x46f03c]
add eax, 4
mov byte [0x46f03c], al
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x154]
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402395
mov eax, dword [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 8]
call fcn.00402581
mov esp, ebp
pop ebp
ret