joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401580
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x464
push ebx
mov ebx, dword [esp + 0x46c]
push esi
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x30]
mov dword [esp + 0x2c], 0x44
push 0x5c
push ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x18], 0x400
mov byte [esp + 0x78], al
call fcn.00401bf0
add esp, 8
test eax, eax
jne 0x40169c
lea eax, [esp + 0xc]
push eax
push 0x407114
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push 0x407104
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401615
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x464
ret
mov eax, dword [esp + 0xc]
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x4070f0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x74]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_SearchPathA]
lea ecx, [esp + 0x78]
push ecx
push 0x400
push 0
lea edx, [esp + 0x84]
push ebx
push edx
call esi
test eax, eax
pop ebp
ja 0x4016c7
lea eax, [esp + 0x14]
lea ecx, [esp + 0x70]
push eax
push ecx
push 0x400
push 0
push ebx
push 0
call esi
test eax, eax
ja 0x4016c7
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x464
ret
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x70]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x478]
test edi, edi
je 0x4016fb
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x70]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x407054
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x40fac0], eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x8c]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401744
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x464
ret
Function at 0x4017c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x280
push esi
mov esi, dword [esp + 0x288]
push esi
call sub.WDSCard.dll_WDSCardAuth
test eax, eax
je 0x4017e4
xor eax, eax
pop esi
add esp, 0x280
ret 4
lea eax, [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
call sub.WDSCard.dll_WDSCardGetCertCount
test eax, eax
je 0x401804
xor eax, eax
pop esi
add esp, 0x280
ret 4
mov cl, byte [esp + 0xc]
xor eax, eax
test cl, cl
mov dword [esp + 8], eax
jbe 0x4019ac
push ebx
push ebp
push edi
jmp 0x401822
mov esi, dword [esp + 0x294]
mov al, byte [esp + eax + 0x24]
cmp al, 8
mov byte [esp + 0x20], al
ja 0x40198e
mov ebx, dword [esp + 0x20]
and ebx, 0xff
cmp byte [ebx + 0x40facb], 0x31
jne 0x40198e
lea edx, [esp + 0x90]
push edx
push ebx
push esi
call sub.WDSCard.dll_WDSCardReadContainerName
test eax, eax
jne 0x40198e
lea eax, [esp + 0x90]
lea ecx, [esp + 0x2c]
push eax
push 0x40fa80
push 0x407174
push ecx
call fcn.00401a99
lea edx, [esp + 0x3c]
push 0x8000
push edx
call fcn.00402186
mov edi, eax
add esp, 0x18
test edi, edi
jle 0x4018fc
mov esi, ebx
push 0x1000
shl esi, 0xc
lea ebp, [esi + str.GetEnvironmentStrings]
push ebp
push edi
call fcn.00401f90
push edi
mov dword [esp + 0x2c], eax
call fcn.00401edd
mov eax, dword [esp + 0x2c]
add esp, 0x10
cmp eax, 2
jle 0x4018fc
xor edx, edx
xor ecx, ecx
mov dl, byte [ebp]
mov cl, byte [esi + 0x406a71]
shl edx, 8
add ecx, edx
lea esi, [esi + 0x406a72]
mov dword [ebx*4 + 0x407a48], ecx
lea ecx, [eax - 2]
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x1c]
and ecx, 3
cmp eax, 2
rep movsb byte es:[edi], byte [esi]
jg 0x401972
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x294]
mov ecx, ebx
lea esi, [ebx*4 + 0x407a48]
shl ecx, 0xc
push esi
lea ebp, [ecx + str.GetEnvironmentStrings]
push ebp
push edx
push eax
call sub.WDSCard.dll_WDSCardReadCert
test eax, eax
jne 0x40198e
push 0x180
lea ecx, [esp + 0x30]
push 0x8101
push ecx
call fcn.00402186
mov edi, eax
add esp, 0xc
test edi, edi
jle 0x401972
mov edx, dword [esi]
mov al, byte [esi]
lea ecx, [esp + 0x12]
push 2
shr edx, 8
push ecx
push edi
mov byte [esp + 0x1e], dl
mov byte [esp + 0x1f], al
call fcn.00401d30
mov edx, dword [esi]
push edx
push ebp
push edi
call fcn.00401d30
push edi
call fcn.00401edd
add esp, 0x1c
mov eax, dword [0x407a40]
test eax, eax
je 0x40198e
mov edx, dword [ebx*4 + 0x407a48]
lea ecx, [esp + 0x90]
push ecx
push edx
push ebp
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc eax
and ecx, 0xff
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x40181b
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x280
ret 4
Function at 0x4049f1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4073b8
cmp edx, dword [eax]
je 0x404a13
add eax, 8
inc ecx
cmp eax, 0x407448
jl 0x404a04
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4073b8]
jne 0x404b41
mov eax, dword [0x40fb00]
cmp eax, 1
je 0x404b1b
test eax, eax
jne 0x404a44
cmp dword [0x407194], 1
je 0x404b1b
cmp edx, 0xfc
je 0x404b41
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404a7b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403760
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403aa0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404abe
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403aa0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40648c
push edi
call fcn.004059f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403760
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403770
lea eax, [ebp - 0xa0]
push 0x40646c
push eax
call fcn.00403770
push dword [esi + 0x4073bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403770
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405965
add esp, 0x2c
pop edi
jmp 0x404b41
lea eax, [ebp + 8]
lea esi, [esi + 0x4073bc]
push 0
push eax
push dword [esi]
call fcn.00403aa0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x404843
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push esi
mov esi, ecx
push 2
call fcn.004ee300
mov eax, dword [esp + 0x14]
push 1
movsx ecx, ax
shr eax, 0x10
movsx edx, ax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je 0x404897
mov eax, dword [esi + 0x7064]
cmp eax, 0xffffffff
je 0x404897
cmp eax, dword [esp + 4]
jne 0x404890
mov eax, dword [esi + 0x7068]
mov ecx, dword [esp + 8]
cmp eax, ecx
je 0x404897
mov ecx, esi
call fcn.00405cd0
mov ecx, esi
call fcn.00404580
mov edx, dword [esi + 0x3ef0]
mov ecx, 0x20
cmp edx, ecx
jne 0x4048bd
test eax, eax
je 0x4048d0
mov dword [esi + 0x3ef0], 0x10
jmp 0x4048c7
test eax, eax
jne 0x4048d0
mov dword [esi + 0x3ef0], ecx
push 1
mov ecx, esi
call fcn.00405590
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.004046d0
test eax, eax
je 0x4048e7
push 0x7f01
jmp 0x4048f7
mov ecx, esi
call fcn.00404660
test eax, eax
je 0x404906
push 0x7f89
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, esi
call fcn.004055c0
pop esi
add esp, 8
ret 8
Function at 0x405280
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x1048
call fcn.004f3f00
push ebx
mov ebx, dword [esp + 0x1050]
push esi
mov esi, ecx
push edi
cmp word [esi + 0x3f8c], 0
lea eax, [esi + 0x3f8c]
mov dword [esi + 0x70b0], ebx
mov dword [esi + 0x70b4], 1
je 0x4052c8
mov ecx, dword [esi + 0x3ef4]
test ecx, ecx
je 0x4052c8
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x3ef4]
test eax, eax
je 0x4052f9
lea ecx, [esp + 0xc]
push 0x824
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edx, [esp + 0xc]
push edx
call fcn.004a3860
add esp, 4
lea eax, [esp + 0xc]
lea edi, [esi + 0x601c]
push eax
push 0x50c180
push 0x823
push edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, dword [esi + 0x3f00]
add esp, 0x10
lea edx, [esp + 0xc]
push ecx
push ebx
push edx
call fcn.00402e30
mov ecx, eax
call fcn.00431420
push 0
push 1
push edi
mov ecx, esi
call fcn.004043f0
mov eax, dword [esi + 0x1e3c]
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
je 0x4053b3
mov eax, dword [esi + 0x1e38]
test eax, eax
je 0x405392
call fcn.0041bda0
mov eax, dword [eax + 4]
push 0
push 0x7611
push 0x405
push eax
call edi
call fcn.0041bda0
mov ecx, dword [eax + 4]
push 0
push 0x759c
push 0x405
push ecx
jmp 0x4053a7
call fcn.0041bda0
mov edx, dword [eax + 4]
push 0
push 0x7595
push 0x405
push edx
call edi
mov dword [esi + 0x1e3c], 0
mov eax, dword [esi + 0x1e40]
cmp eax, 3
jbe 0x4053cc
call fcn.0041bda0
push 0
push 0x7596
jmp 0x40540c
jne 0x4053e5
call fcn.0041bda0
mov ecx, dword [eax + 4]
push 0
push 0x7597
push 0x405
push ecx
jmp 0x405415
test eax, eax
ja 0x405400
call fcn.0041bda0
mov edx, dword [eax + 4]
push 0
push 0x7599
push 0x405
push edx
jmp 0x405415
call fcn.0041bda0
push 0
push 0x7598
mov eax, dword [eax + 4]
push 0x405
push eax
call edi
mov eax, dword [esi + 0x70b0]
test eax, eax
jne 0x405428
mov ecx, esi
call fcn.00404fa0
mov eax, dword [esi + 0x70b4]
test eax, eax
je 0x40545a
mov eax, dword [esi + 4]
push eax
push eax
call dword [sym.imp.USER32.dll_GetMenu]
mov ecx, dword [esi + 0x3ef8]
and eax, 0xffff
or eax, 0xb0000
push eax
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esi + 4]
push 0x2009
push edx
mov word [esi + 0x1e54], 0
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push 1
mov ecx, esi
call fcn.00405510
call fcn.0041bda0
mov eax, dword [eax + 4]
push 0
push 0x7602
push 0x405
push eax
call edi
pop edi
pop esi
pop ebx
add esp, 0x1048
ret 4
Function at 0x406e70
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x2090
call fcn.004f3f00
mov eax, dword [0x53b858]
push edi
test eax, eax
mov edi, ecx
je 0x406e93
mov eax, 0x53b85c
pop edi
add esp, 0x2090
ret
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
add edi, 0x64
push 0x5c
push edi
mov esi, eax
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
mov edi, eax
lea eax, [esp + 0x10]
push esi
push 0x50c180
push 0x1047
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIW]
add esp, 0x10
lea ecx, [esp + 0x10]
push edi
push ecx
call ebx
mov ebp, dword [sym.imp.MSVCRT.dll_wcslen]
mov esi, eax
test esi, esi
je 0x406eef
push edi
call ebp
lea esi, [esi + eax*2]
add esp, 4
test esi, esi
jne 0x406f0d
lea esi, [edi + 2]
lea edx, [esp + 0x10]
push esi
push edx
call ebx
mov edi, eax
test edi, edi
je 0x406f7c
push esi
call ebp
lea esi, [edi + eax*2]
add esp, 4
test esi, esi
je 0x406f7c
push 0x50c3cc
push esi
call ebx
test eax, eax
je 0x406f1e
lea esi, [eax + 4]
jmp 0x406f36
push 2
push 0x50c3c4
push esi
call dword [sym.imp.MSVCRT.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x406f36
add esi, 4
cmp word [esi], 0
je 0x406f7c
push esi
push 0x50c180
push 0x1047
push 0x53b85c
call dword [sym.imp.MSVCRT.dll__snwprintf]
push 0x53b85c
mov word [0x53d8ea], 0
call fcn.004a3860
push 0x53b85c
call fcn.004a3f60
push 0x53b85c
call fcn.004a3860
add esp, 0x1c
pop esi
pop ebp
pop ebx
mov dword [0x53b858], 1
mov eax, 0x53b85c
pop edi
add esp, 0x2090
ret
Function at 0x4070c0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x20c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
lea eax, [esi + 0x64]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcscpy]
lea edx, [esp + 0x18]
push edx
call fcn.00439140
lea eax, [esp + 0x1c]
push eax
call fcn.004a3930
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [esi + 0xc], eax
je 0x407264
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x407264
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 1
mov ecx, esi
call fcn.00406fa0
test eax, eax
mov dword [0x5b89c8], eax
jne 0x407150
push 0x64
call ebx
mov edx, edi
inc edi
cmp edx, 0x14
jb 0x407127
mov eax, dword [0x5b89c8]
test eax, eax
je 0x407264
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], 0
mov edx, dword [0x5b89c8]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
mov edi, dword [esp + 0x21c]
cmp word [edi], 0
jne 0x4071d9
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x4071b3
push str.PhoenixStudioTaiHang_Simple_Message
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push 1
push eax
mov dword [esi + 0x2c], eax
call fcn.004a6500
add esp, 8
mov ecx, dword [esi + 0x2c]
mov edx, dword [0x5b89c8]
push 0
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20c
ret 4
push 0x50c3ec
push edi
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x407235
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x40720c
push str.PhoenixStudioTaiHang_Simple_Message
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push 1
push eax
mov dword [esi + 0x2c], eax
call fcn.004a6500
add esp, 8
mov eax, dword [esi + 0x2c]
mov ecx, dword [0x5b89c8]
push 0x1e0000
push 0xffffffffffffffff
push eax
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20c
ret 4
push edi
mov ecx, esi
call fcn.00408b00
test eax, eax
je 0x407253
mov edx, dword [0x5b89c8]
push edi
push 0
push edx
call fcn.00447bc0
add esp, 0xc
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20c
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20c
ret 4
Function at 0x4074f0
Capabilities:
Get common file path
Move file

Disassembly:
sub esp, 0x410
push esi
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x212]
mov word [esp + 0x210], si
push 0x103
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x420]
stosw word es:[edi], ax
lea eax, [esp + 0x214]
push eax
push 0x50c448
push ecx
call fcn.00447310
add esp, 0x10
test eax, eax
je 0x40759e
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], si
rep stosd dword es:[edi], eax
lea edx, [esp + 8]
push edx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x50b79c
push 0x53b02c
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [esp + 8]
push 1
push eax
push 0x53ae24
call esi
push 2
lea ecx, [esp + 0x214]
push 0x53ae24
push ecx
call esi
lea edx, [esp + 8]
push 1
push edx
call fcn.004a4db0
add esp, 8
pop edi
pop esi
add esp, 0x410
ret 4

Function at 0x4075b0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x208
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
lea eax, [esp + 8]
push 0x103
push eax
push 0x50c448
push esi
call fcn.00447310
add esp, 0x10
test eax, eax
je 0x407639
cmp word [esp + 8], 0
je 0x407639
push 0
push 0x50c464
push esi
call fcn.00447280
add esp, 0xc
cmp eax, 1
jne 0x407628
lea ecx, [esp + 8]
push eax
push ecx
call fcn.00439a10
add esp, 8
pop edi
pop esi
add esp, 0x208
ret 4
lea edx, [esp + 8]
push edx
call fcn.00402e30
mov ecx, eax
call fcn.00429ac0
pop edi
pop esi
add esp, 0x208
ret 4
Function at 0x407650
Capabilities:
Set registry value

Disassembly:
sub esp, 0x41c
push esi
mov edx, ecx
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], si
rep stosd dword es:[edi], eax
mov ecx, edx
stosw word es:[edi], ax
call fcn.00408270
push eax
lea eax, [esp + 0x18]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov cx, word [0x53ada0]
xor eax, eax
mov word [esp + 0x228], cx
mov ecx, 0x81
lea edi, [esp + 0x22a]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x1c], esi
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_time]
lea eax, [esp + 0x24]
push esi
lea ecx, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], esi
call fcn.00486f80
mov eax, dword [esp + 0x24]
add esp, 0x1c
cmp eax, esi
je 0x40771b
lea edx, [esp + 0x21c]
push 0x103
push edx
push 0x50c520
push str.Main
push eax
call fcn.00487730
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push str.UsedTime
push str.Main
push ecx
call fcn.00487920
lea edx, [esp + 0x2c]
push esi
push edx
call fcn.00487170
add esp, 0x2c
mov edi, dword [esp + 0x428]
mov eax, dword [0x5b8078]
cmp edi, esi
je 0x40773f
cmp eax, esi
je 0x40775a
cmp dword [esp + 0x42c], esi
je 0x40775a
call fcn.004a6b40
jmp 0x40775a
cmp eax, esi
je 0x407751
cmp dword [esp + 0x42c], esi
jne 0x407751
call fcn.004a6b50
push esi
call fcn.0041e400
add esp, 4
cmp dword [0x5b8088], esi
je 0x407788
cmp edi, esi
je 0x407788
lea eax, [esp + 0x10]
push 4
push eax
push 4
push str.160A
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZones3
push SysReAllocStringLen
mov dword [esp + 0x28], esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
pop edi
pop esi
add esp, 0x41c
ret 8

Function at 0x407d50
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov dword [esi + 0x60], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x5c], eax
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x407bf0
push 0
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x407d92
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00407e60
pop esi
pop ecx
ret 4

Function at 0x407e10
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 1
mov esi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [esi + 4], eax
je 0x407e56
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push esi
push 0x407db0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x407e56
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ecx
ret
Function at 0x407fc0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x470
push ebx
push esi
xor ebx, ebx
mov esi, ecx
xor eax, eax
push ebx
mov dword [esp + 0x20], eax
push ebx
lea ecx, [esp + 0x20]
push 1
mov dword [esp + 0x2c], eax
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], 1
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, ebx
mov dword [esi + 0x20], eax
je 0x4080e1
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x6e]
mov word [esp + 0x6c], bx
mov word [esp + 0x274], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x276]
lea edx, [esp + 0x6c]
rep stosd dword es:[edi], eax
push 0x103
push edx
push ebx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov eax, dword [esi + 0x20]
push 0x50c45c
push eax
push 0x50c448
push 0xc
lea ecx, [esp + 0x80]
push str._tp:
push ecx
push str._s__s_d__s_d__s_d
lea edx, [esp + 0x294]
push 0x103
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x54]
add esp, 0x28
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
lea edx, [esp + 0x28]
push ecx
mov dword [esp + 0x14], eax
push edx
push ebx
mov dword [esp + 0x20], eax
push ebx
push ebx
mov dword [esp + 0x2c], eax
push 1
push ebx
lea eax, [esp + 0x290]
push ebx
push eax
push ebx
mov dword [esp + 0x50], 0x44
mov dword [esp + 0x7c], 0x80
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
je 0x4080e1
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
pop esi
pop ebx
add esp, 0x470
ret

Function at 0x4080f0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00409d30
test eax, eax
je 0x40812a
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push esi
push 0x409b40
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x40812a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ecx
ret
Function at 0x408160
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [0x5b8070]
sub esp, 0x28
push esi
push edi
xor edi, edi
mov esi, ecx
cmp eax, edi
jne 0x40817a
pop edi
xor eax, eax
pop esi
add esp, 0x28
ret
push edi
mov dword [esp + 0x24], 0x4df0c730
mov word [esp + 0x28], 0xdf9d
mov word [esp + 0x2a], 0x4ae3
mov byte [esp + 0x2c], 0x91
mov byte [esp + 0x2d], 0x53
mov byte [esp + 0x2e], 0xaa
mov byte [esp + 0x2f], 0x6b
mov byte [esp + 0x30], 0x82
mov byte [esp + 0x31], 0xe9
mov byte [esp + 0x32], 0x79
mov byte [esp + 0x33], 0x5a
mov dword [esp + 0x14], 0x8be2d872
mov word [esp + 0x18], 0x86aa
mov word [esp + 0x1a], 0x4d47
mov byte [esp + 0x1c], 0xb7
mov byte [esp + 0x1d], 0x76
mov byte [esp + 0x1e], 0x32
mov byte [esp + 0x1f], 0xcc
mov byte [esp + 0x20], 0xa4
mov byte [esp + 0x21], 0xc
mov byte [esp + 0x22], 0x70
mov byte [esp + 0x23], 0x18
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
push eax
push ecx
push 3
lea edx, [esp + 0x2c]
push edi
push edx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x40825e
mov eax, dword [esp + 8]
cmp eax, edi
je 0x40825e
lea edx, [esp + 0xc]
add esi, 0x26c
push edx
mov dword [esp + 0x10], edi
mov ecx, dword [eax]
push 1
push esi
push eax
call dword [ecx + 0x28]
test eax, eax
jne 0x408254
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x408254
mov ecx, dword [eax]
push eax
mov edi, 1
call dword [ecx + 8]
mov eax, dword [esp + 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
pop edi
pop esi
add esp, 0x28
ret

Function at 0x408270
Capabilities:
Set file attributes

Disassembly:
cmp word [0x53e938], 0
jne 0x4082ce
push 0x103
push 0x53e938
call fcn.004096a0
push 0
push 0x53e938
mov dword [0x5ef9c4], eax
call fcn.00438f20
add esp, 8
test eax, eax
je 0x4082b7
push 0x80
push 0x53e938
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 0x53e938
ret
push 0x53e938
call fcn.00439330
push 0x53e938
call fcn.00448d40
add esp, 8
mov eax, 0x53e938
ret