joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10035e40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x20
test byte [0x10047194], 8
jne 0x10035ee0
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call sym._is_valid_netconn
test eax, eax
je 0x10035ed4
test esi, esi
je 0x10035e7b
mov eax, dword [ebx + 0x54]
mov edx, dword [eax + 0x4c]
test edx, edx
jne 0x10035f20
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x32
mov eax, dword [ebx + 0x14]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._INTERNET_SendCallback
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call sym._close_netconn
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x33
mov eax, dword [ebx + 0x14]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._INTERNET_SendCallback
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x18], edx
mov eax, dword [eax + 0x54]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str._p__p__x_n
mov dword [esp + 8], str.http_release_netconn
mov dword [esp + 4], 0x10047194
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x10035e5a
mov dword [esp], 0x10047224
mov esi, dword [sym.imp.kernel32.dll_EnterCriticalSection]
call esi
mov edx, dword [ebx + 0x54]
sub esp, 4
mov eax, dword [edx + 0x28]
lea ecx, [edx + 0x58]
mov edi, dword [eax + 0xf8]
mov dword [edx + 0x58], edi
lea edi, [eax + 0xf8]
mov dword [edx + 0x5c], edi
mov edx, dword [eax + 0xf8]
mov dword [edx + 4], ecx
mov dword [eax + 0xf8], ecx
call dword [sym.imp.kernel32.dll_GetTickCount64]
mov ecx, dword [ebx + 0x54]
mov edi, dword [0x1004720c]
mov dword [0x1004720c], 1
add eax, 0xea60
adc edx, 0
mov dword [ecx + 0x50], eax
mov dword [ecx + 0x54], edx
mov dword [ebx + 0x54], 0
mov ebx, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov dword [esp], 0x10047224
call ebx
sub esp, 4
test edi, edi
jne 0x10035ed4
lea eax, [ebp - 0x10]
mov dword [esp], 4
mov dword [esp + 8], eax
mov eax, dword [0x10047120]
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_GetModuleHandleExW]
mov eax, dword [ebp - 0x10]
sub esp, 0xc
test eax, eax
je 0x10036020
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym._collect_connections_proc_4
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
sub esp, 0x18
test eax, eax
je 0x10036020
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
jmp 0x10035ed4
mov dword [esp], 0x10047224
call esi
mov dword [0x1004720c], 0
sub esp, 4
mov dword [esp], 0x10047224
call ebx
mov eax, dword [ebp - 0x10]
sub esp, 4
test eax, eax
je 0x10035ed4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
sub esp, 4
jmp 0x10035ed4
Function at 0x1003cd90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
push ebx
mov ebx, eax
sub esp, 0x20
mov eax, dword [eax + 0x2104]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
mov edx, dword [eax]
mov dword [esp + 0x14], esi
mov esi, dword [ebp + 8]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
mov dword [esp + 0x10], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 4]
mov ecx, dword [ebp - 0x14]
test eax, eax
mov esi, eax
mov eax, dword [ebp + 8]
je 0x1003ce10
mov dword [eax], 0
mov edx, dword [ebx + 0xa8]
test edx, edx
je 0x1003ce00
mov eax, dword [ebx + 0x2104]
mov edx, dword [eax]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx]
test eax, eax
je 0x1003ce00
mov eax, ebx
call sym._commit_cache_entry
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [eax]
cmp eax, ecx
ja 0x1003ceb3
mov edx, dword [ebx + 0xa8]
test edx, edx
je 0x1003ce00
test eax, eax
je 0x1003cdf9
lea ecx, [ebp - 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
jne 0x1003ce68
test byte [0x10047194], 1
jne 0x1003ce80
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
jne 0x1003cde4
jmp 0x1003cdf9
xor edx, edx
mov eax, dword [ebp - 0x10]
add dword [ebx + 0xb0], eax
adc dword [ebx + 0xb4], edx
jmp 0x1003ce58
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.WriteFile_failed:__lu_n
mov dword [esp + 8], str.read_http_stream
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x10047194
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_4
jmp 0x1003ce58
mov dword [esp + 8], 0xa46
mov dword [esp + 4], str..._src_wine_dlls_wininet_http.c
mov dword [esp], str.read___size
call dword [sym.imp.ucrtbase.dll__assert]
Function at 0x1003d1b0
Capabilities:
Read file on windows

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x430
mov eax, dword [edi]
mov edi, dword [edi + 4]
mov dword [ebp - 0x420], edx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x418], edi
jmp 0x1003d23f
sub ecx, eax
mov eax, 0x400
sbb ebx, edx
cmp eax, ecx
mov eax, 0
sbb eax, ebx
jae 0x1003d211
mov ecx, 0x400
mov eax, dword [ebp - 0x418]
lea edx, [ebp - 0x410]
mov dword [esp + 4], eax
lea eax, [ebp - 0x414]
mov dword [esp], eax
mov eax, esi
call sym._read_http_stream
test eax, eax
jne 0x1003d277
mov eax, dword [ebp - 0x414]
test eax, eax
je 0x1003d288
mov ecx, dword [esi + 0xf0]
mov eax, dword [esi + 0xb0]
mov edx, dword [esi + 0xb4]
mov ebx, dword [esi + 0xf4]
cmp eax, ecx
mov edi, edx
sbb edi, ebx
jb 0x1003d1f8
cmp ecx, eax
mov edi, ebx
sbb edi, edx
jb 0x1003d2a0
mov eax, dword [ebp - 0x414]
mov ebx, dword [ebp - 0x41c]
mov dword [ebx], eax
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov ebx, dword [ebp - 0x41c]
mov dword [ebx], 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov eax, dword [esi + 0xb8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov eax, dword [eax + 4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetFilePointerEx]
sub esp, 0x14
test eax, eax
je 0x1003d314
lea eax, [ebp - 0x414]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x424]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x420]
mov dword [esp + 4], eax
mov eax, dword [esi + 0xb8]
mov eax, dword [eax + 4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
jne 0x1003d267
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
jmp 0x1003d277

Function at 0x1003d430
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
lock dec dword [eax]
jne 0x1003d448
pop ebp
jmp sym._req_file_release.part.0
pop ebp
ret

Function at 0x1003d450
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, eax
sub esp, 4
mov eax, dword [eax + 0x10]
test eax, eax
je 0x1003d490
mov eax, dword [ebx + 4]
lea edx, [eax - 1]
cmp edx, 0xfffffffd
jbe 0x1003d4aa
mov eax, dword [ebx + 8]
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call esi
mov dword [esp], ebx
call esi
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebx + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov eax, dword [ebx + 4]
sub esp, 4
lea edx, [eax - 1]
cmp edx, 0xfffffffd
ja 0x1003d46c
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
jmp 0x1003d46c
Function at 0x1003f9a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x10
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
jmp 0x1003f9c5
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x1003f9ea
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
call dword [sym.imp.ws2_32.dll_recv]
sub esp, 0x10
mov ebx, eax
cmp eax, 0xffffffff
je 0x1003f9b8
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x10
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
jmp 0x1003fa25
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x1003fa4a
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
call dword [sym.imp.ws2_32.dll_send]
sub esp, 0x10
mov ebx, eax
cmp eax, 0xffffffff
je 0x1003fa18
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10040d50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
mov ebx, edx
sub esp, 0x248
mov ecx, dword [ecx + 0x3c]
mov dword [ebp - 0x23c], 0x208
test ecx, ecx
jne 0x10040e08
movzx eax, byte [esi + 0x38]
cmp eax, dword [ebx + 0x48]
jae 0x10040d8f
lea eax, [eax + eax*2]
lea edx, [ebx + eax*4]
mov eax, dword [edx + 0x4c]
test eax, eax
je 0x10040d8f
dec eax
mov dword [edx + 0x4c], eax
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
and ecx, 4
mov dword [ebp - 0x244], ecx
jne 0x10040dd0
mov esi, dword [ebx + 0x38]
mov edi, dword [ebx + 0x3c]
mov ecx, edx
cmp eax, esi
sbb ecx, edi
jae 0x10040ee0
sub esi, eax
sbb edi, edx
mov dword [ebx + 0x38], esi
mov dword [ebx + 0x3c], edi
mov eax, dword [ebp - 0x244]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebx + 0x40]
mov edi, dword [ebx + 0x44]
mov ecx, edx
cmp eax, esi
sbb ecx, edi
jae 0x10040f00
mov dword [ebp - 0x244], 0
sub esi, eax
mov eax, dword [ebp - 0x244]
sbb edi, edx
mov dword [ebx + 0x40], esi
mov dword [ebx + 0x44], edi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [ebp - 0x23c]
lea edi, [ebp - 0x214]
mov dword [esp + 0xc], 0
add ecx, esi
mov dword [esp + 8], edx
mov dword [esp + 4], edi
movzx edx, byte [esi + 0x38]
mov dword [esp], edx
mov edx, ebx
call sym._urlcache_create_file_pathW
test eax, eax
je 0x10040d75
lea eax, [ebp - 0x238]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetFileAttributesExW]
sub esp, 0xc
test eax, eax
je 0x10040d75
mov eax, dword [ebp - 0x224]
or eax, dword [ebp - 0x220]
jne 0x10040f30
xor edx, edx
xor eax, eax
mov word [ebp - 0x240], dx
mov word [ebp - 0x23e], ax
xor eax, eax
cmp word [esi + 0x5c], ax
jne 0x10040d75
movzx eax, word [ebp - 0x23e]
cmp word [esi + 0x5e], ax
jne 0x10040d75
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_DeleteFileW]
sub esp, 4
test eax, eax
jne 0x10040d75
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x244], eax
cmp eax, 5
je 0x10040dbf
cmp eax, 0x20
je 0x10040dbf
jmp 0x10040d75
mov eax, dword [ebp - 0x244]
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x244], 0
mov eax, dword [ebp - 0x244]
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x23e]
mov dword [esp + 8], eax
lea eax, [ebp - 0x240]
mov dword [esp + 4], eax
lea eax, [ebp - 0x224]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FileTimeToDosDateTime]
movzx eax, word [ebp - 0x240]
sub esp, 0xc
jmp 0x10040e88
Function at 0x10043f10
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ecx, eax
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x10]
push ebx
lea ebx, [ebp - 0xc]
sub esp, 4
movsx esi, byte [eax]
mov eax, edi
sub esi, edi
lea edx, [esi + eax]
inc eax
movzx edx, dl
movzx edx, byte [edx + 0x10052c20]
mov byte [eax - 1], dl
cmp eax, ebx
jne 0x10043f28
movsx edx, byte [ecx + 1]
lea esi, [ecx + 1]
test dl, dl
je 0x10043f6f
lea esi, cs:[esi]
mov eax, edi
movzx ecx, byte [eax]
inc eax
xor ecx, edx
movzx ecx, byte [ecx + 0x10052c20]
mov byte [eax - 1], cl
cmp eax, ebx
jne 0x10043f52
movsx edx, byte [esi + 1]
inc esi
test dl, dl
jne 0x10043f50
mov eax, dword [ebp - 0x10]
add esp, 4
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x10046680
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
lea eax, [ebp - 0x190]
mov dword [esp], 0x101
mov dword [esp + 4], eax
call dword [sym.imp.ws2_32.dll_WSAStartup]
sub esp, 8
test eax, eax
jne 0x100466c0
mov dword [0x10047428], 1
leave
mov eax, 1
ret 0xc
test byte [0x100471b4], 2
je 0x100466b1
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.WSAStartup_failed:__lu_n
mov dword [esp + 8], str.winsock_startup
mov dword [esp + 4], 0x100471b4
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_6
mov eax, 1
leave
ret 0xc
Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941

Function at 0x401037
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path

Disassembly:
call 0x401037
push 0
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffbf4
push esi
push edi
push ebx
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x403030], eax
mov dword [ebp - 8], 0
push 0xa
push section..data
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
je 0x401089
mov dword [ebp - 4], eax
push dword [ebp - 4]
push 0
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
je 0x401089
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4010c1
push 4
push 0x1000
push dword [ebp - 0xc]
push 0
call sub.kernel32.dll_VirtualAlloc
mov edi, eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push edi
call sub.kernel32.dll_RtlMoveMemory
mov dword [ebp - 8], edi
push 0xdeadbeef
push dword [ebp - 0xc]
push dword [ebp - 8]
call section..text
cmp dword [ebp - 8], 0
je 0x4010fb
lea eax, [ebp - 0x40c]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
push str.dup2patcher.dll
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_lstrcatA
push dword [ebp - 0xc]
push dword [ebp - 8]
lea eax, [ebp - 0x40c]
push eax
call fcn.00401184
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_LoadLibraryA
or eax, eax
je 0x401130
mov ebx, eax
push str.load_patcher
push ebx
call sub.kernel32.dll_GetProcAddress
or eax, eax
je 0x40111e
call eax
push ebx
call sub.kernel32.dll_FreeLibrary
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_DeleteFileA
pop ebx
pop edi
pop esi
leave
ret

