joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401630
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x584
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x41e8b0]
push ebx
push esi
push edi
mov dword [ebp - 0x564], eax
lea eax, [ebp - 0x580]
push eax
push 0
push 0
lea eax, [ebp - 0x568]
mov dword [ebp - 0x578], edx
push eax
push 1
mov dword [ebp - 0x574], ecx
mov dword [ebp - 0x570], 0x10
mov dword [ebp - 0x568], 1
mov dword [ebp - 0x57c], 0
mov dword [ebp - 0x580], 3
call dword [sym.imp.WS2_32.dll_select]
lea eax, [ebp - 0x568]
push eax
push dword [0x41e8b0]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x401851
lea eax, [ebp - 0x570]
push eax
lea eax, [ebp - 0x460]
push eax
push 0
push 0x3e8
lea eax, [ebp - 0x450]
push eax
push dword [0x41e8b0]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
test esi, esi
jle 0x401816
push 0x2e
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x45c]
push eax
push 2
call dword [sym.imp.WS2_32.dll_InetNtopW]
push dword [ebp - 0x45e]
mov edi, dword [sym.imp.WS2_32.dll_ntohs]
call edi
movzx eax, ax
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push str.____Received__d_Bytes_from__s:_d_n
call fcn.004018c0
add esp, 0x10
cmp esi, 0x14
jbe 0x401851
lea eax, [esi - 0x14]
lea esi, [ebp - 0x43c]
cmp eax, 4
jb 0x401851
mov ebx, esi
sub eax, 4
mov dword [ebp - 0x56c], eax
add esi, 4
movzx eax, word [ebx + 2]
push eax
call edi
movzx eax, ax
cmp eax, dword [ebp - 0x56c]
jg 0x401851
movzx eax, word [ebx]
push eax
call edi
cmp ax, 1
jne 0x4017af
movzx eax, word [ebx + 2]
push eax
call edi
cmp ax, 8
jne 0x4017af
mov edx, dword [ebp - 0x574]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [edx], eax
mov dword [edx + 4], ecx
movzx eax, word [esi + 2]
push eax
call edi
movzx eax, ax
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str._____S:_d_n
call fcn.004018c0
add esp, 0xc
movzx eax, word [ebx]
push eax
call edi
cmp ax, 5
jne 0x4017d8
movzx eax, word [ebx + 2]
push eax
call edi
cmp ax, 8
jne 0x4017d8
mov edx, dword [ebp - 0x578]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [edx], eax
mov dword [edx + 4], ecx
movzx eax, word [ebx + 2]
push eax
call edi
movzx eax, ax
sub dword [ebp - 0x56c], eax
movzx eax, word [ebx + 2]
push eax
call edi
movzx eax, ax
add esi, eax
mov eax, dword [ebp - 0x56c]
cmp eax, 4
jae 0x401740
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004018f4
mov esp, ebp
pop ebp
ret
jne 0x401838
push str.remote_party_closed_connection_n
call fcn.004018c0
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004018f4
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
jne 0x401851
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.recvfrom_failed_with_error___d_n
call fcn.004018c0
add esp, 8
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004018f4
mov esp, ebp
pop ebp
ret
Function at 0x4020f9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402138
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402138
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402138
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402138
cmp dword [ecx + 0x74], 0xe
jbe 0x402138
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x409daa
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x417624
push 0x41761c
push str.FlsAlloc
push 0x1f
call fcn.00409c88
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409dde
push dword [ebp + 8]
mov ecx, esi
call dword [0x416154]
call esi
jmp 0x409de4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x409e28
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x417634
push 0x41762c
push str.FlsGetValue
push 0x21
call fcn.00409c88
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409e5f
push dword [ebp + 8]
mov ecx, esi
call dword [0x416154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x409e67
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41763c
push 0x417634
push str.FlsSetValue
push 0x22
call fcn.00409c88
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409ea1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x416154]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40c438
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x40c483
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040c655
test al, al
jne 0x40c47d
sub edx, 2
cmp edx, edi
jne 0x40c463
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40c4a5
lea eax, [edi + 2]
cmp edx, eax
je 0x40c4a5
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040c384
add esp, 0x10
jmp 0x40c59f
push esi
lea ecx, [ebp - 0x255]
call fcn.0040c655
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c4e8
push dword [ebp - 0x25c]
jmp 0x40c495
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40c525
cmp word [ebp - 0x226], 0
je 0x40c546
cmp word [ebp - 0x226], ax
jne 0x40c525
cmp word [ebp - 0x224], 0
je 0x40c546
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040c384
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40c592
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40c4ff
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40c57a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40c59f
push 0x40c1b4
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00411af0
add esp, 0x10
jmp 0x40c56f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004018f4
leave
ret

Function at 0x40d15d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x40d16e
pop esi
ret
push ebx
push edi
push esi
call fcn.0040d126
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040a559
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40d196
push ebx
push esi
push edi
call fcn.00404180
add esp, 0xc
push 0
call fcn.00409b35
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40d566
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040d1ab
Function at 0x414f40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x414f6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x414f6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4011a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
push str.Transmitting__d_bytes
push 0xcc
push str.tx_data
push 1
xor esi, esi
call fcn.00401d50
mov ebx, dword [ebp + 8]
add esp, 0x14
cmp dword [0x429038], 1
jle 0x4011e1
mov eax, dword [0x429028]
push eax
push edi
push ebx
call fcn.004025d0
add esp, 0xc
test edi, edi
je 0x401217
mov ecx, dword [0x429024]
mov eax, edi
sub eax, esi
cmp eax, ecx
jb 0x4011f5
mov eax, ecx
push 0
lea ecx, [ebp + 0xc]
push ecx
push eax
mov eax, dword [0x429004]
lea edx, [esi + ebx]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401247
add esi, dword [ebp + 0xc]
cmp esi, edi
jb 0x4011e5
mov eax, dword [0x429008]
add eax, esi
push eax
push str.Total_bytes_sent_so_far:__d
push 0xec
push str.tx_data
push 1
mov dword [0x429008], eax
call fcn.00401d50
add esp, 0x14
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
push str.Error_occurred_while_writing_to_COM_port
push 0xd6
push str.tx_data
push 0
call fcn.00401d50
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x401270
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x429020]
cmp eax, ecx
jb 0x401282
mov eax, ecx
mov edx, dword [0x429004]
push esi
mov esi, dword [ebp + 8]
push 0
lea ecx, [ebp + 0xc]
push ecx
push eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4012bc
push str.Error_occurred_while_reading_from_COM_port
push 0xf7
push str.rx_data
push eax
call fcn.00401d50
add esp, 0x10
xor eax, eax
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
test ecx, ecx
je 0x4012c8
mov dword [ecx], eax
push eax
push str.Received__d_bytes
push 0x127
push str.rx_data
push 1
call fcn.00401d50
mov eax, dword [ebp + 0xc]
add dword [0x42900c], eax
add esp, 0x14
cmp dword [0x429038], 1
jle 0x401305
mov ecx, dword [0x429028]
push ecx
push eax
push esi
call fcn.004025d0
add esp, 0xc
mov eax, 1
pop esi
pop ebp
ret
Function at 0x4037c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x429054]
push ebx
push esi
mov esi, dword [0x429040]
push eax
call fcn.00402540
xor ebx, ebx
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
cmp eax, 0xffffffff
jne 0x403809
push str.Could_not_get_file_info.
push 0x51e
push str.start_image_transfer
push ebx
call fcn.00401d50
add esp, 0x10
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [esi + 0xc]
mov esi, dword [esi + 0x10]
push ebx
push edi
push str.start_image_transfer:_Offset__ld
push 0x529
push str.start_image_transfer
push 1
call fcn.00401d50
push ebx
push edi
push str.start_image_transfer:_Offset_0x_X
push 0x52a
push str.start_image_transfer
push 1
call fcn.00401d50
xor eax, eax
push eax
push esi
push str.start_image_transfer:_Length__ld
push 0x52b
push str.start_image_transfer
push 1
call fcn.00401d50
add esp, 0x48
xor eax, eax
push eax
push esi
push str.start_image_transfer:_Length_0x_X
push 0x52c
push str.start_image_transfer
push 1
call fcn.00401d50
add esp, 0x18
test esi, esi
jne 0x403886
xor eax, eax
je 0x4039ab
cmp dword [ebp - 8], 1
jne 0x4038bb
mov ecx, dword [0x429054]
push ecx
call fcn.00402160
add esp, 4
mov edx, esi
add edx, edi
mov ecx, ebx
adc ecx, ebx
mov dword [ebp - 0xc], eax
xor eax, eax
cmp ecx, eax
ja 0x4039ab
jb 0x4038bb
cmp edx, dword [ebp - 0xc]
ja 0x4039ab
mov edx, dword [0x429054]
push 0
push edi
push edx
call fcn.00407ca3
add esp, 0xc
test esi, esi
je 0x403921
mov ebx, dword [ebp - 4]
mov eax, esi
sub eax, ebx
mov edi, eax
cmp eax, 0x100000
jb 0x4038e6
mov edi, 0x100000
mov eax, dword [0x429044]
mov ecx, dword [0x429054]
push edi
push eax
push ecx
call fcn.0040e807
add esp, 0xc
test eax, eax
js 0x403933
cmp eax, edi
jne 0x403963
mov edx, dword [0x429044]
push edi
push edx
call fcn.004011a0
add esp, 8
test eax, eax
je 0x403989
add ebx, edi
mov dword [ebp - 4], ebx
cmp ebx, esi
jb 0x4038d1
add dword [0x429050], esi
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00406805
mov eax, dword [eax]
push eax
call fcn.00406706
push eax
push str.file_read_failed:__s
push 0x540
push str.start_image_transfer
push 0
call fcn.00401d50
add esp, 0x18
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
push ecx
push esi
push eax
push str.Read__d_bytes__but_was_asked_for__ld_bytes
push 0x544
push str.start_image_transfer
push ecx
call fcn.00401d50
add esp, 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push str.Tx_Sahara_Image_Failed
push 0x54a
push str.start_image_transfer
push 0
call fcn.00401d50
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
push eax
push esi
push str.Invalid_length__ld_bytes_request_to_be_transmitted
push 0x533
push str.start_image_transfer
push eax
call fcn.00401d50
mov ecx, dword [0x429054]
push ecx
call fcn.00402160
push eax
push ebx
push edi
push str.File_offset__ld__file_size__d
push 0x534
push str.start_image_transfer
push 0
call fcn.00401d50
add esp, 0x38
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4068da
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 0x406901
call fcn.00406818
mov dword [eax], esi
call fcn.00406805
push 0x16
pop esi
mov dword [eax], esi
call fcn.00409d8f
mov eax, esi
jmp 0x406956
test dword [ebp + 0xc], 0xfffffff9
jne 0x4068e7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40692e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040682b
pop ecx
call fcn.00406805
mov eax, dword [eax]
jmp 0x406956
test al, 0x10
jne 0x406954
test al, 1
je 0x406954
test byte [ebp + 0xc], 2
je 0x406954
call fcn.00406818
mov dword [eax], 5
call fcn.00406805
mov dword [eax], 0xd
jmp 0x406925
xor eax, eax
pop esi
pop ebp
ret

Function at 0x417eff
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x429084]
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.0040cf13
and dword [ebp - 0x14], 0
cmp dword [0x42b9cc], 0
mov dword [ebp - 0x18], eax
jne 0x417fb2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41805a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41805a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42b9cc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42b9d0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42b9d4], eax
call edi
push eax
call esi
mov dword [0x42b9dc], eax
test eax, eax
je 0x417fb2
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42b9d8], eax
mov eax, dword [0x42b9d8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41800b
cmp dword [0x42b9dc], ecx
je 0x41800b
push eax
call esi
push dword [0x42b9dc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41800b
test ebx, ebx
je 0x41800b
call edi
test eax, eax
je 0x418002
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x418002
test byte [ebp - 8], 1
jne 0x41800b
or dword [ebp + 0x10], 0x200000
jmp 0x41803e
mov eax, dword [0x42b9d0]
cmp eax, dword [ebp - 0x18]
je 0x41803e
push eax
call esi
test eax, eax
je 0x41803e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41803e
mov eax, dword [0x42b9d4]
cmp eax, dword [ebp - 0x18]
je 0x41803e
push eax
call esi
test eax, eax
je 0x41803e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42b9cc]
call esi
test eax, eax
je 0x41805a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41805c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405815
leave
ret
Function at 0x438cad
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x438a14
or edx, edx
push 0x66f726bd
pop edi
call fcn.00438cf2
and edx, edx
add edx, 1
mov edx, edi
xor dword [esi], ebx
and edx, edx
sub edx, 0xea35ae3c
sub edi, edx
add esi, 1
or edi, edi
add edx, edx
cmp esi, ecx
jne fcn.00438cad
push 0x446e4f1a
pop edx
or edx, edi
dec edx
ret
Function at 0x40e500
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x471aab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00466341
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40e582
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00463e50
mov eax, dword [eax]
push 0x555260
push eax
call fcn.00456114
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004665cc
test bl, bl
je 0x40e582
push 0x555260
lea ecx, [esp + 0xc]
call fcn.0046695c
push 0x558dd4
lea ecx, [esp + 0xc]
call fcn.0046695c
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40e5be
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004665cc
jmp 0x40e689
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40e642
lea edx, [esp + 0x7c]
push 0x558dd0
push edx
call fcn.00456114
add esp, 8
test eax, eax
je 0x40e642
lea eax, [esp + 0x7c]
push 0x558dcc
push eax
call fcn.00456114
add esp, 8
test eax, eax
je 0x40e642
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40e5d2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004665cc
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40ee80
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40eee2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40eef0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x471b2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x560d68]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40f028
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40ef56
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004665cc
xor eax, eax
jmp 0x40f09f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00466709
push esi
lea ecx, [esp + 0xc]
call fcn.00466998
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40f07d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040ee80
test eax, eax
jne 0x40f07d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.0040ee80
test eax, eax
jne 0x40f07d
lea eax, [esp + 0x14]
push 0x558de8
push eax
call fcn.00457150
mov esi, eax
add esp, 8
test esi, esi
jne 0x40f05c
lea ecx, [esp + 0x14]
push 0x558de4
push ecx
call fcn.004570d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40f05c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40f05f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004666b9
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40ef6e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004665cc
xor eax, eax
jmp 0x40f09f
mov byte [esi], 0
push 0x558de0
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004665cc
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x41f680
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x41f6ee
cmp si, 0x69
ja 0x41f6ee
add esi, 0xffd0
cmp si, 0x11
je 0x41f6be
push 0x11
call edi
test ax, ax
jge 0x41f6be
or esi, 0x2000
cmp si, 0x10
je 0x41f6d3
push 0x10
call edi
test ax, ax
jge 0x41f6d3
or esi, 0x4000
cmp si, 0x12
je 0x41f6e8
push 0x12
call edi
test ax, ax
jge 0x41f6e8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41f6fb
mov esi, 0xbd
jmp 0x41f6af
cmp si, 0x6e
jne 0x41f708
mov esi, 0xbe
jmp 0x41f6af
cmp si, 0x6f
jne 0x41f6a9
mov esi, 0xbf
jmp 0x41f6af

Function at 0x420e20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5714f0]
xor edx, edx
cmp eax, edx
jne 0x420e46
xor eax, eax
mov byte [eax + 0x5713f0], al
inc eax
cmp eax, 0x100
jl 0x420e2e
mov dword [0x5714f0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5713f0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x420ed7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x420eaa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x420e78
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x420f50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x420fa3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x420f8a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret