joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10027f68
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x10070850]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x10028000
push 0x10057dec
push 4
push eax
call fcn.1003e554
push eax
call fcn.10006480
add esp, 0x10
push ebx
push edi
call fcn.1003d8bb
mov edi, dword [eax]
call fcn.1003d8bb
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call 0x1003b925
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.1003d8bb
cmp dword [eax], ebx
je 0x10028017
call fcn.1003d8bb
push dword [eax]
call fcn.1001e12d
pop ecx
jmp 0x1002801e
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x10027fab
jmp 0x100280a5
call fcn.1003d8bb
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x100280a1
cmp dword [ebp - 0x234], esi
jae 0x100280a1
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.1003e640
add esp, 0xc
push 0x10057b4c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x10028090
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x10028090
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x10028090
push ebx
push ebx
push esi
jmp 0x10028099
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x100280a3
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1003aa2d
leave
ret

Function at 0x10028d3f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x10028d87
call fcn.1002a030
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10028d87
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x10028dca
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x10028db3
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x10028db3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x10028dc7
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10039ff4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.10039d06
cmpsd dword [esi], dword es:[edi]
salc
jecxz 0x1003a065
lea eax, [ebp - 0x40]
push eax
call fcn.10039d16
push eax
push esi
push dword [ebp + 8]
call fcn.10039ccb
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.10039d06
test byte [edx], bh
mov byte [0xe8458da3], al
mov byte [ebp - 0x18], bl
push eax
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.10039d16
push eax
push esi
push dword [ebp + 8]
call fcn.10039ccb
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.10039d16
push eax
push esi
push dword [ebp + 8]
invalid
scasd eax, dword es:[edi]
sti
popfd
cld
invalid

Function at 0x1003beb6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x1003beca
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.10039d06
xor eax, 0x8b003169
clc
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.10039d06
invalid
Function at 0x1004d7ac
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1004470c
and dword [ebp - 4], 0
cmp dword [0x10074c2c], 0
mov ebx, eax
jne 0x1004d85d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1004d90e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1004d90e
push eax
call fcn.1004469a
mov dword [esp], 0x1005b730
push edi
mov dword [0x10074c2c], eax
call esi
push eax
call fcn.1004469a
mov dword [esp], 0x1005b71c
push edi
mov dword [0x10074c30], eax
call esi
push eax
call fcn.1004469a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10074c34], eax
call esi
push eax
call fcn.1004469a
pop ecx
mov dword [0x10074c3c], eax
test eax, eax
je 0x1004d85d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1004469a
pop ecx
mov dword [0x10074c38], eax
mov eax, dword [0x10074c38]
cmp eax, ebx
je 0x1004d8b5
cmp dword [0x10074c3c], ebx
je 0x1004d8b5
push eax
call fcn.10044715
push dword [0x10074c3c]
mov esi, eax
call fcn.10044715
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1004d8b5
test edi, edi
je 0x1004d8b5
call esi
test eax, eax
je 0x1004d8ac
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1004d8ac
test byte [ebp - 0xc], 1
jne 0x1004d8b5
or dword [ebp + 0x10], 0x200000
jmp 0x1004d8ee
mov eax, dword [0x10074c30]
cmp eax, ebx
je 0x1004d8ee
push eax
call fcn.10044715
pop ecx
test eax, eax
je 0x1004d8ee
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1004d8ee
mov eax, dword [0x10074c34]
cmp eax, ebx
je 0x1004d8ee
push eax
call fcn.10044715
pop ecx
test eax, eax
je 0x1004d8ee
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10074c2c]
call fcn.10044715
pop ecx
test eax, eax
je 0x1004d90e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1004d910
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x30006560
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x30002838]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call fcn.3000651b
test eax, eax
je 0x300065d6
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x300065b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x300065b1
xor eax, eax
inc eax
jmp 0x300065d5
and esi, 0xfffffffe
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.30015018
leave
ret 4

Function at 0x300065e4
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x30002838]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call fcn.3000651b
test eax, eax
je 0x30006652
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
lea eax, [ebp - 0x20c]
push eax
call edi
push 0
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
neg esi
push 0x2082
lea eax, [ebp - 0x20c]
sbb esi, esi
push eax
neg esi
call edi
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.30015018
leave
ret 8

Function at 0x30006661
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x30002838]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x30006684
xor eax, eax
jmp 0x300066f1
test byte [esi + 0x68], 8
jne 0x30006680
push 0
push 0xb
push ebx
call fcn.30003ef8
cmp eax, 1
je 0x30006680
push 0x104
lea eax, [ebp - 0x20c]
push eax
lea eax, [esi + 0x50]
push eax
call fcn.3000651b
test eax, eax
je 0x30006680
push edi
push ebx
push esi
push dword [0x300185d8]
call fcn.30007472
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
push ebx
call edi
push 0
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
neg esi
push 0x2082
sbb esi, esi
push ebx
neg esi
call edi
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.30015018
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x30002838]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call fcn.3000651b
test eax, eax
je 0x30006748
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x30006748
test al, 0x10
jne 0x30006748
xor eax, eax
inc eax
jmp 0x3000674a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.30015018
leave
ret 4
Function at 0x30006c4d
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
lea eax, [ebp - 0x24]
push eax
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x30006c75
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax + 4]
jbe 0x30006c8f
jmp 0x30006c85
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x30006c8a
cmp eax, 3
je 0x30006c8a
xor esi, esi
inc esi
jmp 0x30006c8f
mov esi, 0x80004005
mov eax, esi
pop esi
leave
ret 8

Function at 0x3000733b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x300185f8]
push ebx
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push edi
push dword [eax + 0xc]
mov dword [ebp - 4], edi
call fcn.3000f654
mov ebx, eax
test ebx, ebx
jne 0x30007365
xor eax, eax
jmp 0x30007419
sub dword [ebp + 0x10], ebx
cmp dword [ebp + 0x10], 0x27
lea edi, [edi + ebx*2]
jbe 0x3000735e
push esi
mov esi, dword [ebp + 8]
push 0x27
push edi
lea eax, [esi + 0x50]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
add ebx, 0x26
cmp dword [ebp + 0x14], 0
jne 0x30007416
lea eax, [ebp + 0xc]
push eax
push dword [esi + 0x78]
call fcn.3000f3dc
test eax, eax
je 0x30007416
push 1
push dword [ebp + 0xc]
push 0x300017f4
call dword [sym.imp.MSO.dll_Ordinal_639]
test eax, eax
jne 0x300073c7
push 1
push dword [ebp + 0xc]
push 0x300017e8
call dword [sym.imp.MSO.dll_Ordinal_639]
test eax, eax
je 0x30007416
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x300073e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x300073f0
mov ecx, dword [esi + 0x4c]
mov eax, dword [ebp + 0x10]
add ecx, 0x27
cmp eax, ecx
ja 0x300073f4
xor eax, eax
jmp 0x30007418
add edi, 0x4c
mov word [edi], 0x5c
add eax, 0xffffffd9
push eax
add edi, 2
push edi
push dword [esi + 0x78]
call dword [sym.imp.MSO.dll_Ordinal_6877]
mov eax, dword [esi + 0x4c]
lea eax, [eax + ebx + 1]
jmp 0x30007418
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret 0x10

Function at 0x30007472
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x30002838]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
je 0x300074fc
test byte [edi + 0x68], 4
je 0x300074fc
push 0
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.3000733b
test eax, eax
jne 0x300074b6
xor eax, eax
jmp 0x300074ff
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
lea eax, [ebp - 0x20c]
push eax
call esi
push 0
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
push 0x2082
lea eax, [ebp - 0x20c]
push eax
jne 0x300074ee
call esi
jmp 0x300074b2
call esi
mov eax, dword [edi + 0x68]
and eax, 0xfffffffb
or eax, 2
mov dword [edi + 0x68], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30015018
leave
ret 0xc
Function at 0x30008405
Capabilities:
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1228
call fcn.3001599f
mov eax, dword [0x30002838]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push 0x206
mov dword [ebp - 0x121c], eax
lea eax, [ebp - 0x20a]
push ebx
push eax
mov word [ebp - 0x20c], bx
call sub.MSVCR80.dll_memset
mov edi, dword [sym.imp.MSO.dll_Ordinal_815]
add esp, 0xc
push 0x4008
mov dword [ebp - 0x1218], ebx
call edi
cmp eax, ebx
je 0x3000846f
mov ecx, eax
call fcn.3000eff5
mov dword [ebp - 0x1214], eax
jmp 0x30008475
mov dword [ebp - 0x1214], ebx
cmp dword [ebp - 0x1214], ebx
mov dword [ebp - 0x1224], ebx
mov dword [ebp - 0x1210], 0x1000
jne 0x30008494
xor eax, eax
jmp 0x3000864d
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.3000f380
test eax, eax
je 0x30008610
mov ecx, dword [ebp - 0x1214]
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.3000f002
test eax, eax
je 0x30008610
cmp word [esi], 0x1a
jne 0x300084ef
mov ecx, dword [ebp - 0x1214]
lea eax, [ebp - 0x1228]
push eax
push dword [esi + 4]
push dword [esi + 8]
call fcn.3000f067
test eax, eax
je 0x30008610
cmp word [esi], 0x42
jne 0x300085a8
mov esi, dword [esi + 8]
mov eax, dword [esi]
lea ecx, [ebp - 0x1218]
push ecx
push 0x300025d0
push esi
call dword [eax]
test eax, eax
jne 0x30008610
mov dword [ebp - 0x1210], 0x10000
push dword [ebp - 0x1210]
call edi
mov ebx, eax
test ebx, ebx
jne 0x30008571
shr dword [ebp - 0x1210], 1
cmp dword [ebp - 0x1210], 0x1000
ja 0x3000851f
lea ebx, [ebp - 0x120c]
jmp 0x30008571
cmp dword [ebp - 0x1220], 0
je 0x30008591
mov ecx, dword [ebp - 0x1214]
lea eax, [ebp - 0x1228]
push eax
push dword [ebp - 0x1220]
push ebx
call fcn.3000f067
test eax, eax
je 0x30008610
mov eax, dword [ebp - 0x1218]
mov ecx, dword [eax]
lea edx, [ebp - 0x1220]
push edx
push dword [ebp - 0x1210]
push ebx
push eax
call dword [ecx + 0xc]
test eax, eax
jge 0x30008547
jmp 0x30008610
push dword [ebp - 0x1218]
call fcn.3000f359
mov eax, dword [ebp - 0x1218]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x1214]
call fcn.3000f1d7
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 3
push dword [ebp - 0x121c]
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
mov dword [ebp - 0x1224], eax
jne 0x30008610
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x30008610
push dword [ebp - 0x121c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 3
push dword [ebp - 0x121c]
lea eax, [ebp - 0x20c]
push eax
call esi
mov dword [ebp - 0x1224], eax
mov ecx, dword [ebp - 0x1214]
push 1
call fcn.30006ed5
cmp word [ebp - 0x20c], 0
je 0x30008634
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x1210], 0x1000
jbe 0x30008647
push ebx
call fcn.30003200
pop ecx
mov eax, dword [ebp - 0x1224]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30015018
leave
ret 8
Function at 0x3000a54c
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x30002838]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov eax, ecx
lea ecx, [ebp - 0x668]
push ecx
mov ecx, dword [eax]
push ebx
call fcn.300090cf
test eax, eax
jne 0x3000a586
mov eax, 0x80004005
jmp 0x3000a70c
mov eax, dword [ebp - 0x668]
test byte [eax + 0x68], 2
push esi
je 0x3000a708
test edi, edi
mov esi, 0x104
je 0x3000a693
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x414]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x3000a68c
push edi
mov edi, dword [sym.imp.MSO.dll_Ordinal_295]
call edi
mov ebx, eax
lea eax, [ebp - 0x414]
push eax
call edi
cmp eax, ebx
jne 0x3000a68c
push 1
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x668]
call fcn.3000733b
test eax, eax
je 0x3000a685
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x3000a685
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
lea eax, [ebp - 0x414]
push eax
push eax
call fcn.3000f654
mov edi, eax
test edi, edi
je 0x3000a685
lea eax, [ebp - 0x664]
push eax
call fcn.3000f45b
test eax, eax
jne 0x3000a68c
mov ecx, dword [ebp - 0x668]
lea eax, [ebp - 0x66c]
push eax
call fcn.3000684e
add eax, edi
cmp eax, esi
jae 0x3000a685
push esi
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x66c]
call dword [sym.imp.MSO.dll_Ordinal_6873]
push 1
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x3000a704
mov eax, 0x80004005
jmp 0x3000a70b
mov eax, 0x80070057
jmp 0x3000a70b
and dword [eax + 0x68], 0xfffffffd
push 0
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x668]
call fcn.3000733b
mov edi, eax
test edi, edi
jbe 0x3000a685
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSO.dll_Ordinal_6877]
push 3
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x3000a685
cmp word [ebp + edi*2 - 0x20e], 0x7d
je 0x3000a704
mov eax, dword [ebp - 0x668]
sub edi, dword [eax + 0x4c]
lea eax, [ebp - 0x20c]
and word [ebp + edi*2 - 0x20e], 0
push eax
call fcn.3000f46d
xor eax, eax
jmp 0x3000a70b
xor eax, eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.30015018
leave
ret 0xc
Function at 0x3000a71c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x30002838]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 0x10]
mov eax, ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x418]
push edx
push ecx
mov ecx, dword [eax]
call fcn.300090cf
test eax, eax
jne 0x3000a755
mov eax, 0x80004005
jmp 0x3000a832
mov eax, dword [ebp - 0x418]
cmp dword [eax + 0x70], 0xffffffff
jne 0x3000a769
xor eax, eax
inc eax
jmp 0x3000a832
push esi
mov esi, 0x104
push esi
lea ecx, [ebp - 0x414]
push ecx
add eax, 0x50
push eax
call fcn.3000651b
test eax, eax
jne 0x3000a78e
mov eax, 0x80004005
jmp 0x3000a831
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x3000a82c
push ebx
push edi
mov edi, dword [sym.imp.MSO.dll_Ordinal_295]
call edi
mov ebx, eax
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, ebx
pop ebx
jne 0x3000a82c
push esi
lea eax, [ebp - 0x20c]
push eax
push eax
call fcn.3000f654
mov edi, eax
test edi, edi
je 0x3000a82c
mov ecx, dword [ebp - 0x418]
lea eax, [ebp - 0x41c]
push eax
call fcn.3000684e
add eax, edi
cmp eax, esi
jae 0x3000a82c
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
call dword [sym.imp.MSO.dll_Ordinal_6873]
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
jmp 0x3000a831
mov eax, 0x80070057
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.30015018
leave
ret 0xc
Function at 0x3000eeb9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x4004]
push edi
mov edi, dword [ebp + 0xc]
lea ebx, [esi + 0x4008]
mov ecx, dword [ebx]
lea edx, [eax + edi]
cmp ecx, edx
jb 0x3000eefa
push edi
lea eax, [eax + esi + 4]
push eax
push dword [ebp + 8]
call sub.MSVCR80.dll_memcpy
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [eax], edi
add dword [esi + 0x4004], edi
jmp 0x3000efc4
sub ecx, eax
mov dword [ebp + 0xc], ecx
je 0x3000ef24
push ecx
lea eax, [eax + esi + 4]
push eax
push dword [ebp + 8]
call sub.MSVCR80.dll_memcpy
mov eax, dword [ebp + 0xc]
and dword [ebx], 0
and dword [esi + 0x4004], 0
add dword [ebp + 8], eax
add esp, 0xc
sub edi, eax
mov eax, 0x4000
cmp edi, eax
push 0
jb 0x3000ef82
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov dword [ebp + 8], eax
je 0x3000ef7d
mov ecx, dword [ebp + 0x10]
lea eax, [edi + 0x3fff]
and eax, 0xffffc000
test ecx, ecx
je 0x3000ef5c
mov edx, dword [ebp + 0xc]
add dword [ecx], edx
cmp eax, edi
jbe 0x3000ef7d
push 0
push ebx
sub eax, edi
push eax
lea eax, [esi + 4]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x3000ef7d
and dword [esi + 0x4004], 0
mov eax, dword [ebp + 8]
jmp 0x3000efc7
push ebx
push eax
lea ecx, [esi + 4]
push ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x3000efc7
mov ebx, dword [ebx]
cmp ebx, edi
jae 0x3000ef9c
mov edi, ebx
test edi, edi
jbe 0x3000efb0
push edi
lea eax, [esi + 4]
push eax
push dword [ebp + 8]
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
mov dword [esi + 0x4004], edi
je 0x3000efc4
mov ecx, dword [ebp + 0xc]
add edi, ecx
mov dword [eax], edi
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc