joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46d6f7
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x49eb84], 0
push esi
jne 0x46d66a
call fcn.0046d595
test eax, eax
je 0x46d6ad
mov eax, dword [0x49eb84]
cmp eax, 1
jne 0x46d68b
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x46d6ad
pop esi
ret
push eax
call dword [0x49eb8c]
test eax, eax
jne 0x46d6f5
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x46d6b1
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x49eb84]
call dword [0x49eb8c]
mov edi, eax
test edi, edi
je 0x46d6d8
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x46d6f4
lea edi, [esi + 0xff0]
push esi
push dword [0x49eb84]
call dword [0x49eb88]
add esi, 0x10
cmp esi, edi
jb 0x46d6de
mov eax, esi
pop edi
pop esi
ret
jmp 0x46d657

Function at 0x46d8c5
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4968d4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0046d804
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00455df0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x46d914
cmp dword [ebp - 0x1c], 5
jb 0x46d92c
jmp 0x46d928
cmp dword [ebp - 0x10], 1
jne 0x46d92c
cmp dword [ebp - 0x1c], 4
ja 0x46d928
jne 0x46d92c
cmp dword [ebp - 0x18], 0
jbe 0x46d92c
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x483020
call fcn.00413370
test eax, eax
jge 0x46d94d
mov byte [0x49fd98], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00454567
add ebp, 0x78
leave
ret

Function at 0x46f0be
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [ebp + 0x10]
jle 0x46f0fb
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x46f0d8
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x46f117
dec esi
je 0x46f110
dec esi
jne 0x46f11c
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x472937
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x472972
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x472959
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x47296a
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x472974
inc edi
add eax, 0x28
cmp edi, esi
jb 0x47294f
xor eax, eax
pop edi
pop esi
ret
Function at 0x10001ae0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x14c
mov edx, dword [esi + 0x3c]
lea eax, [esi + 0x88]
add eax, edx
lea ecx, [esi + 0x78]
add ecx, edx
cmp word [edx + esi + 4], di
cmovne ecx, eax
mov eax, dword [ecx]
test eax, eax
je 0x10001c15
cmp dword [ebp + 0x10], 0
lea ecx, [eax + esi]
mov dword [ebp - 8], ecx
ja 0x10001b5c
mov eax, dword [ebp + 0xc]
jb 0x10001b2b
cmp eax, 0xffff
ja 0x10001b5c
movzx edx, ax
xor eax, eax
sub edx, dword [ecx + 0x10]
sbb eax, eax
test eax, eax
ja 0x10001c15
jb 0x10001b48
cmp edx, dword [ecx + 0x14]
jae 0x10001c15
mov eax, dword [ecx + 0x1c]
pop edi
lea eax, [eax + edx*4]
mov eax, dword [eax + esi]
add eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x24]
mov edx, dword [ecx + 0x20]
add eax, esi
mov dword [ebp - 0x14], eax
add edx, esi
xor eax, eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
cmp dword [ecx + 0x18], eax
jbe 0x10001c15
nop word [eax + eax]
mov ebx, dword [edx + eax*4]
add ebx, esi
mov esi, ebx
mov dword [ebp - 0xc], ebx
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10001b90
sub esi, ecx
call fcn.10002430
push 0xeeeeeeee
push 0x7fed7fed
mov edi, eax
push edi
push 1
push esi
push ebx
call fcn.10002360
push 0xeeeeeeee
push 0x7fed7fed
push edi
push 2
push esi
push dword [ebp - 0xc]
mov ebx, eax
call fcn.10002360
xor ecx, ecx
or ecx, ebx
cmp dword [ebp + 0xc], eax
jne 0x10001bda
cmp dword [ebp + 0x10], ecx
je 0x10001bf1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ecx + 0x18]
jae 0x10001c15
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
jmp 0x10001b80
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
movzx ecx, word [ecx + eax*2]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + ecx]
add eax, ecx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10002360
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x100023ba
shl dword [ebp + 0x10], 8
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
nop word [eax + eax]
mov cl, byte [ecx]
movsx edx, cl
sub cl, 0x61
cmp cl, 0x19
mov ecx, dword [ebp + 0x10]
lea esi, [edx - 0x20]
cmova esi, edx
mov edx, dword [ebp + 0x14]
add ecx, esi
add eax, ebx
xor eax, dword [edx + ecx*4]
mov ecx, ebx
shl ecx, 5
add ecx, 3
add ecx, esi
add ebx, ecx
mov ecx, dword [ebp + 8]
inc ecx
add ebx, eax
mov dword [ebp + 8], ecx
sub edi, 1
jne 0x10002380
pop esi
pop ebx
pop edi
pop ebp
ret 0x18
Function at 0x403a5c
Capabilities:
Delete registry value

Disassembly:
cmp byte [0x560051], 0
je 0x403aa2
jmp 0x403a90
cmp byte [0x5608d9], 0
jne 0x403a90
push 0
call sub.advapi32.dll_RegDeleteValueW
mov ecx, 0x562adc
mov dl, 1
xor eax, eax
call fcn.004028c0
test al, al
je 0x403aa2
push 0xa
call sub.advapi32.dll_RegDeleteValueW
mov ecx, 0x562adc
mov dl, 1
xor eax, eax
call fcn.004028c0
test al, al
jne 0x403a67
cmp dword [0x562ad8], 0
jne 0x403ac3
push 4
push 0x1000
push 0x10000
push 0
call sub.advapi32.dll_RegCreateKeyExW
mov dword [0x562ad8], eax
cmp dword [0x562ad8], 0
setne al
ret

Function at 0x404280
Capabilities:
Delete registry key

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x560a27
mov esi, 0x562ac5
mov edi, dword [ebx + 4]
jmp 0x4042a5
mov ebp, dword [edi + 4]
push 0x8000
push 0
push edi
call sub.advapi32.dll_RegDeleteKeyW
mov edi, ebp
cmp edi, ebx
jne 0x404293
mov edx, 0x37
mov eax, 0x557078
mov ecx, eax
mov dword [eax + 0x14], ecx
mov ecx, eax
mov dword [eax + 4], ecx
mov dword [eax + 8], 1
xor ecx, ecx
mov dword [eax + 0xc], ecx
add eax, 0x20
dec edx
jne 0x4042b3
mov dword [ebx], ebx
mov dword [ebx + 4], ebx
mov edx, 0x400
mov ecx, 0x560ac4
mov eax, ecx
mov dword [eax], eax
mov dword [eax + 4], eax
add ecx, 8
dec edx
jne 0x4042de
mov ebx, dword [esi + 4]
jmp 0x404302
mov edi, dword [ebx + 4]
push 0x8000
push 0
push ebx
call sub.advapi32.dll_RegDeleteKeyW
mov ebx, edi
cmp ebx, esi
jne 0x4042f0
mov dword [esi], esi
mov dword [esi + 4], esi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4058d0
Capabilities:
Delete registry value

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebp, eax
mov esi, 1
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x40592e
mov ebx, dword [0x5608c8]
call dword [ebx]
mov edi, eax
lea eax, [ebp + 0xc]
xor ecx, ecx
mov edx, edi
call fcn.0040259c
mov ebx, eax
test ebx, ebx
jne 0x405902
mov ebx, edi
jmp 0x405911
test edi, edi
je 0x405911
mov edx, dword [0x5608c8]
mov eax, edi
call dword [edx + 4]
test ebx, ebx
jne 0x40592e
push esi
call sub.advapi32.dll_RegDeleteValueW
cmp esi, 0x200
jle 0x40592a
mov esi, 1
jmp 0x4058e2
add esi, esi
jmp 0x4058e2
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41be88
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41bee1
test eax, edx
je 0x41bee4
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41be9f
movzx eax, word [eax]
sub eax, ecx
jmp 0x41bec6
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41bec7
add ecx, 4
js 0x41beb7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41bec4
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41bec6
xor eax, eax
ret
test eax, eax
je 0x41bef0
test edx, edx
jne 0x41be90
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x4222e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4223b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406d7c
lea eax, [ebp - 4]
call fcn.00406f18
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407354
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4223a0
mov eax, ebx
call fcn.00404398
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x422399
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407354
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x422383
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4223c8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x422383
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4223a0
mov eax, dword [ebp - 0x10]
call fcn.004043b4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4223bd
lea eax, [ebp - 4]
call fcn.00406974
ret

Function at 0x422f90
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.00406e24
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00409fa4
mov edi, eax
cmp edi, 0x104
jbe 0x422f3b
mov eax, edi
add eax, eax
call fcn.00404398
mov esi, eax
jmp 0x422f3d
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00409fa4
push esi
call fcn.0040bcf4
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x422f76
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 0x422f60
mov eax, esp
cmp esi, eax
je 0x422f83
mov eax, esi
call fcn.004043b4
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 0x422fbc
cmp bl, 0
je 0x422fb8
cmp bl, 0x41
jl 0x422fb3
cmp bl, 0x5a
jg 0x422fb3
or bl, 0x20
xor al, bl
inc esi
jmp 0x422f97
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x422efc
Function at 0x44bd58
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
mov eax, dword [0x562c34]
mov dword [0x558018], eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [0x55802c]
push eax
mov eax, dword [0x562c34]
push eax
call fcn.0040be4c
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x44bd92
mov edx, fcn.0040bd4c
cmp edx, dword [ebp - 0x24]
je 0x44bdb1
test al, al
je 0x44bda7
mov eax, dword [0x562c34]
push eax
mov eax, dword [0x55802c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
push 0x558008
call sub.KERNEL32.DLL_VirtualQueryEx
push 0x80000000
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x562c34]
push eax
push 0
mov ecx, 0x44be08
mov edx, dword [0x55802c]
mov eax, 0x80
call fcn.0040c26c
mov ebx, eax
cmp word [ebp + 0xa], 0
je 0x44bdfc
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044bbc0
push eax
push 0xfffffffffffffffc
push ebx
call sub.KERNEL32.DLL_GetStartupInfoA
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x456a0c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x456a12
ret
Function at 0x461ff4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4621b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x30], 0
jne 0x46218d
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x46218d
mov eax, dword [ebp - 0xc]
add eax, 0x2c
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x28
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 0x28]
add ebx, ebx
add ebx, ebx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
imul ebx
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x461fc0]
call fcn.004084f4
add esp, 4
lea eax, [ebp - 4]
call fcn.00409aac
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [0x55f2cc]
push eax
call fcn.0044c044
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 8]
call fcn.0040832c
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
lea eax, [ebp - 0x38]
xor ecx, ecx
mov edx, 0x2c
call fcn.004048ec
mov dword [ebp - 0x38], 0x2c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
neg eax
mov dword [ebp - 0x30], eax
mov word [ebp - 0x2c], 1
mov word [ebp - 0x2a], 0x20
mov dl, 1
mov eax, dword [0x45534c]
call fcn.0045e9e8
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], ebx
xor ecx, ecx
push ebp
push 0x46216b
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, ebx
mov dl, 7
call fcn.004605fc
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x6c]
push 0
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
push eax
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx + 0x70]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
call fcn.0045f308
call fcn.00459a0c
push eax
call sub.gdi32.dll_SetDIBits
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov dl, 1
call fcn.0045f60c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46218d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4621b8
lea eax, [ebp - 8]
mov edx, dword [0x461fc0]
call fcn.00408500
lea eax, [ebp - 4]
call fcn.00409aac
ret
Function at 0x471680
Capabilities:
Get disk size

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, eax
xor edi, edi
mov eax, dword [ebx + 8]
test eax, eax
je 0x4716dc
dec eax
jne 0x47169f
xor edx, edx
mov eax, ebx
call fcn.0043dca4
mov edi, dword [eax]
jmp 0x4716dc
call fcn.0040be8c
push eax
call sub.KERNEL32.DLL_GetDiskFreeSpaceW
mov esi, eax
jmp 0x4716d4
mov ecx, esp
mov edx, esi
mov eax, ebx
call fcn.00471564
test al, al
je 0x4716ca
mov eax, dword [ebx + 4]
mov edx, dword [esp]
mov eax, dword [eax + edx*4]
mov edi, dword [eax]
jmp 0x4716d4
push 2
push esi
call sub.KERNEL32.DLL_InterlockedCompareExchange
mov esi, eax
test edi, edi
jne 0x4716dc
test esi, esi
jne 0x4716ae
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x471cd0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov esi, eax
mov byte [ebp - 1], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
call fcn.00472110
mov ebx, eax
mov dword [ebp - 0x14], ebx
push 4
push ebx
call sub.KERNEL32.DLL_InterlockedCompareExchange
mov edx, dword [0x55f724]
mov edx, dword [edx]
cmp eax, dword [edx + 0x170]
je 0x471d2e
mov eax, dword [ebp - 0x14]
call fcn.00470e48
mov ebx, eax
test ebx, ebx
je 0x471e5e
jmp 0x471d1d
mov ebx, eax
mov eax, dword [ebx + 0x34]
test eax, eax
jne 0x471d1b
mov eax, ebx
call fcn.0047d8a4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x471e5e
mov ebx, esi
jmp 0x471d3e
mov ebx, eax
mov eax, dword [ebx + 0x34]
test eax, eax
jne 0x471d3c
mov eax, ebx
call fcn.0047d8a4
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, dword [ebp - 0x14]
je 0x471e5e
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x471d83
mov edx, dword [ebp + 8]
mov ebx, eax
jmp 0x471d70
mov ebx, eax
mov eax, dword [ebx + 0x34]
test eax, eax
jne 0x471d6e
mov eax, ebx
call fcn.0047d8a4
mov dword [ebp - 0x1c], eax
jmp 0x471dad
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov edx, dword [0x46ca3c]
call fcn.00405120
test al, al
je 0x471da8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.0047d8a4
mov dword [ebp - 0x1c], eax
jmp 0x471dad
xor eax, eax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 8], 0
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0xc]
mov dword [ebp - 0x10], edx
mov edx, dword [eax - 8]
mov dword [ebp - 0xc], edx
lea eax, [ebp - 0x1c]
push eax
push 0x471c70
call fcn.0040b710
push eax
call fcn.0040be0c
cmp byte [ebp - 8], 0
je 0x471e5e
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_GetFileSize
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
push eax
mov eax, dword [ebp + 8]
dec eax
push eax
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x10]
mov eax, esi
mov si, 0xffbc
call fcn.00405190
mov eax, dword [0x56514c]
mov edx, dword [0x466df8]
call fcn.00405120
test al, al
je 0x471e48
mov eax, dword [0x56514c]
mov eax, dword [eax + 0x40]
cmp dword [eax + 0x90], 0
je 0x471e48
mov eax, dword [0x56514c]
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 0x90]
call fcn.0047d8a4
cmp eax, dword [ebp - 0x14]
je 0x471e5e
lea ecx, [ebp - 0x3c]
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x2c]
call fcn.0040a908
test al, al
je 0x471e5e
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4726c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
mov dword [0x565148], edi
xor ecx, ecx
push ebp
push 0x47285b
push dword fs:[ecx]
mov dword fs:[ecx], esp
xor eax, eax
mov dword [ebp - 8], eax
mov byte [0x565150], 0
cmp byte [edi + 0x8b], 0
jne 0x472744
lea edx, [ebp - 8]
mov eax, edi
mov si, 0xffde
call fcn.00405190
cmp dword [0x565148], 0
jne 0x47271d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x472871
cmp dword [ebp - 8], 0
jne 0x472844
mov ecx, edi
mov dl, 1
mov eax, dword [0x466cec]
call fcn.00471934
mov dword [ebp - 8], eax
mov byte [0x565150], 1
jmp 0x472844
lea edx, [ebp - 8]
mov eax, edi
mov si, 0xffe5
call fcn.00405190
cmp dword [0x565148], 0
jne 0x472768
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x472871
cmp dword [ebp - 8], 0
jne 0x472786
mov ecx, edi
mov dl, 1
mov eax, dword [0x467170]
call fcn.00471a6c
mov dword [ebp - 8], eax
mov byte [0x565150], 1
mov eax, dword [ebp - 8]
mov esi, dword [eax + 0x40]
mov eax, esi
mov edx, dword [0x46ca3c]
call fcn.00405120
test al, al
je 0x4727b6
mov eax, dword [ebp - 8]
add eax, 0x4c
push eax
mov eax, esi
call fcn.0047d8a4
push eax
call sub.KERNEL32.DLL_GetFileSize
jmp 0x472837
mov eax, dword [ebp - 8]
mov esi, dword [eax + 0x40]
cmp dword [esi + 0x34], 0
jne 0x4727ed
mov eax, esi
mov edx, dword [0x46ca3c]
call fcn.00405120
test al, al
jne 0x4727ed
lea eax, [ebp - 0x10]
push eax
call fcn.0040be74
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x4c], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x50], edx
jmp 0x472813
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x18]
mov eax, esi
call fcn.004742fc
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x4c], edx
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x50], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
mov edx, dword [eax + 0x40]
add ecx, dword [edx + 0x48]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 0x50]
add ecx, dword [edx + 0x4c]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x54], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x58], edx
mov eax, dword [ebp - 8]
lea esi, [eax + 0x4c]
lea edi, [eax + 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00472550
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x472871
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x478b5c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push esi
mov esi, dword [ebp + 8]
add esi, 0xfffffffc
mov eax, dword [esi]
call fcn.0047d8a4
push eax
call sub.KERNEL32.DLL_LoadLibraryW
test eax, eax
je 0x478c18
mov eax, dword [esi]
call fcn.0047d8a4
push eax
call sub.KERNEL32.DLL_InterlockedExchange
test eax, eax
jne 0x478c18
lea eax, [ebp - 0x18]
push eax
mov eax, dword [esi]
call fcn.0047d8a4
push eax
call sub.KERNEL32.DLL_GetFileSize
mov eax, dword [esi]
mov eax, dword [eax + 0x48]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x4c]
mov dword [ebp - 8], eax
lea ecx, [ebp - 8]
lea edx, [ebp - 4]
mov eax, dword [esi]
call fcn.00476940
mov eax, dword [esi]
mov eax, dword [eax + 0x48]
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x18]
cmp eax, edx
jne 0x478bee
mov edx, dword [esi]
mov edx, dword [edx + 0x4c]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
cmp edx, ecx
jne 0x478bee
cmp eax, dword [ebp - 4]
jne 0x478bee
mov eax, dword [esi]
mov eax, dword [eax + 0x4c]
cmp eax, dword [ebp - 8]
je 0x478c0f
push 0x16
mov eax, dword [esi]
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x48]
push eax
push 0
push 0
push 0
mov eax, dword [esi]
call fcn.0047d8a4
push eax
call sub.KERNEL32.DLL_IsValidLocale
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x68]
jmp 0x478c23
mov eax, dword [esi]
mov si, 0xffef
call fcn.00405190
pop esi
mov esp, ebp
pop ebp
ret