joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473d15
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x61dc40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x218], ebx
call fcn.00596530
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0xc
push 2
push ebx
push 0xffffff4a
push dword [edi + 8]
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
call esi
push ebx
lea eax, [ebp - 0x214]
push eax
push 0xb6
lea eax, [ebp - 0x210]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x214], 0xb6
jne 0x473f0a
mov edx, str._JZSTART_1E222D06_2CB2_4220_AF52_E0B7E800F5C1_CBA04DEF_39E0_45e4_854F_B3EA272DE745_JZEND_
lea eax, [ebp - 0x210]
mov cx, word [eax]
cmp cx, word [edx]
jne 0x473dd9
cmp cx, bx
je 0x473dd5
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x473dd9
add eax, 4
add edx, 4
cmp cx, bx
jne 0x473db3
xor eax, eax
jmp 0x473dde
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x473f0a
push 1
push ebx
push 0xffffff46
push dword [edi + 8]
call esi
push ebx
lea eax, [ebp - 0x214]
push eax
push 4
lea eax, [ebp - 0x22c]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x214]
push 1
add eax, ecx
push ebx
neg eax
push eax
push dword [edi + 8]
call esi
push ebx
lea eax, [ebp - 0x214]
push eax
push 4
lea eax, [ebp - 0x218]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x21c], ebx
cmp dword [ebp - 0x218], ebx
jbe 0x473ed4
lea esi, [edi + 0x5cff8]
push ebx
lea ecx, [ebp - 0x214]
push ecx
push 0x20
lea eax, [esi - 0x18]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi]
add dword [esi - 0x10], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi - 4]
adc dword [esi - 0xc], eax
mov eax, dword [esi - 8]
sub eax, dword [esi - 0x10]
mov dword [esi - 0x18], ebx
sbb ecx, dword [esi - 0xc]
add eax, 1
adc ecx, ebx
add dword [ebp - 0x228], eax
lea eax, [esi - 0x18]
mov dword [ebp - 0x230], eax
adc dword [ebp - 0x224], ecx
lea eax, [ebp - 0x230]
push eax
lea eax, [edi + 0x2704]
mov dword [esi - 0x14], ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.0047b54d
inc dword [ebp - 0x21c]
mov eax, dword [ebp - 0x21c]
add esi, 0x20
cmp eax, dword [ebp - 0x218]
jb 0x473e58
mov ecx, dword [edi + 0x5d128]
sub ecx, dword [ebp - 0x228]
mov edx, dword [edi + 0x5d12c]
sbb edx, dword [ebp - 0x224]
lea eax, [edi + 0x5d140]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, edx
mov dword [edi + 0x5d13c], eax
xor eax, eax
mov dword [edi + 0x5d138], ecx
inc eax
jmp 0x473f0c
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0058f3cf
leave
ret
Function at 0x473f1a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, eax
mov eax, dword [ebx + 0x805c]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x20]
cmp dword [eax + 4], 1
push edi
jne 0x473f3b
mov eax, dword [ebx]
mov dword [ebp - 4], eax
xor edi, edi
cmp dword [esi + 0x271c], edi
je 0x473fdb
call fcn.00473b46
mov edi, dword [ebx + 0x8040]
mov ecx, dword [edi + 8]
add ecx, dword [edi + 0x18]
mov eax, dword [edi + 0xc]
adc eax, dword [edi + 0x1c]
push 0
mov edx, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push ecx
push dword [esi + 8]
sar edx, 0x1f
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x473f8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x474015
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebx + 0x40]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x474015
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jne 0x474015
add dword [edi + 0x18], eax
lea eax, [esi + 0x5d138]
adc dword [edi + 0x1c], 0
mov ecx, dword [ebp - 8]
add dword [eax], ecx
push ecx
push esi
adc dword [eax + 4], 0
mov ecx, ebx
call fcn.0047401b
push esi
call fcn.00473c40
xor eax, eax
inc eax
jmp 0x474017
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebx + 0x40]
push eax
push dword [esi + 8]
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x474015
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 4]
jne 0x474015
lea eax, [esi + 0x5d138]
add dword [eax], ecx
push ecx
push esi
adc dword [eax + 4], edi
mov ecx, ebx
call fcn.0047401b
jmp 0x473fd6
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x47601e
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x61dc40]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x47604c
xor eax, eax
inc eax
jmp 0x47610a
and dword [ebp - 0x80], 0
mov eax, ebx
push esi
mov esi, ebx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x476058
sub eax, ecx
sar eax, 1
cmp eax, 0x104
jbe 0x476074
xor eax, eax
jmp 0x476109
xor eax, eax
push edi
cmp ax, word [ebx]
je 0x476105
push 0x5e23d8
push esi
call fcn.0058fdd9
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4760a6
push 0x5de808
push esi
call fcn.0058fdd9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x476105
mov esi, edi
sub esi, ebx
sar esi, 1
test esi, esi
jle 0x4760f7
push 0x20a
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.00596530
push esi
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.0058fee1
add esp, 0x18
push 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x4760f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x80], 1
cmp eax, 0xb7
je 0x4760f7
mov dword [ebp - 0x80], esi
lea esi, [edi + 2]
xor eax, eax
cmp ax, word [esi]
jne 0x476080
mov eax, dword [ebp - 0x80]
pop edi
pop esi
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
call fcn.0058f3cf
add ebp, 0x194
leave
ret

Function at 0x47611f
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x61dc40]
xor eax, ebp
mov dword [ebp + 0x190], eax
and dword [ebp - 0x7c], 0
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, ecx
push ebx
mov dword [ebp - 0x80], ebx
call esi
test eax, eax
jne 0x476158
inc eax
jmp 0x4761ee
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
push ebx
call edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call ebx
test eax, eax
je 0x47617d
mov dword [ebp - 0x7c], 1
jmp 0x4761ea
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
call fcn.00596530
push dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push str._s.df.del
push 0x103
push eax
call fcn.0058f42f
add esp, 0x1c
lea eax, [ebp - 0x78]
push eax
call esi
test eax, eax
je 0x4761c6
push 0x80
lea eax, [ebp - 0x78]
push eax
call edi
lea eax, [ebp - 0x78]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call esi
test eax, eax
je 0x4761ea
push 4
push 0
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x7c], edi
call esi
mov eax, dword [ebp - 0x7c]
pop edi
mov ecx, dword [ebp + 0x190]
pop esi
xor ecx, ebp
pop ebx
call fcn.0058f3cf
add ebp, 0x194
leave
ret
Function at 0x476205
Capabilities:
Check if file exists
Copy file
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x61dc40]
xor eax, ebp
mov dword [ebp + 0x39c], eax
mov eax, dword [ebp + 0x3a8]
and dword [ebp - 0x7c], 0
push ebx
mov ebx, ecx
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], ebx
test eax, eax
je 0x476344
test ebx, ebx
je 0x476344
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.00596530
push ebx
push 0x5db9e0
mov edi, 0x103
lea eax, [ebp - 0x74]
push edi
push eax
call fcn.0058f42f
add esp, 0x1c
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x74]
push eax
call esi
test eax, eax
jne 0x4762a9
lea ebx, [ebp - 0x74]
call fcn.0047601e
test eax, eax
je 0x47633d
mov ebx, dword [ebp - 0x78]
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x194], ax
lea eax, [ebp + 0x196]
push eax
call fcn.00596530
push ebx
push str._s.df.bak
lea eax, [ebp + 0x194]
push edi
push eax
call fcn.0058f42f
add esp, 0x1c
lea eax, [ebp + 0x194]
push eax
call esi
test eax, eax
je 0x4762f2
lea ecx, [ebp + 0x194]
call fcn.0047611f
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp + 0x194]
push eax
push ebx
call edi
push ebx
mov dword [ebp - 0x78], eax
call esi
test eax, eax
jne 0x47631a
push eax
push ebx
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x78], 0
je 0x47633d
cmp dword [ebp - 0x7c], 0
jne 0x476332
push ebx
lea eax, [ebp + 0x194]
push eax
call edi
jmp 0x47633d
lea ecx, [ebp + 0x194]
call fcn.0047611f
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
jmp 0x476346
xor eax, eax
mov ecx, dword [ebp + 0x39c]
xor ecx, ebp
pop ebx
call fcn.0058f3cf
add ebp, 0x3a0
leave
ret

Function at 0x47635c
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0x5dec58
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 8], ebx
call fcn.00593076
mov edi, eax
pop ecx
pop ecx
mov dword [ebp - 4], edi
cmp edi, ebx
je 0x476404
push esi
push 2
push ebx
push edi
call fcn.0059316a
push edi
call fcn.0059338c
push ebx
push ebx
push edi
mov esi, eax
call fcn.0059316a
lea ebx, [esi + 1]
push ebx
call fcn.0058e040
mov edi, eax
add esp, 0x20
test edi, edi
je 0x4763fa
push ebx
push 0
push edi
call fcn.00596530
push dword [ebp - 4]
push esi
push 1
push edi
call fcn.0059369a
push 0x5dec60
push dword [ebp + 0xc]
call fcn.00593076
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x4763f3
push ebx
push esi
xor esi, esi
inc esi
push esi
push edi
call fcn.00593819
push ebx
call fcn.00593912
add esp, 0x14
mov dword [ebp - 8], esi
push edi
call fcn.0058f807
pop ecx
push dword [ebp - 4]
call fcn.00593912
pop ecx
pop esi
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret
Function at 0x47640b
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x61dc40]
xor eax, ebp
mov dword [ebp + 0x39c], eax
mov eax, dword [ebp + 0x3a8]
and dword [ebp - 0x7c], 0
push ebx
mov ebx, ecx
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], ebx
test eax, eax
je 0x47654a
test ebx, ebx
je 0x47654a
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.00596530
push ebx
push 0x5db9e0
mov edi, 0x103
lea eax, [ebp - 0x74]
push edi
push eax
call fcn.0058f42f
add esp, 0x1c
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x74]
push eax
call esi
test eax, eax
jne 0x4764af
lea ebx, [ebp - 0x74]
call fcn.0047601e
test eax, eax
je 0x476543
mov ebx, dword [ebp - 0x78]
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x194], ax
lea eax, [ebp + 0x196]
push eax
call fcn.00596530
push ebx
push str._s.df.bak
lea eax, [ebp + 0x194]
push edi
push eax
call fcn.0058f42f
add esp, 0x1c
lea eax, [ebp + 0x194]
push eax
call esi
test eax, eax
je 0x4764f8
lea ecx, [ebp + 0x194]
call fcn.0047611f
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp + 0x194]
push eax
push ebx
call edi
push ebx
mov dword [ebp - 0x78], eax
call esi
test eax, eax
jne 0x476520
push ebx
push dword [ebp - 0x80]
call fcn.0047635c
pop ecx
pop ecx
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x78], 0
je 0x476543
cmp dword [ebp - 0x7c], 0
jne 0x476538
push ebx
lea eax, [ebp + 0x194]
push eax
call edi
jmp 0x476543
lea ecx, [ebp + 0x194]
call fcn.0047611f
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
jmp 0x47654c
xor eax, eax
mov ecx, dword [ebp + 0x39c]
xor ecx, ebp
pop ebx
call fcn.0058f3cf
add ebp, 0x3a0
leave
ret

Function at 0x476a4a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov eax, edx
push esi
xor ebx, ebx
lea ecx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x476a59
sub eax, ecx
sar eax, 1
jne 0x476a6d
xor eax, eax
jmp 0x476ab9
lea esi, [edx + eax*2 - 2]
cmp word [esi], 0x5c
jne 0x476a7f
xor eax, eax
xor ebx, ebx
mov word [esi], ax
inc ebx
push edi
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, 0x414
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb eax, eax
inc eax
pop edi
test ebx, ebx
je 0x476ab9
push 0x5c
pop ecx
mov word [esi], cx
pop esi
pop ebx
leave
ret
Function at 0x476abd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x61dc40]
xor eax, ebp
mov dword [ebp + 0x3a0], eax
push ebx
push esi
mov esi, dword [ebp + 0x3ac]
push edi
mov edi, dword [ebp + 0x3b0]
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x198], ax
lea eax, [ebp + 0x19a]
push eax
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x78], edi
call fcn.00596530
mov eax, dword [ebp + 0x3b4]
push esi
add eax, eax
push str.CLSID_sInprocServer32
mov dword [ebp - 0x74], eax
mov ebx, 0x103
lea eax, [ebp + 0x198]
push ebx
push eax
mov dword [ebp - 0x7c], 1
call fcn.0058f42f
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
add esp, 0x1c
lea eax, [ebp - 0x74]
push eax
push edi
lea eax, [ebp - 0x7c]
push eax
push str.CodeBase
lea eax, [ebp + 0x198]
push eax
mov edi, 0x80000000
push edi
call esi
test eax, eax
jne 0x476b64
xor eax, eax
inc eax
jmp 0x476c2c
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
lea eax, [ebp - 0x7c]
push eax
push 0
lea eax, [ebp + 0x198]
push eax
push edi
call esi
test eax, eax
je 0x476b5c
push dword [ebp - 0x80]
lea eax, [ebp + 0x198]
push str.CLSID_sLocalServer32
push ebx
push eax
call fcn.0058f42f
mov eax, dword [ebp + 0x3b4]
add eax, eax
add esp, 0x10
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
lea eax, [ebp - 0x7c]
push eax
push 0
lea eax, [ebp + 0x198]
push eax
push edi
call esi
test eax, eax
je 0x476b5c
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x6e]
push eax
call fcn.00596530
push dword [ebp - 0x80]
lea eax, [ebp + 0x198]
push str.CLSID_sTreatAs
push ebx
push eax
call fcn.0058f42f
add esp, 0x1c
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
lea eax, [ebp + 0x198]
push eax
push edi
mov dword [ebp - 0x74], 0x208
call esi
test eax, eax
jne 0x476c24
push dword [ebp + 0x3b4]
lea eax, [ebp - 0x70]
push dword [ebp - 0x78]
push eax
call fcn.00476abd
add esp, 0xc
jmp 0x476c2c
mov ecx, dword [ebp - 0x78]
xor eax, eax
mov word [ecx], ax
mov ecx, dword [ebp + 0x3a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058f3cf
add ebp, 0x3a4
leave
ret
Function at 0x47a8be
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x63a5a0], 0
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 1
mov eax, str.SoftwareMicrosoftInternet_ExplorerInternationalScripts26
je 0x47a8e7
mov eax, str.SoftwareMicrosoftInternet_ExplorerInternational
lea ecx, [ebp - 4]
push ecx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x47a920
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.AutoDetect
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret

Function at 0x47a925
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x63a5a0], 0
push edi
push 4
pop edi
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov eax, str.SoftwareMicrosoftInternet_ExplorerInternationalScripts26
je 0x47a94f
mov eax, str.SoftwareMicrosoftInternet_ExplorerInternational
lea ecx, [ebp - 8]
push ecx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x47a9aa
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov esi, str.AutoDetect
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xc]
xor eax, eax
cmp dword [ebp - 4], eax
sete al
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
leave
ret
Function at 0x47ab88
Capabilities:
Parse url

Disassembly:
push ebp
lea ebp, [esp - 0x104c]
mov eax, 0x104c
call fcn.005a41d0
push 0xfffffffffffffffe
push 0x6017d0
push 0x5988b0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x61dc40]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x1048], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 0x1058]
mov eax, dword [ebp + 0x1054]
mov dword [ebp - 0x1c], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
lea eax, [ebx + ebx]
push eax
push 0
push edi
call fcn.00596530
push 7
mov esi, str.file:__
push esi
push dword [ebp - 0x1c]
call fcn.00590d27
add esp, 0x18
test eax, eax
jne 0x47ac20
push esi
push 0x5db9e0
dec ebx
push ebx
push edi
call fcn.0058f42f
add esp, 0x10
xor eax, eax
inc eax
jmp 0x47ad33
push 6
mov esi, str.res:__
push esi
push dword [ebp - 0x1c]
call fcn.00590d27
add esp, 0xc
test eax, eax
je 0x47ac07
push 0x3c
pop esi
push esi
push 0
lea eax, [ebp - 0x5c]
push eax
call fcn.00596530
add esp, 0xc
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], ebx
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x47ac5c
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x5c]
push ecx
mov edi, 0x10000000
push edi
push eax
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.WININET.dll_InternetCrackUrlW]
call esi
test eax, eax
jne 0x47ad19
mov word [ebp], ax
push 0x1046
push eax
lea eax, [ebp + 2]
push eax
call fcn.00596530
push dword [ebp - 0x1c]
push str.http:___s
push 0x823
lea eax, [ebp]
push eax
call fcn.0058f42f
add esp, 0x1c
lea eax, [ebp]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x47acba
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x5c]
push ecx
push edi
push eax
lea eax, [ebp]
push eax
call esi
test eax, eax
jne 0x47ad19
lea eax, [ebp]
push eax
push 0x5db9e0
dec ebx
push ebx
push dword [ebp - 0x20]
call fcn.0058f42f
add esp, 0x10
mov dword [ebp - 4], 0xfffffffe
jmp 0x47ad31
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x47ad31
cmp word [eax], 0
jne 0x47ac18
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1048]
xor ecx, ebp
call fcn.0058f3cf
add ebp, 0x104c
leave
ret
Function at 0x47b304
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8198
mov eax, dword fs:[0]
push eax
mov eax, 0x288c
call fcn.005a41d0
mov eax, dword [0x61dc40]
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 [ebp + 0xc]
mov dword [ebp - 0x2894], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x2890], eax
xor eax, eax
xor edi, edi
push 0x2450
mov word [ebp - 0x2880], ax
lea eax, [ebp - 0x287c]
mov ebx, ecx
mov esi, edx
push edi
push eax
mov dword [ebp - 0x288c], ebx
mov dword [ebp - 0x2884], esi
mov dword [ebp - 0x2888], edi
call fcn.00596530
add esp, 0xc
cmp dword [ebp + 0x14], edi
jne 0x47b38e
cmp esi, edi
jne 0x47b38e
xor eax, eax
jmp 0x47b52b
push edi
push ebx
lea esi, [ebp - 0x2880]
call fcn.00470695
pop ecx
pop ecx
test eax, eax
je 0x47b525
push 0x62f48
call fcn.0058f82d
pop ecx
mov dword [ebp - 0x2898], eax
mov dword [ebp - 4], edi
cmp eax, edi
je 0x47b3c7
push eax
call fcn.004702c4
mov esi, eax
jmp 0x47b3c9
xor esi, esi
or dword [ebp - 4], 0xffffffff
cmp esi, edi
je 0x47b525
push ebx
mov eax, esi
call fcn.0040a682
mov eax, dword [ebp + 0x10]
push dword [ebp - 0x2884]
mov dword [esi + 0x62ee4], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x26b0], eax
mov eax, dword [ebp + 0x20]
xor ebx, ebx
mov dword [esi + 0x26a0], eax
inc ebx
mov eax, esi
mov dword [esi + 0x2468], ebx
mov dword [esi + 0x26a4], 0x47b26b
call fcn.004748e3
push dword [ebp + 0x1c]
mov eax, esi
call fcn.004748e3
push dword [ebp + 8]
mov eax, esi
call fcn.004748e3
mov eax, dword [ebp - 0x2890]
mov dword [ebp - 0x2884], eax
xor eax, eax
push 0x208
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x426]
push edi
push eax
call fcn.00596530
add esp, 0xc
cmp dword [ebp + 0x14], edi
jne 0x47b467
lea eax, [ebp - 0x428]
mov dword [ebp - 0x2884], eax
cmp dword [ebp - 0x2884], edi
je 0x47b51e
cmp dword [ebp + 8], edi
je 0x47b494
push edi
push dword [ebp - 0x2884]
push dword [ebp - 0x2894]
push edi
push dword [ebp - 0x288c]
call dword [sym.imp.WININET.dll_CreateUrlCacheEntryW]
jmp 0x47b4e3
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.00596530
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [ebp - 0x2884]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x5ee2c0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov eax, dword [ebp - 0x2884]
xor ecx, ecx
cmp cx, word [eax]
je 0x47b51e
push eax
mov eax, esi
call fcn.0040a6b3
call fcn.00470776
test eax, eax
je 0x47b51e
cmp dword [ebp + 0x14], edi
je 0x47b545
push 0xa
mov eax, esi
call fcn.00470b1b
cmp dword [esi + 0x5d120], 7
jne 0x47b51e
mov dword [ebp - 0x2888], ebx
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax]
mov eax, dword [ebp - 0x2888]
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.0058f3cf
leave
ret
mov dword [ebp - 0x2888], ebx
jmp 0x47b525