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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f9e8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5b0514]
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 esi, ecx
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [esi + 0x1b0]
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov byte [ebp - 0x1c], 1
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], ebx
add dword [esi + 0x1e8], ecx
mov eax, dword [esi + 0x184]
adc dword [esi + 0x1ec], ebx
test eax, eax
je 0x42f99a
push ebx
lea edx, [ebp - 0x14]
push edx
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x42f996
call fcn.0042fb30
mov ebx, eax
jmp 0x42f9fc
xor ebx, ebx
jmp 0x42f9fc
mov eax, dword [esi + 0x15c]
lea edi, [esi + 0x158]
mov edx, dword [edi]
sub eax, edx
jne 0x42f9e2
mov ecx, dword [esi + 0x1d0]
mov eax, ecx
and eax, dword [esi + 0x1d4]
cmp eax, 0xffffffff
mov eax, dword [edi + 8]
je 0x42f9d2
sub eax, edx
cmp ecx, eax
jbe 0x42f9e2
cmp ecx, 0x7fffffff
ja 0x42fa30
jmp 0x42f9da
mov ecx, dword [esi + 0x180]
jmp 0x42f9c2
push ecx
mov ecx, edi
call fcn.0042f850
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
add eax, ecx
push eax
push ecx
push dword [esi + 0x15c]
mov ecx, edi
call fcn.004077f0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
lea eax, [esi + 0x1b0]
push eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, ebx
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.00497cb0
mov esp, ebp
pop ebp
ret 8
call fcn.00402b10
int3
Function at 0x42fb50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x5b0514]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1b0]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esi + 0x194]
test eax, eax
je 0x42fc10
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
push ecx
push dword [esi + 0x190]
push dword [esi + 0x18c]
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x42fbb9
call fcn.0042fb30
mov edi, eax
test edi, edi
js 0x42fc40
push 0
push dword [esp + 0x14]
push dword [esi + 0x18c]
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x42fbdd
call fcn.0042fb30
mov edi, eax
test edi, edi
js 0x42fc40
mov eax, dword [esp + 0x10]
add dword [esi + 0x1a8], eax
mov ecx, dword [esi + 0x1a8]
adc dword [esi + 0x1ac], 0
mov eax, dword [esi + 0x1ac]
cmp eax, dword [esi + 0x1a4]
jb 0x42fc0c
ja 0x42fc3b
cmp ecx, dword [esi + 0x1a0]
jae 0x42fc3b
xor edi, edi
jmp 0x42fc40
mov eax, dword [esi + 0x168]
test eax, eax
je 0x42fc3b
push 0
push eax
push dword [esi + 0x164]
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x42fc3b
call fcn.0042fb30
mov edi, eax
test edi, edi
js 0x42fc40
mov edi, 1
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00497cb0
mov esp, ebp
pop ebp
ret

Function at 0x430580
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 5
push 0
push 0
push dword [ebp + 0x1c]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x4305ab
mov eax, dword [ebp + 0x10]
mov ecx, 1
mov eax, dword [eax]
mov word [eax], cx
pop ebp
ret 0x18
Function at 0x438890
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, ecx
cmp edx, 0x81f7
jne 0x4388b7
mov ecx, dword [eax + 0xc34]
test ecx, ecx
je 0x4388b7
push 2
call fcn.004c8370
xor eax, eax
pop ebp
ret 8
mov dword [ebp + 8], edx
mov ecx, eax
pop ebp
jmp fcn.00462e40

Function at 0x439fa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, 0x2aaaaaab
mov ecx, dword [ebp + 8]
imul ecx
push edi
sar edx, 2
mov edi, edx
mov dword [esi], 0
shr edi, 0x1f
add edi, edx
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea eax, [edi + edi*2]
shl eax, 3
sub ecx, eax
mov dword [esi + 0xc], ecx
cmp edi, 0x16d
jle 0x43a001
inc dword [esi]
mov ecx, esi
call fcn.00439e90
movzx eax, al
add edi, 0xfffffe92
xor eax, 1
add edi, eax
cmp edi, 0x16d
jg 0x439fe2
mov dword [esi + 4], 0xc
mov eax, 0xc
cmp edi, dword [esi + 0x40]
jge 0x43a01c
dec eax
mov dword [esi + 4], eax
cmp edi, dword [esi + eax*4 + 0x10]
jl 0x43a012
sub edi, dword [esi + eax*4 + 0x10]
mov eax, esi
mov dword [esi + 8], edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x43c2e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x5b0514]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
mov ebx, dword [0x5ba980]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x19
push str.Option
mov dword [esp + 0x18], esi
call fcn.0043b1e0
test eax, eax
jne 0x43c44f
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov esi, dword [sym.imp.USER32.dll_AppendMenuW]
mov edi, eax
push 0x58f2e0
push 0x52d
push 0
push edi
call esi
push 0x58f2f4
push 0x52e
push 0
push edi
call esi
mov esi, dword [esp + 0x10]
push 0
push esi
push 0
push dword [esp + 0x24]
push dword [esp + 0x24]
push 0x100
push edi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
cmp eax, 0x52d
jne 0x43c403
cmp dword [ebx + 0x640], 0
je 0x43c3aa
lea eax, [ebx + 0x644]
mov dword [ebx + 0x658], 0
push eax
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov dword [ebx + 0x640], 0
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esp + 0x10]
push eax
push 0x56cab0
push 1
push 0
push 0x56cad0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x43c44f
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00497cb0
mov esp, ebp
pop ebp
ret 4
cmp eax, 0x52e
jne 0x43c44f
mov ecx, ebx
mov dword [ebx + 0x9fc], 0x1f4
call fcn.00445c30
cmp dword [ebx + 0x640], 0
je 0x43c447
lea eax, [ebx + 0x644]
mov dword [ebx + 0x658], 0
push eax
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov dword [ebx + 0x640], 0
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00497cb0
mov esp, ebp
pop ebp
ret 4
Function at 0x449940
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56202b
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x5b0514]
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, dword [0x5ba980]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.005219d0
add esp, 0xc
lea eax, [ebp - 0x248]
push 0
push 0x58f444
push str.Software
push eax
call fcn.0043bdc0
mov esi, eax
mov dword [ebp - 4], 0
cmp dword [ebx + 0x5a8], 0
jbe 0x4499d5
cmp dword [ebx + 0x5ac], 8
lea edi, [ebx + 0x598]
mov eax, edi
jb 0x4499c7
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4499d5
push edi
jmp 0x4499dc
lea eax, [ebx + 0x568]
push eax
lea ecx, [ebp - 0x230]
call fcn.00402a30
cmp dword [esi + 0x14], 8
jb 0x4499ef
mov esi, dword [esi]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push esi
cmovae eax, dword [ebp - 0x230]
push eax
push str._s_s
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov edx, dword [ebp - 0x21c]
add esp, 0x14
cmp edx, 8
jb 0x449a5f
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x449a55
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x449ae7
push edx
push ecx
call fcn.00497cc1
add esp, 8
mov edx, dword [ebp - 0x234]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp edx, 8
jb 0x449ab8
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x449aae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x449aec
push edx
push ecx
call fcn.00497cc1
add esp, 8
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
neg eax
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.00497cb0
mov esp, ebp
pop ebp
ret
call fcn.00524999
call fcn.00524999
int3
Function at 0x449b00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56206b
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x5b0514]
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 eax, dword fs:[0x2c]
mov edx, dword [ebp + 8]
mov ebx, dword [0x5ba980]
mov dword [ebp - 0x21c], edx
mov ecx, dword [eax]
mov eax, dword [0x5bab68]
cmp eax, dword [ecx + 4]
jle 0x449ba1
push 0x5bab68
call fcn.0049822a
add esp, 4
cmp dword [0x5bab68], 0xffffffff
jne 0x449b9b
xor eax, eax
mov dword [0x5bab7c], 0
push 0x56bba0
mov dword [0x5bab80], 7
mov word [0x5bab6c], ax
call fcn.00497f77
push 0x5bab68
call fcn.004981e0
add esp, 8
mov edx, dword [ebp - 0x21c]
mov ecx, dword [0x5bab7c]
test ecx, ecx
je 0x449bbf
cmp edx, 0x5bab6c
je 0x449d9c
push ecx
mov ecx, edx
jmp 0x449d83
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005219d0
add esp, 0xc
lea eax, [ebp - 0x24c]
push 0
push 0x58f444
push str.Software
push eax
call fcn.0043bdc0
mov esi, eax
mov dword [ebp - 4], 0
cmp dword [ebx + 0x5a8], 0
jbe 0x449c20
cmp dword [ebx + 0x5ac], 8
lea edi, [ebx + 0x598]
mov eax, edi
jb 0x449c12
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x449c20
push edi
jmp 0x449c27
lea eax, [ebx + 0x568]
push eax
lea ecx, [ebp - 0x234]
call fcn.00402a30
cmp dword [esi + 0x14], 8
jb 0x449c3a
mov esi, dword [esi]
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
push esi
cmovae eax, dword [ebp - 0x234]
push eax
push str._s_s
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov edx, dword [ebp - 0x220]
add esp, 0x14
cmp edx, 8
jb 0x449caa
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x449ca0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x449dba
push edx
push ecx
call fcn.00497cc1
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x238]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
cmp edx, 8
jb 0x449d0e
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x449d04
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x449dbf
push edx
push ecx
call fcn.00497cc1
add esp, 8
xor eax, eax
mov dword [ebp - 0x23c], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x449d34
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, 0x5bab6c
call fcn.00410900
push 0x1c
push str.Option
call fcn.0043b1e0
test eax, eax
je 0x449d6f
mov ecx, 0x5bab6c
call fcn.00419e10
mov ecx, dword [ebp - 0x21c]
cmp ecx, 0x5bab6c
je 0x449d9c
push dword [0x5bab7c]
cmp dword [0x5bab80], 8
mov eax, 0x5bab6c
cmovae eax, dword [0x5bab6c]
push eax
call fcn.00410900
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.00497cb0
mov esp, ebp
pop ebp
ret 4
call fcn.00524999
call fcn.00524999
int3
Function at 0x4560b0
Capabilities:
Check if file exists
Create shortcut via ishelllink
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x5b0514]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0x20]
push 0x208
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x210]
push 0
push eax
mov dword [ebp - 0x21c], 0
call fcn.005219d0
add esp, 0xc
lea eax, [ebp - 0x210]
push esi
push edi
push str._s_s.lnk
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x210]
add esp, 0x14
push eax
call esi
test eax, eax
je 0x456151
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497cb0
mov esp, ebp
pop ebp
ret 0x20
lea eax, [ebp - 0x214]
push eax
push 0x56ca50
push 1
push 0
push 0x56cac0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x456220
mov eax, dword [ebp - 0x214]
push dword [ebp - 0x218]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [ebp - 0x220]
test edx, edx
je 0x45619d
mov eax, dword [ebp - 0x214]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test ebx, ebx
je 0x4561b7
push ebx
call esi
test eax, eax
je 0x4561b7
mov eax, dword [ebp - 0x214]
push 0
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov edx, dword [ebp - 0x224]
test edx, edx
je 0x4561ce
mov eax, dword [ebp - 0x214]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x214]
lea edx, [ebp - 0x218]
push edx
push 0x56cb80
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x456214
mov eax, dword [ebp - 0x218]
lea edx, [ebp - 0x210]
push 1
push edx
push eax
mov ecx, dword [eax]
mov dword [ebp - 0x21c], 1
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x218]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 0x1a
push str.Option
call fcn.0043b1e0
test eax, eax
je 0x45624e
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
or eax, 1
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x21c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00497cb0
mov esp, ebp
pop ebp
ret 0x20
Function at 0x456270
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5644c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5b0514]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea edx, [ebp - 0x2c]
mov dword [ebp - 4], eax
lea ecx, [eax + 0x10]
call fcn.00413450
push 1
push 0x58bdf0
lea ecx, [ebp - 0x2c]
call fcn.00411920
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4562d2
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00411920
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov edx, dword [ebp - 0x18]
mov esi, eax
neg esi
sbb esi, esi
cmp edx, 8
jb 0x456339
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45632f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x456358
push edx
push ecx
call fcn.00497cc1
add esp, 8
lea eax, [esi + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00497cb0
mov esp, ebp
pop ebp
ret 4
call fcn.00524999
int3
Function at 0x45ebc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00481cd3

Function at 0x462e40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565158
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5b0514]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
add eax, 0xffff7e0b
cmp eax, 3
ja case.default.0x462e7c
jmp dword [eax*4 + 0x462fa4]
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x744]
push eax
mov dword [esi + 0xc0c], eax
call fcn.004679e0
jmp case.default.0x462e7c
lea ecx, [esi + 0x778]
call fcn.0042e370
push eax
push dword [esi + 0xc0c]
lea ecx, [esi + 0x744]
push dword [esi + 0x964]
push dword [esi + 0x960]
call fcn.00468530
jmp case.default.0x462e7c
lea eax, [esi + 0x8b8]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402a30
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x462f18
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x462f18
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.localfilepath
push str.Software
call fcn.0043bc70
mov eax, dword [esi]
mov ecx, esi
push 3
call dword [eax + 0x88]
push 1
lea ecx, [esi + 0x744]
call fcn.00468170
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb case.default.0x462e7c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x462f5d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x462f9e
push edx
push ecx
call fcn.00497cc1
add esp, 8
jmp case.default.0x462e7c
mov eax, dword [esi]
push 3
call dword [eax + 0x88]
push 1
lea ecx, [esi + 0x744]
call fcn.00467be0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497cb0
mov esp, ebp
pop ebp
ret 8
call fcn.00524999
nop
sub dword [esi], 0x46
add byte [ebp - 889174482], bl
inc esi
add byte [ecx + 0x2f], ch
inc esi
add ah, cl
int3
Function at 0x463af0
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565220
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5b0514]
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 esi, ecx
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00449b00
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x463b98
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push 8
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x463b88
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esi + 0x758], ebx
mov dword [esi + 0x75c], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], esi
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00466910
mov edx, eax
mov byte [ebp - 4], 1
mov ecx, dword [0x5ba9ac]
cmp dword [0x5ba9b0], ecx
je 0x463bdd
mov dword [ecx], 0
cmp ecx, edx
je 0x463bd0
mov eax, dword [edx]
mov dword [ecx], eax
mov dword [edx], 0
mov byte [ecx + 4], 1
add dword [0x5ba9ac], 8
jmp 0x463be4
push edx
push ecx
call fcn.00435bd0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x463c0d
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x463c0d
mov edx, dword [ecx + 0x78]
test edx, edx
je 0x463c07
mov eax, dword [edx]
push ecx
mov ecx, edx
jmp 0x463c0b
mov eax, dword [ecx]
push 1
call dword [eax]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x463c43
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x463c39
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x463c5f
push edx
push ecx
call fcn.00497cc1
add esp, 8
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.00497cb0
mov esp, ebp
pop ebp
ret
call fcn.00524999
int3
Function at 0x466180
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565158
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5b0514]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
add eax, 0xffff7e0b
cmp eax, 3
ja case.default.0x4661bc
jmp dword [eax*4 + 0x4662ec]
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x744]
push eax
mov dword [esi + 0xc0c], eax
call fcn.004679e0
jmp case.default.0x4661bc
lea ecx, [esi + 0x778]
call fcn.0042e370
push eax
push dword [esi + 0xc0c]
lea ecx, [esi + 0x744]
push dword [esi + 0x964]
push dword [esi + 0x960]
call fcn.00468530
jmp case.default.0x4661bc
lea eax, [esi + 0x8b8]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402a30
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x466258
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x466258
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.localfilepath
push str.Software
call fcn.0043bc70
push 0
lea ecx, [esi + 0x744]
call fcn.00468170
mov edx, dword [esi]
lea eax, [esi + 0xc30]
push eax
mov ecx, esi
call dword [edx + 0x74]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb case.default.0x4661bc
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46629f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4662e4
push edx
push ecx
call fcn.00497cc1
add esp, 8
jmp case.default.0x4661bc
push 0
lea ecx, [esi + 0x744]
call fcn.00467be0
mov edx, dword [esi]
lea eax, [esi + 0xc30]
push eax
mov ecx, esi
call dword [edx + 0x74]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497cb0
mov esp, ebp
pop ebp
ret 8
call fcn.00524999
nop dword [eax]
ret

Function at 0x466300
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp eax, 2
jne 0x46632e
mov eax, dword [0x5ba980]
push esi
push 2
mov esi, dword [eax + 0x630]
call fcn.004640d0
mov eax, dword [0x5ba980]
mov dword [eax + 0x630], esi
pop esi
pop ebp
ret 4
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004640d0