joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460850
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
sub esp, 0x66c
mov eax, dword [0x4ac40c]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x680]
push str..log
mov ebp, ecx
push str.360_tmp_
lea ebx, [ebp + 0x430]
push ebx
push str._s_s_s
lea ecx, [esp + 0x480]
xor eax, eax
push 0x104
push ecx
mov word [edi], ax
call fcn.00407aa8
add esp, 0x18
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [esp + 0x10], esi
cmp esi, 0xffffffff
je 0x4609bb
test byte [esp + 0x18], 0x10
jne 0x46099a
lea ecx, [esp + 0x44]
push ecx
push ebx
push str._s_s
lea edx, [esp + 0x274]
push 0x104
push edx
call fcn.00407aa8
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
add esp, 0x14
push eax
push ecx
mov ecx, ebp
call fcn.00460000
test eax, eax
je 0x46099a
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x26c]
push eax
mov ecx, ebp
call fcn.0045ff10
test eax, eax
je 0x46099a
lea esi, [esp + 0x268]
mov edx, 0x104
mov eax, edi
sub esi, edi
nop
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x460950
movzx ecx, word [esi + eax]
test cx, cx
je 0x460950
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x460930
jmp 0x460954
test edx, edx
jne 0x460957
sub eax, 2
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
call fcn.0045ff90
mov ecx, dword [esp + 0x34]
push 1
push 0
push 0
push ecx
call fcn.00446b00
mov ecx, dword [esp + 0x38]
xor esi, esi
add eax, ecx
adc edx, esi
test eax, eax
jne 0x4609b0
test edx, edx
jne 0x4609b0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x10]
xor edx, edx
mov word [edi], dx
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4608c3
jmp 0x4609b4
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x678]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004420f4
add esp, 0x66c
ret 4

Function at 0x4609e0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov eax, ebx
push edi
mov edi, ecx
xor ebp, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4609f2
sub eax, edx
sar eax, 1
lea eax, [eax + eax*2]
add eax, eax
push eax
mov dword [esp + 0x20], eax
call fcn.0042493b
add esp, 4
mov esi, eax
lea eax, [esp + 0x1c]
push eax
push esi
push ebx
mov ecx, edi
call fcn.00460180
mov ebx, dword [esp + 0x1c]
cmp ebx, 1
jbe 0x460a2d
dec ebx
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
push ecx
push ebx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x460a6b
cmp ebx, dword [esp + 0x10]
jne 0x460a6b
push esi
call fcn.00424946
mov eax, dword [esp + 0x14]
add esp, 4
add dword [edi + 0xb64], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 8
push esi
call fcn.00424946
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x460a80
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
push 0
lea eax, [esp + 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x460a9f
test byte [esp], 7
je 0x460a9f
mov eax, 1
pop ecx
ret
call fcn.004602a0
pop ecx
ret

Function at 0x460de0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x214
mov eax, dword [0x4ac40c]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
push edi
push 0x206
mov edi, ecx
xor ebx, ebx
lea ecx, [esp + 0x1e]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x24], ax
call fcn.00441830
add esp, 0xc
push str.i18n.dll
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov esi, eax
cmp esi, ebx
jne 0x460eb9
push 0x104
lea edx, [esp + 0x1c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x460e55
xor eax, eax
jmp 0x460f34
push str...i18n.dll
lea eax, [esp + 0x1c]
push eax
call ebp
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x18]
push ecx
call esi
test eax, eax
jne 0x460ea0
push str.....i18n.dll
lea edx, [esp + 0x1c]
push edx
call ebp
lea eax, [esp + 0x18]
push eax
call esi
test eax, eax
jne 0x460ea0
push str.......i18n.dll
lea ecx, [esp + 0x1c]
push ecx
call ebp
lea edx, [esp + 0x18]
push edx
call esi
test eax, eax
je 0x460e4e
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.00460dc0
mov esi, eax
xor ebx, ebx
test esi, esi
setne bl
test esi, esi
je 0x460e4e
push str.CreateI18N
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x460f12
lea ecx, [esp + 0x10]
push ecx
call eax
add esp, 4
test eax, eax
je 0x460f12
push 0x489fc8
lea edx, [esp + 0x1c]
push edx
call ebp
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
test eax, eax
je 0x460f12
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
push eax
call edx
mov dword [edi + 0xb6c], eax
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x460f21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call edx
test esi, esi
je 0x460f30
test ebx, ebx
je 0x460f30
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004420f4
add esp, 0x214
ret
Function at 0x461020
Capabilities:
Delete file

Disassembly:
mov eax, 0x1014
call fcn.00443860
mov eax, dword [0x4ac40c]
xor eax, esp
mov dword [esp + 0x1010], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x1024]
push edi
mov esi, ecx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push ebx
push 4
push ebx
push 3
push 0x12019f
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46106e
xor eax, eax
jmp 0x461109
lea eax, [esp + 0xc]
push eax
push 0
call fcn.00443c2a
add esp, 4
push eax
mov ecx, esi
call fcn.0045fce0
mov ecx, dword [esp + 0x1028]
mov edx, dword [esi + 0xb6c]
push ecx
push str.log_file_is_too_big_to_merge_
push edx
lea eax, [esi + 0xa48]
push eax
movzx eax, word [esp + 0x28]
lea ecx, [esi + 0x230]
push ecx
movzx ecx, word [esp + 0x2a]
lea edx, [esi + 0x30]
push edx
movzx edx, word [esp + 0x2c]
push eax
movzx eax, word [esp + 0x2e]
push ecx
movzx ecx, word [esp + 0x2e]
push edx
movzx edx, word [esp + 0x30]
push eax
push ecx
push edx
push str._t_4d__02d__02d__02d:_02d:_02d__p_s__c_s__m_s__lan_d__warning_s__logfile_len_d_bytes__n
lea eax, [esp + 0x50]
push 0x800
push eax
call fcn.00407aa8
add esp, 0x3c
lea ecx, [esp + 0x1c]
push ecx
push edi
mov ecx, esi
call fcn.004609e0
test eax, eax
je 0x4610fc
mov ebx, 1
test edi, edi
je 0x461107
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [esp + 0x101c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004420f4
add esp, 0x1014
ret 8

Function at 0x461130
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x41c
mov eax, dword [0x4ac40c]
xor eax, esp
mov dword [esp + 0x418], eax
push esi
push edi
mov edi, dword [esp + 0x428]
mov esi, ecx
mov dword [esp + 8], 0
test edi, edi
je 0x46124b
xor eax, eax
cmp ax, word [edi]
je 0x46124b
push 1
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x220]
push edx
mov ecx, esi
call fcn.004605c0
xor eax, eax
cmp ax, word [esp + 0x218]
jne 0x4611bf
lea ecx, [esp + 0x218]
push ecx
mov ecx, esi
call fcn.00460740
test eax, eax
je 0x46124b
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x21c]
push eax
mov ecx, esi
call fcn.0045ff10
test eax, eax
je 0x46124b
push 0x491cb8
push edi
push 0x485588
lea ecx, [esp + 0x1c]
push 0x104
push ecx
call fcn.00407aa8
add esp, 0x14
push 1
lea edx, [esp + 0x14]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x46123f
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.0045fd70
test eax, eax
je 0x46123f
mov eax, dword [esp + 0xc]
cmp eax, 0x300000
jbe 0x46121f
push eax
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.00461020
test eax, eax
je 0x461234
mov ecx, dword [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.0045fdf0
test eax, eax
je 0x46123f
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.0045ff90
mov ecx, dword [esp + 0x420]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.004420f4
add esp, 0x41c
ret 4
Function at 0x461860
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0xa34
mov eax, dword [0x4ac40c]
xor eax, esp
mov dword [esp + 0xa30], eax
push esi
push edi
mov edi, ecx
push str.ctrl.lck
lea eax, [edi + 0x430]
push eax
push str._s_s
lea ecx, [esp + 0x83c]
push 0x104
push ecx
xor esi, esi
call fcn.00407aa8
add esp, 0x14
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x834]
push eax
mov ecx, edi
call fcn.0045ff10
test eax, eax
jne 0x4618d2
pop edi
lea eax, [esi + 2]
pop esi
mov ecx, dword [esp + 0xa30]
xor ecx, esp
call fcn.004420f4
add esp, 0xa34
ret
push 0
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x220]
push edx
mov ecx, edi
call fcn.004605c0
test eax, eax
jne 0x461963
lea eax, [esp + 0x420]
push eax
mov ecx, edi
call fcn.00460850
test eax, eax
je 0x461959
xor ecx, ecx
cmp cx, word [esp + 0x420]
je 0x461959
lea eax, [esp + 0x628]
lea esi, [esp + 0x420]
mov ecx, eax
mov edx, 0x104
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x46193d
movzx ecx, word [esi + eax]
test cx, cx
je 0x46193d
add eax, 2
sub edx, 1
jne 0x461922
lea eax, [esp + 0x420]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.00461270
test eax, eax
jne 0x4619eb
mov esi, 2
jmp 0x461a07
xor edx, edx
cmp dx, word [esp + 0x218]
je 0x461959
push 0x491e94
lea eax, [esp + 0x21c]
push eax
push 0x485588
lea ecx, [esp + 0x1c]
push 0x104
push ecx
call fcn.00407aa8
add esp, 0x14
lea edx, [esp + 8]
push edx
mov ecx, edi
call fcn.0045ff90
push 1
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x461a07
lea eax, [esp + 0x628]
lea esi, [esp + 0x218]
mov ecx, eax
mov edx, 0x104
sub esi, ecx
nop
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x4619eb
movzx ecx, word [esi + eax]
test cx, cx
je 0x4619eb
add eax, 2
sub edx, 1
jne 0x4619d0
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.004607b0
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, 1
lea edx, [esp + 0xc]
push edx
mov ecx, edi
call fcn.0045ff90
mov ecx, dword [esp + 0xa38]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.004420f4
add esp, 0xa34
ret

Function at 0x463920
Capabilities:
Parse pe header

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, eax
push esi
push edi
test ebx, ebx
je 0x463964
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x463964
mov edi, dword [ebx + 0x3c]
mov eax, edi
cdq
mov esi, eax
mov ecx, edx
add esi, 0xf8
mov eax, ebp
cdq
adc ecx, 0
cmp edx, ecx
jb 0x463964
ja 0x463958
cmp eax, esi
jbe 0x463964
cmp dword [edi + ebx], 0x4550
lea ecx, [edi + ebx]
je 0x46396b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
movzx edx, word [ecx + 4]
mov esi, 0x14c
xor eax, eax
cmp dx, si
jne 0x46398b
push ebp
mov eax, ecx
call fcn.004637e0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
mov esi, 0x8664
cmp dx, si
je 0x46399f
mov esi, 0x200
cmp dx, si
jne 0x4639aa
push ebx
mov eax, ebp
call fcn.00463860
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4665d0
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 4], 0
jne 0x4665ea
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 4]
inc dword [esi + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb eax, eax
inc eax
pop esi
ret
Function at 0x46b740
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x46b77d
mov edx, dword [esp + 4]
test edx, edx
je 0x46b77d
mov ecx, dword [esp + 8]
test ecx, ecx
jle 0x46b77d
push esi
push 0
lea esi, [esp + 0xc]
push esi
push ecx
push edx
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
test eax, eax
je 0x46b77d
mov eax, dword [esp + 4]
ret 8
or eax, 0xffffffff
ret 8

Function at 0x46b790
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x46b7a0
or eax, eax
or edx, 0xffffffff
pop ecx
ret
push esi
lea ecx, [esp + 4]
push ecx
push eax
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 4]
push 1
push 0
push 0
push edx
mov esi, eax
call fcn.00446b00
xor ecx, ecx
add eax, esi
adc edx, ecx
pop esi
pop ecx
ret
Function at 0x46c7d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x4ac40c]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [esp + 0x218]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov dword [esp + 0x10], 0
mov word [esp + 0x14], ax
call fcn.00441830
add esp, 0xc
push 0
push 0x25
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.0046c0e0
mov ecx, dword [esp + 0x210]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004420f4
add esp, 0x210
ret 4

Function at 0x46c850
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x4ac40c]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [esp + 0x218]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov dword [esp + 0x10], 0
mov word [esp + 0x14], ax
call fcn.00441830
add esp, 0xc
push 0
push 0x24
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.0046c0e0
mov ecx, dword [esp + 0x210]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004420f4
add esp, 0x210
ret 4
Function at 0x46c9a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x481fc1
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4ac40c]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ac40c]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
mov eax, dword [0x4add40]
mov edi, ecx
mov dword [esp + 0x14], eax
lea ebx, [edi + 0x1da0]
push ebx
lea ecx, [esp + 0x18]
push str._s.zip
push ecx
mov dword [esp + 0x240], 0
call fcn.0046c980
add esp, 0xc
lea edx, [esp + 0x20]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [0x4add40]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push 0x485588
push eax
mov byte [esp + 0x244], 1
call fcn.0046c980
mov ebp, dword [esp + 0x28]
push 2
push 0
push ebp
mov byte [esp + 0x250], 2
call fcn.00471400
mov esi, eax
add esp, 0x1c
mov dword [esp + 0x1c], esi
test esi, esi
je 0x46caf6
lea eax, [edi + 0x1de4]
test eax, eax
je 0x46ca88
test ebx, ebx
je 0x46ca88
push 2
push 0
push eax
push ebx
push esi
call fcn.00472540
add esp, 0x14
push esi
call fcn.00472660
add esp, 4
lea ecx, [esp + 0x18]
push ecx
lea ecx, [edi + 0x2e04]
mov dword [esp + 0x20], 0
call fcn.0046c140
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [ebp - 0xc]
cmp edx, dword [0x4add3c]
je 0x46cacd
lea esi, [ebp - 0xc]
push esi
call edi
test eax, eax
jg 0x46cacd
push esi
call fcn.00424946
add esp, 4
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4add3c]
je 0x46caef
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x46caef
push esi
call fcn.00424946
add esp, 4
mov eax, 1
jmp 0x46cb3e
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [ebp - 0xc]
cmp edx, dword [0x4add3c]
je 0x46cb1a
lea esi, [ebp - 0xc]
push esi
call edi
test eax, eax
jg 0x46cb1a
push esi
call fcn.00424946
add esp, 4
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4add3c]
je 0x46cb3c
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x46cb3c
push esi
call fcn.00424946
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004420f4
add esp, 0x224
ret
Function at 0x46d380
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x48216b
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ac40c]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x2e08]
xor esi, esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push eax
push esi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
push ebx
call fcn.0042493b
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x46d570
push ebx
push esi
push ebp
call fcn.00441830
mov eax, dword [edi + 0x2e08]
add esp, 0xc
push esi
push esi
push ebx
push ebp
push 0xffffffffffffffff
push eax
push esi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [edi + 0x2e10]
cmp eax, 1
je 0x46d413
cmp eax, 3
jne 0x46d431
push 1
push 0
push ebp
push str.attribute
lea eax, [esp + 0x30]
push 0
push eax
call fcn.0046d350
add esp, 0x18
mov esi, 1
mov eax, dword [edi + 0x2e20]
push 0
push 0
test eax, eax
je 0x46d451
push eax
push str.type
lea ecx, [esi + esi*4]
push 0
lea edx, [esp + ecx*4 + 0x34]
push edx
jmp 0x46d462
push 0
push str.specimen
lea eax, [esi + esi*4]
push 0
lea ecx, [esp + eax*4 + 0x34]
push ecx
call fcn.0046d350
add esp, 0x18
lea edx, [esp + 0x14]
push edx
mov ecx, edi
inc esi
call fcn.0046cb70
mov eax, dword [esp + 0x14]
push 0
push 0
push eax
push 0x494bac
lea ecx, [esi + esi*4]
lea edx, [esp + ecx*4 + 0x30]
push 0
push edx
mov dword [esp + 0x108], 0
call fcn.0046d350
mov eax, dword [edi + 0x2e10]
add esp, 0x18
inc esi
cmp eax, 1
je 0x46d4b3
cmp eax, 2
jne 0x46d4d6
mov eax, dword [edi + 0x2e04]
push 0
push 0
push eax
push str.specimen_cont
lea ecx, [esi + esi*4]
lea edx, [esp + ecx*4 + 0x30]
push 2
push edx
call fcn.0046d350
add esp, 0x18
inc esi
push 0
push 0
call fcn.0046e390
push eax
push 0x4846cc
lea eax, [esi + esi*4]
lea ecx, [esp + eax*4 + 0x30]
push 0
push ecx
call fcn.0046d350
mov eax, dword [edi + 0x2e0c]
add esp, 0x18
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x34]
push ecx
inc esi
push esi
lea edx, [esp + 0x40]
push edx
push eax
lea ecx, [edi + 0x10]
call fcn.00474b90
mov edi, dword [edi + 0x2e04]
cmp word [edi], 0
mov esi, eax
je 0x46d536
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebp
call fcn.00424946
mov eax, dword [esp + 0x18]
add esp, 4
lea ecx, [eax - 0xc]
test esi, esi
jne 0x46d574
cmp ecx, dword [0x4add3c]
je 0x46d570
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x46d570
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00424946
add esp, 4
xor eax, eax
jmp 0x46d59c
cmp ecx, dword [0x4add3c]
je 0x46d59a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x46d59a
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00424946
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe0
ret
Function at 0x46e160
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x41c
mov eax, dword [0x4ac40c]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [0x4b4860]
push ebx
xor ebx, ebx
push edi
mov edi, dword [esp + 0x428]
cmp dword [eax - 8], ebx
jne 0x46e2a0
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.00441830
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22e]
push eax
mov word [esp + 0x230], dx
call fcn.00441830
add esp, 0x18
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
push 0x484134
push 0x4845d0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0x208
mov dword [esp + 0x20], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp word [esp + 0x10], bx
jne 0x46e269
push 0x208
lea ecx, [esp + 0x21c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x46e262
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrRChrW]
push 0x5c
push ebx
lea edx, [esp + 0x224]
push edx
call esi
test eax, eax
je 0x46e261
xor ecx, ecx
push 0x5c
push ecx
lea edx, [esp + 0x224]
push edx
mov word [eax], cx
call esi
test eax, eax
je 0x46e261
lea edx, [esp + 0x21c]
xor ecx, ecx
push edx
mov word [eax], cx
push 0x208
lea eax, [esp + 0x1c]
push eax
call fcn.00402ef4
pop esi
cmp word [esp + 0x10], bx
je 0x46e2cb
mov edx, dword [esp + 0x42c]
lea ecx, [esp + 0x10]
push ecx
push str._s360verify.dll
push edx
push edi
call fcn.00403161
add esp, 0x10
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.004420f4
add esp, 0x41c
ret
push eax
mov eax, dword [esp + 0x430]
push eax
push edi
call fcn.00402ef4
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.004420f4
add esp, 0x41c
ret
mov ecx, dword [esp + 0x420]
pop edi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004420f4
add esp, 0x41c
ret
Function at 0x46fe50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x46fe5b
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push esi
not eax
cmp edx, 8
jb 0x46ff39
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x494dc0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x494dc0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x494dc0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x494dc0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x494dc0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x494dc0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x494dc0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x494dc0]
inc ecx
sub edx, 8
sub esi, 1
jne 0x46fe75
pop edi
test edx, edx
je 0x46ff5b
lea ecx, [ecx]
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x494dc0]
inc ecx
sub edx, 1
jne 0x46ff40
not eax
pop esi
ret