joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402650
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x12c]
sub esp, 0x12c
push 0xffffffffffffffff
push 0x467d48
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4896a0]
xor eax, ebp
mov dword [ebp + 0x128], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x134]
mov edi, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 8]
inc eax
lea ebx, [eax + eax*2]
add ebx, ebx
add ebx, ebx
push ebx
call fcn.00426d03
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
test esi, esi
je 0x40279e
mov dword [esi], 0
mov dword [esi], 0x34532008
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov eax, dword [edi + 8]
lea edx, [eax + eax*2]
mov eax, dword [edi + 4]
add edx, edx
add edx, edx
push edx
push eax
lea ecx, [esi + 0xc]
push ecx
call fcn.00449bc0
lea edx, [ebx - 8]
push edx
lea eax, [esi + 8]
push eax
call fcn.0041b400
mov edi, dword [ebp - 0x14]
add esp, 0x14
push edi
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
call fcn.004273de
push 0
push 0x9002
push edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00427930
test eax, eax
je 0x402740
push ebx
push esi
lea ecx, [ebp - 0x28]
call fcn.00426fb8
lea ecx, [ebp - 0x28]
call fcn.004272bf
mov dword [ebp - 0x14], 1
push 0x128
lea eax, [ebp]
push 0
push eax
call fcn.00449a70
add esp, 0xc
lea ecx, [ebp]
push ecx
push edi
call fcn.00427bc2
test eax, eax
je 0x40276f
or byte [ebp + 0x20], 6
lea edx, [ebp]
push edx
push edi
call fcn.00427d98
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00427533
jmp 0x402792
push esi
call fcn.00426cf8
mov eax, dword [ebp - 0x14]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x128]
xor ecx, ebp
call fcn.00449ba6
add ebp, 0x12c
mov esp, ebp
pop ebp
ret 4

Function at 0x402950
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402969
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4029a4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4029a0
lea ebx, [ebx]
cmp esi, eax
jae 0x4029a4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402990
cmp esi, eax
jb 0x4029aa
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403a30
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x467e2e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4896a0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
call fcn.0042975f
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [esi], vtable.CBroListCtrl.0
lea ebp, [esi + 0x54]
call fcn.0042fb43
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x403a89
push 0x80004005
call fcn.00402930
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x20], 1
lea edi, [esi + 0x58]
call fcn.0042fb43
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x403aba
push 0x80004005
call fcn.00402930
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
push ebx
push 0x46db5c
mov ecx, edi
mov byte [esp + 0x28], 2
call fcn.004033c0
mov ecx, dword [edi]
push ebx
push ebx
push ecx
push ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push edi
mov ecx, ebp
call fcn.004037f0
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x404060
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x467f28
mov eax, dword fs:[0]
push eax
sub esp, 0x3ac
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x3a8], eax
push esi
push edi
mov eax, dword [0x4896a0]
xor eax, esp
push eax
lea eax, [esp + 0x3b8]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x3c8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
lea ecx, [esp + 0x1b0]
push ecx
mov dword [esp + 0x3c8], 0
call edi
push 0x46db5c
lea ecx, [esp + 0x10]
call fcn.00403c70
push 0x701
push 4
lea edx, [esp + 0x54]
push edx
push 0
lea eax, [esp + 0x1bc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x1b0]
push edx
call edi
lea eax, [esp + 0x15c]
push eax
lea ecx, [esp + 0x2b4]
push ecx
call edi
mov ecx, dword [esi + 0x20]
mov edx, dword [esp + 0x50]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x10]
push eax
push 0
push 0x1007
push ecx
mov dword [esp + 0x20], 7
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x34], 0x46db68
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], 1
call edi
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push 0
push 0x1006
lea edx, [esp + 0x2bc]
push ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x28], 2
mov dword [esp + 0x34], edx
call edi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4041a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c8]
add eax, 0xfffffff0
mov dword [esp + 0x3c0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4041d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x3b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x3a8]
xor ecx, esp
call fcn.00449ba6
add esp, 0x3b8
ret 4
Function at 0x407af0
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
je 0x407b08
xor eax, eax
add esp, 0x20
ret
mov ecx, dword [esp + 0x2c]
push ebp
mov ebp, dword [esp + 0x2c]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 4], eax
test eax, eax
jne 0x407b2d
pop ebp
add esp, 0x20
ret
push ebx
mov ebx, dword [esp + 0x2c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0x40
push ebx
call esi
test eax, eax
jne 0x407b4c
mov edx, 0x5a4d
cmp word [ebx], dx
je 0x407b55
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x20
ret
push edi
mov edi, dword [ebx + 0x3c]
push 0xf8
add edi, ebx
push edi
call esi
test eax, eax
jne 0x407c07
cmp dword [edi], 0x4550
jne 0x407c07
mov esi, dword [edi + 0x80]
add esi, ebx
cmp esi, edi
je 0x407c07
mov eax, dword [esi + 0xc]
test eax, eax
je 0x407baa
mov edi, edi
add eax, ebx
push ebp
push eax
call fcn.0044cb90
add esp, 8
test eax, eax
je 0x407baa
mov eax, dword [esi + 0x20]
add esi, 0x14
test eax, eax
jne 0x407b90
cmp dword [esi + 0xc], 0
je 0x407c07
mov esi, dword [esi + 0x10]
add esi, ebx
cmp dword [esi], 0
je 0x407c2a
lea ebx, [ebx]
mov eax, dword [esi]
cmp eax, dword [esp + 0x10]
je 0x407bdc
add esi, 4
cmp dword [esi], 0
jne 0x407bc0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x20
ret
push 0x1c
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [esp + 0x28]
push edx
push 4
push eax
push ecx
call edi
test eax, eax
jne 0x407c11
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x20
ret
mov edx, dword [esp + 0x40]
mov dword [esi], edx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
push 0
push eax
push ecx
push edx
call edi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x20
ret

Function at 0x407c40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push 0x104
lea eax, [esp + 0xd]
push ebx
push eax
mov dword [esi], vtable.COpenWithDialog.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov byte [esp + 0x14], bl
call fcn.00449a70
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str._shell32.dll
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 4], eax
cmp eax, ebx
je 0x407cc1
push str.OpenAs_RunDLLA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00449ba6
add esp, 0x10c
ret
Function at 0x407e10
Capabilities:
Check os version

Disassembly:
sub esp, 0x134
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x130], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x94
call esi
test eax, eax
je 0x408050
mov eax, dword [esp + 0x14]
cmp eax, 2
jne 0x407fbe
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x407f02
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x407e7f
mov eax, 7
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00449ba6
add esp, 0x134
ret
cmp eax, 1
jne 0x407e9f
mov eax, 8
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00449ba6
add esp, 0x134
ret
cmp eax, 2
jne 0x408050
lea ecx, [esp + 0x98]
push ecx
mov dword [esp + 0x9c], 0x9c
call esi
mov al, byte [esp + 0x132]
cmp al, 3
je 0x407ee7
cmp al, 2
je 0x407ee7
mov eax, 9
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00449ba6
add esp, 0x134
ret
mov eax, 0xa
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00449ba6
add esp, 0x134
ret
cmp eax, 6
jne 0x407f9a
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x407f6d
lea edx, [esp + 0x98]
push edx
mov dword [esp + 0x9c], 0x9c
call esi
mov al, byte [esp + 0x132]
cmp al, 3
je 0x407f52
cmp al, 2
je 0x407f52
mov eax, 0xb
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00449ba6
add esp, 0x134
ret
mov eax, 0xc
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00449ba6
add esp, 0x134
ret
cmp eax, 1
jne 0x408050
call fcn.00407da0
neg eax
sbb eax, eax
neg eax
add eax, 0xd
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00449ba6
add esp, 0x134
ret
cmp eax, 4
jne 0x408050
mov eax, 6
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00449ba6
add esp, 0x134
ret
cmp eax, 1
jne 0x408031
cmp dword [esp + 8], 4
jne 0x408050
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x407ff1
mov eax, 2
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00449ba6
add esp, 0x134
ret
cmp eax, 0xa
jne 0x408011
mov eax, 3
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00449ba6
add esp, 0x134
ret
cmp eax, 0x5a
jne 0x408050
mov eax, 4
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00449ba6
add esp, 0x134
ret
test eax, eax
jne 0x408050
mov eax, 1
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00449ba6
add esp, 0x134
ret
mov ecx, dword [esp + 0x134]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00449ba6
add esp, 0x134
ret

