joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10038723
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100638a4]
jne 0x1003872d
repz ret
jmp fcn.1003c657

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x1003b868
call fcn.1003c2a7
mov dword [eax], esi
call fcn.1003c294
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.10039caa
add esp, 0x14
push 0x16
pop eax
jmp 0x1003b8bd
test dword [ebp + 0xc], 0xfffffff9
jne 0x1003b844
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1003b895
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1003c2ba
pop ecx
call fcn.1003c294
mov eax, dword [eax]
jmp 0x1003b8bd
test al, 0x10
jne 0x1003b8bb
test al, 1
je 0x1003b8bb
test byte [ebp + 0xc], 2
je 0x1003b8bb
call fcn.1003c2a7
mov dword [eax], 5
call fcn.1003c294
mov dword [eax], 0xd
jmp 0x1003b88c
xor eax, eax
pop esi
pop ebp
ret

Function at 0x10048501
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.1003d932
and dword [ebp - 4], 0
cmp dword [0x1006a6f0], 0
mov ebx, eax
jne 0x100485b2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10048663
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10048663
push eax
call fcn.1003d8c0
mov dword [esp], 0x1005aca4
push edi
mov dword [0x1006a6f0], eax
call esi
push eax
call fcn.1003d8c0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1006a6f4], eax
call esi
push eax
call fcn.1003d8c0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1006a6f8], eax
call esi
push eax
call fcn.1003d8c0
pop ecx
mov dword [0x1006a700], eax
test eax, eax
je 0x100485b2
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1003d8c0
pop ecx
mov dword [0x1006a6fc], eax
mov eax, dword [0x1006a6fc]
cmp eax, ebx
je 0x1004860a
cmp dword [0x1006a700], ebx
je 0x1004860a
push eax
call fcn.1003d93b
push dword [0x1006a700]
mov esi, eax
call fcn.1003d93b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1004860a
test edi, edi
je 0x1004860a
call esi
test eax, eax
je 0x10048601
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10048601
test byte [ebp - 0xc], 1
jne 0x1004860a
or dword [ebp + 0x10], 0x200000
jmp 0x10048643
mov eax, dword [0x1006a6f4]
cmp eax, ebx
je 0x10048643
push eax
call fcn.1003d93b
pop ecx
test eax, eax
je 0x10048643
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10048643
mov eax, dword [0x1006a6f8]
cmp eax, ebx
je 0x10048643
push eax
call fcn.1003d93b
pop ecx
test eax, eax
je 0x10048643
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1006a6f0]
call fcn.1003d93b
pop ecx
test eax, eax
je 0x10048663
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10048665
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1004e450
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2c14
call fcn.10038740
mov eax, dword [0x100638a4]
xor eax, esp
mov dword [esp + 0x2c10], eax
mov eax, dword [esp + 0x2c18]
push edi
xor edi, edi
mov dword [esp + 0xc], eax
cmp eax, edi
je 0x1004e5bb
cmp dword [esp + 0x2c20], edi
je 0x1004e5bb
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov dword [esp + 0x10], edi
xor ebx, ebx
lea ebx, [ebx]
push ebx
push str..PhysicalDrive_d
lea eax, [esp + 0x30]
push 0x100
push eax
call fcn.1004de00
add esp, 0x10
push edi
push edi
push 3
push edi
push 3
push edi
lea ecx, [esp + 0x40]
push ecx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x1004e594
xor eax, eax
push 0x2710
lea edx, [esp + 0x514]
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.10038ae0
add esp, 0xc
push edi
lea eax, [esp + 0x18]
push eax
push 0x2710
lea ecx, [esp + 0x51c]
push ecx
push 0xc
lea edx, [esp + 0x30]
push edx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1004e587
push 0x3e8
lea eax, [esp + 0x12c]
push edi
push eax
call fcn.10038ae0
mov edx, dword [esp + 0x534]
lea ecx, [esp + 0x134]
push ecx
push 1
push edx
lea eax, [esp + 0x528]
push eax
call fcn.1004fb70
mov edx, dword [esp + 0x2c48]
mov eax, dword [esp + 0x34]
add esp, 0x1c
lea ecx, [esp + 0x128]
push ecx
push edx
push eax
call fcn.1004dd00
test eax, eax
jne 0x1004e587
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], edi
jne 0x1004e59e
inc ebx
cmp ebx, 0x10
jl 0x1004e4a0
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x2c10]
xor ecx, esp
call fcn.10038723
add esp, 0x2c14
ret
mov ecx, dword [esp + 0x2c14]
pop edi
xor ecx, esp
xor eax, eax
call fcn.10038723
add esp, 0x2c14
ret
Function at 0x1004e860
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2ec
mov eax, dword [0x100638a4]
xor eax, esp
mov dword [esp + 0x2e8], eax
push edi
mov edi, dword [esp + 0x2f4]
mov dword [esp + 0x18], edi
test edi, edi
je 0x1004ea61
cmp dword [esp + 0x2f8], 0
je 0x1004ea61
push 0x64
lea eax, [esp + 0x20]
push 0
push eax
call fcn.10038ae0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 8
push 0
push 0x1005ae44
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1004ea28
mov ecx, dword [esp + 4]
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x100]
push eax
push ebx
mov esi, 0x104
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x1004ea1b
lea ebx, [ebx]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 1
push 0
lea eax, [esp + 0xf8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1004e9e9
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1f4]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push str.ServiceName
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1004e9de
push 0x64
push eax
lea eax, [esp + 0x90]
push eax
call fcn.10038ae0
lea ecx, [esp + 0x1fc]
push 0x64
push ecx
lea edi, [esp + 0x9c]
call fcn.1004e750
add esp, 0x14
test eax, eax
je 0x1004e9de
cmp byte [esp + 0x24], 0
je 0x1004e9a2
lea edx, [esp + 0x24]
push edx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x1004e9de
lea eax, [esp + 0x24]
lea esi, [esp + 0x88]
mov ecx, eax
mov edx, 0x64
sub esi, ecx
lea ecx, [edx + 0x7fffff9a]
test ecx, ecx
je 0x1004e9d1
mov cl, byte [esi + eax]
test cl, cl
je 0x1004e9d1
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x1004e9b6
jmp 0x1004e9d5
test edx, edx
jne 0x1004e9d6
dec eax
mov byte [eax], 0
mov esi, 0x104
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x100]
push ecx
inc ebx
push ebx
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x1004e900
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
cmp byte [esp + 0x1c], 0
je 0x1004ea61
mov edx, dword [esp + 0x2f8]
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
call fcn.1004dd00
xor ecx, ecx
test eax, eax
setge cl
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.10038723
add esp, 0x2ec
ret
mov ecx, dword [esp + 0x2ec]
pop edi
xor ecx, esp
xor eax, eax
call fcn.10038723
add esp, 0x2ec
ret
Function at 0x1004ecd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50c
mov eax, dword [0x100638a4]
xor eax, esp
mov dword [esp + 0x508], eax
push ebp
mov ebp, dword [esp + 0x514]
test edi, edi
je 0x1004ee4d
cmp ebp, 0x20
jb 0x1004ee4d
push 0x400
lea eax, [esp + 0x110]
push 0
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0x400
call fcn.10038ae0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x10]
push eax
push 0x1005aeb4
push str.Software360SafeLiveup
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x1004ee4d
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004ed60
sub eax, edx
cmp eax, 0x40
jne 0x1004ee4d
push ebx
lea edx, [eax + 0x40]
push esi
lea eax, [esp + 0x14]
lea esi, [esp + 0x114]
mov ecx, eax
sub esi, ecx
lea ecx, [edx - 0x60]
test ecx, ecx
je 0x1004ed9e
mov cl, byte [esi + eax]
test cl, cl
je 0x1004ed9e
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x1004ed86
jmp 0x1004eda2
test edx, edx
jne 0x1004eda3
dec eax
mov byte [eax], 0
lea eax, [esp + 0x94]
lea edx, [esp + 0x134]
mov ecx, eax
mov esi, 0x80
sub edx, ecx
lea ecx, [ecx]
lea ecx, [esi + 0x7fffff7e]
test ecx, ecx
je 0x1004eddb
mov cl, byte [edx + eax]
test cl, cl
je 0x1004eddb
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x1004edc0
jmp 0x1004eddf
test esi, esi
jne 0x1004ede0
dec eax
push 0x400
lea edx, [esp + 0x118]
push 0
push edx
mov byte [eax], 0
call fcn.10038ae0
push 0x400
lea ebx, [esp + 0x124]
lea ecx, [esp + 0x24]
call fcn.1004ded0
add esp, 0x10
lea eax, [esp + 0x94]
push eax
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop esi
pop ebx
test eax, eax
jne 0x1004ee4d
lea edx, [esp + 0xc]
push edx
push ebp
push edi
call fcn.1004dd00
neg eax
sbb eax, eax
inc eax
pop ebp
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.10038723
add esp, 0x50c
ret
mov ecx, dword [esp + 0x50c]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.10038723
add esp, 0x50c
ret

Function at 0x1004ee70
Capabilities:
Set registry value

Disassembly:
sub esp, 0x188
mov eax, dword [0x100638a4]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
push esi
push 0x80
lea eax, [esp + 0xc]
push 0
push eax
mov esi, ecx
call fcn.10038ae0
push 0x80
lea ebx, [esp + 0x18]
mov ecx, esi
call fcn.1004ded0
lea eax, [esp + 0x98]
mov ecx, eax
add esp, 0x10
mov edx, 0x104
sub esi, ecx
lea esp, [esp]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x1004eedb
mov cl, byte [esi + eax]
test cl, cl
je 0x1004eedb
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x1004eec0
jmp 0x1004eedf
test edx, edx
jne 0x1004eee0
dec eax
lea edx, [esp + 8]
push edx
mov byte [eax], 0
push 0x104
lea eax, [esp + 0x90]
push eax
call fcn.1004dd70
lea eax, [esp + 0x88]
pop esi
lea edx, [eax + 1]
pop ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004ef06
sub eax, edx
push eax
lea ecx, [esp + 0x84]
push ecx
push 1
push 0x1005aeb4
push str.Software360SafeLiveup
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.10038723
add esp, 0x188
ret
Function at 0x407eab
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417400]
jne 0x407eb5
repz ret
jmp fcn.0040dcc7

Function at 0x40accc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004062c0
and dword [ebp - 0x14], 0
cmp dword [0x448f10], 0
mov dword [ebp - 0x18], eax
jne 0x40ad7f
push 0x402228
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40ae27
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40221c
push ebx
call edi
test eax, eax
je 0x40ae27
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40220c
push ebx
mov dword [0x448f10], eax
call edi
push eax
call esi
push 0x4021f8
push ebx
mov dword [0x448f14], eax
call edi
push eax
call esi
push 0x4021dc
push ebx
mov dword [0x448f18], eax
call edi
push eax
call esi
mov dword [0x448f20], eax
test eax, eax
je 0x40ad7f
push 0x4021c4
push ebx
call edi
push eax
call esi
mov dword [0x448f1c], eax
mov eax, dword [0x448f1c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40add8
cmp dword [0x448f20], ecx
je 0x40add8
push eax
call esi
push dword [0x448f20]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40add8
test ebx, ebx
je 0x40add8
call edi
test eax, eax
je 0x40adcf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40adcf
test byte [ebp - 8], 1
jne 0x40add8
or dword [ebp + 0x10], 0x200000
jmp 0x40ae0b
mov eax, dword [0x448f14]
cmp eax, dword [ebp - 0x18]
je 0x40ae0b
push eax
call esi
test eax, eax
je 0x40ae0b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40ae0b
mov eax, dword [0x448f18]
cmp eax, dword [ebp - 0x18]
je 0x40ae0b
push eax
call esi
test eax, eax
je 0x40ae0b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x448f10]
call esi
test eax, eax
je 0x40ae27
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40ae29
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407eab
leave
ret
Function at 0x4147e0
Capabilities:
Access the windows event log
Connect pipe
Delete directory
Delete file
Get common file path
Manipulate console buffer
Read pipe
Write pipe

Disassembly:
mov eax, 0x1414
call fcn.0040eba0
cmp dword [0x7f89fc], 0x37
jne 0x4148b4
push 0x40347c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoA]
push 0
lea eax, [esp + 0xc18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0
lea ecx, [esp + 8]
push ecx
push 0
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [esp + 0x818]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x40348c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTapePosition]
push 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push 0
lea edx, [esp + 0x418]
push edx
push 0x4034a0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
mov eax, dword [0x7f8e10]
mov edx, dword [0x7f84e0]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1414
ret
Function at 0x414f00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x7f89fc]
sub esp, 0x484
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetDateFormatA]
mov ebp, 0x2443831
cmp eax, 0x47
jne 0x414f86
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x78]
push ecx
push 0x403790
mov dword [esp + 0x6c], 0
call esi
xor eax, eax
push eax
mov dword [esp + 0x56], eax
mov dword [esp + 0x5a], eax
mov dword [esp + 0x5e], eax
mov word [esp + 0x62], ax
lea eax, [esp + 0x94]
push eax
push 0x4037e4
xor edx, edx
lea ecx, [esp + 0x5c]
push ecx
push edx
push edx
mov word [esp + 0x68], dx
call edi
dec ebp
mov eax, dword [0x4485c8]
mov dword [0x7f89fc], eax
jne 0x414f25
mov dword [esp + 0x20], 0x764d11c7
mov dword [esp + 0x4c], 0x26b44f20
mov dword [esp + 0x24], 0x1f33c7de
mov dword [esp + 0x10], 0x2e56cff9
mov dword [esp + 0x28], 0x6cde8df8
mov dword [esp + 0x14], 0x796abd53
mov dword [esp + 0x34], 0x3ce56ad4
mov dword [esp + 0x1c], 0x581868fc
mov dword [esp + 0x18], 0xc596c70
mov dword [esp + 0x3c], 0x6d5e9115
mov dword [esp + 0x30], 0x22f372d9
mov dword [esp + 0x40], 0x2ad541d0
mov dword [esp + 0x38], 0x7a5f7c43
mov dword [esp + 0x2c], 0x28d520e
mov dword [esp + 0x48], 0x73f3bc07
mov dword [esp + 0x44], 0x51f578e1
add dword [esp + 0x4c], 0x73e38130
mov eax, 0x3a9c3a87
mul dword [esp + 0x20]
mov eax, dword [esp + 0x20]
add dword [esp + 0x24], 0x6b053f58
add dword [esp + 0x20], 0x2818faf9
add dword [esp + 0x4c], 0x3ab2fc3
sub dword [esp + 0x20], 0x30ad2d47
sub dword [esp + 0x20], 0x4442fc9b
sub dword [esp + 0x28], 0x2285667
add dword [esp + 0x4c], 0x262c99c6
sub dword [esp + 0x14], 0x4dc74448
mov eax, 0x53cf4e1b
mul dword [esp + 0x24]
mov eax, dword [esp + 0x24]
add dword [esp + 0x24], 0x1b067f32
mov eax, 0x67698c83
mul dword [esp + 0x14]
mov eax, dword [esp + 0x14]
sub dword [esp + 0x28], 0x7674af1e
mov eax, 0x173863dd
mul dword [esp + 0x28]
mov eax, dword [esp + 0x28]
mov eax, 0x3d786fdd
mul dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
mov eax, 0x38471b91
mul dword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov eax, 0x45f07edf
mul dword [esp + 0x4c]
mov eax, dword [esp + 0x4c]
add dword [esp + 0x18], 0x6fea1ecd
sub dword [esp + 0x34], 0x32f1f16e
add dword [esp + 0x34], 0x6e380599
sub dword [esp + 0x18], 0x3ca08c1e
add dword [esp + 0x30], 0x154e8e1
add dword [esp + 0x14], 0x53bb032d
sub dword [esp + 0x14], 0x11166d6c
sub dword [esp + 0x18], 0x2a6a1594
add dword [esp + 0x14], 0x4fb1fe05
mov eax, 0x4b3ce8e6
mul dword [esp + 0x34]
mov eax, dword [esp + 0x34]
add dword [esp + 0x3c], 0x1bc84bb6
sub dword [esp + 0x30], 0x687c0c2b
add dword [esp + 0x48], 0x36e578c2
sub dword [esp + 0x10], 0x7b5e58ec
mov eax, 0x38d0a1fb
mul dword [esp + 0x48]
mov eax, dword [esp + 0x48]
sub dword [esp + 0x40], 0x15793cf4
mov edx, dword [0x4485bc]
mov dword [0x7f8e10], edx
call fcn.00414b40
pop edi
xor eax, eax
pop esi
pop ebp
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405c90
Capabilities:
Write file on windows

Disassembly:
cmp dword [0xaaf050], 0
je 0x405cfd
push esi
push eax
mov eax, dword [0xaaa62c]
push 0x400
call dword [eax]
add esp, 4
test eax, eax
je 0x405cf9
mov esi, eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp], ecx
push ecx
push eax
push 0x400
push esi
call fcn.00409350
add esp, 0x10
test eax, eax
jle 0x405cee
cmp eax, 0x3ff
mov ecx, 0x3ff
cmovb ecx, eax
push dword [0xaaf050]
push ecx
push 1
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
mov eax, dword [0xaaa5e8]
push esi
call dword [eax]
add esp, 4
add esp, 4
pop esi
ret

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

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
test esi, esi
je 0x4060d6
test byte [0xaaf055], 1
je 0x4060d6
mov ebp, dword [0xaaf058]
test ebp, ebp
je 0x4060fb
dec ebp
mov dword [0xaaf058], ebp
push edx
push ebx
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
jmp 0x4060e4
push edx
push ebx
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
test esi, esi
je 0x40614e
push eax
push ebx
push edi
push esi
push str.SEND__s:_d_send__lu____ld_n
mov esi, eax
call fcn.00405c90
mov eax, esi
add esp, 0x14
jmp 0x40614e
push str.send
push edi
push esi
push str.LIMIT__s:_d__s_reached_memlimit_n
call fcn.00405c90
add esp, 0x10
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push str.send
push edi
push esi
push str.LIMIT__s:_d__s_reached_memlimit_n
push eax
call fcn.0040b510
add esp, 0x14
push dword [0xaaf050]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
add esp, 4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0xc
mov eax, 0xffffffff
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x406160
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
test esi, esi
je 0x4061a6
test byte [0xaaf055], 1
je 0x4061a6
mov ebp, dword [0xaaf058]
test ebp, ebp
je 0x4061cb
dec ebp
mov dword [0xaaf058], ebp
push edx
push ebx
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x4061b4
push edx
push ebx
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test esi, esi
je 0x40621e
push eax
push ebx
push edi
push esi
push str.RECV__s:_d_recv__lu____ld_n
mov esi, eax
call fcn.00405c90
mov eax, esi
add esp, 0x14
jmp 0x40621e
push str.recv
push edi
push esi
push str.LIMIT__s:_d__s_reached_memlimit_n
call fcn.00405c90
add esp, 0x10
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push str.recv
push edi
push esi
push str.LIMIT__s:_d__s_reached_memlimit_n
push eax
call fcn.0040b510
add esp, 0x14
push dword [0xaaf050]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
add esp, 4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0xc
mov eax, 0xffffffff
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x414d20
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
call fcn.0041c2b0
add esp, 4
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll__strdup
add esp, 4
mov edi, eax
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll__strdup
add esp, 4
mov esi, eax
push 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x414db2
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
nop dword [eax]
mov eax, esp
push eax
call fcn.0041c2b0
sub esp, 0x1c
movups xmm0, xmmword [esp + 0x30]
movups xmmword [esp + 0x10], xmm0
movups xmm0, xmmword [esp + 0x20]
movups xmmword [esp], xmm0
call fcn.0041c390
add esp, 0x20
cmp eax, 0x3e9
sbb edx, 0
jae 0x414dd8
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push edi
call ebx
test eax, eax
je 0x414d70
test edi, edi
je 0x414dbf
push edi
call fcn.00786dc0
add esp, 4
xor edi, edi
test esi, esi
je 0x414dce
push esi
call fcn.00786dc0
add esp, 4
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test edi, edi
je 0x414de5
push edi
call fcn.00786dc0
add esp, 4
mov edi, 1
test esi, esi
jne 0x414dc5
jmp 0x414dce
Function at 0x41b6c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push edi
push esi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
test ecx, ecx
sete dl
test eax, eax
sete dh
or dh, dl
jne 0x41b705
mov dh, byte [ecx]
test dh, dh
je 0x41b710
inc ecx
nop
movzx esi, byte [eax]
test esi, esi
setne dl
je 0x41b712
movzx edi, dh
mov dh, byte [edi + 0x969e08]
cmp dh, byte [esi + 0x969e08]
jne 0x41b720
inc eax
mov dh, byte [ecx]
inc ecx
test dh, dh
jne 0x41b6e0
jmp 0x41b712
or ecx, eax
sete al
movzx eax, al
pop esi
pop edi
ret
mov dl, 1
cmp byte [eax], 0
setne al
xor al, dl
movzx eax, al
pop esi
pop edi
ret
xor eax, eax
movzx eax, al
pop esi
pop edi
ret

Function at 0x41bfd0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
test byte [esp + 0x194], 2
jne 0x41c042
push str.iphlpapi.dll
call fcn.0041c080
add esp, 4
mov dword [0xaaf064], eax
test eax, eax
je 0x41c00b
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41c00b
mov dword [0xaaf060], eax
sub esp, 0x14
movaps xmm0, xmmword [0x96b930]
movups xmmword [esp], xmm0
mov dword [esp + 0x10], 3
call fcn.00426010
add esp, 0x14
mov byte [0xaaf068], al
push 0xaaf070
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
add esp, 0x190
ret
mov eax, esp
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x41c060
mov eax, 2
add esp, 0x190
ret
cmp word [esp], 0x202
je 0x41bfe0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
add esp, 0x190
ret