joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48f14a
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
lea eax, [esp + 4]
push eax
push dword [ecx + 4]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x48f207
push ebx
push ebp
push esi
mov esi, 0x104
push edi
push esi
mov dword [esp + 0x14], esi
call fcn.004d25b2
mov ebp, dword [esp + 0x2c]
mov ebx, eax
pop ecx
lea eax, [esp + 0x10]
mov dword [esp + 0x20], ebx
push eax
push ebx
lea eax, [esp + 0x20]
mov dword [esp + 0x24], esi
push eax
xor edi, edi
push edi
push dword [ebp]
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
jne 0x48f1fe
lea ecx, [esp + 0x1c]
call fcn.00475d80
mov esi, dword [esp + 0x10]
push esi
call fcn.004d25b2
pop ecx
mov ebx, eax
mov dword [esp + 0x1c], esi
lea eax, [esp + 0x10]
mov dword [esp + 0x20], ebx
push eax
push ebx
lea eax, [esp + 0x20]
push eax
push edi
push dword [ebp]
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x2c]
push ebx
call fcn.00472160
lea ecx, [esp + 0x1c]
call fcn.00475d80
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
jmp 0x48f20a
test eax, eax
je 0x48f1e3
xor edi, edi
inc edi
jmp 0x48f1ed
xor eax, eax
inc eax
add esp, 0x14
ret 8
Function at 0x48fe11
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push 0x430
mov eax, 0x50a4bb
call fcn.004d2c4d
mov dword [ebp - 0x438], ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x424]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x434], eax
test eax, eax
je 0x48ffd3
lea eax, [ebp - 0x21c]
xor edi, edi
push eax
push edi
push 0x52c76c
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x48ffd3
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x428]
call fcn.00409419
push str..url
lea ecx, [ebp - 0x428]
call fcn.004072c4
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push dword [ebp - 0x428]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x48ffb6
call fcn.00406d01
push eax
lea ecx, [ebp - 0x42c]
call fcn.00406b29
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x430]
push dword [esi]
call fcn.004519aa
push dword [ebp - 0x430]
lea eax, [ebp - 0x42c]
push str._InternetShortcut__r_nURL_s_r_n
push eax
call fcn.00451ca4
mov esi, dword [ebp - 0x42c]
lea eax, [ebp - 0x434]
add esp, 0xc
push edi
push eax
push dword [esi - 0xc]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test ebx, ebx
je 0x48ff26
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
test edi, edi
je 0x48ff43
push 5
push 0
push 0
push dword [ebp - 0x428]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x5c
push dword [ebp - 0x428]
call fcn.004d5852
pop ecx
pop ecx
test eax, eax
jne 0x48ff5b
or eax, 0xffffffff
jmp 0x48ff63
sub eax, dword [ebp - 0x428]
sar eax, 1
mov edi, dword [ebp - 0x438]
lea ecx, [ebp - 0x428]
push eax
lea eax, [ebp - 0x43c]
push eax
call fcn.00444ed9
lea edx, [edi + 0x18]
mov ecx, eax
call fcn.00470320
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x43c]
lea ecx, [ecx - 0x10]
call fcn.00406df6
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x430]
lea ecx, [ecx - 0x10]
call fcn.00406df6
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00406df6
test ebx, ebx
je 0x48ffc1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x428]
lea ecx, [ecx - 0x10]
call fcn.00406df6
call fcn.004d2bf7
ret 4
Function at 0x490e9d
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0x50a652
call fcn.004d2c19
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ebx, [esi + 4]
mov ecx, dword [ebx]
call fcn.0046bb30
push ecx
mov ecx, ebx
call fcn.00421149
mov eax, dword [esi + 0x28]
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [eax]
push dword [ebx]
call edi
call fcn.00406d01
push eax
lea ecx, [ebp - 0x10]
call fcn.00406b29
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
push 0xdc
call fcn.0040928a
push 0x40a
push dword [ebx]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [ebp - 0x10]
push esi
push eax
call edi
mov edi, dword [ebp - 0x14]
push dword [ebx]
lea ecx, [edi + 0x40]
call fcn.0049a98e
lea eax, [ebp - 0x18]
xor ecx, ecx
push eax
push ecx
lea eax, [edi + 0x30]
push eax
push 0x490f40
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x38], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00406df6
xor eax, eax
call fcn.004d2be2
ret 0x10

Function at 0x491d61
Capabilities:
Hide graphical window