Function at 0x401184
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x4011af
xor eax, eax
leave
ret 0xc
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_FlushFileBuffers
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
leave
ret 0xc
Function at 0x402061
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x406358
cmp edx, dword [eax]
je 0x402083
add eax, 8
inc ecx
cmp eax, 0x4063e8
jl 0x402074
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x406358]
jne 0x4021b1
mov eax, dword [0x408518]
cmp eax, 1
je 0x40218b
test eax, eax
jne 0x4020b4
cmp dword [0x40608c], 1
je 0x40218b
cmp edx, 0xfc
je 0x4021b1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4020eb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402790
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402940
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40212e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402940
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4053c0
push edi
call fcn.00403fe0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402790
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004027a0
lea eax, [ebp - 0xa0]
push 0x4053a0
push eax
call fcn.004027a0
push dword [esi + 0x40635c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004027a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00403f54
add esp, 0x2c
pop edi
jmp 0x4021b1
lea eax, [ebp + 8]
lea esi, [esi + 0x40635c]
push 0
push eax
push dword [esi]
call fcn.00402940
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401190
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x4353a0]
test eax, eax
push esi
push edi
je 0x4011eb
mov eax, dword [esp + 0x10]
mov edx, dword [0x434054]
mov ecx, dword [0x434058]
lea esi, [edx + eax]
cmp esi, ecx
jl 0x4011b6
sub ecx, edx
mov eax, ecx
test eax, eax
jle 0x40125f
mov esi, dword [0x434050]
mov edi, dword [esp + 0xc]
add esi, edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x434054]
add ecx, eax
pop edi
mov dword [0x434054], ecx
pop esi
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
push eax
push ecx
push 1
push esi
call fcn.00420456
mov edi, eax
mov eax, dword [0x435390]
add esp, 0x10
test eax, eax
je 0x40125d
test edi, edi
jle 0x40125d
mov edx, dword [0x4351fc]
mov eax, dword [0x4351e0]
lea ecx, [eax + edx]
mov edx, dword [0x4351ec]
mov eax, dword [0x4351e8]
add eax, edx
and ecx, 0xff
and eax, 0xff
test edi, edi
jle 0x40125d
mov dl, byte [0x4351f4]
push ebx
push ebp
mov ebp, edi
mov bl, byte [esi]
xor bl, cl
sub bl, al
add dl, bl
mov byte [esi], dl
inc esi
dec ebp
jne 0x401247
pop ebp
mov byte [0x4351f4], dl
pop ebx
mov eax, edi
pop edi
pop esi
ret

Function at 0x410060
Capabilities:
Create process on windows

Disassembly:
mov cl, byte [esp + 4]
sub esp, 0x3c
test cl, 2
mov eax, 0xa
je 0x410076
mov eax, 2
cmp byte [esi], 0
je 0x4100dc
push edi
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
mov eax, dword [0x435c1c]
mov ecx, dword [eax + 0x34]
mov dword [esp + 0x14], edx
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0xc
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
pop edi
jne 0x41013b
push 0x432774
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x48], 0xe
call fcn.00420911
test cl, 0x10
push eax
je 0x4100f9
push 0x42d3a1
push 0x42d3a1
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x41011f
test cl, 0x20
je 0x410118
push 0x42d3a1
push 0x42d3a1
push edx
push str.print
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x41011f
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jge 0x41013b
push 0x432774
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x48], 0xe
call fcn.00420911
add esp, 0x3c
ret
Function at 0x413550
Capabilities:
Log keystrokes

Disassembly:
push ecx
push edi
push esi
call dword [sym.imp.USER32.dll_TranslateMessage]
push esi
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [0x435c40]
test byte [eax + 0x30c], 2
je 0x4135dc
mov edx, dword [esi + 4]
cmp edx, 0x200
mov edi, dword [0x435c38]
jne 0x4135bd
test edi, edi
movzx eax, word [esi + 0xc]
movzx ecx, word [esi + 0xe]
jne 0x4135b2
cmp dword [0x435c30], eax
jne 0x41359b
cmp dword [0x435c34], ecx
je 0x4135bd
push 0x432774
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.00420911
mov dword [0x435c30], eax
mov dword [0x435c34], ecx
cmp edx, 0x100
jne 0x4135dc
test edi, edi
jne 0x4135dc
push 0x432774
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], edi
call fcn.00420911
cmp dword [esi + 4], 0x100
jne 0x41361a
cmp dword [esi + 8], 9
jne 0x4135f0
call fcn.004132a0
push 2
call fcn.00403d40
add esp, 4
test eax, eax
je 0x41361a
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ecx
push eax
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push 2
call fcn.00404ad0
add esp, 0x10
pop edi
pop ecx
ret
Function at 0x413620
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x38]
cmp dword [edi + 0xec], 9
je 0x4137cb
mov ebx, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov ebp, dword [sym.imp.WINMM.dll_timeGetTime]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x413674
cmp dword [esp + 0x1c], 0x12
je 0x4137dd
lea esi, [esp + 0x18]
call fcn.00413550
jmp 0x4137be
mov eax, dword [edi + 0xec]
dec eax
cmp eax, 7
ja case.0x413684.4
jmp dword [eax*4 + 0x41383c]
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
cmp dword [esp + 0x1c], 0x12
je 0x4137f4
lea esi, [esp + 0x18]
call fcn.00413550
cmp dword [edi + 0xec], 3
je case.0x413684.3
push 0xff
push 0x3e8
push 0
push 0
push 0
call ebx
jmp 0x4137be
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00403ac0
add esp, 4
mov dword [edi + 0xec], eax
cmp dword [0x43413c], 0xffffffff
jne 0x41374a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
push esi
call fcn.00403b00
add esp, 4
test eax, eax
je 0x413723
mov edx, dword [edi + 0xf8]
push 0xff
sub edx, esi
push edx
push 0
push 0
push 0
call ebx
jmp 0x4137be
mov eax, dword [0x435c40]
test byte [eax + 0x30c], 2
je 0x4137be
mov eax, dword [0x435c38]
test eax, eax
je 0x4137be
dec eax
mov dword [0x435c38], eax
jmp 0x4137be
call ebp
mov esi, eax
add esi, 5
push esi
call fcn.00403b00
add esp, 4
test eax, eax
je 0x413776
mov ecx, dword [edi + 0xf8]
push 0xff
sub ecx, esi
push ecx
push 0
push 0
push 0
call ebx
jmp 0x4137be
call ebp
cmp eax, dword [edi + 0xf8]
jge 0x413792
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebp
cmp eax, dword [edi + 0xf8]
jl 0x413780
mov edx, dword [0x435c40]
mov dword [edi + 0xfc], eax
mov dword [edi + 0xec], 0
test byte [edx + 0x30c], 2
jmp 0x41372f
mov dword [edi + 0xec], 3
cmp dword [edi + 0xec], 9
jne 0x413644
mov dword [edi + 0xec], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
push 0x432774
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x40], 0
call fcn.00420911
push 0x432774
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x40], 0
call fcn.00420911
push 0x432774
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], 0xa
call fcn.00420911
push 0x432774
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0x2a
call fcn.00420911
lea ecx, [ecx]
aad 0x36
inc ecx
add dl, ch
inc ecx
add byte [eax - 0x2affbeca], dl
aaa
inc ecx
add ch, dl
aaa
inc ecx
add byte [ebx], cl
cmp byte [ecx], al
and bh, byte [eax]
inc ecx
add byte [edi + esi - 0x3333ffbf], dh
int3