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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040a9a4
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4211d6
test ah, 4
je 0x4211cf
test bl, bl
jne 0x421194
mov al, 1
jmp 0x4211fd
test al, 0x10
je 0x42119c
xor eax, eax
jmp 0x4211fd
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4211c0
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x4211fd
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4211fd
test al, 0x10
sete al
jmp 0x4211fd
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x4211f7
cmp ebx, 3
je 0x4211f7
cmp ebx, 0x7b
je 0x4211f7
mov eax, esi
call fcn.0042112c
test al, al
jne 0x4211fb
xor eax, eax
jmp 0x4211fd
mov al, 1
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.0040a9a4
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x4212ab
test esi, 0x400
jne 0x421240
test esi, 0x10
setne bl
jmp 0x4212db
cmp byte [esp], 0
je 0x421274
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4212db
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x4212db
test esi, 0x10
je 0x421280
mov bl, 1
jmp 0x4212db
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4212a7
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x4212db
mov bl, 1
jmp 0x4212db
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x4212d5
cmp eax, 3
je 0x4212d5
cmp eax, 0xa1
je 0x4212d5
cmp eax, 0x7b
je 0x4212d5
cmp eax, 0x35
je 0x4212d5
cmp eax, 0x15
je 0x4212d5
cmp eax, 0x43
jne 0x4212d9
xor ebx, ebx
jmp 0x4212db
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x425390
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4253c9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409d94
jmp 0x4253d2
mov eax, ebx
mov edx, esi
call fcn.00409fec
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4253dc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4253fe
movzx eax, word [esp]
jmp 0x425400
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4266fc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x426821
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00426504
mov esi, eax
mov eax, dword [0x7b85b8]
cmp byte [eax], 0
je 0x4267c9
mov eax, dword [0x7b8340]
call fcn.004076f0
call fcn.00406f60
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4266cc]
call fcn.0040c1a0
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x42683c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x426805
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x7b82f0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x7bc624]
call fcn.0040c590
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426828
lea eax, [ebp - 4]
mov edx, dword [0x4266cc]
call fcn.0040c2c4
ret
Function at 0x4278e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4279e0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a034
lea eax, [ebp - 4]
call fcn.0040a18c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a9a4
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4279ca
mov eax, ebx
call fcn.00406e0c
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x4279c3
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a9a4
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4279ad
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4279f4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4279ad
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4279ca
mov eax, dword [ebp - 0x10]
call fcn.00406e28
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4279e7
lea eax, [ebp - 4]
call fcn.00409c0c
ret

Function at 0x42890c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040a0dc
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040f0ec
mov edi, eax
cmp edi, 0x104
jbe 0x4288b7
mov eax, edi
add eax, eax
call fcn.00406e0c
mov esi, eax
jmp 0x4288b9
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040f0ec
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4288f2
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4288dc
mov eax, esp
cmp esi, eax
je 0x4288ff
mov eax, esi
call fcn.00406e28
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x428938
cmp bl, 0
je 0x428934
cmp bl, 0x41
jl 0x42892f
cmp bl, 0x5a
jg 0x42892f
or bl, 0x20
xor al, bl
inc esi
jmp 0x428913
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x428878

Function at 0x429194
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0040aa48
add esp, 0x800
pop ebx
ret
Function at 0x70fd14
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x70fd1c
mov eax, edx
pop esi
pop ebx
ret

Function at 0x746eec
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x746f8a
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xd]
je 0x746f4e
cmp byte [ebx + 0x11], 0
jne 0x746f4e
cmp byte [ebx + 0x24], 0
jne 0x746f4e
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x746f6f
lea edx, [ebp - 4]
mov eax, dword [0x7b8558]
call fcn.0040f058
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x71f1f0]
call fcn.0042684c
call fcn.004092cc
jmp 0x746f6f
lea edx, [ebp - 8]
mov eax, dword [0x7b8558]
call fcn.0040f058
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x71f1f0]
call fcn.0042684c
call fcn.004092cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x746f91
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409c6c
ret

Function at 0x7477a4
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x7477f2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.00746d6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x74780b
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x747814
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00746d6c
dec esi
jne 0x747836
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x7791f0
Capabilities:
Get disk information

Disassembly:
push ebx
push esi
push edi
push ecx
mov dword [esp], eax
xor ebx, ebx
cmp dword [esp], 0
je 0x779255
mov eax, dword [esp]
call fcn.007794a0
test al, al
je 0x779255
mov eax, dword [esp]
call fcn.007792b0
mov esi, eax
call sub.kernel32.dll_GetLogicalDrives
mov edi, eax
dec esi
mov eax, dword [esp]
movzx eax, word [eax + esi*2]
mov edx, eax
mov ecx, eax
add ecx, 0xffffff9f
sub cx, 0x1a
jae 0x779238
mov edx, eax
and dx, 0xffdf
mov eax, edx
cmp ax, 0x41
jb 0x779255
cmp ax, 0x5a
ja 0x779255
sub al, 0x41
mov ecx, eax
shr edi, cl
and edi, 1
cmp edi, 1
sete bl
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x782028
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x7b6078
test edx, edx
jne 0x782047
xor eax, eax
jmp 0x782165
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x782064
push esi
push edx
push eax
call fcn.0078216c
add esp, 0xc
jmp 0x782165
push esi
push edx
push eax
call fcn.0078242c
add esp, 0xc
jmp 0x782165
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x79caea
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 0x30], eax
xor edx, edx
mov dword [esi + 0x4c], edx
xor ecx, ecx
mov dword [esi + 0x20], ecx
push esi
call fcn.0079cac8
pop ecx
xor ecx, ecx
mov eax, ecx
xor edx, edx
mov ebx, eax
shr ebx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor ebx, eax
mov eax, ebx
inc edx
cmp edx, 8
jl 0x79cb0e
mov dword [esi + ecx*4 + 0x70], eax
inc ecx
cmp ecx, 0x100
jb 0x79cb0a
pop esi
pop ebx
pop ebp
ret

Function at 0x79dd4a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call sub.msvcrt.dll__beginthreadex
add esp, 0x18
mov dword [ebx], eax
push dword [ebx]
call fcn.0079dceb
pop ecx
pop ebx
pop ecx
pop ebp
ret

Function at 0x79f6bb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov esi, pe_nt_image_headers32
or ebx, 0x100
add edi, edi
mov eax, ebx
shr eax, 7
and eax, 1
push eax
mov edx, esi
and edx, edi
add edx, esi
mov ecx, ebx
shr ecx, 8
add edx, ecx
shl edx, 2
add edx, dword [ebp + 0xc]
push edx
push dword [ebp + 8]
call fcn.0079f629
add esp, 0xc
add ebx, ebx
mov ecx, ebx
xor ecx, edi
not ecx
and esi, ecx
cmp ebx, 0x10000
jb 0x79f6d2
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x79f77b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 0xc]
xor edx, edx
or eax, 0x100
mov ecx, eax
shr ecx, 8
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + ecx*4]
mov ebx, eax
shr ebx, 7
and ebx, 1
neg ebx
and ebx, 0x7ff
xor ecx, ebx
shr ecx, 4
mov ebx, dword [ebp + 0x10]
add edx, dword [ebx + ecx*4]
add eax, eax
cmp eax, 0x10000
jb 0x79f789
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x79f7bd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov edx, pe_nt_image_headers32
or eax, 0x100
add ecx, ecx
mov esi, edx
and esi, ecx
add esi, edx
mov edi, eax
shr edi, 8
add esi, edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + esi*4]
mov edi, eax
shr edi, 7
and edi, 1
neg edi
and edi, 0x7ff
xor esi, edi
shr esi, 4
mov edi, dword [ebp + 0x14]
add ebx, dword [edi + esi*4]
add eax, eax
mov esi, eax
xor esi, ecx
not esi
and edx, esi
cmp eax, 0x10000
jb 0x79f7d5
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x79f89f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
xor edx, edx
mov ecx, dword [ebp + 0xc]
mov edi, 1
shl edi, cl
or eax, edi
cmp eax, 1
je 0x79f8e4
mov ecx, eax
shr ecx, 1
mov ecx, dword [ebx + ecx*4]
mov edi, eax
and edi, 1
neg edi
and edi, 0x7ff
xor ecx, edi
shr ecx, 4
add edx, dword [esi + ecx*4]
shr eax, 1
cmp eax, 1
jne 0x79f8c1
mov eax, edx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x79f8eb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
xor eax, eax
mov dword [ebp - 4], eax
mov eax, 1
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x79f936
mov edx, ebx
and edx, 1
shr ebx, 1
mov esi, dword [ebp + 8]
mov esi, dword [esi + eax*4]
mov edi, edx
neg edi
and edi, 0x7ff
xor esi, edi
shr esi, 4
mov edi, dword [ebp + 0x14]
mov esi, dword [edi + esi*4]
add dword [ebp - 4], esi
add eax, eax
or edx, eax
mov eax, edx
dec ecx
test ecx, ecx
jne 0x79f906
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x7a5858
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
xor edx, edx
add edx, 0x18
add eax, edx
mov edx, dword [ebp - 0x2c]
movzx edx, word [edx + 0x14]
add eax, edx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
movzx eax, word [eax + 6]
dec eax
test eax, eax
jl 0x7a598b
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x10], 0
jne 0x7a5917
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x7a5911
push 4
push 0x1000
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x1c]
push eax
call fcn.006bb974
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x7a58ef
mov byte [ebp - 0xd], 0
jmp 0x7a598f
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
xor ecx, ecx
call fcn.00407754
add dword [ebp - 0x24], 0x28
jmp 0x7a597f
push 4
push 0x1000
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x1c]
push eax
call fcn.006bb974
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x7a5943
mov byte [ebp - 0xd], 0
jmp 0x7a598f
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x14]
add eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
call fcn.00406fb0
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [eax + 8], edx
add dword [ebp - 0x24], 0x28
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x7a58ab
mov byte [ebp - 0xd], 1
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret
Function at 0x7a7168
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a7cc
push eax
call fcn.006bbdcc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x7a71eb
test byte [ebp - 0xb], 4
je 0x7a71e1
test byte [ebp - 0xc], 0x10
je 0x7a719a
mov byte [ebp - 5], 0
jmp 0x7a720e
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.0040a7cc
push eax
call fcn.006bbc18
mov dword [ebp - 0x10], eax
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x7a71d7
mov eax, dword [ebp - 0x10]
push eax
call fcn.006bbcec
mov byte [ebp - 5], 1
jmp 0x7a720e
cmp dword [ebp - 0x14], 0x20
sete byte [ebp - 5]
jmp 0x7a720e
test byte [ebp - 0xc], 0x10
sete byte [ebp - 5]
jmp 0x7a720e
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 2
je 0x7a7205
cmp dword [ebp - 0x14], 3
je 0x7a7205
cmp dword [ebp - 0x14], 0x7b
jne 0x7a7209
xor eax, eax
jmp 0x7a720b
mov al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x7a8818
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x7a8959
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004071cc
mov eax, dword [0x7b86bc]
inc dword [eax]
mov eax, 3
call fcn.004071f4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x7a8866
mov eax, dword [0x7b854c]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x28], 1
jne 0x7a8876
mov eax, dword [0x7b8540]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x28], 2
jne 0x7a8886
mov eax, dword [0x7b86a0]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x78], 0
je 0x7a894f
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x78]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
call fcn.004071cc
mov eax, dword [0x7b86bc]
inc dword [eax]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x34], eax
fild qword [ebp - 0x38]
fdiv dword [0x7a8988]
call fcn.00407654
call fcn.004071f4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x20]
add eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x14]
mov eax, dword [eax + edx*4]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x24]
add eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x14]
movzx eax, word [eax + edx*2]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], eax
cmp byte [ebp - 1], 0
jne 0x7a894f
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x10]
call fcn.00406fb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x7a8968
cmp dword [ebp - 0x10], 0
jne 0x7a897d
mov eax, 0x64
call fcn.007a78c4
jmp 0x7a882f
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402645
Capabilities:
Get file attributes

Disassembly:
push 8
mov eax, 0x418c6d
call fcn.0041805c
mov esi, ecx
lea ecx, [ebp - 0x10]
call dword [0x424328]
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00402a4a
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x402681
mov ecx, esi
call fcn.004027dc
jmp 0x4026cf
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x4026cf
lea eax, [ebp - 0x14]
push str.shell32.dll_OpenAs_RunDLL
push eax
lea ecx, [ebp - 0x10]
call fcn.0040373e
pop ecx
pop ecx
mov byte [ebp - 4], 1
test esi, esi
je 0x4026a8
mov esi, dword [esi + 0x20]
push 1
push 0x4263a8
push dword [ebp - 0x14]
push str.rundll32.exe
push 0x425ec0
push esi
call dword [sym.imp.pcoshelper.dll_Ordinal_1133]
add esp, 0x18
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
call fcn.004180fb
ret