Disassembly:
push edi
test ecx, ecx
je 0x491d6b
lea edi, [ecx - 0x68]
jmp 0x491d6d
xor edi, edi
cmp byte [ecx + 0x1c], 0
je 0x491da3
push 0xe801
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [esp + 0xc], 2
jne 0x491d93
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x491daa
cmp dword [esp + 0xc], 0
jne 0x491da3
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0xc], 1
je 0x491dc1
mov ecx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x10
cwde
push eax
movsx eax, cx
lea ecx, [edi + 0x68]
push eax
call fcn.00491f2d
xor eax, eax
pop edi
ret 0x10

Function at 0x4924c4
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 4], 0
mov dword [esi], fcn.00492520
je 0x49251b
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 8], 0xffffffff
je 0x492512
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x492512
cmp dword [ebp - 4], 0x103
jne 0x492512
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x492520
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
lea eax, [ebp + 8]
push eax
xor eax, eax
push eax
push esi
push 0x4925eb
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
jne 0x492556
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x492579
cmp byte [ebp + 0x10], 0
je 0x492577
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [ebp + 0x10]
jmp 0x492579
xor eax, eax
pop esi
pop ebp
ret 0xc
Function at 0x493829
Capabilities:
Hide graphical window

Disassembly:
push edi
test ecx, ecx
je 0x493833
lea edi, [ecx - 0x20]
jmp 0x493835
xor edi, edi
cmp byte [ecx + 0x1c], 0
je 0x49386b
push 0xe801
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [esp + 0xc], 2
jne 0x49385b
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x493872
cmp dword [esp + 0xc], 0
jne 0x49386b
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0xc], 1
je 0x493890
mov edx, dword [esp + 0x10]
lea ecx, [edi + 0x20]
mov eax, edx
shr eax, 0x10
cwde
push eax
movsx eax, dx
push eax
call fcn.00492f2f
mov ecx, edi
call fcn.0049277a
xor eax, eax
pop edi
ret 0x10

Function at 0x493896
Capabilities:
Reference sql statements

Disassembly:
push 0xc
mov eax, 0x50a77e
call fcn.004d2c19
mov edi, ecx
cmp dword [edi], 0
jne 0x4938b0
xor al, al
jmp 0x49394b
call fcn.00406d01
push eax
lea ecx, [ebp - 0x18]
call fcn.00406b29
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x18]
push str.SELECT__Value__FROM__Property__WHERE__Property____s
push eax
call fcn.00457385
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 0x10], ebx
push eax
push esi
push dword [edi]
call dword [sym.imp.msi.dll_MsiEnumClientsA]
mov edi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
test eax, eax
jne 0x493932
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x493932
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jne 0x493927
push dword [ebp + 0xc]
push ecx
push dword [ebp - 0x14]
call fcn.00493a5f
mov bl, al
cmp dword [ebp - 0x14], 0
je 0x493932
push dword [ebp - 0x14]
call edi
cmp dword [ebp - 0x10], 0
je 0x49393d
push dword [ebp - 0x10]
call edi
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00406df6
mov al, bl
call fcn.004d2be2
ret 8
Function at 0x493d5b
Capabilities:
Get disk size

