joyce8/EMBER2024-capa huggingface dataset:
Function at 0x483910
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x522104]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, edx
mov dword [ebp - 0x210], eax
test esi, esi
je 0x483aa2
test eax, eax
je 0x483aa2
push ebx
push 4
push 0x50ae8c
push esi
call fcn.004b5f81
add esp, 0xc
test eax, eax
je 0x4839a6
push 4
push 0x50a100
push esi
call fcn.004b5f81
add esp, 0xc
test eax, eax
je 0x4839a6
mov eax, 0x3a
cmp ax, word [esi + 2]
jne 0x4839d5
mov eax, 0x5c
cmp ax, word [esi + 4]
jne 0x4839d5
push 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004b77c5
add esp, 0xc
lea ebx, [ebp - 0x208]
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x20c]
jmp 0x4839f5
push 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004b77c5
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x204]
push 0x5c
push eax
call fcn.004a8038
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x4839ef
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4c5b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x204]
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
push edi
push dword [ebp - 0x210]
mov word [ebx], cx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x483a63
cmp eax, edi
jae 0x483a63
mov ecx, dword [ebp - 0x210]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x483a20
sub ecx, edx
sar ecx, 1
je 0x483a63
lea eax, [ebp - 0x20c]
sub ebx, eax
sar ebx, 1
lea esi, [esi + ebx*2]
mov edx, esi
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x483a43
sub edx, ebx
sar edx, 1
lea eax, [edx + 1]
add eax, ecx
cmp eax, edi
jbe 0x483a76
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4c5b
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x210]
sub edi, ecx
push edi
push esi
lea eax, [eax + ecx*2]
push eax
call fcn.004b77c5
add esp, 0xc
mov eax, 1
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4c5b
mov esp, ebp
pop ebp
ret
push 0xa0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004a4c5b
mov esp, ebp
pop ebp
ret
Function at 0x487aa0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x487aa8
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x487abb
test al, 0x10
jne 0x487abb
mov al, 1
ret
xor al, al
ret

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

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x487ac8
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x487adb
test al, 0x10
je 0x487adb
mov al, 1
ret
xor al, al
ret

