joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406042
Capabilities:
Log keystrokes

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push ebp
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4060d2
push ebp
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40606b
push 9
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4060d2
and dword [esp + 0x14], 0
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
jne 0x406089
push ebp
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x4060be
cmp eax, ebp
je 0x4060cb
push 0
push eax
call ebx
push 0
push ebp
mov esi, eax
call ebx
mov edi, eax
cmp esi, edi
je 0x4060a9
push 1
push esi
push edi
call dword [sym.imp.USER32.dll_AttachThreadInput]
push ebp
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp esi, edi
je 0x4060be
push 0
push esi
push edi
call dword [sym.imp.USER32.dll_AttachThreadInput]
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 3
jl 0x406076
jmp 0x4060d2
push ebp
call dword [sym.imp.USER32.dll_BringWindowToTop]
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x407b58
Capabilities:
Create process on windows
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
lea eax, [ebp - 0x208]
push edi
xor esi, esi
push eax
push esi
push esi
push 0x26
mov edi, ecx
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x407b81
xor eax, eax
jmp 0x407bb8
lea eax, [ebp - 0x208]
push str.Internet_Exploreriexplore.exe
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 5
push esi
lea eax, [ebp - 0x208]
push str.http:__www.3366.com_fromsosotb
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, edi
call fcn.004080cc
push 1
pop eax
pop edi
pop esi
leave
ret 0x10

Function at 0x407bfb
Capabilities:
Create process on windows
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa08
push ebx
push esi
mov ebx, ecx
push edi
xor esi, esi
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0xa06]
mov word [ebp - 0xa08], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xa08]
push eax
push 0x400
push 0x1084
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x208]
push eax
push esi
push esi
push 0x26
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x407c89
lea eax, [ebp - 0x208]
push str.Internet_Exploreriexplore.exe
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 5
lea eax, [ebp - 0xa08]
push esi
push eax
lea eax, [ebp - 0x208]
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, ebx
call fcn.004080cc
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x407f37
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
and word [ebp - 0x208], 0
push esi
mov esi, ecx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x354]
test ecx, ecx
stosw word es:[edi], ax
je 0x407f78
mov eax, dword [ecx]
lea edx, [ebp - 0x208]
push 0x104
push edx
call dword [eax + 4]
lea eax, [esi + 0x36c]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
and word [ebp - 0x820], 0
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x81e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push eax
push str.__select____s_
lea eax, [ebp - 0x820]
push 0x208
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407ff5
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
test eax, eax
pop ecx
je 0x407ff5
push 0xa
push 0
lea eax, [ebp - 0x820]
jmp 0x408033
and word [ebp - 0x410], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x40e]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x354]
test ecx, ecx
stosw word es:[edi], ax
je 0x408029
mov eax, dword [ecx]
lea edx, [ebp - 0x410]
push 0x104
push edx
call dword [eax + 4]
push 0xa
push 0
lea eax, [ebp - 0x410]
push eax
push 0x434764
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
leave
ret

Function at 0x408f64
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bd68
push 0x41444a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
cmp word [ecx], 0x5a4d
jne 0x408fea
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
je 0x408fc2
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x408ff0
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x408fba
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x408fba
mov al, 1
jmp 0x408fbc
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40906d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esi
mov esi, dword [0x437ad4]
test esi, esi
je 0x409091
lea eax, [esp + 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
jmp 0x409075
pop esi
pop ecx
ret
Function at 0x409094
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x437ae4], eax
je 0x4090aa
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x437af4]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x4090f7
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x36]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x4090e8
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x4090e8
push eax
call fcn.00409176
pop ecx
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x4090b9
mov dword [0x437af4], ebx
call fcn.00409137
mov esi, dword [0x437af0]
cmp esi, ebx
je 0x409124
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x40910c
pop edi
mov dword [0x437af0], ebx
mov dword [0x437ae4], ebx
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x40943f
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
cmp dword [eax], 0x52727464
jne 0x40947b
lea esi, [eax + 0x10000]
xor edi, edi
lea ecx, [eax + 0x88]
mov edx, dword [ecx]
test edx, edx
je 0x409469
cmp edx, eax
jb 0x40947b
cmp edx, esi
jae 0x40947b
inc edi
add ecx, 0x48
cmp edi, 0x38d
jb 0x40945b
push 1
pop eax
pop edi
pop esi
ret
xor eax, eax
jmp 0x409478
Function at 0x40982c
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 0x7ff80000
jbe 0x409849
lea eax, [esi - 0x7ff80000]
mov dword [ebp + 8], eax
jmp 0x409850
mov dword [ebp + 8], 0x10000
cmp esi, 0x80000000
jae 0x409863
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x40986a
mov dword [ebp - 4], 0xfff80000
mov eax, dword [0x437ad8]
mov ecx, dword [0x437ad4]
test eax, eax
jne 0x409884
test ecx, ecx
je 0x409899
mov eax, ecx
mov dword [0x437ad8], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x409899
cmp edx, dword [ebp + 8]
jb 0x409899
cmp edx, dword [ebp - 4]
jbe 0x409990
mov eax, ecx
test ecx, ecx
mov dword [0x437ad8], eax
je 0x4098c9
test eax, eax
je 0x4098bd
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4098bd
cmp ecx, dword [ebp + 8]
jb 0x4098bd
cmp ecx, dword [ebp - 4]
jbe 0x409990
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x437ad8], eax
jne 0x4098a8
mov eax, esi
mov ebx, 0x40000000
and eax, 0xffff
sub esi, eax
cmp esi, ebx
jbe 0x4098ff
lea edi, [esi - 0x40000000]
push esi
push edi
call fcn.004099be
pop ecx
test eax, eax
pop ecx
jne 0x409941
push edi
push dword [ebp + 8]
call fcn.00409a67
pop ecx
test eax, eax
pop ecx
jne 0x409941
cmp esi, ebx
jae 0x409923
lea edi, [esi + 0x40000000]
push edi
push esi
call fcn.00409a67
pop ecx
test eax, eax
pop ecx
jne 0x409941
push dword [ebp - 4]
push edi
call fcn.004099be
pop ecx
test eax, eax
pop ecx
jne 0x409941
push esi
push dword [ebp + 8]
call fcn.00409a67
pop ecx
test eax, eax
pop ecx
jne 0x409941
push dword [ebp - 4]
push esi
call fcn.004099be
pop ecx
test eax, eax
pop ecx
je 0x4099b7
mov dword [0x437ad8], eax
mov dword [eax], 0x52727464
mov eax, dword [0x437ad8]
xor ecx, ecx
mov dword [eax + 8], ecx
mov eax, dword [0x437ad8]
mov edx, dword [0x437ad4]
mov dword [eax + 4], edx
mov eax, dword [0x437ad8]
mov dword [0x437ad4], eax
add eax, 0xffa8
mov edx, 0x38b
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
dec edx
jne 0x409978
mov eax, dword [0x437ad8]
mov dword [eax + 8], ecx
mov eax, dword [0x437ad8]
mov esi, dword [eax + 8]
cmp esi, dword [ebp + 8]
jb 0x4099b7
cmp esi, dword [ebp - 4]
ja 0x4099b7
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [eax + 8], ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, esi
jmp 0x4099b9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4099be
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
push dword [ebp + 8]
call fcn.00409a4f
mov edi, eax
pop ecx
cmp edi, dword [ebp + 0xc]
jae 0x409a49
mov esi, 0x10000
cmp edi, 0x50000000
jb 0x4099f2
cmp edi, 0x80000000
ja 0x4099f2
mov edi, 0x80010000
jmp 0x409a44
push 0x1c
lea eax, [ebp - 0x1c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1c]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409a49
cmp dword [ebp - 0xc], esi
mov eax, dword [ebp - 0x10]
jne 0x409a36
cmp eax, esi
jb 0x409a36
push 0x40
push 0x3000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x409a4b
add edi, esi
jmp 0x409a44
mov ecx, dword [ebp - 0x1c]
add ecx, eax
push ecx
call fcn.00409a4f
pop ecx
mov edi, eax
cmp edi, dword [ebp + 0xc]
jb 0x4099db
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x409a67
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
push esi
add eax, 0xffff0000
push edi
push eax
call fcn.00409aff
mov edi, eax
pop ecx
cmp edi, dword [ebp + 8]
jbe 0x409af9
mov esi, 0x10000
cmp edi, 0x50000000
jb 0x409aa1
cmp edi, 0x80000000
ja 0x409aa1
mov edi, 0x4fff0000
jmp 0x409af4
push 0x1c
lea eax, [ebp - 0x1c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1c]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409af9
cmp dword [ebp - 0xc], esi
jne 0x409ae3
cmp dword [ebp - 0x10], esi
jb 0x409ae3
push 0x40
push 0x3000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x409afb
sub edi, esi
jmp 0x409af4
mov eax, dword [ebp - 0x18]
add eax, 0xffff0000
push eax
call fcn.00409aff
pop ecx
mov edi, eax
cmp edi, dword [ebp + 8]
ja 0x409a8a
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x40a0be
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
xor edi, edi
cmp dword [0x437b20], edi
jne 0x40a262
mov eax, dword [0x437b1c]
cmp eax, edi
jne 0x40a264
push 0x24
mov ebx, 0x437af8
push edi
push ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
push edi
push str.dbghelp.dll
mov dword [0x437af8], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp eax, edi
mov dword [0x437afc], eax
je 0x40a223
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ImagehlpApiVersionEx
push eax
call esi
push str.SymInitialize
mov dword [0x437b00], eax
push dword [0x437afc]
call esi
push str.SymSetOptions
mov dword [0x437b04], eax
push dword [0x437afc]
call esi
push str.SymGetOptions
mov dword [0x437b08], eax
push dword [0x437afc]
call esi
push str.SymLoadModule64
mov dword [0x437b0c], eax
push dword [0x437afc]
call esi
push str.SymGetModuleInfo64
mov dword [0x437b10], eax
push dword [0x437afc]
call esi
push 0x4347c0
mov dword [0x437b14], eax
push dword [0x437afc]
call esi
mov dword [0x437b18], eax
push 8
lea eax, [ebp - 8]
push edi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [0x437b00]
add esp, 0xc
cmp eax, edi
mov word [ebp - 8], 9
pop esi
je 0x40a21e
cmp dword [0x437b04], edi
je 0x40a21e
cmp dword [0x437b10], edi
je 0x40a21e
cmp dword [0x437b14], edi
je 0x40a21e
cmp dword [0x437b18], edi
je 0x40a21e
lea ecx, [ebp - 8]
push ecx
call eax
cmp word [ebp - 8], 9
jb 0x40a21e
push edi
push edi
push dword [0x437af8]
call dword [0x437b04]
test eax, eax
je 0x40a21e
mov eax, dword [0x437b0c]
cmp eax, edi
je 0x40a214
cmp dword [0x437b08], edi
je 0x40a214
call eax
and al, 0xfc
or ax, 0x2704
push eax
call dword [0x437b08]
mov dword [0x437b1c], ebx
mov eax, ebx
jmp 0x40a264
mov eax, dword [0x437afc]
cmp eax, edi
mov dword [0x437b20], 1
je 0x40a238
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x437b00], edi
mov dword [0x437b04], edi
mov dword [0x437b08], edi
mov dword [0x437b0c], edi
mov dword [0x437b10], edi
mov dword [0x437b14], edi
mov dword [0x437b18], edi
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x40a47b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ce98
push 0x41444a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
test eax, eax
mov esi, 0x10000
je 0x40a4b3
lea esi, [eax + 0x10000]
push 0x1c
push 0
lea eax, [ebp - 0x38]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
ja 0x40a4e7
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 0x28], 0x1000
jne 0x40a537
cmp byte [ebp - 0x24], 1
je 0x40a537
test byte [ebp - 0x23], 1
jne 0x40a537
and dword [ebp - 4], 0
mov dword [ebp - 0x3c], esi
cmp word [esi], 0x5a4d
jne 0x40a533
mov eax, dword [esi + 0x3c]
cmp eax, dword [ebp - 0x2c]
ja 0x40a533
cmp eax, 0x40
jb 0x40a533
add eax, esi
mov dword [ebp - 0x40], eax
cmp dword [eax], 0x4550
jne 0x40a533
or dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x40a4d6
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x2c]
lea esi, [ecx + eax]
jmp 0x40a4c3

Function at 0x40a6c3
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cec8
push 0x41444a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
xor esi, esi
push esi
lea eax, [ebp - 0x34]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 4], esi
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jbe 0x40a767
cmp dword [ebp - 0x24], 0x1000
jne 0x40a767
cmp byte [ebp - 0x20], 1
je 0x40a767
test byte [ebp - 0x1f], 1
jne 0x40a767
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
cmp word [ecx], 0x5a4d
jne 0x40a767
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x40a775
cmp word [eax + 0x14], si
jne 0x40a75b
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x40a786
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x38]
jmp 0x40a755
push 0xc1
jmp 0x40a77a
push 0xbf
call dword [sym.imp.KERNEL32.dll_SetLastError]
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40ab81
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cf08
push 0x41444a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
xor ebx, ebx
cmp eax, ebx
jne 0x40abbd
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
cmp word [eax], 0x5a4d
je 0x40abd1
push 0xc1
jmp 0x40ac80
mov esi, dword [eax + 0x3c]
add esi, eax
mov dword [ebp - 0x24], esi
cmp dword [esi], 0x4550
je 0x40abeb
push 0xbf
jmp 0x40ac80
mov ax, word [esi + 0x14]
cmp ax, bx
jne 0x40ac0c
xor esi, esi
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
or dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x40ac8c
movzx eax, ax
lea eax, [eax + esi + 0x18]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], ebx
movzx eax, word [esi + 6]
cmp ebx, eax
jae 0x40abf4
lea eax, [ebx + ebx*4]
mov ecx, dword [ebp - 0x20]
lea edi, [ecx + eax*8]
push str..detour
push edi
call sub.MSVCRT.dll_strcmp
pop ecx
pop ecx
test eax, eax
jne 0x40ac71
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40abf4
cmp dword [edi + 0x10], 0
je 0x40abf4
mov ecx, dword [ebp - 0x1c]
lea esi, [eax + ecx]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov eax, dword [esi]
cmp eax, 0x40
jb 0x40abf4
cmp dword [esi + 4], 0x727444
jne 0x40abf4
cmp dword [esi + 8], 0
jne 0x40ac6d
mov dword [esi + 8], eax
push 0
jmp 0x40abfb
inc ebx
jmp 0x40ac16
call dword [sym.imp.KERNEL32.dll_SetLastError]
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40adfe
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
mov eax, 0x678
cmp dword [esi], eax
jne 0x40aede
cmp dword [ebp + 0xc], eax
jb 0x40aede
push ebx
lea eax, [ebp - 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
or dword [ebp - 8], 0xffffffff
or dword [ebp + 0xc], 0xffffffff
or dword [ebp + 8], 0xffffffff
push eax
push 0x40
xor ebx, ebx
push dword [esi + 4]
push dword [esi + 0x10]
call edi
test eax, eax
je 0x40aed8
lea eax, [ebp + 0xc]
push eax
push 0x40
push dword [esi + 8]
push dword [esi + 0x14]
call edi
test eax, eax
je 0x40aec9
push dword [esi + 4]
lea eax, [esi + 0x1c]
push eax
push dword [esi + 0x10]
call sub.MSVCRT.dll_memcpy
push dword [esi + 8]
lea eax, [esi + 0x5c]
push eax
push dword [esi + 0x14]
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 0x18]
add esp, 0x18
test eax, eax
je 0x40aeb7
lea ecx, [ebp + 8]
push ecx
push 0x40
push dword [esi + 0xc]
push eax
call edi
test eax, eax
je 0x40aeba
push dword [esi + 0xc]
lea eax, [esi + 0x664]
push eax
push dword [esi + 0x18]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push dword [esi + 0xc]
push dword [esi + 0x18]
call edi
push 1
pop ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [esi + 8]
push dword [esi + 0x14]
call edi
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push dword [esi + 4]
push dword [esi + 0x10]
call edi
mov eax, ebx
pop edi
pop ebx
jmp 0x40aeeb
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
leave
ret 8

Function at 0x40b422
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push esi
xor esi, esi
cmp eax, esi
jne 0x40b436
xor eax, eax
jmp 0x40b4e9
mov dword [eax], esi
push ebx
movzx eax, word [ebp + 0xc]
push edi
push 0x434964
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
je 0x40b4e5
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp ebx, esi
je 0x40b4e5
cmp eax, esi
je 0x40b4e5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, esi
mov dword [ebp + 8], eax
je 0x40b4e5
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, esi
je 0x40b4e5
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, esi
je 0x40b4de
push ebx
push dword [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp + 8]
mov dword [ebp + 8], esi
push eax
push esi
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
cmp dword [ebp + 8], esi
je 0x40b4d7
push esi
push dword [ebp + 8]
call fcn.0040c56c
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x40b98c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x438758], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
push edi
jne 0x40b9d4
call ebx
test eax, 0x80000000
je 0x40b9ca
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x43875c], eax
mov dword [0x438758], 1
mov eax, dword [0x43875c]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b9f0
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x40ba21
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x40ba18
call ebx
test eax, 0x80000000
mov eax, dword [ebp + 8]
je 0x40ba0c
push dword [eax + 8]
call dword [eax]
jmp 0x40ba12
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x40ba21
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40c6bd
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x429c57
call sub.MSVCRT.dll__EH_prolog
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 0x14], edi
push 1
lea eax, [esi + 0x4c]
pop ebx
mov dword [ebp - 4], edi
push 0x21
push edi
push eax
mov dword [esi], 0x42e6d4
mov dword [esi + 4], 0x42e6b0
mov dword [esi + 8], 0x42e674
mov dword [esi + 0xc], 0x42e62c
mov dword [esi + 0x10], 0x42e604
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x48], edi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, esi
push 0x28
push 0x50
call fcn.0040dc1a
push edi
call dword [sym.imp.GDI32.dll_GetStockObject]
push edi
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40ddc5
Capabilities:
Set global application hook

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_SetWindowsHookExW]
cmp dword [esi + 0x20], 0
jne 0x40ddf3
mov dword [0x437bf4], esi
call ebx
push eax
push 0
push 0x40d8e0
push 3
call edi
mov dword [esi + 0x20], eax
cmp dword [esi + 0x24], 0
jne 0x40de10
mov dword [0x437bf4], esi
call ebx
push eax
push 0
push 0x40d9bc
push 4
call edi
mov dword [esi + 0x24], eax
pop edi
pop esi
pop ebx
ret