joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475a60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x507254]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
push eax
push edi
call ebx
test eax, eax
je 0x475b94
cmp dword [ebp - 0xc], 4
jne 0x475b94
cmp dword [esi + 0x14], 0x10
jb 0x475ab1
mov esi, dword [esi]
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push esi
push edi
call ebx
test eax, eax
je 0x475add
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jne 0x475add
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a6256
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xb8]
push eax
call fcn.004715e0
add esp, 4
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0x38], xmm0
movq xmm0, qword [eax + 0x20]
mov eax, dword [eax]
movq qword [ebp - 0x28], xmm0
cmp dword [eax], 0
je 0x475c37
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [ebp - 0x1c]
push 0x4dcf10
push eax
call fcn.00465e10
mov edi, eax
lea eax, [ebp - 0x90]
push str.WriteStringToFile
push eax
call fcn.00466120
mov esi, eax
lea eax, [ebp - 0x6c]
push 0x4dcf40
push eax
call fcn.00465ff0
push esi
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.0045d4d0
push edi
push eax
lea eax, [ebp - 0x14c]
push eax
call fcn.0045f220
push dword [ebp - 0x20]
push dword [ebp - 0x10]
push ebx
push 0x4dceb8
push eax
push 0
call fcn.00477f60
add esp, 0x48
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a6256
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xb8]
push eax
call fcn.004715e0
add esp, 4
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0x38], xmm0
movq xmm0, qword [eax + 0x20]
mov eax, dword [eax]
movq qword [ebp - 0x28], xmm0
cmp dword [eax], 0
je 0x475c37
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0x1c], 0x290028
lea eax, [ebp - 0x90]
mov dword [ebp - 0x18], 0x2d0020
push str.WriteStringToFile
push eax
mov dword [ebp - 0x14], 0x20
call fcn.00466120
mov esi, eax
lea eax, [ebp - 0x6c]
push 0x4dcf40
push eax
call fcn.00465ff0
push esi
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.0045d4d0
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea eax, [ebp - 0x14c]
push eax
call fcn.0045f220
push ebx
push dword [ebp - 0x10]
push edi
push 0x4dceb8
push eax
push 0
call fcn.00477f60
add esp, 0x40
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a6256
mov esp, ebp
pop ebp
ret
Function at 0x475c50
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x475cfa
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x475c6d
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
mov dx, word [0x506004]
cmp word [ecx + eax*2 - 2], dx
je 0x475c89
movzx eax, dx
mov ecx, esi
push eax
call fcn.00402cc0
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x475c90
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.00402df0
mov ecx, dword [esi + 0x14]
mov edi, esi
cmp ecx, 8
jb 0x475cb4
mov edi, dword [esi]
mov eax, dword [esi + 0x10]
mov dx, word [0x506004]
cmp word [edi + eax*2 - 2], dx
je 0x475cd3
movzx eax, dx
mov ecx, esi
push eax
call fcn.00402cc0
mov ecx, dword [esi + 0x14]
mov eax, esi
cmp ecx, 8
jb 0x475cdc
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esi + 0x14], 8
jb 0x475ced
mov esi, dword [esi]
push 0x2000
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
pop edi
pop ebp
ret 8

