joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c4c0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x840
mov eax, dword [0x42202c]
xor eax, esp
mov dword [esp + 0x83c], eax
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x208
lea eax, [esp + 0x22e]
push ebp
push eax
mov word [esp + 0x234], bp
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea ecx, [esp + 0x22c]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x208
lea edx, [esp + 0x22]
push ebp
push edx
mov word [esp + 0x28], bp
call sub.MSVCR80.dll_memset
push 0x208
lea eax, [esp + 0x446]
push ebp
push eax
mov word [esp + 0x44c], bp
call sub.MSVCR80.dll_memset
push 0x208
lea ecx, [esp + 0x65e]
push ebp
push ecx
mov word [esp + 0x664], bp
call sub.MSVCR80.dll_memset
lea edx, [esp + 0x458]
push edx
lea eax, [esp + 0x250]
push eax
lea edx, [esp + 0x66c]
lea ecx, [esp + 0x48]
call fcn.0040c120
xor edi, edi
xor esi, esi
add esp, 0x2c
cmp word [esp + 0x1c], bp
mov ebx, 1
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
je 0x40c5c1
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
call fcn.0040c410
add esp, 0xc
test eax, eax
je 0x40c5c1
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push esi
push edi
push ebx
push eax
lea edx, [esp + 0x238]
lea ecx, [esp + 0x444]
call fcn.0040bae0
add esp, 0x10
call fcn.0040c020
mov eax, dword [0x4242ac]
pop edi
pop esi
cmp eax, ebp
pop ebp
pop ebx
je 0x40c5fa
mov dword [eax + 0x1c], 0x2710
call fcn.0040c020
mov ecx, dword [esp + 0x83c]
xor ecx, esp
mov eax, 1
call fcn.004158da
add esp, 0x840
ret
Function at 0x40d680
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x417e5b
mov eax, dword fs:[0]
push eax
mov eax, 0x1014
call fcn.00416a30
mov eax, dword [0x42202c]
xor eax, esp
mov dword [esp + 0x1010], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42202c]
xor eax, esp
push eax
lea eax, [esp + 0x1028]
mov dword fs:[0], eax
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
mov dword [esp + 0x1040], ebx
push closesocket
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40d80e
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
push ebx
push str.ProxyEnable
mov esi, 4
push edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x40d736
cmp dword [esp + 0x18], esi
jne 0x40d736
cmp dword [esp + 0x14], ebx
jne 0x40d7a4
push 0xffe
lea ecx, [esp + 0x2a]
push ebx
push ecx
mov word [esp + 0x30], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
lea esi, [esp + 0x1c]
lea edx, [esp + 0x28]
mov dword [esp + 0x1c], 0x7ff
call fcn.0040b3e0
test eax, eax
jne 0x40d7a9
call fcn.0040aad0
cmp byte [eax + 0x39], bl
je 0x40d79d
call fcn.0040aad0
call fcn.0040a090
test al, al
je 0x40d79d
lea eax, [esp + 0x24]
push eax
push str.IsIEHasProxy__AutoConfigURL_s
push 0xe
push str..MiniDownload.cpp
call fcn.0040a920
add esp, 0x10
cmp word [esp + 0x24], bx
je 0x40d7a9
mov ebp, 1
call fcn.0040aad0
cmp byte [eax + 0x39], bl
je 0x40d7d9
call fcn.0040aad0
call fcn.0040a090
test al, al
je 0x40d7d9
push ebp
push str.IsIEHasProxy__bHasProxy_d
mov ecx, 0xe
mov edx, str..MiniDownload.cpp
call fcn.0040a820
add esp, 8
cmp edi, ebx
je 0x40d7e4
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
mov ecx, dword [esp + 0x1028]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1010]
xor ecx, esp
call fcn.004158da
add esp, 0x1020
ret
call fcn.0040aad0
cmp byte [eax + 0x39], bl
je 0x40d7e4
call fcn.0040aad0
call fcn.0040a090
test al, al
je 0x40d7e4
push ebx
push str.IsIEHasProxy__read_reg_fail__bHasProxy_d
mov ecx, 0xe
mov edx, str..MiniDownload.cpp
call fcn.0040a820
add esp, 8
jmp 0x40d7e4
Function at 0x40dbd0
Capabilities:
Create http request

Disassembly:
push 0xffffffffffffffff
push 0x417df8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42202c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x20], ebx
mov ebp, 8
mov dword [esi], vtable.Download::CInternetDownloadHandle.0
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], edi
mov dword [esi + 0x18], ebp
call fcn.0040aad0
cmp byte [eax + 0x39], bl
je 0x40dc4b
call fcn.0040aad0
call fcn.0040a090
test al, al
je 0x40dc4b
push esi
push 0x41bff4
lea ecx, [ebx + 0xe]
mov edx, str..MiniDownload.cpp
call fcn.0040a820
add esp, 8
cmp dword [edi + 0x78], ebp
jb 0x40dc55
mov edi, dword [edi + 0x64]
jmp 0x40dc58
add edi, 0x64
push 0x10000000
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 0xc], eax
call fcn.0040aad0
cmp byte [eax + 0x39], 0
je 0x40dc9e
call fcn.0040aad0
call fcn.0040a090
test al, al
je 0x40dc9e
mov eax, dword [esi + 0xc]
push eax
push str.InternetOpen__ret_m_hSession0x_x
mov ecx, 0xe
mov edx, str..MiniDownload.cpp
call fcn.0040a820
add esp, 8
mov ecx, dword [esi + 0xc]
push 0x40eb90
push ecx
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
lea edi, [esi + 0x1c]
mov ebp, 2
push 0
push 0
push 1
push 0
call ebx
mov dword [edi], eax
add edi, 4
sub ebp, 1
jne 0x40dcc1
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x10]
mov dword [esi + 0x24], eax
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8

Function at 0x40dfd0
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
call fcn.0040aad0
cmp byte [eax + 0x39], 0
je 0x40e04a
call fcn.0040aad0
mov esi, eax
mov eax, dword [esi + 0x34]
mov ecx, eax
and ecx, reloc.WS2_32.dll_ntohs
jns 0x40dff6
dec ecx
or ecx, 0xfffffff0
inc ecx
lea eax, [eax + 1]
mov dword [esi + 0x34], eax
jne 0x40e024
lea edi, [esi + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [esi + 0x24]
push edx
call fcn.00409ea0
test al, al
mov byte [esi + 0x38], al
je 0x40e01d
call fcn.0040a0f0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esi + 0x30], 0
jne 0x40e036
cmp byte [esi + 0x31], 0
jne 0x40e036
cmp byte [esi + 0x38], 0
je 0x40e04a
push str.UnzipGZipData_
push 0xe
push str..HttpSocket.cpp
call fcn.0040a920
add esp, 0xc
mov eax, dword [esp + 0xc]
push eax
push 0
push 1
push 0
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
neg eax
sbb eax, eax
pop edi
and eax, 3
pop esi
ret 4
Function at 0x40e070
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov eax, 0x2018
call fcn.00416a30
mov eax, dword [0x42202c]
xor eax, esp
mov dword [esp + 0x2010], eax
push ebx
push ebp
push esi
xor ebx, ebx
push 0x1fff
lea eax, [esp + 0x1d]
push ebx
push eax
mov esi, ecx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x24], bl
call sub.MSVCR80.dll_memset
mov ecx, dword [esi + 0x28]
add esp, 0xc
mov dword [esp + 0x14], ebx
xor ebp, ebp
cmp dword [ecx + 0xc0], ebx
jne 0x40e166
nop
mov edx, dword [esi + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [esi + 0x10]
lea eax, [esp + 0x14]
push eax
push 0x1fff
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40e10b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40e101
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
test eax, eax
je 0x40e11a
mov dword [esp + 0x10], 1
jmp 0x40e178
mov eax, dword [esi + 0x24]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40e101
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40e178
push edi
push eax
lea ecx, [esp + 0x20]
push 1
push ecx
add ebp, eax
mov byte [esp + eax + 0x28], bl
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
cmp eax, dword [esp + 0x14]
jne 0x40e170
push 0x2000
lea edx, [esp + 0x1c]
push ebx
push edx
mov dword [esp + 0x20], ebx
call sub.MSVCR80.dll_memset
mov eax, dword [esi + 0x28]
add esp, 0xc
cmp dword [eax + 0xc0], ebx
je 0x40e0c0
mov dword [esp + 0x10], 7
jmp 0x40e178
mov dword [esp + 0x10], 3
call fcn.0040aad0
cmp byte [eax + 0x39], bl
je 0x40e1c4
call fcn.0040aad0
call fcn.0040a090
test al, al
je 0x40e1c4
mov esi, dword [esp + 0x10]
push ebp
push esi
push str.DownloadFileByChunked____nRet_d_dwTotalSize_d
push 0xe
push str..MiniDownload.cpp
call fcn.0040a920
add esp, 0x14
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2010]
xor ecx, esp
call fcn.004158da
add esp, 0x2018
ret
mov ecx, dword [esp + 0x201c]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004158da
add esp, 0x2018
ret
Function at 0x410810
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1010
call fcn.00416a30
mov eax, dword [0x42202c]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [esp + 0x1014]
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
xor ebx, ebx
cmp dword [eax + 0x18], 8
mov dword [esp + 0x14], edi
jb 0x410847
mov eax, dword [eax + 4]
jmp 0x41084a
add eax, 4
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x410873
mov edi, 3
jmp 0x4109b4
push ebp
push 0xfff
lea eax, [esp + 0x21]
push esi
push eax
mov byte [esp + 0x28], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0xfff
lea edx, [esp + 0x24]
push edx
mov eax, edi
mov dword [esp + 0x1c], esi
call fcn.00411900
mov edi, eax
cmp edi, esi
ja 0x41091b
jmp 0x4108b0
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x410922
lea edi, [esi + ebp]
push edi
push ebx
call dword [sym.imp.MSVCR80.dll_realloc]
add esp, 8
test eax, eax
je 0x41091b
push ebp
lea ecx, [esp + 0x20]
mov ebx, eax
push ecx
add eax, esi
push eax
call sub.MSVCR80.dll_memcpy
push 0xfff
lea edx, [esp + 0x2d]
push 0
push edx
mov esi, edi
mov byte [esp + 0x34], 0
call sub.MSVCR80.dll_memset
add esp, 0x18
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x1c]
push 0xfff
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x1c], 0
call fcn.00411900
mov edi, eax
test edi, edi
jbe 0x4108b0
mov edi, 1
jmp 0x41099a
test edi, edi
jne 0x41099a
test ebx, ebx
je 0x4109a8
push esi
call dword [sym.imp.MSVCR80.dll_malloc]
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x41099a
push esi
push edi
push ebp
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
mov edx, ebp
mov ecx, ebx
call fcn.00410720
mov edx, dword [esp + 0x18]
cmp byte [edx + 0x30], 0
mov dword [esp + 0x10], edi
je 0x410975
call fcn.00411030
test eax, eax
jl 0x410990
mov ecx, dword [esp + 0x14]
push edi
lea eax, [esp + 0x14]
push eax
push edi
push edi
push ecx
jmp 0x410983
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0x14]
push edx
push esi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410990
lea edi, [eax + 3]
push ebp
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
test ebx, ebx
je 0x4109a8
push ebx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
call fcn.0040aad0
cmp byte [eax + 0x39], 0
je 0x4109e6
call fcn.0040aad0
call fcn.0040a090
test al, al
je 0x4109e6
push esi
push edi
push str.DownloadFileByChunked_return__d_dwTotalSize_d
mov ecx, 0xe
mov edx, str..HttpSocket.cpp
call fcn.0040a820
add esp, 0xc
mov ecx, dword [esp + 0x1018]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004158da
add esp, 0x1010
ret 4
Function at 0x411900
Capabilities:
Check for time delay via gettickcount
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
push ebx
push esi
mov esi, eax
cmp dword [esi + 8], 0xffffffff
push edi
jne 0x411955
call fcn.0040aad0
cmp byte [eax + 0x39], 0
je 0x411947
call fcn.0040aad0
call fcn.0040a090
test al, al
je 0x411947
push str.Receive__recv_INVALID_SOCKET
mov ecx, 0xe
mov edx, str..HttpSocket.cpp
call fcn.0040a820
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
test eax, eax
mov ebx, eax
jle 0x411a55
lea esp, [esp]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0xc]
cmp eax, dword [esi + 0xc]
jg 0x411aca
mov eax, dword [esi]
cmp dword [eax + 0xc0], 0
jne 0x411a67
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
call eax
test eax, eax
jne 0x411a97
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 8]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jg 0x411a45
cmp edi, 0xffffffff
jne 0x411afd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x411b0b
mov eax, dword [esi + 8]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
mov edi, 1
push 0
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], edi
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jge 0x411a4a
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
call fcn.0040aaa0
test al, al
je 0x411a35
push str.Receive__WaitData_Error.
lea ecx, [edi + 0xd]
mov edx, str..HttpSocket.cpp
call fcn.0040a820
add esp, 4
call fcn.00411b50
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
sub ebx, edi
add dword [ebp + 8], edi
test ebx, ebx
jg 0x411970
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
sub eax, ebx
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.0040aad0
cmp byte [eax + 0x39], 0
je 0x411a97
call fcn.0040aad0
call fcn.0040a090
test al, al
je 0x411a97
push str.IsCanceled_TRUE
mov ecx, 0xe
mov edx, str..HttpSocket.cpp
call fcn.0040a820
add esp, 4
call fcn.0040aaa0
test al, al
je 0x411ab7
push str.Receive__receive_data_cancel
mov ecx, 0xe
mov edx, str..HttpSocket.cpp
call fcn.0040a820
add esp, 4
call fcn.00411b50
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.0040aaa0
test al, al
je 0x411aea
push str.Receive__download_timeout
mov ecx, 0xe
mov edx, str..HttpSocket.cpp
call fcn.0040a820
add esp, 4
call fcn.00411b50
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test edi, edi
jne 0x411b0b
call fcn.00411b50
jmp 0x411a52
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
call fcn.0040aaa0
test al, al
je 0x411b3c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Receive__iRet_d__LastError_d
mov ecx, 0xe
mov edx, str..HttpSocket.cpp
call fcn.0040a820
add esp, 0xc
call fcn.00411b50
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x413760
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x187c
call fcn.00416a30
mov eax, dword [0x42202c]
xor eax, esp
mov dword [esp + 0x1878], eax
push 0x410
lea eax, [esp + 0xa]
push 0
push eax
mov word [esp + 0x10], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x208
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x1450
lea edx, [esp + 0x422]
push 0
push edx
mov word [esp + 0x428], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push str._StartFromIntegritySetUp
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push str._s__s
lea eax, [esp + 0x428]
push 0xa28
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
lea ecx, [esp + 0x41c]
push ecx
lea edx, [esp + 8]
push edx
call fcn.004135c0
mov ecx, dword [esp + 0x1880]
add esp, 8
xor ecx, esp
call fcn.004158da
add esp, 0x187c
ret

Function at 0x413cb0
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Create directory
Get common file path

Disassembly:
sub esp, 0x420
mov eax, dword [0x42202c]
xor eax, esp
mov dword [esp + 0x41c], eax
push esi
push edi
xor esi, esi
push 0x1e8
mov edi, 0x65
lea eax, [esp + 0x32]
push esi
push eax
mov word [esp + 0x18], 0x54
mov word [esp + 0x1a], di
mov word [esp + 0x1c], 0x6e
mov word [esp + 0x1e], 0x63
mov word [esp + 0x20], di
mov word [esp + 0x22], 0x6e
mov word [esp + 0x24], 0x74
mov word [esp + 0x26], 0x5c
mov word [esp + 0x28], 0x44
mov word [esp + 0x2a], di
mov word [esp + 0x2c], 0x73
mov word [esp + 0x2e], 0x6b
mov word [esp + 0x30], 0x47
mov word [esp + 0x32], 0x6f
mov word [esp + 0x34], si
mov word [esp + 0x36], si
mov word [esp + 0x38], si
call sub.MSVCR80.dll_memset
push 0x1ee
lea ecx, [esp + 0x244]
push esi
push ecx
mov word [esp + 0x230], 0x43
mov word [esp + 0x232], 0x6f
mov word [esp + 0x234], 0x6e
mov word [esp + 0x236], 0x46
mov word [esp + 0x238], 0x69
mov word [esp + 0x23a], 0x6c
mov word [esp + 0x23c], di
mov word [esp + 0x23e], 0x2e
mov word [esp + 0x240], 0x64
mov word [esp + 0x242], 0x61
mov word [esp + 0x244], 0x74
mov word [esp + 0x246], si
mov word [esp + 0x248], si
mov word [esp + 0x24a], si
call sub.MSVCR80.dll_memset
add esp, 0x18
cmp word [0x425bb0], si
jne 0x413e61
lea edx, [esp + 8]
push edx
push 0x1a
push esi
mov dword [esp + 0x14], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x413e15
mov eax, dword [esp + 8]
cmp eax, esi
je 0x413e24
push 0x425bb0
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [esp + 8]
cmp eax, esi
je 0x413e24
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0xc]
push eax
push 0x425bb0
call edi
push 0x425bb0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x413e52
push esi
push 0x425bb0
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea ecx, [esp + 0x218]
push ecx
push 0x425bb0
call edi
mov ecx, dword [esp + 0x424]
pop edi
pop esi
xor ecx, esp
mov eax, 0x425bb0
call fcn.004158da
add esp, 0x420
ret
Function at 0x415440
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x204
mov eax, dword [0x42202c]
xor eax, esp
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x20c]
push ebp
mov ebp, dword [esp + 0x20c]
push esi
mov esi, edx
test esi, esi
push edi
mov edi, ecx
jne 0x415488
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.004158da
add esp, 0x204
ret
test edi, edi
jg 0x4154a9
pop edi
pop esi
mov eax, 0xfffffffe
pop ebp
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.004158da
add esp, 0x204
ret
cmp dword [esp + 0x21c], 0
jne 0x4154d0
pop edi
pop esi
mov eax, 0xfffffffd
pop ebp
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.004158da
add esp, 0x204
ret
test eax, eax
jg 0x4154f1
pop edi
pop esi
mov eax, 0xfffffffc
pop ebp
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.004158da
add esp, 0x204
ret
test ebp, ebp
jne 0x415510
pop edi
pop esi
lea eax, [ebp - 5]
pop ebp
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.004158da
add esp, 0x204
ret
mov ecx, dword [esp + 0x220]
test ecx, ecx
jg 0x415538
pop edi
pop esi
mov eax, 0xfffffffa
pop ebp
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.004158da
add esp, 0x204
ret
cmp eax, ecx
jge 0x415559
pop edi
pop esi
mov eax, 0xfffffff9
pop ebp
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.004158da
add esp, 0x204
ret
xor edx, edx
xor ecx, ecx
lea ecx, [ecx]
mov al, byte [edx + esi]
mov byte [esp + ecx + 0x10c], al
lea eax, [edx + 1]
cdq
mov byte [esp + ecx + 0xc], cl
add ecx, 1
idiv edi
cmp ecx, 0x100
jl 0x415560
xor ecx, ecx
xor eax, eax
push ebx
jmp 0x415590
mov dl, byte [esp + eax + 0x10]
movzx esi, byte [esp + eax + 0x110]
movzx edi, dl
add esi, ecx
add edi, esi
mov ecx, edi
and ecx, 0x800000ff
jns 0x4155b5
dec ecx
or ecx, 0xffffff00
inc ecx
mov bl, byte [esp + ecx + 0x10]
mov byte [esp + ecx + 0x10], dl
mov byte [esp + eax + 0x10], bl
add eax, 1
cmp eax, 0x100
jl 0x415590
mov edx, dword [esp + 0x224]
xor esi, esi
xor ecx, ecx
test edx, edx
jle 0x415657
mov edi, dword [esp + 0x220]
mov eax, ebp
sub edi, ebp
mov ebp, edx
jmp 0x4155f0
add ecx, 1
and ecx, 0x800000ff
jns 0x415603
dec ecx
or ecx, 0xffffff00
inc ecx
movzx edx, byte [esp + ecx + 0x10]
add esi, edx
and esi, 0x800000ff
jns 0x41561a
dec esi
or esi, 0xffffff00
inc esi
mov bl, byte [esp + ecx + 0x10]
mov dl, byte [esp + esi + 0x10]
mov byte [esp + esi + 0x10], bl
mov byte [esp + ecx + 0x10], dl
movzx ebx, byte [esp + esi + 0x10]
movzx edx, dl
add edx, ebx
and edx, 0x800000ff
jns 0x415644
dec edx
or edx, 0xffffff00
inc edx
movzx edx, byte [esp + edx + 0x10]
xor dl, byte [edi + eax]
add eax, 1
sub ebp, 1
mov byte [eax - 1], dl
jne 0x4155f0
mov ecx, dword [esp + 0x210]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004158da
add esp, 0x204
ret
Function at 0x415680
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x204
mov eax, dword [0x42202c]
xor eax, esp
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x20c]
push ebp
mov ebp, dword [esp + 0x20c]
push esi
mov esi, edx
test esi, esi
push edi
mov edi, ecx
jne 0x4156c8
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.004158da
add esp, 0x204
ret
test edi, edi
jg 0x4156e9
pop edi
pop esi
mov eax, 0xfffffffe
pop ebp
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.004158da
add esp, 0x204
ret
test ebp, ebp
jne 0x415708
pop edi
pop esi
lea eax, [ebp - 3]
pop ebp
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.004158da
add esp, 0x204
ret
test eax, eax
jg 0x415729
pop edi
pop esi
mov eax, 0xfffffffc
pop ebp
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.004158da
add esp, 0x204
ret
cmp dword [esp + 0x21c], 0
jne 0x415750
pop edi
pop esi
mov eax, 0xfffffffb
pop ebp
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.004158da
add esp, 0x204
ret
mov ecx, dword [esp + 0x220]
test ecx, ecx
jg 0x415778
pop edi
pop esi
mov eax, 0xfffffffa
pop ebp
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.004158da
add esp, 0x204
ret
cmp eax, ecx
jge 0x415799
pop edi
pop esi
mov eax, 0xfffffff9
pop ebp
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.004158da
add esp, 0x204
ret
xor edx, edx
xor ecx, ecx
lea ecx, [ecx]
mov al, byte [edx + esi]
mov byte [esp + ecx + 0x10c], al
lea eax, [edx + 1]
cdq
mov byte [esp + ecx + 0xc], cl
add ecx, 1
idiv edi
cmp ecx, 0x100
jl 0x4157a0
xor ecx, ecx
xor eax, eax
push ebx
jmp 0x4157d0
mov dl, byte [esp + eax + 0x10]
movzx esi, byte [esp + eax + 0x110]
movzx edi, dl
add esi, ecx
add edi, esi
mov ecx, edi
and ecx, 0x800000ff
jns 0x4157f5
dec ecx
or ecx, 0xffffff00
inc ecx
mov bl, byte [esp + ecx + 0x10]
mov byte [esp + ecx + 0x10], dl
mov byte [esp + eax + 0x10], bl
add eax, 1
cmp eax, 0x100
jl 0x4157d0
mov edx, dword [esp + 0x224]
xor esi, esi
xor ecx, ecx
test edx, edx
jle 0x415897
mov edi, dword [esp + 0x220]
mov eax, ebp
sub edi, ebp
mov ebp, edx
jmp 0x415830
add ecx, 1
and ecx, 0x800000ff
jns 0x415843
dec ecx
or ecx, 0xffffff00
inc ecx
movzx edx, byte [esp + ecx + 0x10]
add esi, edx
and esi, 0x800000ff
jns 0x41585a
dec esi
or esi, 0xffffff00
inc esi
mov bl, byte [esp + ecx + 0x10]
mov dl, byte [esp + esi + 0x10]
mov byte [esp + esi + 0x10], bl
mov byte [esp + ecx + 0x10], dl
movzx ebx, byte [esp + esi + 0x10]
movzx edx, dl
add edx, ebx
and edx, 0x800000ff
jns 0x415884
dec edx
or edx, 0xffffff00
inc edx
movzx edx, byte [esp + edx + 0x10]
xor dl, byte [edi + eax]
add eax, 1
sub ebp, 1
mov byte [eax - 1], dl
jne 0x415830
mov ecx, dword [esp + 0x210]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004158da
add esp, 0x204
ret

Function at 0x4158da
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42202c]
jne 0x4158e4
repz ret
jmp fcn.00415d72