joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419bf0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x454
lea eax, [esp + 0x2c4]
push ebx
push ebp
push esi
push edi
push eax
push 0x202
xor ebp, ebp
call sub.WS2_32.dll_WSAStartup
mov esi, dword [esp + 0x468]
push ebp
push ebp
lea ecx, [esp + 0xdc]
push 0x100
push ecx
push esi
mov ebx, eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
inc eax
push eax
push esi
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea edi, [esp + 0xd4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1d4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
je 0x419c7e
mov ecx, dword [0x4d9598]
push 0x4333e4
push ecx
call fcn.0041a390
add esp, 8
mov cl, byte [esp + 0xd4]
mov al, 0x5c
cmp cl, al
jne 0x419c94
cmp byte [esp + 0xd5], al
je 0x419caa
lea edx, [esp + 0xd4]
push edx
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
je 0x419d7d
lea eax, [esp + 0x1d4]
push 0x4333e0
push eax
call dword [sym.imp.MSVCRT.dll_strtok]
mov esi, eax
add esp, 8
test esi, esi
je 0x419cc9
push esi
jmp 0x419ccf
mov esi, str.Serverstation
push esi
call sub.WS2_32.dll_gethostbyname
mov ebx, eax
test ebx, ebx
jne 0x419d9b
call sub.WS2_32.dll_WSAGetLastError
mov ebp, eax
test ebp, ebp
je 0x419d92
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x18]
push esi
push ecx
call dword [sym.imp.MSVCRT.dll_mbstowcs]
add esp, 0xc
cmp ebp, 0x2af9
jne 0x419d25
lea edx, [esp + 0x14]
push str._not_found
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
jmp 0x419d60
cmp ebp, 0x2afc
jne 0x419d47
lea eax, [esp + 0x14]
lea ecx, [esp + 0x14]
push eax
push str._s_:_Not_connected__no_data_record_found
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
jmp 0x419d60
lea edx, [esp + 0x14]
push ebp
push edx
lea eax, [esp + 0x1c]
push str._s_:_Not_connected__function_failed_with_error:__d
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x10
mov edx, dword [0x4d9598]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.0041a390
mov esi, dword [esp + 0x18]
add esp, 8
or ebp, 0xffffffff
jmp 0x419dbf
push str.localhost
call sub.WS2_32.dll_gethostbyname
mov ebx, eax
test ebx, ebx
jne 0x419d9b
call sub.WS2_32.dll_WSAGetLastError
mov esi, dword [esp + 0x10]
or ebp, 0xffffffff
jmp 0x419dbf
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
mov ecx, dword [esi]
push ecx
call sub.WS2_32.dll_inet_ntoa
push eax
lea edx, [esp + 0x98]
push 0x4332ec
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
test esi, esi
je 0x419df2
test ebx, ebx
je 0x419df2
mov eax, dword [esi]
mov esi, dword [esp + 0x46c]
push str.localhost
mov dword [esi], eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x419df2
mov ecx, dword [eax + 0xc]
mov eax, dword [esi]
mov edx, dword [ecx]
mov ecx, dword [edx]
cmp eax, ecx
mov eax, 1
jne 0x419df4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x454
ret
Function at 0x419e00
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov ecx, dword [esp + 8]
cmp eax, 0xffffffff
mov dword [ecx], eax
jne 0x419e19
or eax, eax
ret
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x419e37
push 0x33
push 0x40a
push ecx
push eax
call sub.WS2_32.dll_WSAAsyncSelect
cmp eax, 0xffffffff
jne 0x419e37
or eax, eax
ret
xor eax, eax
ret

Function at 0x419e40
Capabilities:
Connect socket

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov word [esp], 2
push eax
call sub.WS2_32.dll_htons
mov ecx, dword [esp + 0x18]
mov word [esp + 2], ax
mov eax, dword [esp + 0x14]
lea edx, [esp]
push 0x10
push edx
push eax
mov dword [esp + 0x10], ecx
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x419e83
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x419e85
xor eax, eax
add esp, 0x10
ret

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

