joyce8/EMBER2024-capa huggingface dataset:
Function at 0x618180
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x6181a2
push 0
push 0xaa
push str.d:pocopoco_1.9.4_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.006122c0
add esp, 0x10
cmp dword [esi + 0x34], 8
lea eax, [esi + 0x20]
jb 0x6181ad
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x6181c2
add esi, 4
push esi
call fcn.00617500
test al, 0x10
jne 0x6181d4
test eax, 0x400
je 0x6181d4
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
jmp 0x618180

Function at 0x618550
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x14], 0
jne 0x618573
push 0
push 0x112
push str.d:pocopoco_1.9.4_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.006122c0
add esp, 0x10
cmp dword [edi + 0x34], 8
lea esi, [edi + 0x20]
jb 0x618580
mov eax, dword [esi]
jmp 0x618582
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x618597
add edi, 4
push edi
call fcn.00617500
cmp byte [esp + 0xc], 0
je 0x6185a3
and eax, 0xfffffffe
jmp 0x6185a6
or eax, 1
cmp dword [esi + 0x14], 8
jb 0x6185ae
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x6185c3
add edi, 4
push edi
call fcn.00617500
pop edi
pop esi
ret 4

Function at 0x6185d0
Capabilities:
Copy file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x640b58
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x61860a
push 0
push 0x128
push str.d:pocopoco_1.9.4_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.006122c0
add esp, 0x10
xor eax, eax
mov dword [esp + 0x18], 7
mov dword [esp + 0x14], 0
mov word [esp + 4], ax
mov edx, dword [esp + 0x30]
lea ecx, [esp + 4]
push ecx
push edx
mov dword [esp + 0x30], eax
call fcn.006171d0
mov ecx, dword [esp + 0xc]
add esp, 8
cmp dword [esp + 0x18], 8
jae 0x618646
lea ecx, [esp + 4]
cmp dword [esi + 0x34], 8
lea eax, [esi + 0x20]
jb 0x618651
mov eax, dword [eax]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x618668
add esi, 4
push esi
call fcn.00617500
cmp dword [esp + 0x18], 8
jb 0x61867c
mov eax, dword [esp + 4]
push eax
call fcn.005db86c
add esp, 4
mov ecx, dword [esp + 0x20]
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x6185e8
Capabilities:
Copy file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x640b58
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x61860a
push 0
push 0x128
push str.d:pocopoco_1.9.4_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.006122c0
add esp, 0x10
xor eax, eax
mov dword [esp + 0x18], 7
mov dword [esp + 0x14], 0
mov word [esp + 4], ax
mov edx, dword [esp + 0x30]
lea ecx, [esp + 4]
push ecx
push edx
mov dword [esp + 0x30], eax
call fcn.006171d0
mov ecx, dword [esp + 0xc]
add esp, 8
cmp dword [esp + 0x18], 8
jae 0x618646
lea ecx, [esp + 4]
cmp dword [esi + 0x34], 8
lea eax, [esi + 0x20]
jb 0x618651
mov eax, dword [eax]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x618668
add esi, 4
push esi
call fcn.00617500
cmp dword [esp + 0x18], 8
jb 0x61867c
mov eax, dword [esp + 4]
push eax
call fcn.005db86c
add esp, 4
mov ecx, dword [esp + 0x20]
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4

Function at 0x618870
Capabilities:
Delete directory
Delete file

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x618892
push 0
push 0x15b
push str.d:pocopoco_1.9.4_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.006122c0
add esp, 0x10
mov ecx, esi
call fcn.00618130
test al, al
lea eax, [esi + 0x20]
je 0x6188bc
cmp dword [eax + 0x14], 8
jb 0x6188a8
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x6188d8
add esi, 4
push esi
call fcn.00617500
cmp dword [eax + 0x14], 8
jb 0x6188c4
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x6188d8
add esi, 4
push esi
call fcn.00617500
pop esi
ret

Function at 0x618950
Capabilities:
Create directory

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x618972
push 0
push 0x17e
push str.d:pocopoco_1.9.4_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.006122c0
add esp, 0x10
mov ecx, esi
call fcn.00618000
test al, al
je 0x61898c
mov ecx, esi
call fcn.00618130
test al, al
je 0x61898c
xor al, al
pop esi
ret
cmp dword [esi + 0x34], 8
lea eax, [esi + 0x20]
jb 0x618997
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x6189ad
add esi, 4
push esi
call fcn.00617500
mov al, 1
pop esi
ret

Function at 0x618b30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x6181a2
push 0
push 0xaa
push str.d:pocopoco_1.9.4_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.006122c0
add esp, 0x10
cmp dword [esi + 0x34], 8
lea eax, [esi + 0x20]
jb 0x6181ad
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x6181c2
add esi, 4
push esi
call fcn.00617500
test al, 0x10
jne 0x6181d4
test eax, 0x400
je 0x6181d4
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
jmp 0x618180
Function at 0x61bd00
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x640f71
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
mov esi, 0x7fff
xor ecx, ecx
xor ebx, ebx
mov eax, esi
mov edx, 2
mul edx
seto cl
mov dword [esp + 8], ebx
push edi
mov dword [esp + 0x74], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov byte [esp + 0x1c], 1
neg ecx
or ecx, eax
push ecx
call fcn.005db092
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
push esi
push edi
mov dword [esp + 0x7c], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
jbe 0x61be23
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, ebx
ja 0x61bdc0
push 0x2a
push str.Cannot_get_system_directory_long_path_name
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.005739ad
push ebx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x7c], 2
call fcn.00606180
push 0x6bd4f8
lea ecx, [esp + 0x40]
push ecx
call fcn.005dbab3
mov esi, dword [esp + 0x7c]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
push esi
push edi
mov dword [esp + 0x14], 1
call fcn.00623e30
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x61bdef
mov eax, dword [esi]
jmp 0x61bdf1
mov eax, esi
cmp byte [eax + ecx - 1], 0x5c
je 0x61be06
push 1
push 0x69c530
mov ecx, esi
call fcn.00573d08
push edi
call fcn.005e0a57
mov ecx, dword [esp + 0x70]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret
push 0x23
push str.Cannot_get_temporary_directory_path
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.005739ad
push ebx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x44]
mov byte [esp + 0x7c], 3
call fcn.00606180
push 0x6bd4f8
lea eax, [esp + 0x40]
push eax
call fcn.005dbab3
int3
Function at 0x623c90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6419a8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, dword [esp + 0x30]
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x623cbe
mov eax, dword [esi]
jmp 0x623cc0
mov eax, esi
lea ecx, [esp + 0x30]
mov byte [eax], 0
call fcn.0062e140
push 2
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0
call fcn.0062e550
push 0x3f
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 1
call fcn.0062e600
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push esi
lea eax, [edx + edx]
push eax
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call fcn.0062e880
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 1
call fcn.0062e620
lea ecx, [esp + 4]
mov byte [esp + 0x20], 0
call fcn.0062e2c0
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], 0xffffffff
call fcn.0062df20
mov ecx, dword [esp + 0x18]
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x62d4d0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x34
push ebx
push ebp
mov ebp, dword [esp + 0x44]
cmp dword [ebp + 0x14], 0x10
push esi
mov dword [esp + 0xc], 0
jb 0x62d4ed
mov eax, dword [ebp]
jmp 0x62d4ef
mov eax, ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0
push 0
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x62d51c
push eax
push ebp
lea ecx, [esp + 0x18]
call fcn.00605e20
push 0x6ba38c
lea eax, [esp + 0x14]
push eax
call fcn.005dbab3
push edi
push esi
call fcn.005db092
add esp, 4
cmp dword [ebp + 0x14], 0x10
mov edi, eax
jb 0x62d531
mov ebp, dword [ebp]
push esi
push edi
push ebp
call ebx
mov esi, dword [esp + 0x48]
mov eax, edi
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x62d550
sub eax, edx
push eax
push edi
mov ecx, esi
call fcn.005739ad
push edi
call fcn.005e0a57
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret

Function at 0x630a90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x642060
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x34
mov edi, ecx
call fcn.005e09d7
mov esi, eax
xor eax, eax
add esp, 4
mov dword [ebp - 0x14], esi
cmp esi, eax
je 0x630b1e
mov ecx, dword [edi + 4]
mov dword [esi], ecx
mov edx, dword [edi + 4]
mov dword [esi + 4], edx
mov ecx, dword [edi + 4]
mov edx, dword [ebp + 8]
mov word [esi + 0x30], ax
mov dword [ebp - 4], eax
push edx
lea eax, [esi + 0xc]
push eax
add edi, 0xd
push edi
mov dword [esi + 8], ecx
call fcn.00630660
mov ecx, dword [ebp - 0xc]
add esp, 0xc
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp + 8], eax
call fcn.005dd5e2
push 0x6b88fc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call fcn.005dbab3
int3
Function at 0x7b2340
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x20b000]
mov dword [edi + 0x23be60], 0x42bc8b20
push edi
or ebp, 0xffffffff
jmp 0x7b236a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7b2371
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b2360
mov eax, 1
add ebx, ebx
jne 0x7b2383
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7b2394
jne 0x7b23b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b23b3
dec eax
add ebx, ebx
jne 0x7b23a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7b2378
add ebx, ebx
jne 0x7b23af
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x7b2405
xor ecx, ecx
sub eax, 3
jb 0x7b23cb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7b243a
sar eax, 1
mov ebp, eax
jmp 0x7b23d6
add ebx, ebx
jne 0x7b23d6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b23a4
inc ecx
add ebx, ebx
jne 0x7b23e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b23a4
add ebx, ebx
jne 0x7b23f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7b23e6
jne 0x7b2402
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7b23e6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7b2424
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7b2416
jmp 0x7b2366
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7b2424
add edi, ecx
jmp 0x7b2366
pop esi
mov edi, esi
mov ecx, 0xdf4f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7b2442
cmp byte [edi], 0x31
jne 0x7b2442
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x7b2447
lea edi, [esi + 0x3a1000]
mov eax, dword [edi]
or eax, eax
je 0x7b24bf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x427148]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x427354]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7b2474
mov ecx, edi
jns 0x7b24a3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x42735c]
or eax, eax
je 0x7b24b9
mov dword [ebx], eax
add ebx, 4
jmp 0x7b2491
call dword [esi + 0x427358]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x7b24f0
cmp al, 0xef
ja 0x7b24e3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x7b24c5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x7b24d2
mov ebp, dword [esi + 0x427360]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x257]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x7b2524
sub esp, 0xffffff80
jmp 0x4a3e4c
Function at 0x10086da0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x101f7404], 0
je 0x10086db9
mov eax, dword [0x101f7404]
jmp 0x10086f56
mov dword [0x101f7404], 0x101f73d4
push 0x28
push 0
push 0x101f73d4
call fcn.100804a0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x101f73d4], eax
push str.imagehlp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x101f73d8], eax
cmp dword [0x101f73d8], 0
jne 0x10086dff
xor eax, eax
jmp 0x10086f56
push str.ImagehlpApiVersionEx
mov eax, dword [0x101f73d8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101f73dc], eax
push str.SymInitialize
mov ecx, dword [0x101f73d8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101f73e0], eax
push str.SymSetOptions
mov edx, dword [0x101f73d8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101f73e4], eax
push str.SymGetOptions
mov eax, dword [0x101f73d8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101f73e8], eax
push str.SymLoadModule
mov ecx, dword [0x101f73d8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101f73ec], eax
push str.SymGetModuleInfo
mov edx, dword [0x101f73d8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101f73f0], eax
push str.SymGetSymFromName
mov eax, dword [0x101f73d8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101f73f4], eax
push str.BindImage
mov ecx, dword [0x101f73d8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101f73f8], eax
push 8
push 0
lea edx, [ebp - 8]
push edx
call fcn.100804a0
add esp, 0xc
mov word [ebp - 8], 9
cmp dword [0x101f73dc], 0
je 0x10086edd
lea eax, [ebp - 8]
push eax
call dword [0x101f73dc]
cmp dword [0x101f73dc], 0
je 0x10086eef
movzx ecx, word [ebp - 8]
cmp ecx, 9
jge 0x10086f0a
mov edx, dword [0x101f73d8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x101f73d8], 0
xor eax, eax
jmp 0x10086f56
cmp dword [0x101f73e0], 0
je 0x10086f23
push 0
push 0
mov eax, dword [0x101f73d4]
push eax
call dword [0x101f73e0]
cmp dword [0x101f73e8], 0
je 0x10086f51
cmp dword [0x101f73e4], 0
je 0x10086f51
call dword [0x101f73e8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
and ecx, 7
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [0x101f73e4]
mov eax, dword [0x101f7404]
mov esp, ebp
pop ebp
ret
Function at 0x100878f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10199e70
push 0x10080d29
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], 0
jne 0x1008792d
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x10087963
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
jmp 0x10087ac1
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0x4550
je 0x1008799b
push 0xbf
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x38]
jmp 0x10087ac1
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 0x14]
test ecx, ecx
jne 0x100879c7
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
jmp 0x10087ac1
mov edx, dword [ebp - 0x24]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], 0
jmp 0x100879ea
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x28], edx
jae 0x10087a9b
push str..detour
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
add ecx, eax
push ecx
call fcn.1007f2b2
add esp, 8
test eax, eax
jne 0x10087a96
mov edx, dword [ebp - 0x28]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x20]
cmp dword [eax + edx + 0xc], 0
je 0x10087a37
mov ecx, dword [ebp - 0x28]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x20]
cmp dword [edx + ecx + 0x10], 0
jne 0x10087a39
jmp 0x10087a9b
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx], 0x30
jb 0x10087a66
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 4], 0x727444
je 0x10087a68
jmp 0x10087a9b
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 8], 0
jne 0x10087a7c
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov dword [ecx + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
jmp 0x10087ac1
jmp 0x100879e1
mov dword [ebp - 4], 0xffffffff
jmp 0x10087ab4
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1016ff70
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push ebx
push esi
push edi
mov edi, ebp
xor ecx, ecx
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x101fe871
call fcn.1008205c
nop
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + 8]
mov dword [edx + ecx], 0x67452301
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + eax], 0xefcdab89
mov eax, 4
shl eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + eax], 0x98badcfe
mov eax, 4
imul ecx, eax, 3
mov edx, dword [ebp + 8]
mov dword [edx + ecx], 0x10325476
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + 8]
mov dword [edx + ecx + 0x10], 0
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + eax + 0x10], 0
pop edi
pop esi
pop ebx
add esp, 0xc0
cmp ebp, esp
call fcn.1008119d
mov esp, ebp
pop ebp
ret
Function at 0x404970
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1cd8
call fcn.0040ff60
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x44a0d8]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [0x44a0dc]
push esi
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], edx
call fcn.00404960
mov edi, dword [ebp - 0xc]
mov ecx, dword [0x44a0e0]
mov edx, dword [str._m_f]
add edi, 0x23f
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], 0x20
lea ecx, [ecx]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov esi, dword [ebp - 8]
mov eax, dword [0x451854]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x4049fc
mov dword [0x451850], 0xedeb2e40
jmp 0x404a17
cmp eax, 0x3eb
jne 0x404a17
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [0x4512e0], 0
mov eax, dword [ebp - 8]
lea ecx, [edi + eax]
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x451854], 0x9e6
mov dword [0x45184c], 0xf4ea3dee
jne 0x404a50
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x451854], 0x213
jne 0x404af2
push 0
lea eax, [ebp - 0x8d8]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrencyFormatW]
lea ecx, [ebp - 0x14d8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x10d8]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push 0
push 0
lea ecx, [ebp - 0x1cd8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
lea edx, [ebp - 0x30]
push edx
push 0
lea eax, [ebp - 0x44]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea ecx, [ebp - 0xd8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub ebx, dword [ebp - 4]
cmp dword [0x451854], 0xc
jne 0x404b06
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov eax, ebx
shr eax, 5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov ecx, ebx
shl ecx, 4
add ecx, dword [ebp - 0x1c]
lea edx, [edi + ebx]
xor ecx, edx
xor ecx, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
sub dword [ebp - 8], eax
add edi, 0x61c88647
sub dword [ebp - 0x10], 1
jne 0x4049d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4