joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4523b0
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
inc dword [0x4c9990]
push ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], ebx
call fcn.00429550
lea ecx, [ebx + 0x164]
call fcn.00411d53
test eax, eax
je 0x4523e5
call fcn.00429561
xor al, al
jmp 0x45258a
test dword [ebp + 8], 0x200
push esi
push edi
jne 0x452518
test byte [ebx + 0x43], 0x80
jne 0x452518
call fcn.00411af0
mov ecx, eax
call fcn.00411a76
mov edi, eax
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x45240f
sub eax, edx
sar eax, 1
test dword [ebp + 8], 0x100
mov esi, eax
jne 0x45244f
push esi
push edi
push dword [ebp - 4]
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x45244f
mov ecx, dword [ebp - 4]
call fcn.004436a5
sub eax, dword [ebp - 4]
sar eax, 1
inc esi
cmp eax, esi
jbe 0x452518
push edi
mov ecx, ebx
call fcn.004052c7
mov edi, dword [sym.imp.KERNEL32.DLL_CopyFileW]
push 0
mov esi, eax
push esi
push dword [ebp - 4]
call edi
test eax, eax
jne 0x4524fd
mov ecx, esi
call fcn.004462f9
test al, al
je 0x452486
push 0
push esi
push dword [ebp - 4]
call edi
test eax, eax
jne 0x4524fd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
call fcn.00429561
mov edi, dword [0x4cf9c8]
mov ecx, ebx
call fcn.00429593
push eax
push ebx
push esi
push dword [ebp - 4]
push edi
call fcn.004891ee
add esp, 0x14
test byte [ebp + 8], 4
jne 0x4524da
push esi
push dword [0x4cf9c4]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 0x35
call fcn.00450a13
add esp, 0xc
mov edi, eax
jmp 0x4524dd
push 2
pop edi
mov ecx, esi
call fcn.004444fe
cmp edi, 2
je 0x4524f6
call fcn.00429550
mov ebx, dword [ebp - 8]
jmp 0x4523f4
xor al, al
jmp 0x452588
push 0x80
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push esi
mov ecx, ebx
call fcn.0040527a
mov ecx, esi
call fcn.004444fe
inc dword [0x4c9970]
mov eax, dword [ebx + 0x1cc]
test eax, eax
je 0x45253f
mov ecx, dword [0x4c3a18]
push eax
call fcn.00402f8f
push eax
push 7
mov edx, ebx
pop ecx
call fcn.0043a4cd
mov edx, dword [ebp + 8]
shr edx, 1
and dl, 1
mov ecx, ebx
call fcn.00413498
test byte [ebp + 8], 0x40
je 0x45255d
mov ecx, ebx
call fcn.0040f968
jmp 0x45256c
test byte [ebx + 0x43], 0x80
jne 0x45256c
push 0
mov ecx, ebx
call fcn.0040d7d9
test byte [ebp + 8], 0x10
je 0x452576
or dword [ebx + 0x50], 0xffffffff
push 0
xor edx, edx
xor ecx, ecx
call fcn.0041307d
call fcn.00429561
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4530e9
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x5c]
call fcn.0045334c
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.BtAppInstallTail
lea ecx, [ebp - 0x5c]
call fcn.0044f518
lea ecx, [ebp - 0x5c]
call fcn.00453303
lea edi, [esi + 0x24]
push edi
call dword [0x4c72f0]
cmp eax, 5
je 0x45312f
cmp eax, 3
jne 0x45314c
push ebx
push dword [esi + 0x74]
call dword [0x4c72dc]
push 2
push ebx
push edi
call dword [0x4c72d0]
push ebx
push 2
call dword [0x4c72dc]
push 0x14
pop edx
lea ecx, [ebp - 0x28]
call fcn.004434b5
lea eax, [ebp - 0x28]
push eax
push 0x4900b8
lea eax, [ebp - 0x88]
push 0x29
push eax
call fcn.0043c508
add esp, 0x10
lea eax, [esi + 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.00401980
mov ecx, dword [ebp - 8]
cmp ecx, ebx
je 0x453190
xor eax, eax
cmp word [ecx], bx
sete al
cmp al, bl
je 0x4531c2
mov eax, dword [esi]
cmp eax, ebx
jne 0x45319b
mov eax, 0x48f94c
push 0x5c
push eax
call sub.MSVCRT.dll_wcsrchr
pop ecx
pop ecx
cmp eax, ebx
je 0x4531ae
add eax, 2
jmp 0x4531b9
mov eax, dword [esi]
cmp eax, ebx
jne 0x4531b9
mov eax, 0x48f94c
push eax
lea ecx, [ebp - 8]
call fcn.004019ea
mov edx, dword [ebp - 8]
cmp edx, ebx
jne 0x4531ce
mov edx, 0x48f94c
push edi
or edi, 0xffffffff
push edi
push edi
lea ecx, [ebp - 0x28]
call fcn.00423647
push str._MSIExecute
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x45329c
cmp eax, edi
je 0x45329c
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [esi + 8]
mov edi, 0x48f94c
cmp eax, ebx
jne 0x453212
mov eax, edi
lea ecx, [ebp - 0x88]
push ecx
push eax
push str.BTAPPS__s__PAIRINGKEY__S_
call fcn.0043c7dc
add esp, 0xc
lea ecx, [esi + 0x24]
mov dword [ebp - 0x14], eax
call fcn.0045309e
push ebx
push dword [esi + 0x74]
call dword [0x4c72dc]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jne 0x453245
mov eax, edi
mov esi, dword [esi]
cmp esi, ebx
jne 0x45324d
mov esi, edi
push eax
push esi
call dword [0x4c72d4]
push ebx
push 2
mov esi, eax
call dword [0x4c72dc]
call dword [0x4c7320]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp esi, ebx
jne 0x45328d
lea ecx, [ebp - 0x5c]
call fcn.004533a7
push dword [ebp - 0x58]
call dword [sym.imp.USER32.dll_DestroyWindow]
call fcn.00452b6e
mov ecx, dword [ebp - 0x14]
call fcn.004444fe
jmp 0x4532a4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
cmp byte [ebp - 4], bl
je 0x4532b1
mov ecx, dword [ebp - 8]
call fcn.004444fe
lea ecx, [ebp - 0x5c]
call fcn.0045336f
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4538e2
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x530
push ebx
mov edx, 0x49b5b0
lea ecx, [ebp - 0x30]
xor ebx, ebx
call fcn.00445ba0
test al, al
jne 0x453909
mov eax, str.cant_load_wininet.dll
jmp 0x453aea
push esi
push ebx
push ebx
push ebx
push ebx
push 0x4906a4
call dword [ebp - 0x30]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x453927
mov esi, str.InternetOpen_failed
jmp 0x453ae7
push ebx
push ebx
push 3
mov eax, 0x49013b
push eax
push eax
push 0x50
push str.xxxxxx.utorrent.xxx
push dword [ebp - 8]
call dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x453950
mov esi, str.InternetConnect_failed
jmp 0x453ae1
push edi
call sub.MSVCRT.dll__getpid
mov esi, eax
call fcn.004549d3
push dword [ebp + 0xc]
movzx ecx, byte [ebp + 0x14]
push ecx
push esi
push eax
push 0x62d6
push str._crash.php_ver_dUh_sp_dUpr_dUs_dU
mov dword [ebp - 0x14], eax
mov edi, 0x500
lea eax, [ebp - 0x530]
push edi
push eax
call fcn.0043c508
add esp, 0x20
mov esi, eax
cmp byte [0x4c86b8], bl
je 0x4539b4
push 0x4c86b8
mov eax, edi
sub eax, esi
push 0x49b760
push eax
lea eax, [ebp + esi - 0x530]
push eax
call fcn.0043c508
add esp, 0x10
add esi, eax
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x4539dc
cmp byte [eax], bl
je 0x4539dc
push eax
mov eax, edi
sub eax, esi
push str.dl_s
push eax
lea eax, [ebp + esi - 0x530]
push eax
call fcn.0043c508
add esp, 0x10
add esi, eax
mov eax, edi
sub eax, esi
push str.wm
push eax
lea eax, [ebp + esi - 0x530]
push eax
call fcn.0043c508
add esi, eax
mov edx, edi
add esp, 0xc
sub edx, esi
lea ecx, [ebp + esi - 0x530]
call fcn.0041e06f
mov ecx, dword [ebp - 0x14]
call fcn.004444fe
mov esi, dword [ebp + 8]
mov eax, str.POST
cmp esi, ebx
jne 0x453a21
mov eax, 0x4933b0
push ebx
push 0x4000000
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x530]
push ecx
push eax
push dword [ebp - 0xc]
call dword [ebp - 0x28]
mov edi, eax
cmp edi, ebx
jne 0x453a48
mov esi, str.HttpOpenRequest_failed
jmp 0x453ada
mov eax, str.Content_type:_application_binary
cmp esi, ebx
jne 0x453a56
mov eax, 0x49013b
mov ecx, esi
neg ecx
sbb ecx, ecx
and ecx, dword [ebp + 0xc]
push ecx
push esi
push 0xffffffffffffffff
push eax
push edi
call dword [ebp - 0x24]
test eax, eax
jne 0x453a73
mov esi, str.HttpSendRequest_failed
jmp 0x453ad6
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x20000013
push edi
mov dword [ebp - 4], 4
call dword [ebp - 0x1c]
test eax, eax
jne 0x453a97
mov esi, str.HttpQueryInfo_failed
jmp 0x453ad6
cmp dword [ebp - 0x10], 0xc8
je 0x453ad4
push dword [ebp - 0x10]
mov esi, 0x4c8ab8
push str.Error__d_:
push 0x64
push esi
call fcn.0043c508
add esp, 0x10
push 0x64
pop ecx
sub ecx, eax
push ebx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
push ecx
lea eax, [eax + 0x4c8ab8]
push eax
push 0x14
push edi
call dword [ebp - 0x1c]
jmp 0x453ad6
mov esi, ebx
push edi
call dword [ebp - 0x20]
push dword [ebp - 0xc]
call dword [ebp - 0x20]
pop edi
push dword [ebp - 8]
call dword [ebp - 0x20]
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x453b91
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 0x44
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x5c]
push edi
push eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
call sub.MSVCRT.dll_memset
mov ebx, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x5c], esi
cmp ebx, edi
je 0x453bf7
mov esi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push 2
push 1
push edi
lea eax, [ebp + 0xc]
push eax
call esi
push eax
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
test eax, eax
je 0x453be0
mov eax, dword [ebp + 0xc]
or dword [ebp - 0x30], 0x100
or dword [ebp - 0x30], 1
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 8]
xor eax, eax
push edi
cmp ebx, edi
setne al
push edi
push eax
push edi
push edi
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp + 0xc], eax
cmp eax, edi
je 0x453c3f
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x453c35
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
jmp 0x453c3a
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x14]
call esi
cmp ebx, edi
je 0x453c48
push dword [ebp - 0x1c]
call esi
xor eax, eax
cmp dword [ebp + 0xc], edi
pop edi
pop esi
setne al
pop ebx
leave
ret 0xc

Function at 0x453eb0
Capabilities:
Create process on windows

Disassembly:
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.00411af0
cmp byte [eax + 0x11d], 0
push esi
je 0x453ecc
push str._AUTOUPDATE___s___1
jmp 0x453ed1
push str._AUTOUPDATE___s_
call fcn.0043c769
pop ecx
pop ecx
push 1
push 0
push eax
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
pop edi
mov al, cl
pop esi
ret

Function at 0x453f29
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x410]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push 0
push 0x20
lea edx, [ebp - 0x208]
xor ecx, ecx
call fcn.00468fb6
test eax, eax
je 0x453f92
lea eax, [ebp - 0x208]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x453f66
sub eax, edx
sar eax, 1
cmp eax, 0xa
jbe 0x453f92
lea edx, [ebp - 0x208]
lea ecx, [ebp - 0x410]
call fcn.0043a9b3
test al, al
je 0x453f92
mov al, 1
jmp 0x453fe5
lea eax, [ebp - 0x208]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
je 0x453fe3
lea edx, [ebp - 0x208]
push esi
mov ecx, edx
call fcn.0046926e
lea eax, [ebp - 0x208]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x453fbb
sub eax, edx
sar eax, 1
cmp eax, 0xa
jbe 0x453fe3
lea edx, [ebp - 0x208]
lea ecx, [ebp - 0x410]
call fcn.0043a9b3
test al, al
jne 0x453f8e
xor al, al
pop esi
leave
ret
Function at 0x453fe9
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push esi
push 0x104
lea eax, [ebp - 0x618]
push eax
push str.COMSPEC
mov esi, ecx
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
test eax, eax
je 0x45415b
push ebx
push edi
push 2
xor eax, eax
pop ebx
movzx ecx, word [eax + str.ping__n_2_127.0.0.1_r_n]
mov word [ebp + eax - 0x410], cx
add eax, ebx
test cx, cx
jne 0x45401b
mov eax, esi
mov edx, esi
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x454035
sub eax, edx
lea edi, [ebp - 0x410]
dec edi
dec edi
mov cx, word [edi + 2]
add edi, ebx
test cx, cx
jne 0x454049
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
call fcn.004123d6
lea edx, [ebp - 0x208]
mov esi, eax
sub edx, eax
movzx edi, word [esi]
mov word [edx + esi], di
add esi, ebx
test di, di
jne 0x454073
mov ecx, eax
call fcn.004444fe
lea edi, [ebp - 0x208]
dec edi
dec edi
mov ax, word [edi + 2]
add edi, ebx
test ax, ax
jne 0x454090
mov esi, str..bat
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 7
pop edx
lea ecx, [ebp - 0x208]
movsw word es:[edi], word [esi]
call fcn.004454b8
mov esi, eax
lea eax, [ebp - 0x410]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x4540bd
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x410]
call fcn.0043b312
mov edx, eax
mov ecx, esi
call fcn.00445522
mov ecx, esi
call fcn.004454e6
lea edi, [ebp - 0x618]
dec edi
dec edi
mov ax, word [edi + 2]
add edi, ebx
test ax, ax
jne 0x4540ef
mov esi, str.__C
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x208]
movsw word es:[edi], word [esi]
mov edx, eax
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x45410b
sub eax, edx
lea edi, [ebp - 0x618]
dec edi
dec edi
mov cx, word [edi + 2]
add edi, ebx
test cx, cx
jne 0x45411f
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [ebp - 0x618]
call fcn.0043b312
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
push 0x1f
pop ecx
cmp ecx, eax
sbb eax, eax
pop edi
neg eax
pop ebx
jmp 0x45415d
xor al, al
pop esi
leave
ret
Function at 0x4541c5
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push esi
mov dword [ebp - 4], ecx
push edi
xor ecx, ecx
mov ebx, edx
call fcn.004123d6
lea edx, [ebp - 0x210]
mov dword [ebp - 8], eax
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x4541e8
lea edi, [ebp - 0x210]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x4541fe
mov edx, dword [ebp - 4]
mov esi, 0x49bcfc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [ebp - 0x210]
movsw word es:[edi], word [esi]
call fcn.0044622b
test al, al
je 0x454282
push 0x104
lea eax, [ebp - 0x418]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea edx, [ebp - 0x418]
lea ecx, [ebp - 0x210]
call fcn.00453eb0
test al, al
je 0x454282
mov esi, dword [sym.imp.KERNEL32.DLL_OpenMutexA]
mov dword [ebp - 4], 0x12c
mov ebx, 0x49bce8
mov edi, 0x1f0001
jmp 0x454274
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
dec dword [ebp - 4]
je 0x454282
push ebx
push 0
push edi
call esi
test eax, eax
je 0x454267
mov al, 1
jmp 0x454299
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov ecx, dword [ebp - 8]
call fcn.004444fe
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4542bf
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov byte [ebp - 8], dl
mov dword [ebp - 0xc], ecx
mov byte [ebp - 1], 0
test dl, dl
je 0x4542e5
push 0x49bce8
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x23c]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
mov ebx, 0x1f4
push ebx
mov dword [ebp - 0x10], 3
mov dword [ebp - 0x14], eax
call edi
mov esi, dword [sym.imp.KERNEL32.DLL_CopyFileW]
jmp 0x454416
mov ecx, dword [ebp - 0xc]
call fcn.004462f9
test al, al
je 0x454344
push 0
push dword [ebp - 0xc]
lea eax, [ebp - 0x23c]
push eax
call esi
test eax, eax
jne 0x45442c
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 0x23c]
call fcn.0044526c
test al, al
jne 0x45442c
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 8]
jne 0x4543a8
cmp byte [ebp - 8], 0
je 0x4543a8
call fcn.00461704
test al, al
je 0x4543a8
cmp dword [0x4c91f4], 0
jne 0x4543a8
push dword [ebp + 8]
push dword [ebp - 0xc]
push str._AUTOUPDATE___s___NORUN__d
call fcn.0043c769
add esp, 0xc
push 0
push 1
push 1
mov edx, eax
lea ecx, [ebp - 0x23c]
call fcn.0046364a
test al, al
jne 0x454479
dec dword [ebp - 0x14]
jne 0x454413
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0
push 0x4ba8f0
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x4543f6
cmp dword [0x4c91f4], 2
je 0x454403
push dword [0x4d0330]
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], 0x35
call fcn.00450a13
pop ecx
pop ecx
cmp eax, 2
je 0x45446a
jmp 0x45440c
cmp dword [0x4c91f4], 2
jne 0x454487
cmp dword [ebp - 0x10], 0
je 0x45446a
dec dword [ebp - 0x10]
mov dword [ebp - 0x14], 0xa
push ebx
call edi
push 0
push dword [ebp - 0xc]
lea eax, [ebp - 0x23c]
push eax
call esi
test eax, eax
je 0x454322
cmp byte [ebp - 8], 0
je 0x454466
mov ecx, dword [ebp - 0xc]
call fcn.0045429e
test al, al
jne 0x45446a
cmp dword [0x4c91f4], 2
je 0x454466
push dword [0x4d032c]
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], 0x10
call fcn.00450a13
pop ecx
pop ecx
mov byte [ebp - 1], 1
call fcn.00454160
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 4
mov ecx, dword [ebp - 0xc]
call fcn.0045429e
test al, al
jne 0x454466
jmp 0x45443e
mov ecx, dword [ebp - 0x14]
push 0x104
lea edx, [ebp - 0x444]
call fcn.00468eca
lea eax, [ebp - 0x444]
push eax
push dword [0x4d0328]
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], 0x30
call fcn.0043c769
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00450a13
add esp, 0x10
jmp 0x45446a
Function at 0x457499
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4574cd
inc eax
cmp dword [ebp + 0x10], eax
je 0x4574cf
cmp dword [ebp + 0x10], 2
je 0x4574cf
xor eax, eax
leave
ret 0xc

Function at 0x4574d3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
lea edx, [eax + 2]
push esi
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x4574dd
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0xc]
push 1
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
test eax, eax
je 0x45751b
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.RegKey:_Could_not_write_string_valuename__s_value__s__Error__d_n
call fcn.0043faf7
add esp, 0x10
pop ebp
ret 8

Function at 0x457555
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x457586
push eax
push dword [esp + 0xc]
push dword [esp + 0xc]
push str.RegKey:_Could_not_write_DWORD_valuename__s_value__d__Error__d_n
call fcn.0043faf7
add esp, 0x10
ret 8

Function at 0x457589
Capabilities:
Delete registry value

Disassembly:
push dword [esp + 4]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4575ab
push dword [esp + 4]
push eax
push str.RegKey:_Could_not_delete_value__d:__s_n
call fcn.0043faf7
add esp, 0xc
ret 4

Function at 0x4575df
Capabilities:
Delete registry key

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x457603
push dword [esp + 8]
push eax
push str.RegKey:_Could_not_delete_subkey__d:__s_n
call fcn.0043faf7
add esp, 0xc
ret 8
Function at 0x457606
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ecx, dword [0x4c9364]
mov esi, eax
call fcn.00444cee
mov edi, dword [sym.imp.USER32.dll_AppendMenuW]
mov ecx, eax
mov dword [esp + 0x18], ecx
xor ebx, ebx
jmp 0x457636
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
call fcn.0043ac35
mov ecx, dword [esp + 0x10]
push 0x7c
pop edx
mov dword [esp + 0x14], eax
call fcn.0043abc8
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp word [eax], cx
je 0x457660
push eax
inc ebx
push ebx
push ecx
jmp 0x457667
push ecx
push ecx
push 0x800
push esi
call edi
cmp dword [esp + 0x14], 0
jne 0x457632
push 0
push 0
push 0x800
push esi
call edi
push dword [0x4cf694]
inc ebx
inc ebx
push ebx
push 0
push esi
call edi
mov eax, dword [0x4c9368]
xor edi, edi
push edi
inc eax
push eax
push ebx
push 1
push esi
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
mov ecx, dword [esp + 0x18]
call fcn.004444fe
push edi
push dword [0x4c720c]
push edi
push dword [ebp + 4]
push dword [ebp]
push 0x18a
push esi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
push esi
mov ebp, eax
call dword [sym.imp.USER32.dll_DestroyMenu]
cmp ebp, ebx
jne 0x4576ee
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jl 0x4576e4
push 0xc
pop ecx
call fcn.00484718
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp ebp, edi
je 0x4576e4
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jl 0x4576e4
mov eax, ebp
jmp 0x4576e6

Function at 0x457a2b
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
and dword [esi], 0
push edi
mov edx, 0x49c614
mov ecx, 0x49c60c
mov byte [esi + 4], 1
mov byte [esi + 8], 0
mov byte [esi + 9], 0
call fcn.004440e0
mov edi, eax
mov ecx, edi
call fcn.004440cc
push eax
mov ecx, esi
call fcn.004019ea
mov ecx, edi
call fcn.004444fe
mov eax, dword [esi]
test eax, eax
jne 0x457a70
mov eax, 0x48f94c
push 0x49c608
mov ecx, eax
call fcn.0043b312
push eax
call sub.MSVCRT.dll_fopen
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x457ab2
push edi
push dword [esp + 0x14]
mov byte [esi + 8], 1
push 1
push dword [esp + 0x18]
call sub.MSVCRT.dll_fwrite
add esp, 0x10
cmp dword [esp + 0x10], eax
jne 0x457aab
mov byte [esi + 9], 1
push edi
call sub.MSVCRT.dll_fclose
pop ecx
pop edi
mov eax, esi
pop esi
ret 8
Function at 0x4582a7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0048da60
push esi
mov eax, edx
push edi
mov edi, ecx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4582bd
sub eax, esi
sar eax, 1
mov esi, eax
mov eax, 0x7d0
cmp esi, eax
jl 0x4582d8
mov esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x2000]
call fcn.00411c98
lea edx, [esi + esi]
mov eax, 0x49c648
lea ecx, [ebp + edx - 0x2000]
sub ecx, eax
movzx esi, word [eax]
mov word [ecx + eax], si
inc eax
inc eax
test si, si
jne 0x4582f8
push 0x82d
lea eax, [ebp + edx - 0x1ffa]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x2000]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop edi
pop esi
leave
ret
Function at 0x45877d
Capabilities:
Create directory

Disassembly:
cmp dword [0x4c8b2c], 0
jne 0x4587d8
push 0x2c
call fcn.00444d45
pop ecx
test eax, eax
je 0x4587a0
mov ecx, eax
call fcn.0045875a
mov dword [0x4c8b2c], eax
jmp 0x4587a7
and dword [0x4c8b2c], 0
mov ecx, str.dlimagecache_
call fcn.004440cc
mov ecx, dword [0x4c8b2c]
push eax
add ecx, 0x24
call fcn.004019ea
mov eax, dword [0x4c8b2c]
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x4587d1
mov eax, 0x48f94c
mov ecx, eax
jmp fcn.004462f9
mov al, 1
ret

Function at 0x45f31e
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, esi
call fcn.0045f215
call fcn.0043faf7
mov eax, dword [esi + 0x10]
test eax, eax
je 0x45f34e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x45f35b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [esi + 8]
test esi, esi
je 0x45f368
mov eax, dword [esi]
push esi
call dword [eax + 8]
pop esi
ret