Function at 0x476150
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8075
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x507254]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword fs:[0x2c]
mov edx, dword [0x50afb4]
mov edx, dword [eax + edx*4]
mov eax, dword [0x50a980]
cmp eax, dword [edx + 0x58]
jg 0x476248
mov ecx, dword [0x50a97c]
test ecx, ecx
jl 0x47622d
mov esi, dword [0x50a978]
jg 0x4761b7
cmp esi, 2
jb 0x47622d
mov eax, dword [edi + 0x28]
cdq
sub eax, esi
sbb edx, ecx
sub eax, 1
sbb edx, 0
mov dword [ebp - 0x2c], edx
js 0x47622d
jg 0x4761d0
test eax, eax
jb 0x47622d
push eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [edi + 0x30]
call fcn.00470bd0
mov esi, eax
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 0
push eax
lea ecx, [edi + 0x30]
call fcn.00470e30
push esi
push eax
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00412560
lea ecx, [ebp - 0x48]
call fcn.00402710
lea ecx, [ebp - 0x60]
call fcn.00402710
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x28]
call fcn.00402710
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a6256
mov esp, ebp
pop ebp
ret
push 0x50a980
call fcn.004a6775
add esp, 4
cmp dword [0x50a980], 0xffffffff
jne 0x47619c
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x1c]
push 0x50a980
mov dword [0x50a978], eax
mov dword [0x50a97c], ecx
call fcn.004a672b
add esp, 4
jmp 0x47619c
Function at 0x4767f0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 0x10], ebx
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x476953
lea eax, [ecx - 1]
mov esi, dword [ebx + 4]
or eax, edi
mov dword [ebp - 0xc], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.00475d00
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x476926
movzx eax, byte [ecx + 8]
xor eax, 0x811c9dc5
mov edx, dword [edx]
imul edi, eax, 0x1000193
movzx eax, byte [ecx + 9]
xor edi, eax
movzx eax, byte [ecx + 0xa]
imul edi, edi, 0x1000193
xor edi, eax
movzx eax, byte [ecx + 0xb]
imul edi, edi, 0x1000193
xor edi, eax
imul eax, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, eax
mov eax, dword [ebx + 0xc]
mov ebx, dword [eax + edi*8]
mov dword [ebp - 4], ebx
lea eax, [eax + edi*8]
mov dword [ebp - 8], eax
cmp ebx, esi
jne 0x4768a6
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x476919
mov eax, dword [eax + 4]
mov ebx, dword [ecx + 8]
cmp ebx, dword [eax + 8]
jne 0x4768e0
mov eax, dword [eax]
mov dword [ebp - 4], eax
cmp eax, ecx
je 0x4768d8
mov ebx, dword [ecx + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
jmp 0x476919
mov edi, eax
cmp dword [ebp - 4], eax
je 0x4768f6
mov eax, dword [eax + 4]
mov edi, eax
cmp ebx, dword [eax + 8]
je 0x47692f
cmp dword [ebp - 4], eax
jne 0x4768e7
mov eax, dword [ecx + 4]
mov dword [ebp - 4], eax
mov dword [eax], edx
mov ebx, dword [edx + 4]
mov dword [ebx], edi
mov eax, dword [edi + 4]
mov dword [eax], ecx
mov dword [edi + 4], ebx
mov edi, dword [ebp - 4]
mov dword [edx + 4], edi
mov dword [ecx + 4], eax
mov eax, dword [ebp - 8]
mov dword [eax], ecx
mov ebx, dword [ebp - 0x10]
mov ecx, edx
cmp edx, esi
jne 0x476852
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov esi, eax
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
jmp 0x476919
push str.invalid_hash_bucket_count
call fcn.0048faf8
int3
Function at 0x477d00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2034
call fcn.004a6c20
mov eax, dword [0x507254]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea esi, [ebp - 0x2034]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push edi
push eax
lea eax, [ebp - 0x34]
push 0x4dc9ec
push eax
call fcn.00468c70
mov al, byte [ebp - 0x34]
add esp, 0x10
test al, al
je 0x477d5a
lea ecx, [ebp - 0x34]
mov edx, esi
sub ecx, edx
nop
mov byte [esi], al
inc esi
mov al, byte [ecx + esi]
test al, al
jne 0x477d50
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x477d7a
mov al, byte [ecx]
test al, al
je 0x477d7a
sub ecx, esi
nop dword [eax]
mov byte [esi], al
inc esi
mov al, byte [ecx + esi]
test al, al
jne 0x477d70
mov eax, dword [ebp + 0x10]
lea edi, [ebp - 0x36]
test eax, eax
mov ecx, 0x4dca00
push ebx
cmovne ecx, eax
lea eax, [ebp + 0x14]
push eax
push 0
push ecx
push 0xffffffffffffffff
sub edi, esi
mov dword [ebp + 0x10], ecx
push edi
push esi
call fcn.0040d9d0
push dword [eax + 4]
push dword [eax]
call fcn.004b09ca
or ecx, 0xffffffff
add esp, 0x20
test eax, eax
cmovs eax, ecx
cmp eax, edi
cmovbe edi, eax
cmp dword [ebp + 8], 8
mov word [esi + edi], 0xa
mov esi, dword [0x50a6f0]
mov eax, dword [esi]
mov ebx, dword [eax]
jne 0x477dd9
cmp dword [esi + 8], 2
je 0x477dd9
or ebx, 2
lea eax, [ebp - 0x2034]
push esi
push eax
call fcn.00478060
add esp, 8
mov edi, eax
test bl, 1
je 0x477dfd
lea eax, [ebp - 0x2034]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test bl, 2
pop ebx
je 0x477e12
push edi
lea eax, [ebp - 0x2034]
mov ecx, esi
push eax
call fcn.004722b0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a6256
mov esp, ebp
pop ebp
ret
Function at 0x477e30
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2038
call fcn.004a6c20
mov eax, dword [0x507254]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x2038], eax
lea esi, [ebp - 0x2034]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push edi
push eax
lea eax, [ebp - 0x34]
push 0x4dc9ec
push eax
call fcn.00468c70
mov al, byte [ebp - 0x34]
add esp, 0x10
test al, al
je 0x477e91
lea ecx, [ebp - 0x34]
mov edx, esi
sub ecx, edx
mov byte [esi], al
inc esi
mov al, byte [ecx + esi]
test al, al
jne 0x477e87
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x477eaa
mov al, byte [ecx]
test al, al
je 0x477eaa
sub ecx, esi
mov byte [esi], al
inc esi
mov al, byte [ecx + esi]
test al, al
jne 0x477ea0
mov eax, dword [ebp + 0x14]
lea edi, [ebp - 0x36]
test eax, eax
mov ecx, 0x4dca00
push ebx
cmovne ecx, eax
lea eax, [ebp + 0x18]
push eax
push 0
push ecx
push 0xffffffffffffffff
sub edi, esi
mov dword [ebp + 0x14], ecx
push edi
push esi
call fcn.0040d9d0
push dword [eax + 4]
push dword [eax]
call fcn.004b09ca
or ecx, 0xffffffff
add esp, 0x20
test eax, eax
cmovs eax, ecx
cmp eax, edi
cmovbe edi, eax
cmp dword [ebp + 0xc], 8
mov word [esi + edi], 0xa
mov esi, dword [ebp - 0x2038]
mov eax, dword [esi]
mov ebx, dword [eax]
jne 0x477f09
cmp dword [esi + 8], 2
je 0x477f09
or ebx, 2
lea eax, [ebp - 0x2034]
push esi
push eax
call fcn.00478060
add esp, 8
mov edi, eax
test bl, 1
je 0x477f2d
lea eax, [ebp - 0x2034]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test bl, 2
pop ebx
je 0x477f42
push edi
lea eax, [ebp - 0x2034]
mov ecx, esi
push eax
call fcn.004722b0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a6256
mov esp, ebp
pop ebp
ret

Function at 0x478060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [eax + 4]
test esi, esi
je 0x4780b6
cmp dword [esi], 0
je 0x4780b6
mov eax, dword fs:[0x2c]
mov ecx, dword [0x50afb4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x50a968]
cmp eax, dword [ecx + 0x58]
jg 0x4780bb
mov edx, dword [ebp + 8]
mov ecx, edx
mov al, byte [edx]
test al, al
je 0x4780af
nop word [eax + eax]
xor al, byte [0x50a964]
mov byte [ecx], al
inc ecx
mov al, byte [ecx]
test al, al
jne 0x4780a0
sub ecx, edx
mov eax, ecx
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
push 0x50a968
call fcn.004a6775
add esp, 4
cmp dword [0x50a968], 0xffffffff
jne 0x47808f
mov al, byte [esi + 1]
sub al, byte [esi + 3]
sub al, byte [esi + 2]
add al, byte [esi]
push 0x50a968
mov byte [0x50a964], al
call fcn.004a672b
add esp, 4
jmp 0x47808f
Function at 0x479560
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
cmp dword [edx + 0x14], 8
mov esi, edx
mov ebx, dword [edx + 0x10]
mov dword [ebp - 4], ecx
jb 0x47957c
mov esi, dword [edx]
xor ecx, ecx
mov edi, 0x811c9dc5
add ebx, ebx
je 0x479598
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, ebx
jb 0x479587
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0xc]
push edi
push edx
push eax
mov ecx, ebx
call fcn.004626e0
mov esi, dword [eax + 4]
test esi, esi
je 0x479615
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0xc]
and ecx, edi
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
cmp dword [ecx + 4], esi
jne 0x4795d7
cmp eax, esi
jne 0x4795cf
mov eax, dword [ebx + 4]
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x4795df
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
jmp 0x4795df
cmp eax, esi
jne 0x4795df
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi]
lea edx, [ebx + 4]
dec dword [edx + 4]
mov eax, dword [esi + 4]
mov dword [eax], ecx
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
lea eax, [esi + 8]
push eax
push edx
call fcn.00454390
push 0x20
push esi
call fcn.004a6287
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x47add0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d86ed
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x507254]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 0
push 0
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x47aea1
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a6639
add esp, 4
mov dword [ebp - 0x14], eax
push esi
mov esi, eax
mov dword [ebp - 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x47ae92
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47ae50
sub ecx, edx
mov dword [edi], 0
sar ecx, 1
xor eax, eax
push ecx
mov dword [edi + 0x10], 0
mov ecx, edi
mov dword [edi + 0x14], 7
push esi
mov word [edi], ax
call fcn.00403940
test esi, esi
je 0x47aec5
push 2
push esi
call fcn.004a6287
add esp, 8
jmp 0x47aec5
test esi, esi
je 0x47aea1
push 2
push esi
call fcn.004a6287
add esp, 8
xorps xmm0, xmm0
xor eax, eax
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a6256
mov esp, ebp
pop ebp
ret

Function at 0x47b0e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d86ed
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x507254]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 0
push 0
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x47b1b1
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a6639
add esp, 4
mov dword [ebp - 0x14], eax
push esi
mov esi, eax
mov dword [ebp - 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x47b1a2
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47b160
sub ecx, edx
mov dword [edi], 0
sar ecx, 1
xor eax, eax
push ecx
mov dword [edi + 0x10], 0
mov ecx, edi
mov dword [edi + 0x14], 7
push esi
mov word [edi], ax
call fcn.00403940
test esi, esi
je 0x47b1d5
push 2
push esi
call fcn.004a6287
add esp, 8
jmp 0x47b1d5
test esi, esi
je 0x47b1b1
push 2
push esi
call fcn.004a6287
add esp, 8
xorps xmm0, xmm0
xor eax, eax
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a6256
mov esp, ebp
pop ebp
ret
Function at 0x47b200
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d878d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x507254]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 0
push 0
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x47b377
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a6639
add esp, 4
mov dword [ebp - 0x14], eax
push esi
mov esi, eax
mov dword [ebp - 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x47b36a
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47b281
sub ecx, edx
mov dword [ebp - 0x48], 0
sar ecx, 1
xor eax, eax
push ecx
push esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
call fcn.00403940
push 4
xor eax, eax
mov dword [ebp - 0x30], 0
push 0x4dd0dc
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.00403940
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x48]
call fcn.00402490
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x47b337
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47b32a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47b3b8
push edx
push ecx
call fcn.004a6287
mov eax, dword [ebp - 0x18]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], cx
mov ecx, edi
push eax
mov dword [ebp - 0x1c], 7
call fcn.00403010
lea ecx, [ebp - 0x48]
call fcn.00402710
test esi, esi
je 0x47b39b
push esi
call fcn.004a62c5
add esp, 4
jmp 0x47b39b
test esi, esi
je 0x47b377
push esi
call fcn.004a62c5
add esp, 4
xorps xmm0, xmm0
xor eax, eax
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a6256
mov esp, ebp
pop ebp
ret
call fcn.004ab23f
int3
Function at 0x48b150
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x507254]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi - 0x10000]
movzx eax, cx
mov edi, ecx
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
jbe 0x48b21b
cmp edi, dword [0x50711c]
jb 0x48b19b
cmp edi, dword [0x507120]
ja 0x48b19b
sub edi, 0x8000000
jmp 0x48b213
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
je 0x48b21b
cmp dword [ebp - 0x10], 0x10000
jne 0x48b1fe
cmp dword [ebp - 0x14], 0x10000
jb 0x48b1fe
push 0x40
push 0x3000
push 0x10000
push edi
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
jne 0x48b2cd
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x48b21b
sub edi, 0x10000
jmp 0x48b213
mov ecx, dword [ebp - 0x1c]
add ecx, 0xffff0000
mov edi, ecx
movzx eax, di
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
ja 0x48b183
movzx eax, si
test eax, eax
je 0x48b22a
sub esi, eax
add esi, 0x10000
mov edi, dword [ebp + 0x10]
cmp esi, edi
jae 0x48b2cb
cmp esi, dword [0x50711c]
jb 0x48b24d
cmp esi, dword [0x507120]
ja 0x48b24d
add esi, 0x8000000
jmp 0x48b2c3
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
je 0x48b2cb
cmp dword [ebp - 0x10], 0x10000
mov ecx, dword [ebp - 0x14]
jne 0x48b2ae
cmp ecx, 0x10000
jb 0x48b2ae
push 0x40
push 0x3000
push 0x10000
push esi
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
jne 0x48b2cd
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x48b2cb
add esi, 0x10000
jmp 0x48b2c3
mov esi, dword [ebp - 0x20]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x48b2c3
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x48b235
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a6256
mov esp, ebp
pop ebp
ret
Function at 0x48b5f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5013d0
push 0x4a8c80
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x507254]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
push 0x1c
lea ecx, [ebp - 0x38]
push ecx
push eax
call sub.KERNEL32.dll_VirtualQuery
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x34]
cmp word [ecx], ax
jne 0x48b695
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x48b695
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp dword [ebp + 0xc], eax
jb 0x48b695
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x48b695
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x48b69e
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004a6256
mov esp, ebp
pop ebp
ret