Function at 0x487ea0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
push esi
mov esi, ecx
mov dword [esp + 4], edx
push edi
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x487ebb
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x487fdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x487f07
cmp dword [esi + 0x14], 8
jb 0x487ee0
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x487ef4
test al, 0x10
jne 0x487fdf
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x487eff
xor eax, eax
nop
mov edi, dword [esi + 0x14]
mov ecx, esi
cmp edi, 8
jb 0x487f1c
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
inc eax
push 2
push 0x50bbd0
push eax
call fcn.0040e320
add esp, 0xc
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x487f98
inc eax
mov dword [esp + 0x20], 0
cmp dword [esi + 0x10], eax
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
mov ecx, esi
cmovb eax, dword [esi + 0x10]
mov dword [esp + 0x24], 0
cmp edi, 8
jb 0x487f62
mov ecx, dword [esi]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0040aa50
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
push dword [esp + 8]
cmovae eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 0x10]
call fcn.0040ab30
mov eax, dword [esp + 0xc]
jmp 0x487f10
mov eax, esi
cmp edi, 8
jb 0x487fa1
mov eax, dword [esi]
push dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x487fdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
mov edi, eax
jb 0x487fc0
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x487fd0
test al, 0x10
jne 0x487fdf
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x488620
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb170
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x98
mov eax, dword [0x522104]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x54], esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
xorps xmm0, xmm0
mov dword [ebp - 0x50], esi
push 0x108
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
call fcn.0040a9f0
mov edx, eax
mov dword [ebp - 0x24], 0x104
xor eax, eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x20], 0x107
mov ecx, 0x82
mov edi, edx
rep stosd dword es:[edi], eax
mov word [edx + 0x208], ax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], 8
push dword [ebp - 0x24]
cmovae eax, dword [ebp - 0x34]
push eax
push str._TMP_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, eax
test ecx, ecx
je 0x48896b
mov eax, dword [ebp - 0x24]
cmp ecx, eax
ja 0x48896b
dec ecx
cmp ecx, eax
ja 0x488709
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
mov dword [ebp - 0x24], ecx
cmovae eax, dword [ebp - 0x34]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x488716
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x34]
call fcn.0040c590
lea eax, [ebp - 0x34]
push eax
call fcn.004889c0
xorps xmm0, xmm0
lea ecx, [ebp - 0x34]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
xor eax, eax
movups xmm0, xmmword [ebp - 0x34]
mov dword [esi + 0x14], 0
mov word [ebp - 0x34], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
call fcn.0040ab30
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004a4c5b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push str.Unable_to_expand__TMP__environment_variable_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00492530
push 0x51f1f8
lea eax, [ebp - 0x6c]
push eax
call fcn.004a765b
push str.Unable_to_expand__TEMP__environment_variable_
push 0x50bce8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x80]
call fcn.00413ae0
push 0x51f1f8
lea eax, [ebp - 0x80]
push eax
call fcn.004a765b
int3
Function at 0x488a80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb1d7
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
push esi
push edi
mov eax, dword [0x522104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], edx
mov esi, ecx
mov dword [ebp - 0x18], esi
mov eax, dword [ebx + 8]
xorps xmm0, xmm0
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x24], 0
movups xmmword [esi], xmm0
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov dword [ebp - 0x14], ecx
mov word [esi], ax
lea edi, [eax + 1]
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x488b0d
mov eax, dword [ecx]
mov dword [ebp - 0x28], eax
call fcn.0048f6a0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x50], eax
mov eax, ecx
mov dword [ebp - 0x4c], edx
cmp dword [ecx + 0x14], 8
jb 0x488b28
mov eax, dword [ecx]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, ecx
cmp dword [ecx + 0x14], 8
jb 0x488b38
mov eax, dword [ecx]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 4], 1
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
mov word [ebp - 0x44], ax
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], 7
push eax
lea eax, [ebp - 0x50]
or edi, 2
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x24], edi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0048a150
lea eax, [ebp - 0x44]
add esp, 0x10
cmp esi, eax
je 0x488bb1
mov ecx, esi
call fcn.0040ab30
movups xmm0, xmmword [ebp - 0x44]
xor eax, eax
mov word [ebp - 0x44], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
and edi, 0xfffffffd
call fcn.0040ab30
cmp dword [esi + 0x10], 0
mov eax, esi
je 0x488c0a
cmp dword [esi + 0x14], 8
jb 0x488bd0
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x488be7
mov ecx, dword [ebp - 0x14]
test al, 0x10
je 0x488b03
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x488bf1
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x488c08
mov ecx, dword [ebp - 0x14]
test al, 0x10
jne 0x488b03
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x488c20
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
mov bh, 1
mov esi, edx
push edi
mov edi, ecx
mov bl, bh
nop dword [eax + eax]
test bl, bl
je 0x488c70
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x488c3e
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov bl, 1
cmp eax, 0xffffffff
je 0x488c70
and eax, 0x3126
mov ecx, 0x80
cmove eax, ecx
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x488c63
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
sete bl
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x488c7a
mov ecx, dword [esi]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x488c84
mov eax, dword [edi]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x488cc3
add bh, 0xff
je 0x488cbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x488cac
cmp eax, 0x20
mov eax, 0x14
jne 0x488cb1
mov eax, 0xc8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x488c30
pop edi
pop esi
xor al, al
pop ebx
ret
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x488ccd
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x488cf6
and eax, 0x3126
mov ecx, 0x80
cmove eax, ecx
cmp dword [esi + 0x14], 8
jb 0x488cee
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
mov al, 1
pop ebx
ret

Function at 0x488f30
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push ebx
push esi
mov bh, 1
mov esi, edx
push edi
mov edi, ecx
mov bl, bh
nop dword [eax + eax]
test bl, bl
je 0x488f80
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x488f4e
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov bl, 1
cmp eax, 0xffffffff
je 0x488f80
and eax, 0x3126
mov ecx, 0x80
cmove eax, ecx
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x488f73
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
sete bl
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x488f8a
mov ecx, dword [esi]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x488f94
mov eax, dword [edi]
push 0xb
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x488fd3
add bh, 0xff
je 0x488fcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x488fbc
cmp eax, 0x20
mov eax, 0x14
jne 0x488fc1
mov eax, 0xc8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x488f40
pop edi
pop esi
xor al, al
pop ebx
ret
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x488fdd
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x489006
and eax, 0x3126
mov ecx, 0x80
cmove eax, ecx
cmp dword [esi + 0x14], 8
jb 0x488ffe
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x489010
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
mov bl, dl
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x489020
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x489073
test al, 0x10
jne 0x489073
test bl, bl
je 0x489073
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x48903e
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x489051
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x48906e
add bl, 0xff
je 0x489016
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x489016
pop esi
mov al, 1
pop ebx
ret
pop esi
xor al, al
pop ebx
ret

Function at 0x489080
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb255
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x522104]
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
cmp dword [edi + 0x10], 0
jne 0x4890b9
xor al, al
jmp 0x48916b
test dl, dl
jne 0x4890da
cmp dword [edi + 0x14], 8
jb 0x4890c5
mov edi, dword [edi]
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne al
jmp 0x48916b
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push 3
push 0x50a10c
lea ecx, [ebp - 0x38]
movq qword [ebp - 0x1c], xmm0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.0040aa50
push 0
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 0
push 1
push eax
mov edx, edi
lea ecx, [ebp - 0x1c]
call fcn.00489680
add esp, 0xc
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.0040ab30
mov esi, dword [ebp - 0x18]
cmp esi, dword [ebp - 0x1c]
je 0x489154
mov ecx, esi
nop dword [eax]
add ecx, 0xffffffe8
xor dl, dl
add esi, 0xffffffe8
call fcn.00489080
mov ecx, esi
cmp esi, dword [ebp - 0x1c]
jne 0x489140
xor dl, dl
mov ecx, edi
call fcn.00489080
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1d], al
call fcn.0040c7b0
mov al, byte [ebp - 0x1d]
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.004a4c5b
mov esp, ebp
pop ebp
ret
Function at 0x489560
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb305
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x522104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x489599
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x44]
push eax
call fcn.00487ce0
add esp, 8
xor edx, edx
mov dword [ebp - 4], 0
mov ecx, eax
call fcn.00487ea0
lea ecx, [ebp - 0x44]
call fcn.0040ab30
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4895ca
mov eax, dword [edi]
push 0
push 0x80
push 2
push 0
push 5
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 1
cmp esi, 0xffffffff
je 0x48962c
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x489658
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4c5b
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.0040abd0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push str.set_file_content__ls
push eax
lea ecx, [ebp - 0x2c]
call fcn.004138d0
push 0x51f1f8
lea eax, [ebp - 0x2c]
push eax
call fcn.004a765b
push str.set_file_content
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004924d0
push 0x51f1f8
lea eax, [ebp - 0x2c]
push eax
call fcn.004a765b
int3
Function at 0x489c50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb44e
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x522104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x34], edi
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov esi, dword [ebp + 8]
push 0x502074
movzx eax, si
push eax
mov dword [ebp - 4], 0
push 0x400000
mov dword [ebp - 0x18], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x489d7e
push ebx
push 0x400000
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x489dae
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x489d63
push ebx
push 0x400000
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [edi]
mov ebx, eax
mov eax, dword [edi + 4]
mov ecx, eax
sub ecx, edx
mov dword [ebp - 0x10], eax
cmp ebx, ecx
jae 0x489d22
lea eax, [edx + ebx]
jmp 0x489d52
jbe 0x489d55
mov eax, dword [edi + 8]
sub eax, edx
cmp ebx, eax
jbe 0x489d38
push ecx
push ebx
mov ecx, edi
call fcn.00423bb0
jmp 0x489d55
mov esi, ebx
sub esi, ecx
push esi
push 0
push dword [ebp - 0x10]
call fcn.004a7c50
mov eax, dword [ebp - 0x10]
add esp, 0xc
add eax, esi
mov esi, dword [ebp - 0x1c]
mov dword [edi + 4], eax
push ebx
push dword [ebp - 0x14]
push dword [edi]
call fcn.004a76d0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x502074
push ecx
push esi
test eax, 0xffff0000
je 0x489dd0
push str.resource__d_of_type__s_was_not_found
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.00489fd0
push 0x51f1f8
lea eax, [ebp - 0x30]
push eax
call fcn.004a765b
push str.resource_was_not_properly_loaded
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.004924d0
push 0x51f1f8
lea eax, [ebp - 0x30]
push eax
call fcn.004a765b
push str.resource__d_of_type__d_was_not_found
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.00489fd0
push 0x51f1f8
lea eax, [ebp - 0x30]
push eax
call fcn.004a765b
int3
Function at 0x48a790
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb580
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x288
mov eax, dword [0x522104]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov dword [ebp - 0x230], edi
mov esi, ecx
mov dword [ebp - 0x22c], esi
lea eax, [ebp - 0x228]
mov dword [ebp - 0x234], esi
push eax
push 0
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, eax
test ecx, ecx
jns 0x48a97e
mov eax, edi
and eax, 0xffff00ff
cmp eax, 0x24
jne 0x48a83f
push 0x104
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x48a9fd
cmp eax, 0x104
ja 0x48aa22
jmp 0x48a97e
cmp eax, 0x25
jne 0x48a86e
push 0x104
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x48aa45
cmp eax, 0x104
ja 0x48aa6a
jmp 0x48a97e
cmp eax, 0x26
jne 0x48a882
lea edx, [eax - 0x25]
mov ecx, esi
call fcn.0048aaa0
jmp 0x48a9be
cmp eax, 0x2b
jne 0x48a893
mov ecx, esi
call fcn.0048aca0
jmp 0x48a9be
cmp eax, 0x23
jne 0x48a8b9
sub esp, 8
mov ecx, esi
mov eax, esp
mov dword [eax], str.Common_AppData
mov dword [eax + 4], 0xe
call fcn.0048a680
add esp, 8
jmp 0x48a9be
cmp eax, 0x1a
jne 0x48a90d
sub esp, 8
mov dword [ebp - 4], 0
mov eax, esp
mov ecx, esi
mov dword [eax], str.AppData
mov dword [eax + 4], 7
call fcn.0048a680
add esp, 8
jmp 0x48a9be
cmp eax, 0x1c
jne 0x48a9de
sub esp, 8
mov dword [ebp - 4], 2
mov eax, esp
mov ecx, esi
mov dword [eax], str.Local_AppData
mov dword [eax + 4], 0xd
call fcn.0048a680
add esp, 8
jmp 0x48a9be
xorps xmm0, xmm0
lea ecx, [ebp - 0x228]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
lea edx, [ecx + 2]
mov dword [esi + 0x14], 0
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48a9a0
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0040aa50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004a4c5b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push edi
push ecx
push ecx
lea ecx, [ebp - 0x29c]
call fcn.0043d730
push 0x51f1f8
lea eax, [ebp - 0x29c]
push eax
call fcn.004a765b
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x24c]
call fcn.0043d730
push 0x51f1f8
lea eax, [ebp - 0x24c]
push eax
call fcn.004a765b
push edi
push ecx
push 0xea
lea ecx, [ebp - 0x260]
call fcn.0043d730
push 0x51f1f8
lea eax, [ebp - 0x260]
push eax
call fcn.004a765b
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x274]
call fcn.0043d730
push 0x51f1f8
lea eax, [ebp - 0x274]
push eax
call fcn.004a765b
push edi
push ecx
push 0xea
lea ecx, [ebp - 0x288]
call fcn.0043d730
push 0x51f1f8
lea eax, [ebp - 0x288]
push eax
call fcn.004a765b
int3