joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b50
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x41e5f4]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x22c]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x405bbe
test ecx, ecx
je 0x405bb0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x405bcc
test ecx, ecx
je 0x405c71
push ecx
jmp 0x405c6b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x405c3e
jmp 0x405c00
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.00405b50
mov edi, eax
test edi, edi
jne 0x405c8d
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x405c00
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x405c55
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x405c71
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040ba0c
add esp, 0x21c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x405c9c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x405c73
Function at 0x407900
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x54]
mov ecx, eax
and ecx, 0xc
cmp cl, 0xc
push edi
mov bl, 1
jne 0x40795d
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [esp + 0x10], eax
call edi
mov edx, dword [esi + 4]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0xfffffffe
call edi
mov edi, eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [esp + 0xc]
push ecx
push edi
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0xc
ret
shr eax, 2
test al, 1
je 0x407997
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [esi + 4]
push ecx
movzx edx, di
push edx
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0xc
ret
mov eax, dword [esi + 0x28]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta bl
test bl, bl
je 0x4079ca
mov ecx, dword [esi + 4]
or byte [esi + 0x58], 2
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0xc
ret
Function at 0x4083c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x416ed0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x41e5f4]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [ebp + 0x418]
mov edi, dword [ebp + 0x410]
mov ebx, dword [ebp + 0x414]
mov dword [ebp - 0x14], eax
call dword [0x41e5d4]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
mov dword [ebp], eax
push 2
push eax
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
jne 0x40844d
call fcn.00405370
mov esi, eax
jmp 0x408535
mov ecx, dword [ebp - 0x14]
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x408469
call fcn.00405370
jmp 0x40852c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x408482
call fcn.00405370
jmp 0x40852c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp - 0x14], esi
jae 0x4084b8
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x4084a6
lea ecx, [ebp]
call fcn.00405b10
lea ecx, [ebp - 0x1c]
call fcn.00404c60
mov eax, 0x8007000e
jmp 0x408552
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.004062d0
mov dword [ebp - 4], 1
jmp 0x4084e1
mov ebx, dword [ebp]
test ebx, ebx
jne 0x4084ef
mov esi, 0x8007000e
jmp 0x40852e
call dword [0x41e5d4]
mov ecx, dword [ebp - 0x20]
push esi
push ebx
push esi
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x408510
call fcn.00405370
jmp 0x40852c
mov edx, dword [ebp]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00407ec0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x408550
lea ecx, [ebp]
call fcn.00405b10
jmp 0x408550
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0040ba0c
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40a8c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x417200
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x41e5f4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
push ecx
sub eax, 0x10
mov dword [esp + 0x14], esp
mov esi, esp
push eax
mov dword [esp + 0x28], 0
call fcn.00402010
add eax, 0x10
mov dword [esi], eax
mov esi, dword [esp + 0x30]
add esi, 0xfffffff0
mov dword [esp + 0x1c], esp
mov ebp, esp
push esi
mov byte [esp + 0x2c], 1
call fcn.00402010
add eax, 0x10
mov dword [ebp], eax
add esp, 4
mov ecx, edi
mov byte [esp + 0x28], 0
call fcn.0040a3f0
mov edi, eax
mov dword [esp + 0x20], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a957
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret 4

Function at 0x40b229
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x41e5f4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040b168
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0040ba20
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40b278
cmp dword [ebp - 0x1c], 5
jb 0x40b290
jmp 0x40b28c
cmp dword [ebp - 0x10], 1
jne 0x40b290
cmp dword [ebp - 0x1c], 4
ja 0x40b28c
jne 0x40b290
cmp dword [ebp - 0x18], 0
jbe 0x40b290
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x418ea8
call fcn.00401600
test eax, eax
jge 0x40b2b1
mov byte [0x41f5c4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040ba0c
add ebp, 0x78
leave
ret

Function at 0x40b64e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4206e0], 0
push esi
jne 0x40b5c1
call fcn.0040b4ec
test eax, eax
je 0x40b604
mov eax, dword [0x4206e0]
cmp eax, 1
jne 0x40b5e2
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40b604
pop esi
ret
push eax
call dword [0x4206e8]
test eax, eax
jne 0x40b64c
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40b608
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4206e0]
call dword [0x4206e8]
mov edi, eax
test edi, edi
je 0x40b62f
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x40b64b
lea edi, [esi + 0xff0]
push esi
push dword [0x4206e0]
call dword [0x4206e4]
add esi, 0x10
cmp esi, edi
jb 0x40b635
mov eax, esi
pop edi
pop esi
ret
jmp 0x40b5ae
Function at 0x40ba0c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41e5f4]
jne 0x40ba16
repz ret
jmp fcn.0040e61d

Function at 0x40e418
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x41e8e8]
je 0x40e433
inc edi
cmp edi, 0x17
jb 0x40e424
cmp edi, 0x17
jae 0x40e5b3
push ebp
push 3
call fcn.00412de6
cmp eax, 1
pop ecx
je 0x40e57f
push 3
call fcn.00412de6
test eax, eax
pop ecx
jne 0x40e467
cmp dword [0x41e640], 1
je 0x40e57f
cmp ebx, 0xfc
je 0x40e5b2
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4208e0
push ebp
call fcn.004126f7
add esp, 0xc
test eax, eax
je 0x40e49d
push esi
push esi
push esi
push esi
push esi
call fcn.0040d202
add esp, 0x14
push 0x104
mov esi, 0x4208f9
push esi
push 0
mov byte [0x4209fd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40e4e1
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004126f7
add esp, 0xc
test eax, eax
je 0x40e4e1
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040d202
add esp, 0x14
push esi
call fcn.00412760
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40e526
push esi
call fcn.00412760
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x420bf4
push 0x419514
sub ecx, eax
push ecx
push eax
call fcn.00412d33
add esp, 0x14
test eax, eax
je 0x40e526
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040d202
add esp, 0x14
jmp 0x40e528
xor esi, esi
push 0x419510
push ebx
push ebp
call fcn.00412cc2
add esp, 0xc
test eax, eax
je 0x40e548
push esi
push esi
push esi
push esi
push esi
call fcn.0040d202
add esp, 0x14
push dword [edi*8 + 0x41e8ec]
push ebx
push ebp
call fcn.00412cc2
add esp, 0xc
test eax, eax
je 0x40e56a
push esi
push esi
push esi
push esi
push esi
call fcn.0040d202
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00412b05
add esp, 0xc
jmp 0x40e5b2
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40e5b2
cmp ebp, 0xffffffff
je 0x40e5b2
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x41e8ec]
push dword [esi]
call fcn.00412760
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x412b05
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040ed70
xor ebx, ebx
cmp dword [0x4211b4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x412bdb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x412cbb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x412cbb
push eax
call fcn.0040ed02
mov dword [esp], 0x419d88
push edi
mov dword [0x4211b4], eax
call esi
push eax
call fcn.0040ed02
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4211b8], eax
call esi
push eax
call fcn.0040ed02
mov dword [0x4211bc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040e1a5
test eax, eax
pop ecx
pop ecx
je 0x412ba9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040d202
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x412bdb
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040ed02
cmp eax, ebx
pop ecx
mov dword [0x4211c4], eax
je 0x412bdb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040ed02
pop ecx
mov dword [0x4211c0], eax
mov eax, dword [0x4211c0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x412c60
cmp dword [0x4211c4], ecx
je 0x412c60
push eax
call fcn.0040ed79
push dword [0x4211c4]
mov esi, eax
call fcn.0040ed79
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x412c60
cmp edi, ebx
je 0x412c60
call esi
cmp eax, ebx
je 0x412c2d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x412c2d
test byte [ebp - 0x18], 1
jne 0x412c60
lea eax, [ebp - 0x10]
push eax
call fcn.0040e1dc
test eax, eax
pop ecx
je 0x412c48
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040d202
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x412c57
or dword [ebp + 0x10], 0x200000
jmp 0x412c9b
or dword [ebp + 0x10], 0x40000
jmp 0x412c9b
mov eax, dword [0x4211b8]
cmp eax, dword [ebp - 8]
je 0x412c9b
push eax
call fcn.0040ed79
cmp eax, ebx
pop ecx
je 0x412c9b
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x412c9b
mov eax, dword [0x4211bc]
cmp eax, dword [ebp - 8]
je 0x412c9b
push eax
call fcn.0040ed79
cmp eax, ebx
pop ecx
je 0x412c9b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4211b4]
call fcn.0040ed79
cmp eax, ebx
pop ecx
je 0x412cbb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x412cbd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401b90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x456ba6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esi], fcn.004193b0
push edi
xor edi, edi
mov dword [esp + 8], esi
mov dword [esi + 8], 0x45d230
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x1c], 0x45d2a4
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 0x11
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], 0xa
mov dword [esi + 4], edi
mov eax, dword [esi + 0x20]
cmp eax, edi
mov byte [esp + 0x14], 1
je 0x401c09
push eax
call sub.MFC71U.DLL_operator_new
add esp, 4
mov dword [esi + 0x20], edi
push 0x2c
call sub.MFC71U.DLL_SerializeElements
mov edi, eax
add esp, 4
mov dword [esi + 0x20], edi
xor eax, eax
mov ecx, 0xb
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x24], 0xb
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x407be0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x624
mov eax, dword [0x4792c4]
push ebx
mov dword [esp + 0x624], eax
cmp dword [ecx + 0xb8], 0xffffffff
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x407c1f
xor al, al
mov ecx, dword [esp + 0x62c]
call fcn.0044370d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
xor esi, esi
mov word [esp + 0x218], si
mov ecx, 0x81
lea edi, [esp + 0x21a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x218]
push 0x104
push eax
call dword [sym.imp.ServiceCore.dll_public:_static_bool___cdecl_CWHService::GetWorkDirectory_wchar_t__const__unsigned_short_int_]
mov ebx, dword [sym.imp.MSVCR71.dll__snwprintf]
mov word [esp + 0x18], si
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x220]
push ecx
push str._sDownload
lea edx, [esp + 0x20]
push 0x104
push edx
stosw word es:[edi], ax
call ebx
mov esi, dword [ebp + 8]
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, eax
test edx, edx
jbe 0x407c9e
cmp word [esi + edx*2], 0x2f
je 0x407c9e
dec edx
jne 0x407c94
xor eax, eax
mov word [esp + 0x420], 0
mov ecx, 0x81
lea edi, [esp + 0x422]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esi + edx*2 + 2]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x45ec88
lea edx, [esp + 0x42c]
push 0x104
push edx
call ebx
add esp, 0x14
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0xb4]
push 0
add ecx, 0xb4
push 0x1001
lea eax, [esp + 0x428]
push eax
call dword [edx + 0x28]
mov ecx, dword [esp + 0x62c]
test eax, eax
setne al
call fcn.0044370d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408080
Capabilities:
Create process on windows
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45718c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x480
mov eax, dword [0x4792c4]
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x484], eax
xor eax, eax
xor esi, esi
mov word [esp + 0x70], si
mov ecx, 0x81
lea edi, [esp + 0x72]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], ebx
add ebx, 0xb4
stosw word es:[edi], ax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push str..ex_
mov dword [esp + 0x498], esi
call edi
lea ecx, [esp + 0xc]
mov esi, eax
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call edi
sub eax, esi
shl eax, 1
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], eax
mov word [esp + eax + 0x70], 0
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
mov ecx, dword [esp + 0x10]
mov edx, ecx
shr ecx, 2
mov esi, eax
mov eax, dword [ebx]
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call dword [eax + 0x54]
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 9
xor ebx, ebx
push ebx
push ebx
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
test eax, eax
je 0x4081d0
lea eax, [esp + 0x70]
push eax
push str._s__S
lea ecx, [esp + 0x280]
push 0x104
push ecx
call dword [sym.imp.MSVCR71.dll__snwprintf]
mov esi, dword [esp + 0x24]
add esp, 0x10
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea edx, [esi + 0xa74]
push edx
lea eax, [esp + 0x2c]
push eax
push ebx
push ebx
push 0x4000000
push ebx
push ebx
push ebx
lea ecx, [esp + 0x298]
push ecx
push ebx
mov dword [esp + 0x50], 0x44
mov word [esp + 0x80], 0xa
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4081de
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
xor al, al
jmp 0x40822e
cmp dword [esi + 0x20], ebx
jne 0x408210
mov eax, dword [esi + 0xa70]
mov edx, dword [esi]
push ebx
push 0x64
push eax
lea ecx, [esp + 0x24]
push ecx
push 0x40000000
push ebx
push ebx
mov ecx, esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call dword [edx + 0x5c]
mov edx, dword [esi + 0x20]
push ebx
push 0x64
push 0xc8
push edx
call dword [sym.imp.USER32.dll_SetTimer]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov al, 1
mov ecx, dword [esp + 0x48c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x484]
call fcn.0044370d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b0a0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
or eax, 0xffffffff
test edx, edx
je 0x40b0d0
mov ecx, dword [esp + 4]
push esi
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
mov edi, dword [esi*4 + 0x479380]
shr eax, 8
xor eax, edi
inc ecx
dec edx
jne 0x40b0b1
pop edi
pop esi
not eax
ret

Function at 0x40dac0
Capabilities:
Enumerate files on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x474
mov eax, dword [0x4792c4]
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrCatW]
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x47c], eax
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x270]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x274]
push ecx
call esi
push str..dll
lea edx, [esp + 0x274]
push edx
call esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x274]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
je 0x40dc41
lea edx, [esp + 0x20]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40dc3a
jmp 0x40db50
test byte [esp + 0x20], 0x10
jne 0x40dc19
lea eax, [esp + 0x4c]
push 0x45fff0
push eax
call dword [sym.imp.MSVCR71.dll__wfopen]
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x10], edi
je 0x40dc2f
push edi
call dword [sym.imp.MSVCR71.dll__fileno]
push eax
call dword [sym.imp.MSVCR71.dll__filelength]
mov esi, eax
push esi
call sub.MFC71U.DLL_SerializeElements
push edi
push esi
mov ebx, eax
push 1
push ebx
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x1c
test eax, eax
je 0x40dc05
push esi
push ebx
call fcn.0040b0a0
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x144]
add ecx, 0x140
add esp, 8
test edx, edx
mov dword [esp + 0x14], eax
jne 0x40dbcc
xor edi, edi
jmp 0x40dbd4
mov edi, dword [ecx + 8]
sub edi, edx
sar edi, 2
test edx, edx
je 0x40dbf1
mov esi, dword [ecx + 0xc]
sub esi, edx
sar esi, 2
cmp edi, esi
jae 0x40dbf1
mov edx, dword [ecx + 8]
mov dword [edx], eax
add edx, 4
mov dword [ecx + 8], edx
jmp 0x40dc01
mov eax, dword [ecx + 8]
lea edx, [esp + 0x14]
push edx
push 1
push eax
call fcn.0040cb60
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
push ebx
call sub.MFC71U.DLL_CNoTrackObject::operator_new
mov esi, dword [esp + 0x20]
add esp, 8
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40db50
jmp 0x40dc3a
push 0
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x47c]
call fcn.0044370d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4276b0
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4276c4
push 0x64
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x427799
mov eax, dword [esi + 0x70]
test eax, eax
je 0x42771e
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42771e
mov ecx, dword [esi + 0x2ac]
test ecx, ecx
je 0x427700
mov eax, dword [esi + 0x70]
test eax, eax
je 0x427700
mov edx, dword [ecx]
push 0
push 0
push 0x64
push 2
push eax
call dword [edx + 0x20]
mov eax, dword [esi + 0x5c]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42773d
mov ecx, dword [esi + 0x5c]
push 0
push ecx
jmp 0x427737
mov edx, dword [esi + 0x5c]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42773d
mov eax, dword [esi + 0x5c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [esi + 0x5c]
push edi
lea ecx, [esp + 8]
push ecx
push edx
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esi + 0x60]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x427765
push eax
call edi
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x42776f
push eax
call edi
xor eax, eax
mov dword [esi + 0x70], 0
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], eax
cmp byte [esp + 0x10], 1
pop edi
jne 0x427799
mov ecx, dword [esi + 0x6c]
mov eax, dword [esp + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0xc]
mov al, 1
pop esi
pop ecx
ret 4