Function at 0x408a20
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
add ecx, 0x11c
push ecx
push 0x408840
push 0
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
cmp dword [esp], eax
setne al
pop ecx
ret
Function at 0x408ea0
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x560
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x55c], eax
mov eax, dword [esp + 0x568]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x570]
push edi
xor ebx, ebx
push 0x207
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x161]
push ebx
push ecx
mov dword [esp + 0x20], eax
mov byte [esp + 0x168], bl
call fcn.00449a70
push 0x207
lea edx, [esp + 0x375]
push ebx
push edx
mov byte [esp + 0x37c], bl
call fcn.00449a70
mov eax, esi
add esp, 0x18
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x408f10
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
je 0x408f2e
push 0x46d8b4
push esi
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [esp + 0x368]
push eax
call ebp
push 0x46db80
lea ecx, [esp + 0x368]
push ecx
call edi
push 0x140
lea edx, [esp + 0x20]
push ebx
push edx
call fcn.00449a70
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x368]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x40906d
cmp eax, ebx
je 0x40906d
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea esp, [esp]
lea edx, [esp + 0x48]
push 0x46db7c
push edx
call fcn.0044a83e
add esp, 8
test eax, eax
je 0x409043
lea eax, [esp + 0x48]
push 0x46db68
push eax
call fcn.0044a83e
add esp, 8
test eax, eax
je 0x409043
push esi
lea ecx, [esp + 0x160]
push ecx
call ebp
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x160]
push eax
call edi
lea ecx, [esp + 0x15c]
push ecx
call ebx
test al, 0x10
je 0x409010
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x160]
push eax
call fcn.00408ea0
jmp 0x409043
test al, 1
je 0x409026
and eax, 0xfffffffe
push eax
lea ecx, [esp + 0x160]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [esp + 0x18]
movzx eax, byte [edx + 0x53e]
push 2
push eax
lea ecx, [esp + 0x164]
push ecx
call dword [esp + 0x20]
add esp, 0xc
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408fa0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x40906f
xor eax, eax
mov ecx, dword [esp + 0x56c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00449ba6
add esp, 0x560
ret 8
Function at 0x409090
Capabilities:
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x764
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x760], eax
push ebx
push ebp
mov ebp, dword [esp + 0x774]
push esi
push edi
mov edi, dword [esp + 0x778]
push 0
push ebp
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4090d3
mov dword [esp + 0x10], eax
push 0x207
lea eax, [esp + 0x365]
push 0
push eax
mov byte [esp + 0x36c], 0
call fcn.00449a70
push 0x207
lea ecx, [esp + 0x579]
push 0
push ecx
mov byte [esp + 0x580], 0
call fcn.00449a70
push 0x207
lea edx, [esp + 0x175]
push 0
push edx
mov byte [esp + 0x17c], 0
call fcn.00449a70
mov eax, edi
add esp, 0x24
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409130
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
sub eax, edx
mov bl, 0x5c
cmp byte [eax + edi - 1], bl
je 0x40914f
push 0x46d8b4
push edi
call esi
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409154
sub eax, edx
cmp byte [eax + ebp - 1], bl
je 0x40916b
push 0x46d8b4
push ebp
call esi
push edi
lea eax, [esp + 0x364]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x46db80
lea ecx, [esp + 0x364]
push ecx
call esi
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x364]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4091aa
xor eax, eax
jmp 0x409287
test ebx, ebx
je 0x40927c
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x18]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40927c
lea edx, [esp + 0x44]
push edx
push edi
lea eax, [esp + 0x570]
push str._s_s
push eax
call esi
lea ecx, [esp + 0x54]
push ecx
push ebp
lea edx, [esp + 0x170]
push str._s_s
push edx
call esi
add esp, 0x20
test byte [esp + 0x18], 0x10
jne 0x409222
push 0
lea eax, [esp + 0x15c]
push eax
lea ecx, [esp + 0x570]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4091b8
mov dword [esp + 0x10], eax
jmp 0x4091b8
lea edx, [esp + 0x44]
push 0x46db7c
push edx
call fcn.0044a83e
add esp, 8
test eax, eax
je 0x4091b8
lea eax, [esp + 0x44]
push 0x46db68
push eax
call fcn.0044a83e
add esp, 8
test eax, eax
je 0x4091b8
lea ecx, [esp + 0x158]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x56c]
push edx
call fcn.00409090
test eax, eax
jne 0x4091b8
mov dword [esp + 0x10], eax
jmp 0x4091b8
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x770]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00449ba6
add esp, 0x764
ret 8
Function at 0x409490
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x160
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x15c], eax
push 0x104
lea eax, [esp + 0x59]
push 0
push eax
mov byte [esp + 0x60], 0
call fcn.00449a70
add esp, 0xc
push 0x104
call fcn.0041b690
push eax
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push str.ODMHook.exe
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00449a70
add esp, 0xc
xor eax, eax
lea edx, [esp]
push edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
mov ecx, 5
mov word [esp + 0x5c], cx
push 0
lea ecx, [esp + 0x74]
push ecx
push 0
mov dword [esp + 0x38], 0x44
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x409557
mov ecx, dword [esp + 0x15c]
xor ecx, esp
call fcn.00449ba6
add esp, 0x160
ret
mov edx, dword [esp + 8]
push esi
push edx
call fcn.00467300
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push eax
call esi
mov ecx, dword [esp + 4]
push ecx
call esi
mov ecx, dword [esp + 0x160]
pop esi
xor ecx, esp
mov eax, 1
call fcn.00449ba6
add esp, 0x160
ret
mov ecx, dword [0x48bff4]
test ecx, ecx
jne 0x409c7d
xor eax, eax
ret
jmp 0x409490
Function at 0x40a080
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x468660
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4896a0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
push eax
push ecx
push esi
push 0
call fcn.0041e7e0
add esp, 0x10
test eax, eax
jne 0x40a162
push 1
lea edx, [esp + 0x2c]
push edx
mov ecx, 0x48c1b8
call fcn.0041aa20
mov esi, eax
push 0x30
lea eax, [esp + 0x30]
push eax
mov ecx, 0x48c1b8
mov dword [esp + 0x24], 0
call fcn.0041aa20
mov esi, dword [esi]
mov eax, dword [eax]
push 0x10
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a123
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a14b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0xc
lea ecx, [esi + 0x3e]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x40a1e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40a1e6
push 2
lea edx, [esp + 0x14]
push edx
mov ecx, 0x48c1b8
call fcn.0041aa20
mov esi, eax
push 0x31
lea eax, [esp + 0x28]
push eax
mov ecx, 0x48c1b8
mov dword [esp + 0x24], 1
call fcn.0041aa20
mov esi, dword [esi]
mov eax, dword [eax]
push 0x10
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a1dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
jmp 0x40a127
lea edi, [ebx + 0x19c]
mov ecx, 0x1ae
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, dword [ebx + 0x1da]
mov edx, dword [ebx + 0x1de]
mov eax, dword [ebx + 0x1e2]
mov dword [ebx + 0x11c], ecx
mov ecx, dword [ebx + 0x1e6]
mov dword [ebx + 0x120], edx
mov dword [ebx + 0x124], eax
mov dword [ebx + 0x128], ecx
mov ecx, ebx
call fcn.00408a20
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0xc
Function at 0x40b970
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x4688a0
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x4896a0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x1c], 0
call fcn.00408dd0
test eax, eax
jne 0x40b9e6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b9cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 4
movzx ecx, byte [esi + 0x53e]
push 2
push ecx
lea ebp, [esi + 4]
push ebp
call eax
add esp, 0xc
mov ecx, esi
mov edi, eax
call fcn.00408e80
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
test edi, edi
jne 0x40ba24
mov dword [esp + 0x1c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40b9c3
push eax
call fcn.004030b0
add eax, 0x10
add esp, 4
mov dword [esp + 0x10], eax
push 1
push 0x46d8b4
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 1
call fcn.004036d0
lea ecx, [esi + 0x1ec]
test ecx, ecx
jne 0x40ba57
xor eax, eax
jmp 0x40ba69
mov eax, ecx
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40ba60
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.004036d0
lea ecx, [esi + 0x26d]
test ecx, ecx
jne 0x40ba82
xor eax, eax
jmp 0x40ba90
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40ba87
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.004036d0
mov esi, dword [esp + 0x10]
push 0
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, eax
lea eax, [esi - 0x10]
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bacc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40baf4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 4