Disassembly:
sub esp, 0x100
push esi
mov esi, dword [esp + 0x108]
push 1
push esi
call sub.WS2_32.dll_shutdown
push 0
lea eax, [esp + 8]
push 0x100
push eax
push esi
call sub.WS2_32.dll_recv
test eax, eax
je 0x419ed7
cmp eax, 0xffffffff
je 0x419ed7
push 0
lea ecx, [esp + 8]
push 0x100
push ecx
push esi
call sub.WS2_32.dll_recv
test eax, eax
jne 0x419ebc
push 2
push esi
call sub.WS2_32.dll_shutdown
push esi
call sub.WS2_32.dll_closesocket
pop esi
add esp, 0x100
ret

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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0xbb8
test eax, eax
push ebx
push esi
je 0x41a024
push 0
lea ecx, [esp + 0xc]
push 0xbb8
push ecx
push eax
call sub.WS2_32.dll_recv
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41a008
test ebx, ebx
je 0x41a024
mov eax, dword [0x4552d4]
test eax, eax
jne 0x419f59
push 0x2800
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [0x4552d4], eax
test eax, eax
je 0x41a024
mov dword [0x4552e4], 0x2800
jmp 0x419fd2
mov edx, dword [0x4552ec]
mov ecx, dword [0x4552e4]
lea esi, [edx + ebx]
cmp esi, ecx
jbe 0x419f98
add ecx, 0x2800
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_realloc]
add esp, 8
test eax, eax
je 0x41a024
mov ecx, dword [0x4552e4]
mov dword [0x4552d4], eax
add ecx, 0x2800
jmp 0x419fcc
mov esi, ecx
sub esi, edx
sub esi, ebx
cmp esi, 0x2800
jbe 0x419fd2
add ecx, 0xffffd800
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_realloc]
add esp, 8
test eax, eax
je 0x41a024
mov ecx, dword [0x4552e4]
mov dword [0x4552d4], eax
sub ecx, 0x2800
mov dword [0x4552e4], ecx
mov edx, dword [0x4552ec]
push edi
mov ecx, ebx
lea esi, [esp + 0xc]
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x4552ec]
pop edi
add eax, ebx
pop esi
mov dword [0x4552ec], eax
mov eax, ebx
pop ebx
add esp, 0xbb8
ret
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x41a024
mov ecx, dword [0x4d9598]
push eax
push ecx
call fcn.0041cc10
add esp, 8
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0xbb8
ret
Function at 0x41a030
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [0x4552f4]
push esi
test eax, eax
jne 0x41a09c
mov ecx, dword [0x4552f0]
test ecx, ecx
je 0x41a09c
mov eax, dword [esp + 8]
test eax, eax
je 0x41a09c
cmp eax, 0xffffffff
je 0x41a09c
push 0
push ecx
mov ecx, dword [0x4552dc]
push ecx
push eax
call sub.WS2_32.dll_send
mov esi, eax
cmp esi, 0xffffffff
jne 0x41a083
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x41a07e
mov dword [0x4552f4], 1
or eax, 0xffffffff
pop esi
ret
mov edx, dword [0x4552dc]
push 0x4552f0
push esi
push edx
call fcn.0041a350
add esp, 0xc
mov eax, esi
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x41c6b0
Capabilities:
Copy file

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
mov esi, dword [esp + 0x218]
test esi, esi
push edi
jne 0x41c6c9
lea esi, [esp + 0x10]
mov edi, dword [esp + 0x220]
mov word [esi], 0
test edi, edi
je 0x41c748
cmp word [edi], 0
je 0x41c748
mov ebp, dword [sym.imp.MSVCRT.dll_swprintf]
mov ebx, 1
push edi
push esi
call dword [sym.imp.MSVCRT.dll_wcscpy]
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
lea eax, [esi + eax*2 - 2]
add esp, 0xc
cmp eax, esi
jbe 0x41c721
mov cx, word [eax]
cmp cx, 0x5c
je 0x41c721
cmp cx, 0x2e
je 0x41c71c
sub eax, 2
cmp eax, esi
ja 0x41c704
jmp 0x41c721
mov word [eax], 0
push ebx
push esi
push str._s._03d
push esi
call ebp
add esp, 0x10
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x41c755
inc ebx
cmp ebx, 0x3e8
jl 0x41c6ea
mov word [esi], ax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x41c8c0
Capabilities:
Create directory

Disassembly:
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x214]
test esi, esi
push edi
je 0x41ca14
cmp word [esi], 0
je 0x41ca14
mov edi, dword [sym.imp.MSVCRT.dll__waccess]
push 0
push esi
call edi
add esp, 8
cmp eax, 0xffffffff
je 0x41c902
pop edi
mov eax, 1
pop esi
add esp, 0x20c
ret
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, dword [esp + 8]
test eax, eax
je 0x41c925
mov word [eax], 0
lea edx, [esp + 0xc]
push 0
push edx
call edi
add esp, 8
cmp eax, 0xffffffff
jne 0x41c8f4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [esp + 0x10]
push 0
push eax
call ebx
test eax, eax
jne 0x41c9f9
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
lea esi, [esp + eax*2 + 0x12]
add esp, 4
mov eax, esi
jmp 0x41c968
mov eax, dword [esp + 0xc]
sub eax, 2
lea edx, [esp + 0x10]
cmp eax, edx
mov dword [esp + 0xc], eax
jbe 0x41c98c
cmp word [eax], 0x5c
je 0x41c98c
sub eax, 2
lea ecx, [esp + 0x10]
cmp eax, ecx
mov dword [esp + 0xc], eax
ja 0x41c977
mov word [eax], 0
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
cmp eax, edx
jbe 0x41c9f9
lea eax, [esp + 0x10]
push 0
push eax
call edi
add esp, 8
cmp eax, 0xffffffff
je 0x41c964
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
cmp eax, ecx
jbe 0x41c9f9
sub eax, 2
jmp 0x41c9c3
mov eax, dword [esp + 0xc]
add eax, 2
cmp eax, esi
mov dword [esp + 0xc], eax
jae 0x41c9df
cmp word [eax], 0
je 0x41c9df
add eax, 2
cmp eax, esi
mov dword [esp + 0xc], eax
jb 0x41c9ce
mov word [eax], 0x5c
mov eax, dword [esp + 0xc]
cmp eax, esi
jae 0x41c9f9
lea edx, [esp + 0x10]
push 0
push edx
call ebx
test eax, eax
jne 0x41c9bf
lea eax, [esp + 0x10]
push 0
push eax
call edi
add esp, 8
neg eax
sbb eax, eax
pop ebx
pop edi
inc eax
pop esi
add esp, 0x20c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x20c
ret

Function at 0x41d360
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
test esi, esi
je 0x41d411
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp eax, 1
jb 0x41d411
push ebx
push esi
call dword [sym.imp.MSVCRT.dll__waccess]
add esp, 8
test eax, eax
jne 0x41d397
mov ebx, 1
push edi
mov edi, dword [esp + 0x14]
push edi
push esi
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x41d40b
mov ax, word [edi]
cmp ax, 0x72
jne 0x41d3ec
push esi
push 1
lea eax, [esp + 0x18]
push 2
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esp + 0x20]
add esp, 0x10
cmp ax, 0xfeff
je 0x41d40b
push esi
push eax
call dword [sym.imp.MSVCRT.dll_ungetwc]
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
ret
cmp ax, 0x77
je 0x41d3fc
cmp ax, 0x61
jne 0x41d40b
test ebx, ebx
jne 0x41d40b
push esi
push 0xfeff
call dword [sym.imp.MSVCRT.dll_fputwc]
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
ret
pop esi
xor eax, eax
pop ebx
ret
Function at 0x41d420
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x104
push ebx
push esi
push 0x42d004
push eax
xor ebx, ebx
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x41d4a8
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea ecx, [esp + 0x14]
push 2
push ecx
mov dword [esp + 0x1c], ebx
call edi
add esp, 0x10
cmp word [esp + 0xc], 0xfeff
je 0x41d48d
push esi
push 1
lea edx, [esp + 0x18]
push 0x100
push edx
call edi
add esp, 0x10
lea eax, [esp + 0x10]
push ebx
push 0x100
push eax
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
test eax, eax
je 0x41d492
mov ebx, 1
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x104
ret
mov eax, ebx
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x41e600
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x44280c]
push esi
test eax, eax
je 0x41e624
mov eax, dword [0x4d9598]
push str.Info:_WFThread_already_running_
push eax
call fcn.0041a390
add esp, 8
mov eax, 1
pop esi
ret
mov esi, dword [esp + 8]
cmp word [esi + 0x40], 0
lea eax, [esi + 0x40]
je 0x41e61d
push eax
push 0x4427b8
call dword [sym.imp.MSVCRT.dll_wcscpy]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x80]
add esp, 8
mov dword [0x4427f8], ecx
test eax, eax
mov dword [0x4427fc], eax
jge 0x41e664
mov dword [0x4427fc], 0x64
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
call esi
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
mov dword [0x442800], eax
push 0
mov dword [edx], eax
call esi
mov ecx, dword [esp + 0x14]
push 0x4427b8
mov dword [0x442804], eax
mov esi, 1
push 0
mov dword [ecx], eax
push 0x41f690
mov dword [0x442808], esi
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
cmp eax, 0xffffffff
je 0x41e6c3
mov dword [0x44280c], esi
mov eax, esi
pop esi
ret
mov edx, dword [0x442800]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [0x442804]
push eax
call esi
mov dword [0x442804], 0
mov dword [0x442800], 0
xor eax, eax
pop esi
ret

Function at 0x41f350
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
xor eax, eax
push esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
push eax
push eax
push 1
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x41f389
or eax, 0xffffffff
pop esi
add esp, 0x18
ret
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
lea ecx, [esp + 8]
lea edx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41f437
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x41f3d0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop esi
add esp, 0x18
ret
mov eax, dword [esp + 0x18]
push 0x12c
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
je 0x41f41d
cmp eax, 0x102
je 0x41f41d
cmp eax, 0xffffffff
je 0x41f41d
lea ecx, [esp + 4]
push 0
lea edx, [esp + 0xc]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x41f437
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop esi
add esp, 0x18
ret
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop esi
add esp, 0x18
ret
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 4]
pop esi
add esp, 0x18
ret
Function at 0x41f450
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x2c
xor eax, eax
push ebx
mov dword [esp + 0x20], eax
push ebp
push esi
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
push edi
xor edi, edi
mov dword [esp + 0x34], eax
push 1
push esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_SetCommMask]
test eax, eax
jne 0x41f48b
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x2c
ret
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x44]
cmp eax, edi
jbe 0x41f59a
mov ebx, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitCommEvent]
mov ecx, dword [esp + 0x38]
push ecx
call ebx
lea edx, [esp + 0x28]
lea eax, [esp + 0x10]
push edx
push eax
push esi
call ebp
test eax, eax
jne 0x41f50d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41f5b6
mov ecx, dword [esp + 0x38]
push 0x3e8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41f5b6
push eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x2c]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x41f5b6
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x41f5d3
mov eax, dword [esp + 0x20]
cmp eax, 1
jb 0x41f590
cmp eax, 0x100
jbe 0x41f53b
mov eax, 0x100
lea ecx, [esp + 0x28]
lea edx, [esp + 0x40]
push ecx
push edx
push eax
lea eax, [edi + 0x4d9c40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f55e
add edi, dword [esp + 0x40]
jmp 0x41f590
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41f5e9
mov ecx, dword [esp + 0x38]
push 0x64
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41f589
mov edx, dword [esp + 0x38]
push edx
call ebx
add edi, dword [esp + 0x40]
jmp 0x41f590
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
cmp edi, dword [esp + 0x44]
jb 0x41f4b2
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x2c
ret
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x2c
ret
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x2c
ret
Function at 0x41f600
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov edx, dword [esp + 8]
push esi
xor eax, eax
xor ecx, ecx
lea esi, [edx - 1]
test esi, esi
jle 0x41f634
push edi
mov edi, dword [esp + 0xc]
xor edx, edx
mov dl, byte [ecx + edi]
xor eax, edx
mov edx, eax
and eax, 0x7f
shr edx, 7
and edx, 0xff
shl eax, 1
or eax, edx
inc ecx
cmp ecx, esi
jl 0x41f615
pop edi
pop esi
ret

Function at 0x420820
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x570
push ebx
push esi
push edi
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 0
push 0x7f00
rep stosd dword es:[edi], eax
push eax
mov dword [esp + 0x34], 6
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x7f00
push 0
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esp + 0x14], 0x4209e0
mov dword [esp + 0x34], str.WireFeeder
mov ebx, dword [esp + 0x580]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x20], ebx
push eax
mov dword [esp + 0x14], 3
call dword [sym.imp.USER32.dll_RegisterClassW]
mov ecx, 0x80
lea edi, [esp + 0x17c]
mov esi, dword [esp + 0x588]
lea edx, [esp + 0x54]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x7c]
lea eax, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x184]
push eax
push ecx
call fcn.0041b580
add esp, 0x10
call fcn.0041b8f0
mov eax, dword [esp + 0xc]
mov esi, 1
fstp qword [0x4552a0]
cmp eax, esi
jle 0x42090c
mov edx, dword [esp + 0x54]
push 0xa
push 0
push edx
call dword [sym.imp.MSVCRT.dll_wcstol]
mov dword [0x435d84], eax
mov eax, dword [esp + 0x64]
push 0x208
push eax
push 0x4428c0
call fcn.0041b690
add esp, 0x18
cmp dword [esp + 0xc], 2
jle 0x42092a
mov ecx, dword [esp + 0x5c]
push 0x208
push ecx
push 0x4430e0
call fcn.0041b690
add esp, 0xc
mov eax, dword [0x435d84]
cmp eax, esi
jl 0x420938
cmp eax, 0x64
jle 0x42093e
mov dword [0x435d84], esi
push 0
push ebx
push 0
push 0
push closesocket
push closesocket
push closesocket
push closesocket
push 0x2cf0000
push str.WireFeeder
push str.WireFeeder
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
push 7
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
lea edx, [esp + 0x40]
push 0
push edx
call esi
test eax, eax
je 0x4209c4
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [esp + 0x38]
push eax
call edi
lea ecx, [esp + 0x38]
push ecx
call ebx
push 0
push 0
lea edx, [esp + 0x40]
push 0
push edx
call esi
test eax, eax
jne 0x4209a5
mov eax, dword [esp + 0x40]
pop edi
pop esi
pop ebx
add esp, 0x570
ret 0x10
Function at 0x4287e0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
push edi
mov edi, 1
mov esi, 0x45556c
cmp dword [esi - 4], edi
jne 0x428833
cmp esi, 0x48a12c
jl 0x428801
cmp esi, 0x48beb4
jle 0x428833
mov eax, dword [esi - 0x10]
test eax, eax
je 0x428811
mov eax, dword [esi]
and eax, 7
cmp al, 7
je 0x428833
mov dword [esi], 7
mov ecx, dword [esi + 4]
push 0
push 0
push 0
push ecx
push 7
push edi
call fcn.0041dfc0
add esp, 0x18
mov dword [esi - 0x10], 1
add esi, 0x21c
inc edi
cmp esi, 0x4d92cc
jl 0x4287ec
mov dx, word [0x434fae]
push 0
push edx
mov word [0x4d92c0], 0
call fcn.00427d90
push 0x455340
call fcn.0041e3b0
add esp, 0xc
cmp eax, 0x19f
pop edi
pop esi
jne 0x42887a
mov dword [0x4d958c], 1
jmp fcn.004262b0
Function at 0x42878c
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x485798
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebp
push edi
mov edi, ecx
xor ebp, ebp
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x48]
push ebp
push eax
push ecx
lea ecx, [edi + 0x104]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.004236ec
test eax, eax
jne 0x4287f8
push ebp
push 0x654e5c
mov ecx, edi
call fcn.00427a0c
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
pop edi
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
mov edx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x50]
push esi
push ebp
push ebp
push ebx
lea ecx, [edx + 0x14]
call fcn.0042326c
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.004198ac
push ebx
mov dword [esp + 0x4c], ebp
call fcn.0042389c
add esp, 4
test eax, eax
je 0x42889b
add esi, 0x18
push esi
call fcn.0041a2fc
add esi, eax
push esi
call fcn.0041a2fc
mov ecx, dword [esp + 0x60]
add esp, 8
cmp ecx, 3
lea eax, [esi + eax + 8]
ja 0x428b9e
jmp dword [ecx*4 + 0x41c360]
mov eax, dword [esi]
push ebp
push eax
mov ecx, edi
call fcn.00427b4c
mov ebx, dword [esp + 0x58]
mov ebp, eax
lea edi, [esi + 0x18]
mov edx, dword [ebp + 0x28]
lea ecx, [ebx + ebx*4]
mov esi, edi
lea eax, [edx + ecx*4]
push esi
mov dword [esp + 0x5c], eax
call fcn.0041a2fc
add esi, eax
push esi
call fcn.0041a2fc
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x4288ec
mov ecx, dword [esi + 0x1c]
push ecx
call dword [fcn.004893f4]
test eax, eax
je 0x4288ec
mov eax, 1
jmp 0x4288ee
xor eax, eax
cmp ebx, 8
jge 0x428b53
cmp ebx, 7
ja 0x428b9e
jmp dword [ebx*4 + 0x41c370]
test eax, eax
jne 0x428b66
mov ecx, dword [esp + 0x10]
push eax
push 0x654e48
call fcn.00427a0c
push 6
call dword [ebp + 0x2c]
lea edx, [esp + 0x1c]
xor ecx, ecx
add ebx, 0xfffffff8
push edx
mov dword [esp + 0x20], ecx
push ebx
push esi
mov dword [esp + 0x2c], ecx
call eax
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
call fcn.004290ac
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x2c], 0x63fdb8
call fcn.00419aac
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
mov edx, edi
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10