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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x42e8f6
cmp dword [ebp + 0x14], edi
je 0x42e8f6
cmp ecx, edi
jne 0x42e8fd
call fcn.0042fc9a
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0042d275
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x42e911
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x42e932
cmp ebx, 0xffffffff
je 0x42e921
push ebx
push edi
push ecx
call fcn.0042efd0
add esp, 0xc
cmp esi, edi
je 0x42e8de
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x42e8de
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x42e94e
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x42e955
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x42ea46
test word [esi + 0xc], 0x10c
je 0x42e9a9
mov eax, dword [esi + 4]
test eax, eax
je 0x42e9a9
jl 0x42eaa7
cmp ebx, eax
mov edi, ebx
jb 0x42e97a
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x42ea4e
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0042d2a9
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x42ea3e
cmp ebx, dword [ebp - 0xc]
jb 0x42ea16
cmp dword [ebp - 0xc], 0
je 0x42e9d3
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x42e9c8
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x42e9cf
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x42e9de
mov eax, SysReAllocString
cmp ebx, eax
ja 0x42e9de
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x42ea7a
push eax
push dword [ebp - 8]
push esi
call fcn.00434ce1
pop ecx
push eax
call fcn.0043985b
add esp, 0xc
test eax, eax
je 0x42eab9
cmp eax, 0xffffffff
je 0x42eaa7
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x42ea3e
push esi
call fcn.0043917a
cmp eax, 0xffffffff
pop ecx
je 0x42eaab
cmp dword [ebp - 4], 0
je 0x42ea7a
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x42e95d
mov eax, dword [ebp + 0x14]
jmp 0x42e8f8
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x42ea65
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0042efd0
add esp, 0xc
call fcn.0042fc9a
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x42e8ee
cmp dword [ebp + 0xc], 0xffffffff
je 0x42ea90
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0042efd0
add esp, 0xc
call fcn.0042fc9a
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x42e8ee
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x42e8f8
or dword [esi + 0xc], 0x10
jmp 0x42eaab
Function at 0x439958
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x45e278]
je 0x439973
inc edi
cmp edi, 0x17
jb 0x439964
cmp edi, 0x17
jae 0x439af3
push ebp
push 3
call fcn.0043f702
cmp eax, 1
pop ecx
je 0x439abf
push 3
call fcn.0043f702
test eax, eax
pop ecx
jne 0x4399a7
cmp dword [0x45d590], 1
je 0x439abf
cmp ebx, 0xfc
je 0x439af2
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x460dc0
push ebp
call fcn.0042fffa
add esp, 0xc
test eax, eax
je 0x4399dd
push esi
push esi
push esi
push esi
push esi
call fcn.0042d179
add esp, 0x14
push 0x104
mov esi, 0x460dd9
push esi
push 0
mov byte [0x460edd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x439a21
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042fffa
add esp, 0xc
test eax, eax
je 0x439a21
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042d179
add esp, 0x14
push esi
call fcn.0042fa70
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x439a66
push esi
call fcn.0042fa70
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4610d4
push 0x450a9c
sub ecx, eax
push ecx
push eax
call fcn.004318e7
add esp, 0x14
test eax, eax
je 0x439a66
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042d179
add esp, 0x14
jmp 0x439a68
xor esi, esi
push 0x450a98
push ebx
push ebp
call fcn.00430121
add esp, 0xc
test eax, eax
je 0x439a88
push esi
push esi
push esi
push esi
push esi
call fcn.0042d179
add esp, 0x14
push dword [edi*8 + 0x45e27c]
push ebx
push ebp
call fcn.00430121
add esp, 0xc
test eax, eax
je 0x439aaa
push esi
push esi
push esi
push esi
push esi
call fcn.0042d179
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043f545
add esp, 0xc
jmp 0x439af2
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x439af2
cmp ebp, 0xffffffff
je 0x439af2
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x45e27c]
push dword [esi]
call fcn.0042fa70
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x43f545
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00433149
xor ebx, ebx
cmp dword [0x46131c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43f61b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43f6fb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x451c0c
push edi
call esi
cmp eax, ebx
je 0x43f6fb
push eax
call fcn.004330db
mov dword [esp], 0x451bfc
push edi
mov dword [0x46131c], eax
call esi
push eax
call fcn.004330db
mov dword [esp], 0x451be8
push edi
mov dword [0x461320], eax
call esi
push eax
call fcn.004330db
mov dword [0x461324], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042fd87
test eax, eax
pop ecx
pop ecx
je 0x43f5e9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042d179
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43f61b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004330db
cmp eax, ebx
pop ecx
mov dword [0x46132c], eax
je 0x43f61b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004330db
pop ecx
mov dword [0x461328], eax
mov eax, dword [0x461328]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43f6a0
cmp dword [0x46132c], ecx
je 0x43f6a0
push eax
call fcn.00433152
push dword [0x46132c]
mov esi, eax
call fcn.00433152
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43f6a0
cmp edi, ebx
je 0x43f6a0
call esi
cmp eax, ebx
je 0x43f66d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43f66d
test byte [ebp - 0x18], 1
jne 0x43f6a0
lea eax, [ebp - 0x10]
push eax
call fcn.0042fdbe
test eax, eax
pop ecx
je 0x43f688
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042d179
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43f697
or dword [ebp + 0x10], 0x200000
jmp 0x43f6db
or dword [ebp + 0x10], 0x40000
jmp 0x43f6db
mov eax, dword [0x461320]
cmp eax, dword [ebp - 8]
je 0x43f6db
push eax
call fcn.00433152
cmp eax, ebx
pop ecx
je 0x43f6db
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43f6db
mov eax, dword [0x461324]
cmp eax, dword [ebp - 8]
je 0x43f6db
push eax
call fcn.00433152
cmp eax, ebx
pop ecx
je 0x43f6db
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46131c]
call fcn.00433152
cmp eax, ebx
pop ecx
je 0x43f6fb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43f6fd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4434dc
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x45d55c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00443471
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0042efd0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x44352b
cmp dword [ebp - 0x1c], 5
jb 0x443543
jmp 0x44353f
cmp dword [ebp - 0x10], 1
jne 0x443543
cmp dword [ebp - 0x1c], 4
ja 0x44353f
jne 0x443543
cmp dword [ebp - 0x18], 0
jbe 0x443543
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x452490
call fcn.00443362
test eax, eax
jge 0x443564
mov byte [0x45ea34], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042d746
add ebp, 0x78
leave
ret
Function at 0x4011cb
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404014
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x404020
push 0x40401c
push 0x404018
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x404020]
push dword [0x40401c]
push dword [0x404018]
mov dword [0x40400c], esp
call fcn.00401cd7
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x401256
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push esi
push edi
mov dword [ebp - 0xc], 8
mov dword [ebp - 0x3fc], 0
lea edi, [ebp - 0x3f4]
lea esi, [0x404034]
mov ecx, 0x3e8
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 0xc]
push dword [ebp + 8]
lea edi, [ebp - 8]
push edi
call sub.CRTDLL.DLL_memcpy
add esp, 0xc
cmp byte [ebp - 8], 4
jne 0x4012a3
cmp byte [ebp - 7], 1
je 0x4012ad
mov eax, 0xffffffff
jmp 0x401360
movzx edi, word [ebp - 6]
push edi
call sub.wsock32.dll_ntohs
mov esi, dword [ebp + 0xc]
mov word [esi], ax
mov edi, dword [ebp - 4]
shr edi, 8
cmp edi, 0
jne 0x40135d
mov edi, dword [ebp - 0xc]
mov esi, edi
add esi, dword [ebp + 8]
push esi
call sub.CRTDLL.DLL_strlen
add esp, 4
mov esi, eax
lea edi, [edi + esi + 1]
add edi, dword [ebp + 8]
push edi
lea edi, [ebp - 0x3f4]
push edi
call sub.CRTDLL.DLL_strcpy
add esp, 8
lea edi, [ebp - 0x3f4]
push edi
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x3f8], eax
cmp dword [ebp - 0x3f8], 0xffffffff
jne 0x401355
lea edi, [ebp - 0x3f4]
push edi
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 0x400], eax
cmp dword [ebp - 0x400], 0
jne 0x401338
mov eax, 0xffffffff
jmp 0x401360
mov edi, dword [ebp - 0x400]
mov edi, dword [edi + 0xc]
mov edi, dword [edi]
mov edi, dword [edi]
mov dword [ebp - 0x3f8], edi
mov eax, dword [ebp - 0x3f8]
jmp 0x401360
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x401364
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push eax
push ebx
push edi
push 8
push 0
lea edi, [ebp - 8]
push edi
call sub.CRTDLL.DLL_memset
add esp, 0xc
mov bl, byte [ebp + 0xc]
mov byte [ebp - 7], bl
push 0
push 8
lea edi, [ebp - 8]
push edi
push dword [ebp + 8]
call sub.wsock32.dll_send
pop edi
pop ebx
leave
ret
Function at 0x401b54
Capabilities:
Create tcp socket
Create thread
Create udp socket
Set socket configuration
Start tcp server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
mov word [ebp - 0x34], 2
mov dword [ebp - 0x30], 0
movzx edi, word [0x4020cc]
push edi
call sub.wsock32.dll_htons
mov word [ebp - 0x32], ax
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x401b98
mov eax, 1
jmp 0x401c9b
push 0x10
lea edi, [ebp - 0x34]
push edi
push dword [ebp - 0x10]
call sub.wsock32.dll_bind
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x401bc1
push dword [ebp - 0x10]
call sub.wsock32.dll_closesocket
mov eax, 1
jmp 0x401c9b
push 5
push dword [ebp - 0x10]
call sub.wsock32.dll_listen
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x401be6
push dword [ebp - 0x10]
call sub.wsock32.dll_closesocket
mov eax, 1
jmp 0x401c9b
movzx edi, word [0x4020cc]
push edi
push str.SOCKS_4_service_started:_redirecting_localhost:_u_n
mov edi, dword [sym.imp.CRTDLL.DLL__iob]
add edi, 0x20
push edi
call sub.CRTDLL.DLL_fprintf
add esp, 0xc
push str.Press_CtrlC_to_end_..._n
mov edi, dword [sym.imp.CRTDLL.DLL__iob]
add edi, 0x20
push edi
call sub.CRTDLL.DLL_fprintf
add esp, 8
mov dword [ebp - 0xc], 0x10
lea edi, [ebp - 0xc]
push edi
lea edi, [ebp - 0x20]
push edi
push dword [ebp - 0x10]
call sub.wsock32.dll_accept
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x401c91
push 4
push 0x404030
push 8
push 0xffff
push dword [ebp - 4]
call sub.wsock32.dll_setsockopt
push 4
call sub.CRTDLL.DLL_malloc
add esp, 4
mov dword [ebp - 8], eax
cmp eax, 0
jne 0x401c6b
mov eax, 1
jmp 0x401c9b
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov dword [edi], esi
lea edi, [ebp - 0x24]
push edi
push 0
push dword [ebp - 8]
push 0x401395
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
jmp 0x401c1c
push dword [ebp - 0x10]
call sub.wsock32.dll_closesocket
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x43b652
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x43b3c1
and ecx, ecx
sub esi, 1
call fcn.0043b690
sub ecx, 0xd9772f79
xor dword [edi], eax
add esi, ecx
add esi, 0xa2cfe22
inc edi
add ecx, 1
cmp edi, ebx
jne fcn.0043b652
or ecx, ecx
sub esi, ecx
and ecx, ecx
ret
Function at 0x401190
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push esi
mov esi, ecx
call fcn.00403240
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4011e2
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push str.AltDefaultUserName
push eax
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esi + 0x84]
call fcn.004184ef
push str.HomeDrive
call fcn.00405872
add esp, 4
lea ecx, [esi + 0x88]
push eax
call fcn.004184ef
mov ecx, esi
call fcn.00401220
mov eax, 1
pop esi
add esp, 0x10c
ret

Function at 0x401220
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41d5e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 0x8c]
push eax
push 1
push str.Start_Page
push str.SoftWareMicrosoftInternet_ExplorerMain
push 0x80000003
call fcn.00401df0
mov ecx, esi
call fcn.00401360
mov ecx, esi
call fcn.004027c0
mov ecx, esi
call fcn.004016c0
push 1
push 4
push str.871C5380_42A0_1069_A2EA_08002B30309D
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerHideDesktopIconsNewStartPanel
push 0x80000003
mov ecx, esi
call fcn.00402120
lea eax, [esi + 0x88]
lea ecx, [esp + 4]
push eax
call fcn.00418127
push str.Documents_and_Settings_
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0
call fcn.00418742
lea ecx, [esi + 0x84]
push ecx
lea ecx, [esp + 8]
call fcn.0041877e
push ecx
mov ecx, esp
mov dword [esp + 0xc], esp
push str.Internet_Explorer.lnk
call fcn.00418420
push ecx
lea eax, [esp + 0xc]
mov edx, esp
mov dword [esp + 0x14], esp
push 0x426190
push eax
push edx
mov byte [esp + 0x2c], 1
call fcn.004185fb
mov ecx, esi
mov byte [esp + 0x20], 0
call fcn.00402590
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push str.Internet_Explorer.lnk
call fcn.00418420
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
lea edx, [esp + 0x10]
push 0x426180
push edx
push ecx
mov byte [esp + 0x30], 2
call fcn.004185fb
mov ecx, esi
mov byte [esp + 0x24], 0
call fcn.004017d0
mov ecx, esi
call fcn.004029b0
mov ecx, esi
call fcn.00403370
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.004183b2
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop esi
add esp, 0x18
ret
Function at 0x4016c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41d680
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x426e44]
push esi
mov esi, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x20], 0
mov dword [esp + 4], eax
lea eax, [esi + 0x88]
lea ecx, [esp + 8]
push eax
mov byte [esp + 0x24], 1
call fcn.0041849f
lea ecx, [esp + 8]
push str.Documents_and_Settings_
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.004185fb
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x24], 2
call fcn.0041849f
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 1
call fcn.004183b2
lea eax, [esi + 0x84]
lea ecx, [esp + 8]
push eax
call fcn.0041849f
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 8]
call fcn.0041877e
push str.Application_DataMicrosoftInternet_ExplorerQuick_Launch
lea ecx, [esp + 8]
call fcn.00418742
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x426408
call fcn.00418420
push 0
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x30], 3
call fcn.00418127
mov ecx, esi
mov byte [esp + 0x2c], 1
call fcn.004017d0
lea ecx, [esp + 4]
mov byte [esp + 0x20], 0
call fcn.004183b2
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.004183b2
mov ecx, dword [esp + 0x18]
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x402590
Capabilities:
Create shortcut via ishelllink
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x41d7c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebp
push esi
push edi
mov esi, ecx
lea eax, [esp + 0x238]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x234], 1
call fcn.00418127
lea ecx, [esp + 0x23c]
mov byte [esp + 0x230], 2
push ecx
lea ecx, [esp + 0x14]
call fcn.0041877e
lea edx, [esp + 0x10]
lea ecx, [esp + 0x238]
push edx
call fcn.0041849f
push 0x10000000
push ecx
lea eax, [esp + 0x240]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00418127
mov ecx, esi
call fcn.00403150
mov ecx, dword [esp + 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edx, dword [esp + 0x238]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
and al, 0xfe
push eax
push edx
call ebp
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jne 0x40275b
lea eax, [esp + 0xc]
push eax
push 0x420ed0
push 1
push 0
push 0x420ec0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x402715
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 0x420ee0
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jne 0x402715
mov ecx, dword [esp + 0xc]
mov eax, dword [esi + 0x8c]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x2c]
mov eax, dword [esp + 0xc]
push 0x4265f8
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
lea edi, [esi + 0x78]
push str.IEXPLORE.exe
lea edx, [esp + 0x1c]
push edi
push edx
call fcn.004185fb
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
push eax
push ecx
mov edx, dword [ecx]
mov byte [esp + 0x238], 3
call dword [edx + 0x50]
lea ecx, [esp + 0x18]
mov byte [esp + 0x230], 2
call fcn.004183b2
mov eax, dword [esp + 0xc]
mov edi, dword [edi]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push 0x104
push edx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x238]
push 1
push eax
call ebp
push 0x80000000
push ecx
lea edx, [esp + 0x240]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00418127
mov ecx, esi
call fcn.00403150
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], 1
call fcn.004183b2
lea ecx, [esp + 0x238]
mov byte [esp + 0x230], 0
call fcn.004183b2
lea ecx, [esp + 0x23c]
mov dword [esp + 0x230], 0xffffffff
call fcn.004183b2
mov ecx, dword [esp + 0x228]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x228
ret 8
Function at 0x4027c0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41d7e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
mov dword [esp + 0x18], ecx
push esi
push edi
lea ecx, [esp + 0x24]
call fcn.004188d5
push 0
push 0x1002
push str.C:1.txt
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c], 0
call fcn.0041894a
mov eax, dword [0x426e44]
mov dword [esp + 0x18], eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push str.lnkfile
push 0x80000000
mov byte [esp + 0x54], 1
mov dword [esp + 0x30], 1
mov dword [esp + 0x28], 0x1e
call ebp
test eax, eax
jne 0x40284d
push 0x426674
jmp 0x402852
push 0x426668
lea ecx, [esp + 0x28]
call fcn.00418abd
lea edx, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
push 0x1e
call fcn.00418796
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push str.IsShortcut
push ecx
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, eax
test edi, edi
jne 0x4028af
push 0x426650
lea ecx, [esp + 0x28]
call fcn.00418abd
mov edx, dword [esp + 0x10]
push str.IsShortcut
push edx
xor edi, edi
call ebx
jmp 0x4028bd
push 0x426644
lea ecx, [esp + 0x28]
call fcn.00418abd
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0x1e
push ecx
push 0xf003f
push 0
push str.piffile
push 0x80000000
call ebp
test eax, eax
jne 0x4028f3
push 0x42662c
jmp 0x4028f8
push 0x426620
lea ecx, [esp + 0x28]
call fcn.00418abd
lea edx, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
push 0x1e
call fcn.00418796
mov ecx, dword [esp + 0x14]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push str.IsShortcut
push ecx
call esi
mov esi, eax
test esi, esi
jne 0x402947
push 0x426650
lea ecx, [esp + 0x28]
call fcn.00418abd
mov edx, dword [esp + 0x10]
push str.IsShortcut
push edx
call ebx
jmp 0x402955
push 0x426644
lea ecx, [esp + 0x28]
call fcn.00418abd
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x402968
test esi, esi
jne 0x402973
mov ecx, dword [esp + 0x20]
mov dword [ecx + 0x70], 1
lea ecx, [esp + 0x24]
call fcn.00418c7a
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 0
call fcn.004183b2
lea ecx, [esp + 0x24]
mov dword [esp + 0x40], 0xffffffff
call fcn.00418907
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret