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

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 1
push 0
push str.Software3000softRed_Spider
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40180b
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 8]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40181e
mov eax, dword [esp]
test eax, eax
je 0x40181a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ecx
ret
mov eax, dword [esp]
test eax, eax
je 0x40182d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ecx
ret

Function at 0x401840
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x4018e6
mov eax, dword [esp + 4]
cmp eax, 3
jne 0x40187b
mov eax, 0x10000001
add esp, 0x94
ret
cmp eax, 4
jne 0x40188c
mov eax, 0x10000002
add esp, 0x94
ret
cmp eax, 5
jne 0x4018ce
mov eax, dword [esp + 8]
test eax, eax
jne 0x4018a5
mov eax, 0x10000004
add esp, 0x94
ret
cmp eax, 1
jne 0x4018b6
mov eax, 0x10000008
add esp, 0x94
ret
sub eax, 2
neg eax
sbb eax, eax
and eax, 0xfffff0
add eax, 0x10000010
add esp, 0x94
ret
sub eax, 6
neg eax
sbb eax, eax
and eax, 0xffffe0
add eax, 0x10000020
add esp, 0x94
ret
cmp eax, 1
jne 0x401922
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp ecx, 4
ja 0x40190d
cmp ecx, 4
jne 0x401901
test eax, eax
ja 0x40190d
mov eax, 0x20000001
add esp, 0x94
ret
sub eax, 0x5a
neg eax
sbb eax, eax
and al, 0xfe
add eax, 0x20000004
add esp, 0x94
ret
neg eax
sbb eax, eax
and eax, 0x40000000
add eax, 0x40000000
add esp, 0x94
ret
Function at 0x4020e0
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x244
lea ecx, [esp]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
push ecx
call ebp
lea edx, [esp + 0x10c]
lea eax, [esp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402176
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test byte [esp + 0x114], 0x10
jne 0x40215a
lea ecx, [esp + 0x140]
lea edx, [esp + 0x10]
push ecx
push 0x5c
push edx
call fcn.004036a0
add esp, 8
inc eax
push eax
call ebp
lea eax, [esp + 0x10]
push 0x80
push eax
call esi
lea ecx, [esp + 0x10]
push ecx
call edi
lea edx, [esp + 0x114]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402122
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x244
ret 4
Function at 0x403599
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4035f1
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x4081b4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4035e4
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4035f3
xor eax, eax
pop esi
leave
ret 4

Function at 0x405ad1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x409960
cmp edx, dword [eax]
je 0x405af3
add eax, 8
inc ecx
cmp eax, 0x4099f0
jl 0x405ae4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x409960]
jne 0x405c21
mov eax, dword [0x40a164]
cmp eax, 1
je 0x405bfb
test eax, eax
jne 0x405b24
cmp dword [0x4098a4], 1
je 0x405bfb
cmp edx, 0xfc
je 0x405c21
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405b5b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403a30
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405fd0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405b9e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405fd0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x408530
push edi
call fcn.00406cd0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403a30
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403a40
lea eax, [ebp - 0xa0]
push 0x408510
push eax
call fcn.00403a40
push dword [esi + 0x409964]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403a40
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00406c45
add esp, 0x2c
pop edi
jmp 0x405c21
lea eax, [ebp + 8]
lea esi, [esi + 0x409964]
push 0
push eax
push dword [esi]
call fcn.00405fd0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10002048
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10011260
push 0x1000ff70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x1000218c
push dword [ebp + 8]
push edi
call dword [0x10017738]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x100020f0
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x100020f0
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x100020cb
cmp al, 0x5c
je 0x100020cb
push esi
call dword [0x10017398]
mov esi, eax
jmp 0x100020b3
cmp byte [esi], 0
je 0x100020d4
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x100020e9
cmp al, 0x5c
je 0x100020e9
push esi
call dword [0x10017398]
mov esi, eax
jmp 0x100020d1
cmp byte [esi], 0
je 0x1000210f
jmp 0x1000210b
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x1000210f
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x1000210f
cmp al, 0x5c
jne 0x1000210f
inc esi
mov dword [ebp - 0x1c], esi
or ebx, 0xffffffff
mov al, byte [esi]
test al, al
je 0x1000216c
cmp al, 0x5c
jne 0x1000215e
and byte [esi], 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x10002147
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1000215b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jmp 0x1000214c
and eax, 0x10
cmp al, 0x10
je 0x1000215b
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov dword [ebp - 4], ebx
jmp 0x10002190
mov byte [esi], 0x5c
push esi
call dword [0x10017398]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x10002112
mov dword [ebp - 4], ebx
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov al, 1
jmp 0x10002192
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 4
Function at 0x10002337
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x790
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll__strnset]
push edi
push 1
push 0x47
mov dword [ebp - 0x24], ecx
push 0x10015138
call esi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0xc
push eax
push 0x10015054
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 1
push 0x47
push 0x10015120
mov dword [ebp - 0x2c], eax
call esi
add esp, 0xc
push eax
push 0x10015054
call edi
push eax
call ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x230]
push eax
push pe_nt_image_headers32
mov byte [ebp - 0x790], 0x67
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
xor ebx, ebx
push 1
cmp byte [ebp - 0x230], bl
lea esi, [ebp - 0x230]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
pop edi
je 0x10002514
push 0x104
lea eax, [ebp - 0x130]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x130]
push 0x104
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
call dword [ebp - 0x28]
push 0x410
lea eax, [ebp - 0x390]
push 0x160
push eax
push 0x80
push esi
call dword [0x100172e8]
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp - 0x10], eax
mov al, byte [esi]
cmp al, 0x41
je 0x1000247a
cmp al, 0x42
je 0x1000247a
lea eax, [ebp - 0x20]
push ebx
push eax
lea eax, [ebp - 0x18]
push eax
push esi
call dword [ebp - 0x2c]
test eax, eax
je 0x1000247a
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
push 0x14
pop ecx
call fcn.1000ff80
mov edx, dword [ebp - 0x14]
push 0x14
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
pop ecx
call fcn.1000ff80
mov dword [ebp - 0xc], eax
jmp 0x10002480
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov al, byte [esi]
push esi
mov byte [ebp + edi - 0x790], al
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov byte [ebp + edi - 0x78f], al
lea eax, [ebp - 8]
push 4
push eax
lea eax, [ebp + edi - 0x78e]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0xc]
push 4
push eax
lea eax, [ebp + edi - 0x78a]
push eax
call sub.MSVCRT.dll_memcpy
push dword [ebp - 4]
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp + edi - 0x786]
push eax
call sub.MSVCRT.dll_memcpy
push dword [ebp - 0x10]
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp - 4]
add eax, edi
lea eax, [ebp + eax - 0x786]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
add esp, 0x30
add eax, ecx
push esi
lea edi, [edi + eax + 0xa]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esi + eax + 1], bl
lea esi, [esi + eax + 1]
jne 0x100023d2
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x790]
push edi
push eax
call fcn.10005fe3
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002529
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push esi
mov eax, 0x2800
push edi
mov esi, ecx
push eax
push 0x40
and dword [esi + 0x1c], 0
mov dword [ebp - 8], esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [ebp + 8]
mov edi, eax
lea eax, [ebp - 0x24c]
push 0x10015154
push eax
call dword [fcn.100173a8]
add esp, 0xc
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x1000259a
lea eax, [ebp + 0xb]
push 1
push eax
mov ecx, esi
mov byte [ebp + 0xb], 0x68
call fcn.10005fe3
jmp 0x1000269d
push ebx
push 1
mov byte [edi], 0x68
pop esi
mov eax, dword [ebp - 4]
add eax, 0xfffffdf8
cmp esi, eax
jbe 0x100025c2
add dword [ebp - 4], 0x208
push 0x42
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edi, eax
lea eax, [ebp - 0x11c]
push 0x10015150
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x10002666
lea eax, [ebp - 0x11c]
push 0x1001514c
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x10002666
mov al, byte [ebp - 0x148]
and al, 0x10
mov byte [esi + edi], al
lea eax, [ebp - 0x11c]
push eax
inc esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
lea eax, [ebp - 0x11c]
push ebx
push eax
lea eax, [esi + edi]
push eax
call sub.MSVCRT.dll_memcpy
add esi, ebx
lea eax, [ebp - 0x12c]
push 4
push eax
and byte [esi + edi], 0
inc esi
lea ebx, [esi + edi]
push ebx
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x128]
push 4
add ebx, 4
push eax
push ebx
call sub.MSVCRT.dll_memcpy
add esi, 8
lea eax, [ebp - 0x134]
push 8
push eax
lea eax, [esi + edi]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x30
add esi, 8
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100025a1
mov ecx, dword [ebp - 8]
push esi
push edi
call fcn.10005fe3
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x100026a3
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [fcn.100173a8]
push ebx
lea eax, [ebp - 0x450]
push 0x10015154
mov dword [ebp - 4], ecx
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x100026ef
xor al, al
jmp 0x10002770
push edi
mov edi, 0x100150b8
cmp byte [ebp - 0x118], 0x2e
je 0x10002746
test byte [ebp - 0x144], 0x10
lea eax, [ebp - 0x118]
push eax
push ebx
push edi
je 0x1000272d
lea eax, [ebp - 0x248]
push eax
call esi
mov ecx, dword [ebp - 4]
add esp, 0x10
lea eax, [ebp - 0x248]
push eax
call fcn.100026a3
jmp 0x10002746
lea eax, [ebp - 0x34c]
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100026f5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne al
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10002776
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
lea esi, [ecx + 0x20]
push 0x104
push edi
push esi
mov dword [ebp - 0xc], ecx
call sub.MSVCRT.dll_memset
push dword [ebp + 8]
push esi
call sub.MSVCRT.dll_strcpy
add esp, 0x14
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100027c2
xor eax, eax
jmp 0x1000283a
lea eax, [ebp - 4]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
call ebx
mov edi, eax
add edi, 0xa
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
push edi
push 0
push esi
call sub.MSVCRT.dll_memset
mov byte [esi], 0x69
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [esi + 1], eax
mov eax, dword [ebp - 8]
push dword [ebp + 8]
mov dword [esi + 5], eax
call ebx
inc eax
push eax
lea eax, [esi + 9]
push dword [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
mov ecx, dword [ebp - 0xc]
add esp, 0xc
push edi
push esi
call fcn.10005fe3
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x10002840
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp dword [edi + 4], 0xffffffff
jne 0x1000285f
call fcn.10002903
xor eax, eax
jmp 0x100028fc
xor esi, esi
add ecx, 0x20
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
or eax, 0xffffffff
cmp ebx, eax
je 0x100028fc
push esi
push edi
push dword [edi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x2000
push 0x40
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
push 8
push edi
lea eax, [esi + 1]
mov byte [esi], 0x6a
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp + 8]
push 0
push eax
lea eax, [esi + 9]
push 0x1ff7
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
test eax, eax
jbe 0x100028ea
mov ecx, dword [ebp - 4]
add eax, 9
push eax
push esi
call fcn.10005fe3
mov dword [ebp - 4], eax
jmp 0x100028f2
mov ecx, dword [ebp - 4]
call fcn.10002903
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10002a03
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x10010681
call fcn.1000fed4
sub esp, 0x46c
push ebx
push esi
push edi
mov edi, 0x10015174
mov dword [ebp - 0x18], ecx
push edi
call sub.MSVCRT.dll_strlen
mov esi, 0x10015170
mov ebx, eax
push esi
call sub.MSVCRT.dll_strlen
lea eax, [ebx + eax + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push esi
push eax
mov dword [ebp - 0x10], eax
call sub.MSVCRT.dll_strcpy
push edi
push dword [ebp - 0x10]
call sub.MSVCRT.dll_strcat
push 0x104
lea eax, [ebp - 0x374]
push 0
push eax
call sub.MSVCRT.dll_memset
mov edi, dword [ebp + 8]
add esp, 0x28
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + edi - 1], 0x5c
mov dword [ebp + 8], 0x1001516c
jne 0x10002a83
mov dword [ebp + 8], 0x10017730
push dword [ebp + 8]
mov esi, dword [fcn.100173a8]
lea eax, [ebp - 0x374]
push edi
push 0x10015164
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x374]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x10002ac1
xor al, al
jmp 0x10002b8e
mov ebx, dword [ebp - 0x18]
cmp byte [ebp - 0x140], 0x2e
je 0x10002b6b
test byte [ebp - 0x16c], 0x10
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 8]
push edi
je 0x10002b04
push dword [ebp - 0x10]
lea eax, [ebp - 0x478]
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x478]
mov ecx, ebx
push eax
call fcn.10002a03
jmp 0x10002b6b
lea eax, [ebp - 0x270]
push 0x1001515c
push eax
call esi
mov al, byte [ebp + 0xb]
add esp, 0x14
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x28], al
push 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [ebp - 0x270]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0x10]
and dword [ebp - 4], 0
lea edx, [ebp - 0x28]
push edx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.10002efd
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [ebp - 0x16c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10002ac4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x10002d5c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov edi, ecx
mov eax, dword [esi]
push 0x80
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
push 3
mov dword [ebp + 8], eax
push 0
push 2
lea eax, [edi + 0x20]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 8]
push 0
push eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff8
add esi, 8
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
push 4
add dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x13]
push eax
mov byte [ebp - 0x14], 0x70
call sub.MSVCRT.dll_memcpy
lea eax, [ebp + 8]
push 4
push eax
lea eax, [ebp - 0xf]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x18
lea eax, [ebp - 0x14]
mov ecx, edi
push 9
push eax
call fcn.10005fe3
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x100031c4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push edi
lea eax, [ebp - 0x108]
push 0x104
push eax
xor edi, edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
push edi
push 3
push edi
push 1
lea eax, [ebp - 0x108]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x1000320e
xor eax, eax
jmp 0x10003264
push esi
push 2
push edi
push 0xfffffc00
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, 0x400
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ebx, eax
lea eax, [ebp - 4]
push edi
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push esi
push dword [ebp + 0xc]
push ebx
call fcn.10003175
add esp, 0x10
cmp eax, 0xffffffff
pop esi
jne 0x10003262
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x1000320a
add eax, ebx
pop edi
pop ebx
leave
ret
Function at 0x10003eb2
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [fcn.10017254]
test eax, eax
jne 0x10003ed3
xor al, al
leave
ret
lea eax, [ebp - 0xc]
push ebx
push eax
xor ebx, ebx
push 0x100158e4
push ebx
call dword [fcn.10017258]
test eax, eax
je 0x10003f1c
mov eax, dword [ebp - 0xc]
push ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push ebx
lea eax, [ebp - 0x1c]
push 0x10
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [fcn.1001725c]
test eax, eax
je 0x10003f1c
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
leave
ret