Disassembly:
sub esp, 0x424
mov eax, dword [0x5651c0]
xor eax, esp
mov dword [esp + 0x41c], eax
push ebx
push ebp
push esi
push edi
test ecx, ecx
jne 0x493d7e
xor al, al
jmp 0x493e81
movzx edx, word [ecx]
lea esi, [esp + 0x28]
push 2
pop ebp
test dx, dx
je 0x493da1
mov eax, esi
sub ecx, eax
mov word [esi], dx
add esi, ebp
movzx eax, word [ecx + esi]
mov edx, eax
test ax, ax
jne 0x493d91
xor eax, eax
xor cl, cl
mov word [esi], ax
sub esi, ebp
push 0x5c
xor al, al
pop edx
mov byte [esp + 0x17], al
cmp word [esp + 0x28], dx
jne 0x493dd1
cmp word [esp + 0x2a], dx
jne 0x493dd1
xor ebx, ebx
inc ebx
mov byte [esp + 0x17], bl
cmp word [esi], dx
je 0x493ddd
mov cl, bl
jmp 0x493ddd
xor ebx, ebx
movzx eax, al
inc ebx
cmp word [esi], dx
cmove eax, ebx
lea edi, [esp + 0x2c]
cmp word [esp + 0x2c], dx
je 0x493def
add edi, ebp
cmp word [edi], dx
jne 0x493de8
test cl, cl
jne 0x493df9
test al, al
je 0x493e07
jmp 0x493e00
add esi, ebp
mov word [esi], dx
add esi, ebp
xor eax, eax
mov word [esi], ax
sub esi, ebp
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
lea eax, [esp + 0x20]
push eax
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x493e61
push 0x5c
pop ecx
cmp word [esi], cx
jne 0x493e3b
jmp 0x493e39
cmp word [esi], cx
je 0x493e43
sub esi, ebp
lea eax, [esp + 0x28]
cmp esi, eax
ja 0x493e34
cmp esi, edi
jb 0x493d77
cmp byte [esp + 0x17], 0
jne 0x493e56
cmp esi, edi
jne 0x493e58
add esi, ebp
xor eax, eax
mov word [esi], ax
sub esi, ebp
jmp 0x493e10
mov eax, dword [esp + 0x43c]
cmp eax, dword [esp + 0x1c]
ja 0x493e7d
jb 0x493e7f
mov eax, dword [esp + 0x438]
cmp eax, dword [esp + 0x18]
jb 0x493e7f
xor ebx, ebx
mov al, bl
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d207d
add esp, 0x424
ret

Function at 0x493ec4
Capabilities:
Create pipe

Disassembly:
push 0
mov eax, 0x507d21
call fcn.004d2c19
mov edi, ecx
cmp byte [edi], 0
je 0x493ede
mov al, 1
jmp 0x493f6d
mov al, byte [ebp + 8]
lea ecx, [edi + 4]
push dword [ebp + 0xc]
mov byte [edi], 1
mov byte [edi + 1], al
call fcn.004434b9
push str..pipeToServer
lea ecx, [ebp + 8]
call fcn.00409419
mov eax, dword [edi + 4]
lea ecx, [ebp + 8]
push dword [eax - 0xc]
push eax
call fcn.004072ec
xor esi, esi
cmp byte [edi + 1], 0
je 0x493f3e
push esi
push 0x1388
mov eax, 0x7f90
push eax
push eax
push 0xff
push 6
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp byte [edi + 1], 0
mov dword [edi + 8], eax
jne 0x493f55
push esi
push esi
push 3
push esi
push esi
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 8], eax
cmp dword [edi + 8], 0xffffffff
setne bl
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00406df6
mov al, bl
call fcn.004d2be2
ret 8
Function at 0x4941f1
Capabilities:
Connect pipe
Read file on windows

Disassembly:
push 8
mov eax, 0x507f7f
call fcn.004d2c19
mov esi, ecx
cmp byte [ebp + 0x10], 0
jne 0x49422d
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x49422d
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x217
neg eax
sbb eax, eax
add eax, 1
jne 0x49422d
cmp byte [esi + 0x11], al
je 0x494283
push 0
lea eax, [ebp + 0x10]
push eax
push 0x7f90
push dword [esi + 0xc]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x10]
xor edi, edi
mov edx, dword [esi + 0xc]
shr ecx, 1
mov word [edx + ecx*2], di
test eax, eax
je 0x494283
cmp dword [ebp + 0x10], edi
je 0x494283
push dword [esi + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00409419
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004073cf
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00406df6
jmp 0x49428b
mov ecx, dword [ebp + 8]
call fcn.00406e18
mov eax, dword [ebp + 8]
call fcn.004d2be2
ret 0xc

Function at 0x494296
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x4942ac
mov ecx, dword [ebp + 8]
call fcn.00406e18
jmp 0x4942da
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 0x10]
push 0
push edx
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4942a2
push 1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.004941f1
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret 0xc
Function at 0x49478a
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x88
mov eax, dword [0x5651c0]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov eax, edx
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push ecx
mov dword [esp + 0x38], eax
mov byte [eax], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x49489b
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x49489b
cmp edi, dword [esp + 0x9c]
jbe 0x49489b
sub edi, dword [esp + 0x9c]
lea ecx, [esp + 0x14]
push 0x10000
mov dword [esp + 0x18], ebx
call fcn.0044ea25
mov esi, dword [esp + 0x14]
test esi, esi
je 0x494894
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov byte [esp + 0x13], bl
call fcn.004ca8d0
push ebx
lea eax, [esp + 0x1c]
push eax
push 0x10000
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49487c
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x49487c
mov edx, dword [esp + 0x14]
lea eax, [ecx + edx]
cmp eax, edi
jbe 0x49485f
mov ecx, edi
mov byte [esp + 0x13], 1
sub ecx, edx
mov dword [esp + 0x18], ecx
push ecx
push esi
lea ecx, [esp + 0x28]
call fcn.004ca6d0
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
cmp byte [esp + 0x13], bl
je 0x494828
lea ecx, [esp + 0x20]
call fcn.004ca7a0
push dword [esp + 0x1c]
lea ecx, [esp + 0x24]
call fcn.004ca870
mov bl, al
push esi
call fcn.004d26a2
pop ecx
test ebp, ebp
je 0x4948a6
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x94]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d207d
add esp, 0x88
ret
Function at 0x494f55
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
push 0x56a5cc
push 0x400
mov ebp, ecx
call fcn.004d271e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x494f8d
push 3
pop edi
mov ebx, edi
push esi
call fcn.004d26a2
pop ecx
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x20
ret 4
xor ebx, ebx
push 2
mov ecx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov eax, ebx
mov edx, ebx
pop edi
add eax, 0xa
sub edx, 0x400
mov dword [esp + 0x14], eax
inc ecx
mov eax, edx
mov dword [esp + 0x20], edx
cdq
mov dword [esp + 0x18], ecx
mov ecx, eax
cmp dword [esp + 0x18], 1
mov eax, edx
mov dword [esp + 0x1c], eax
jle 0x494fd5
mov eax, dword [esp + 0x14]
cdq
add ecx, eax
mov eax, dword [esp + 0x1c]
adc eax, edx
push edi
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push ecx
push dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x24], eax
cmp eax, 0xffffffff
jne 0x495001
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x494f78
push ebx
lea eax, [esp + 0x14]
push eax
push 0x400
push esi
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x494f78
mov eax, 0x400
cmp dword [esp + 0x10], eax
jne 0x494f78
push ecx
push ecx
mov edx, eax
mov ecx, esi
call fcn.0046d850
pop ecx
pop ecx
test eax, eax
jns 0x495050
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
jmp 0x494fa0
mov ecx, dword [esp + 0x24]
add ecx, 0xffffffc0
mov dword [esp + 0x2c], ebx
add eax, ecx
lea ecx, [esp + 0x2c]
push ebx
push ecx
push eax
push dword [esp + 0x40]
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x494f78
push ebx
lea eax, [esp + 0x14]
push eax
push 0x4a
push ebp
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x494f78
cmp dword [esp + 0x10], ebx
je 0x494f78
push 0xa
lea eax, [ebp + 0x40]
push str.ADVINSTSFX
push eax
call fcn.004d4025
add esp, 0xc
test eax, eax
jne 0x4950bd
cmp dword [ebp + 0xc], 0x64
je 0x4950c4
push 5
jmp 0x494f77
mov ecx, dword [esp + 0x28]
sub ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0x2c]
sbb eax, ebx
mov dword [ebp + 0x50], ecx
mov dword [ebp + 0x54], eax
jmp 0x494f7a
Function at 0x495153
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
mov ebx, ecx
xor ebp, ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov dword [ebx + 0x10], edi
cmp dword [ebx + 4], ebp
jne 0x49516b
xor eax, eax
jmp 0x4951d9
test edi, edi
je 0x49518c
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
lea ecx, [ebx + 0x14]
call fcn.00422c5e
mov eax, dword [edi]
mov ecx, edi
push dword [ebx + 0x14]
call dword [eax + 0x20]
lea eax, [esp + 0x14]
push eax
push ebp
push ebx
push 0x4951e0
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test edi, edi
je 0x4951ad
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [esp + 0x14]
test ebx, ebx
je 0x4951d7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x49577a
Capabilities:
Delete file

Disassembly:
push 0x1c
mov eax, 0x50ab21
call fcn.004d2c19
mov esi, ecx
mov dword [ebp - 0x24], esi
mov ebx, dword [ebp + 8]
push 0x2e
push dword [ebx]
call fcn.004d5852
pop ecx
pop ecx
test eax, eax
je 0x49592b
sub eax, dword [ebx]
sar eax, 1
test eax, eax
jle 0x49592b
push eax
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.00444ed9
call fcn.00406d01
push eax
lea ecx, [ebp - 0x18]
call fcn.00406b29
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
push dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
push dword [ebx]
push dword [edi]
push str.__verbose___log_file__s____remove_pack_file___s____s_
push eax
call fcn.00457385
mov ecx, dword [esi + 0x10]
add esp, 0x14
test ecx, ecx
je 0x4957f3
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
push 0
lea eax, [ebp - 0x28]
push 0x8000008
push eax
lea ecx, [esi + 0xc]
lea edx, [ebp - 0x18]
call fcn.004855ba
add esp, 0xc
mov byte [ebp + 0xb], 1
lea ecx, [ebp - 0x10]
call fcn.004709b0
test al, al
je 0x495829
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4958f3
call fcn.00406d01
push eax
lea ecx, [ebp - 0x1c]
call fcn.00406b29
or dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x1c]
mov ecx, edi
call fcn.00485e3d
call fcn.00406d01
push eax
lea ecx, [ebp - 0x14]
call fcn.00406b29
or dword [ebp - 4], 0xffffffff
mov edx, 0xca
lea ecx, [ebp - 0x20]
call fcn.004945c5
mov eax, dword [ebp - 0x10]
push 0x5c
push eax
mov esi, dword [eax - 0xc]
call fcn.004d5852
pop ecx
pop ecx
test eax, eax
jne 0x49587d
or eax, 0xffffffff
jmp 0x495882
sub eax, dword [ebp - 0x10]
sar eax, 1
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
sub esi, eax
lea eax, [ebp + 8]
push esi
push eax
call fcn.00444f2b
mov esi, dword [ebp - 0x1c]
push esi
push dword [eax]
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00457385
add esp, 0x10
or edi, 0xffffffff
mov dword [ebp - 4], edi
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00406df6
xor dl, dl
lea ecx, [ebp - 0x14]
call fcn.0048a607
mov byte [ebp + 0xb], 0
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00406df6
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00406df6
mov dword [ebp - 4], edi
lea ecx, [esi - 0x10]
call fcn.00406df6
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x495908
mov eax, dword [ecx]
push ebx
call dword [eax + 0x18]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00406df6
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00406df6
mov al, byte [ebp + 0xb]
jmp 0x49592d
mov al, 1
call fcn.004d2be2
ret 8
Function at 0x495a30
Capabilities:
Create thread

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0x20], edi
mov dword [edi + 0x10], eax
cmp dword [eax], ebp
je 0x495a6a
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
lea ecx, [edi + 0x14]
call fcn.00422c5e
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x10]
lea eax, [esp + 0x3c]
push eax
push ebp
push edi
push 0x495ce5
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [edi + 0x10]
mov ebx, eax
mov dword [esp + 0x24], ebx
cmp dword [ecx], ebp
je 0x495b1d
mov ecx, edi
call fcn.00495b53
mov esi, dword [edi + 4]
xorps xmm0, xmm0
mov ecx, dword [edi]
mov dword [esp + 0x28], eax
movlpd qword [esp + 0x30], xmm0
mov eax, dword [esi + 4]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x34]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x495b00
mov ebx, dword [esp + 0x10]
lea eax, [ecx + 0x78]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x18], eax
push ebx
mov ecx, edi
call fcn.00406760
mov ecx, dword [esp + 0x18]
push dword [eax]
call fcn.00483874
mov eax, dword [eax + 0xc]
add ebp, eax
adc esi, 0
inc ebx
cmp ebx, dword [esp + 0x1c]
jl 0x495ad6
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov eax, dword [edi + 0x10]
add ebp, dword [esp + 0x28]
adc esi, dword [esp + 0x2c]
mov ecx, dword [eax]
push esi
push ebp
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [edi + 0x10]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x3c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [esp + 0x3c]
test ebx, ebx
je 0x495b47
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x496096
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ebx
movzx ebx, word [ebp + 0x10]
push esi
push edi
push 0
push 0x51dff0
push 0x1001
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp + 0x10], eax
lea edi, [eax - 1]
call fcn.00406d01
mov esi, dword [ebp + 8]
mov ecx, esi
push eax
call fcn.00406b29
test edi, edi
jle 0x4960e9
push edi
mov ecx, esi
call fcn.00451a82
push edi
push 0x78
push eax
call fcn.004d3e90
add esp, 0xc
mov ecx, esi
push edi
call fcn.00451a5c
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x4960fb
push dword [eax - 0xc]
mov ecx, esi
call fcn.00451bd1
push dword [ebp + 0x10]
push dword [esi]
push 0x1001
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc