joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b390
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x41b3c1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x41b3b0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8

Function at 0x41cac0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x60fec0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
movzx eax, word [esi]
cmp eax, 2
je 0x41caec
cmp eax, 0x17
jne 0x41cb6b
movzx eax, word [esi + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push 0x401
mov dword [edi], eax
lea eax, [ebp - 0x408]
push 0
push eax
call fcn.005781a0
add esp, 0xc
lea eax, [ebp - 0x408]
push 2
push 0
push 0
push 0x401
push eax
push dword [ebp + 0xc]
push esi
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x41cb6b
lea edx, [ebp - 0x408]
lea esi, [edx + 1]
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x41cb40
sub edx, esi
lea eax, [ebp - 0x408]
push edx
push eax
mov ecx, ebx
call fcn.00419f00
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00574853
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00574853
mov esp, ebp
pop ebp
ret

Function at 0x41cb90
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x60fec0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x88]
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x88], 0x80
push eax
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x41cbe7
push edi
push esi
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
call fcn.0041cac0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00574853
mov esp, ebp
pop ebp
ret 8
Function at 0x41cf90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a318d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x60fec0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.004384f8
mov edi, eax
add esp, 4
test edi, edi
je 0x41d02d
push 1
mov dword [ebp - 4], 0
call fcn.005767e8
add esp, 4
mov dword [edi + 4], eax
jmp 0x41d02f
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.0040cdf0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 4], 0xffffffff
mov bl, al
test edi, edi
je 0x41d08a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x41d08a
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x41d0a6
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x41d0c9
cmp byte [ebp + 0xc], 0
je 0x41d0b5
push esi
call fcn.00576e4e
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x41d0d5
mov esi, str.ios_base::badbit_set
jmp 0x41d0e5
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.0041d8a0
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.0040f1f0
push 0x5fb96c
lea eax, [ebp - 0x28]
push eax
call fcn.0057868e
int3
Function at 0x424210
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, ecx
cmp dword [edi + 0xb8], 0
je 0x424278
cmp dword [edi + 0xac], 0
je 0x42427f
mov ecx, dword [edi + 0xf0]
mov eax, 0x92492493
sub ecx, dword [edi + 0xec]
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x42427f
lea eax, [ebp - 8]
push eax
push 4
push edi
push 0x425590
push 0
push 0
call fcn.0058379b
add esp, 0x18
mov dword [edi + 0xd4], eax
test eax, eax
je 0x424278
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0xdc]
test ecx, ecx
je 0x424278
mov eax, dword [ecx]
lea edx, [ebp - 8]
push esi
push edx
push ecx
call dword [eax + 0x18]
mov eax, dword [edi + 0xdc]
lea edx, [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, dword [ebp - 4]
mov eax, ecx
mov edx, dword [edi + 0xdc]
neg eax
push 0
push eax
push dword [ebp - 8]
mov esi, dword [edx]
push ecx
push 0
push dword [edi + 0x94]
push dword [edi + 0x90]
push 0
push 0
push dword [edi + 0xbc]
push edx
call dword [esi + 0x20]
pop esi
test eax, eax
jne 0x424278
push eax
push eax
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x425600
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.00439d5a

Function at 0x425ce0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a39a3
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x60fec0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push dword [ebp + 8]
push 0x66
call fcn.0043be2b
lea ecx, [edi + 0xf0]
mov dword [ebp - 4], 0
mov dword [edi], vtable.CsfdclientDlg.0
mov dword [edi + 0xd4], 0
mov dword [edi + 0xd8], 0
call fcn.00405ee0
lea esi, [edi + 0x188]
mov byte [ebp - 4], 1
mov ecx, esi
mov dword [ebp + 8], esi
call fcn.004308a4
mov dword [esi], vtable.CTabCtrl.0
push 0
lea ecx, [edi + 0x208]
mov byte [ebp - 4], 2
call fcn.00429de0
push 0
lea ecx, [edi + 0x358]
mov byte [ebp - 4], 3
call fcn.0042a180
mov byte [ebp - 4], 4
call fcn.0042d6ff
mov ecx, eax
test ecx, ecx
je 0x425e04
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x4c8], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 5
push eax
push 0
push 0
push 0x412fe0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0xd8], eax
call fcn.004396f4
call fcn.004396f4
push 0x80
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [edi + 0xd0], eax
mov eax, edi
mov dword [edi + 0x4c0], 0
mov dword [edi + 0x4c4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004062b0
int3
Function at 0x426280
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1a50
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x60fec0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0xd4]
mov dword [esi], vtable.CsfdclientDlg.0
test eax, eax
je 0x4262be
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0xd8]
test eax, eax
je 0x4262db
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0xd8], 0
mov edx, dword [esi + 0x4c8]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4262f9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esi + 0x358]
call fcn.0042a230
lea ecx, [esi + 0x208]
call fcn.00429e50
lea ecx, [esi + 0x188]
call fcn.0043ab00
lea ecx, [esi + 0xf0]
call fcn.004060a0
lea ecx, [esi + 0xc0]
call fcn.0043b773
lea ecx, [esi + 0xb4]
mov dword [ecx], vtable.CBrush.0
call fcn.00405fa0
mov ecx, esi
call fcn.00439b66
mov eax, dword [ebp + 8]
test al, 1
je 0x42637e
test al, 4
jne 0x426370
push esi
call fcn.0042bca2
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x4d0
push esi
call fcn.00406dc0
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4269a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ecx
call fcn.0042d260
mov ebx, eax
test ebx, ebx
jne 0x4269c0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
shr eax, 4
push esi
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x426aa7
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x426aa7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x426aa7
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x426a28
cmp esi, ecx
jae 0x426aa7
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x426a12
cmp esi, ecx
jae 0x426aa7
cmp word [esi], 0
je 0x426aa7
movzx eax, word [esi]
lea ecx, [esi + 2]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x426ab2
mov ebx, dword [ebp - 4]
mov edx, 1
mov ecx, dword [ebx]
sub edx, dword [ecx - 4]
mov ecx, dword [ecx - 8]
sub ecx, edi
or edx, ecx
jge 0x426a70
push edi
mov ecx, ebx
call fcn.00406b50
movzx eax, word [esi]
push 0
push 0
push edi
push dword [ebx]
push eax
lea eax, [esi + 2]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x426ab2
mov dword [eax - 0xc], edi
mov eax, dword [ebx]
pop esi
mov byte [edi + eax], 0
mov eax, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004062b0
int3
Function at 0x42a8d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x60fec0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x20]
lea eax, [ebp - 0x44]
push esi
push edi
push 0x40
push 0
push eax
call fcn.005781a0
add esp, 0xc
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x124
lea eax, [ebp - 0x168]
push 0
push eax
call fcn.005781a0
add esp, 0xc
mov dword [ebp - 0x16c], 0x128
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x42a97f
lea eax, [ebp - 0x16c]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x42a97f
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x148]
push eax
call edi
test eax, eax
je 0x42a9a9
lea eax, [ebp - 0x16c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x42a956
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x42a9c6
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x42a9bc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42a9d9
jmp 0x42a9bc
mov eax, dword [ebp - 0x164]
push esi
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x42a981
push ecx
push edx
call fcn.00574884
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00574853
mov esp, ebp
pop ebp
ret
call fcn.0057fa40
int3
Function at 0x42ace0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42ad0b
test al, 2
jne 0x42ad07
or eax, 2
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp eax, 0xffffffff
je 0x42ad0b
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x42aeb0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x42afee
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x42afee
mov eax, 0xaaaaaaab
mul ebx
push edi
mov edi, dword [ebp + 0x10]
mov ecx, edx
shr ecx, 1
lea eax, [ecx + ecx*2]
sub ebx, eax
xor eax, eax
mov dword [ebp + 0xc], ebx
test ecx, ecx
je 0x42af5b
mov ebx, ecx
nop word [eax + eax]
movzx ecx, byte [esi]
shr ecx, 2
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi], cl
movzx edx, byte [esi]
movzx ecx, byte [esi + 1]
and edx, 3
shr ecx, 4
shl edx, 4
or edx, ecx
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi + 1], cl
movzx edx, byte [esi + 1]
movzx ecx, byte [esi + 2]
and edx, 0xf
shr ecx, 6
shl edx, 2
or edx, ecx
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi + 2], cl
movzx ecx, byte [esi + 2]
add esi, 3
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi + 3], cl
add eax, 4
sub ebx, 1
jne 0x42aef0
mov ebx, dword [ebp + 0xc]
sub ebx, 1
je 0x42afb6
sub ebx, 1
jne 0x42afe3
mov dl, byte [esi + 1]
movzx esi, byte [esi]
mov ecx, esi
movzx edx, dl
shr ecx, 2
and esi, 3
shl esi, 4
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi], cl
mov ecx, edx
shr ecx, 4
and edx, 0xf
or ecx, esi
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi + 1], cl
movzx ecx, byte [edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi + 2], cl
mov byte [eax + edi + 3], 0x3d
add eax, 4
mov byte [eax + edi], bl
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
movzx edx, byte [esi]
mov ecx, edx
and edx, 3
shr ecx, 2
shl edx, 4
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi], cl
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi + 1], cl
mov word [eax + edi + 2], 0x3d3d
add eax, 4
mov byte [eax + edi], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
Function at 0x42b000
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3f50
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x60fec0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.005781a0
add esp, 0xc
lea eax, [ebp - 0x114]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
xorps xmm0, xmm0
mov dword [ebp - 0x11c], 0
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x118], 0
movups xmmword [ebp - 0x12c], xmm0
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42b080
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x12c]
call fcn.00409bd0
push 0xa
push str.Microsoft
lea ecx, [ebp - 0x12c]
mov dword [ebp - 4], 0
call fcn.00419da0
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
push 0
cmovae eax, dword [ebp - 0x12c]
push eax
call fcn.00583cba
add esp, 8
test eax, eax
je 0x42b0f5
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
push 0
cmovae eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 9
push str.OneDrive
lea ecx, [ebp - 0x12c]
call fcn.00419da0
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
push 0
cmovae eax, dword [ebp - 0x12c]
push eax
call fcn.00583cba
add esp, 8
test eax, eax
je 0x42b147
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
push 0
cmovae eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 0x118]
cmp ecx, 0x10
jb 0x42b17d
mov edx, dword [ebp - 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x42b173
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b196
push ecx
push edx
call fcn.00574884
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00574853
mov esp, ebp
pop ebp
ret
call fcn.0057fa40
int3
Function at 0x42b610
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a4057
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x60fec0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x114]
push 0x104
push 0
mov dword [ebp - 0x11c], esi
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x118], 0
call fcn.005781a0
add esp, 0xc
lea eax, [ebp - 0x114]
push 0
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
xorps xmm0, xmm0
lea eax, [ebp - 0x114]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
lea edx, [eax + 1]
mov dword [esi + 0x14], 0
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42b6a0
sub eax, edx
mov ecx, esi
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00409bd0
push 0x1f
push str.MicrosoftWindowsDesk_top.ini
mov ecx, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x118], 1
call fcn.00419da0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00574853
mov esp, ebp
pop ebp
ret
Function at 0x42b700
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a40b6
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x60fec0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x3c], esi
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], 0
call fcn.0042b890
add esp, 4
xorps xmm0, xmm0
mov dword [ebp - 4], 1
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x34], 0x34
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x42b831
push edi
call fcn.0044cd31
mov esi, eax
add esp, 4
test esi, esi
je 0x42b7a4
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push edi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x42b823
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x5b7e00
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x42b823
mov ecx, dword [ebp - 0x38]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
push esi
call fcn.00408840
mov ecx, esi
add esp, 0x18
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42b810
sub ecx, edx
push ecx
mov ecx, dword [ebp - 0x2c]
push esi
call fcn.00419f00
push 1
push esi
call fcn.00574884
mov esi, dword [ebp - 0x2c]
add esp, 8
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x42b861
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x42b857
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b87e
push ecx
push edx
call fcn.00574884
add esp, 8
mov eax, esi
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.00574853
mov esp, ebp
pop ebp
ret
call fcn.0057fa40
int3
Function at 0x42b890
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a4057
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x60fec0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x11c], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x118], 0
call fcn.0042b000
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.005781a0
add esp, 0xc
lea eax, [ebp - 0x114]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
xorps xmm0, xmm0
lea eax, [ebp - 0x114]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
lea edx, [eax + 1]
mov dword [esi + 0x14], 0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42b921
sub eax, edx
mov ecx, esi
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00409bd0
push 0x27
push str.MicrosoftOneDriveOneDriverUpdate.exe
mov ecx, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x118], 1
call fcn.00419da0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00574853
mov esp, ebp
pop ebp
ret
Function at 0x42cffa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42d053
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x42d053
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x42d044
cmp esi, ecx
jae 0x42d053
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x42d032
cmp esi, ecx
jae 0x42d053
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
jmp 0x42d055
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4300ae
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5a43f5
call fcn.00575048
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x4300d4
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x43012e
lea ecx, [ebp - 0x10]
call fcn.00405eb0
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x5b4aac]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00583d44
push eax
call fcn.0042bd0a
add esp, 0x14
test esi, esi
je 0x430121
push esi
call fcn.005841c0
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0042cb7a
mov eax, ebx
call fcn.00575016
ret 8

Function at 0x43286e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x4328ad
call fcn.004396f4
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4328ad
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4328b5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.004398c2
pop edi
pop esi
pop ebx
pop ebp
ret 4