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

Disassembly:
sub esp, 0x88
mov eax, dword [0x5405a0]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
mov ebx, dword [ebp]
push esi
mov esi, dword [ebp + 0x340]
push edi
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push 0
add edx, 4
lea edi, [esi + 0x15c]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x4b650f
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.004d4040
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], edx
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x4b654a
push str.Received_too_short_packet
push ebx
call fcn.004aece0
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ccee1
add esp, 0x88
ret
mov eax, edi
call fcn.004b53a0
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x4b6563
jmp dword [eax*4 + 0x4b664c]
cmp edx, 4
jle case.0x4b6563.4
mov eax, edi
call fcn.004b53b0
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne case.0x4b6563.4
add edx, 0xfffffffc
push edx
mov edx, dword [edi]
add edx, 4
push edx
push 1
push ebp
call fcn.004aef20
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4b65b6
mov ecx, 5
mov eax, esi
call fcn.004b6400
mov eax, edi
jmp 0x4b6531
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x38], eax
mov ecx, dword [ebx + 0x38]
adc dword [ebx + 0x3c], edx
mov eax, dword [ebx + 0x3c]
push eax
push ecx
push ebx
call fcn.004c2200
jmp 0x4b6622
mov eax, edi
call fcn.004b53b0
movzx edx, ax
mov eax, dword [edi]
add eax, 4
push eax
push 0x51861c
push ebx
mov dword [esi + 8], edx
call fcn.004aec50
jmp 0x4b6622
mov ecx, dword [edi]
add edx, 0xfffffffe
push edx
add ecx, 2
push ecx
push esi
call fcn.004b5440
add esp, 0xc
test eax, eax
je case.0x4b6563.4
jmp 0x4b6531
push str.Internal_error:_Unexpected_packet
push 0x52f004
push ebx
call fcn.004aece0
add esp, 0xc
push ebp
call fcn.004c22c0
add esp, 4
test eax, eax
je 0x4b652f
mov ecx, 5
mov eax, esi
call fcn.004b6400
mov eax, 0x2a
jmp 0x4b6531
Function at 0x4b80c0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x5405a0]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4b80f5
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.004aece0
add esp, 0xc
jmp 0x4b812e
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp]
cmp al, 2
jne 0x4b8120
shr eax, 8
test al, al
jne 0x4b8120
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004ccee1
add esp, 0x194
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.004aece0
add esp, 8
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.004ccee1
add esp, 0x194
ret

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

Disassembly:
push ecx
mov edx, dword [edi + 0xc8]
mov al, byte [esp + 8]
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x4b82f4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.004aece0
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.004b81b0
add esp, 4
pop esi
pop ecx
ret
Function at 0x4b98a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x5405a0]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
mov ebp, dword [esi]
push edi
mov edi, dword [esi + 0xcc]
push 1
push 0
push esi
or ebx, 0xffffffff
mov dword [esp + 0x18], 0x10
call fcn.004af080
add esp, 0xc
test eax, eax
jle 0x4b9909
mov ecx, 0x3e8
cmp eax, ecx
jge 0x4b98e0
mov ecx, eax
push ecx
push 0xffffffffffffffff
push edi
call fcn.004c0a80
add esp, 0xc
cmp eax, 0xffffffff
je 0x4b99a1
test eax, eax
jne 0x4b992e
push 1
push eax
push esi
call fcn.004af080
add esp, 0xc
test eax, eax
jg 0x4b98d5
push str.Timeout_while_waiting_for_server_connect
push ebp
call fcn.004aece0
add esp, 8
pop edi
pop ebp
mov eax, 0x1c
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004ccee1
add esp, 0x18
ret
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4b995e
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp ebx, 0xffffffff
jne 0x4b9971
push str.Error_accept__ing_server_connect
jmp 0x4b99a6
push str.Connection_accepted_from_server_n
push ebp
call fcn.004aec50
push 1
push ebx
mov dword [esi + 0xcc], ebx
call fcn.004c4b40
add esp, 0x10
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004ccee1
add esp, 0x18
ret
push str.Error_while_waiting_for_server_connect
push ebp
call fcn.004aece0
mov ecx, dword [esp + 0x28]
add esp, 8
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x1e
call fcn.004ccee1
add esp, 0x18
ret
Function at 0x4ba950
Capabilities:
Check http status code

Disassembly:
push ebx
mov ebx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
push ebp
mov ebp, dword [esp + 0xc]
mov eax, edx
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
push edi
mov edi, dword [ebx]
cmp eax, 2
je 0x4ba98a
push str.Couldnt_set_desired_mode
push edi
call fcn.004aece0
add esp, 8
pop edi
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x4ba9a1
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edi
call fcn.004aec50
add esp, 0xc
cmp ebp, 0x13
jne 0x4ba9b4
mov eax, ebx
call fcn.004ba4f0
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x4ba9c5
call fcn.004ba540
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x4ba9d8
mov eax, ebx
call fcn.004ba650
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x4ba9e6
mov eax, ebx
call fcn.004ba660
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x4c0a80
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
sub esp, 0x31c
push ebx
mov ebx, dword [esp + 0x324]
push ebp
mov ebp, dword [esp + 0x32c]
push esi
xor esi, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
cmp ebx, 0xffffffff
jne 0x4c0ac0
cmp ebp, ebx
jne 0x4c0ac0
mov eax, dword [esp + 0x334]
call fcn.004c0a60
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
push edi
mov edi, dword [esp + 0x338]
cmp edi, esi
jle 0x4c0adb
mov esi, edi
call fcn.004c1cd0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
xor eax, eax
xor ecx, ecx
or edx, 0xffffffff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x124], eax
cmp ebx, 0xffffffff
je 0x4c0b0f
mov ecx, 1
mov dword [esp + 0x128], ebx
mov dword [esp + 0x124], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ecx
mov edx, ebx
mov dword [esp + 0x228], eax
cmp ebp, 0xffffffff
je 0x4c0b53
mov dword [esp + 0x22c], ebp
mov dword [esp + 0x228], 1
test ecx, ecx
jbe 0x4c0b3c
cmp dword [esp + eax*4 + 0x24], ebp
je 0x4c0b3c
inc eax
cmp eax, ecx
jb 0x4c0b31
cmp eax, ecx
jne 0x4c0b4d
cmp ecx, 0x40
jae 0x4c0b4d
mov dword [esp + eax*4 + 0x24], ebp
inc dword [esp + 0x20]
cmp ebp, edx
jbe 0x4c0b53
mov edx, ebp
xor ebx, ebx
test edi, edi
setl bl
lea eax, [esp + 0x18]
lea ebp, [edx + 1]
dec ebx
and ebx, eax
xor eax, eax
cmp edi, eax
jle 0x4c0b95
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
imul eax, eax, 0x3e8
mov ecx, esi
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [esp + 0x1c], ecx
jmp 0x4c0b9f
jne 0x4c0b9f
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push ebx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x130]
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4c0c09
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4c0bd2
cmp eax, 0x2714
jne 0x4c0c0d
test edi, edi
jle 0x4c0b64
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.004c1cd0
push edx
push eax
call fcn.004c1d00
mov esi, edi
sub esi, eax
add esp, 0x10
test esi, esi
jg 0x4c0b64
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
test eax, eax
jge 0x4c0c1b
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
jne 0x4c0c2a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret
mov edi, dword [esp + 0x330]
xor esi, esi
cmp edi, 0xffffffff
je 0x4c0c61
lea ecx, [esp + 0x124]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c0c4f
mov esi, 1
lea edx, [esp + 0x20]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c0c61
or esi, 4
mov edi, dword [esp + 0x334]
cmp edi, 0xffffffff
je 0x4c0c94
lea eax, [esp + 0x228]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c0c82
or esi, 2
lea ecx, [esp + 0x20]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c0c94
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
Function at 0x4c1110
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov dword [eax], 0
call fcn.004c1cd0
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0xc4]
push ecx
mov ecx, dword [esi + 0xc0]
push ecx
push edx
push eax
call fcn.004c1d00
mov ebx, dword [esp + 0x40]
add esp, 0x10
cmp eax, ebx
jg 0x4c11ca
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
lea ebx, [ebx]
mov edx, ebx
sub edx, eax
mov eax, dword [esp + 0x20]
push edx
push 0xffffffffffffffff
push eax
call fcn.004c0a80
add esp, 0xc
test eax, eax
jle 0x4c11ed
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edi
push ebp
push edx
call fcn.004ae980
add esp, 0x10
cmp eax, 0x51
je 0x4c11a9
test eax, eax
jne 0x4c11f0
mov eax, dword [esp + 0x14]
cmp edi, eax
je 0x4c11d7
test eax, eax
je 0x4c11ed
sub edi, eax
add ebp, eax
add dword [esp + 0x10], eax
call fcn.004c1cd0
mov ecx, dword [esi + 0xc4]
push ecx
mov ecx, dword [esi + 0xc0]
push ecx
push edx
push eax
call fcn.004c1d00
add esp, 0x10
cmp eax, ebx
jle 0x4c1160
pop edi
pop esi
pop ebp
mov eax, 0x1c
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
add eax, edx
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
add esp, 8
ret
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x4c29d0
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x4c29df
jmp dword [ecx*4 + 0x4c2a34]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret

Function at 0x4c4c00
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.004d0cd7
add esp, 0x18
test eax, eax
je 0x4c4c23
cmp eax, 0xffffffff
jne 0x4c4c25
xor eax, eax
ret

Function at 0x4c4c70
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1a4]
test esi, esi
jne 0x4c4c89
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.004c1cd0
push edx
push eax
call fcn.004c1d00
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x19c], 0
je 0x4c4cd6
mov eax, dword [ebx + 0xbc]
mov ecx, dword [ebx + 0xb8]
push eax
push ecx
call fcn.004c1cd0
push edx
push eax
call fcn.004c1d00
mov ecx, dword [edi + 0x19c]
sub ecx, eax
add esp, 0x10
cmp esi, ecx
mov eax, ecx
jge 0x4c4cd8
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x4c5610
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x540344]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4c5635
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x4c567c
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x4c5680
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
mov dword [esp + 0x10], 0
test ebp, ebp
jbe 0x4c56de
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
inc ebx
call edx
add esp, 0x18
sub ebp, 1
jne 0x4c56a3
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x4c5721
lea esp, [esp]
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push 0x51ca2c
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x51ca2d
push eax
call ecx
mov eax, dword [esp + 0x20]
inc eax
add esp, 0x18
mov dword [esp + 8], eax
cmp eax, dword [esi + 0x10]
jb 0x4c56f0
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x4c57a0
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 0x4c70e0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
xor ecx, ecx
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
sete cl
mov ebp, ecx
test ebp, ebp
je 0x4c7104
mov edx, dword [eax + 8]
mov eax, dword [esi + 0xc]
push edx
push ebx
push 1
push edi
call eax
jmp 0x4c7135
cmp dword [esi + 8], 0
jne 0x4c7128
mov ecx, dword [eax + 8]
push 0x52c234
push ecx
call fcn.004d30c1
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4c7128
pop edi
or eax, 0xffffffff
pop ebp
ret
mov edx, dword [esi + 8]
push edx
push ebx
push 1
push edi
call fcn.004d1027
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4c7142
cmp edi, ebx
jbe 0x4c715b
test ebp, ebp
jne 0x4c7155
mov eax, dword [esi + 8]
push eax
call fcn.004d038d
add esp, 4
mov dword [esi + 8], ebp
mov ecx, dword [esi]
mov edx, dword [ecx]
mov dword [esi], edx
mov eax, edi
pop edi
pop ebp
ret
Function at 0x4ccee1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5405a0]
jne 0x4cceeb
repz ret
jmp fcn.004d8e86

Function at 0x4e801e
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.004d2107
and dword [ebp - 4], 0
cmp dword [0x546c5c], 0
mov ebx, eax
jne 0x4e80cf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4e8180
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4e8180
push eax
call fcn.004d2095
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x546c5c], eax
call esi
push eax
call fcn.004d2095
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x546c60], eax
call esi
push eax
call fcn.004d2095
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x546c64], eax
call esi
push eax
call fcn.004d2095
pop ecx
mov dword [0x546c6c], eax
test eax, eax
je 0x4e80cf
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004d2095
pop ecx
mov dword [0x546c68], eax
mov eax, dword [0x546c68]
cmp eax, ebx
je 0x4e8127
cmp dword [0x546c6c], ebx
je 0x4e8127
push eax
call fcn.004d2110
push dword [0x546c6c]
mov esi, eax
call fcn.004d2110
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4e8127
test edi, edi
je 0x4e8127
call esi
test eax, eax
je 0x4e811e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4e811e
test byte [ebp - 0xc], 1
jne 0x4e8127
or dword [ebp + 0x10], 0x200000
jmp 0x4e8160
mov eax, dword [0x546c60]
cmp eax, ebx
je 0x4e8160
push eax
call fcn.004d2110
pop ecx
test eax, eax
je 0x4e8160
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4e8160
mov eax, dword [0x546c64]
cmp eax, ebx
je 0x4e8160
push eax
call fcn.004d2110
pop ecx
test eax, eax
je 0x4e8160
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x546c5c]
call fcn.004d2110
pop ecx
test eax, eax
je 0x4e8180
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4e8182
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4ece85
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x546f44], 0
push esi
jne 0x4ecdf8
call fcn.004ecd1e
test eax, eax
je 0x4ece3b
mov eax, dword [0x546f44]
cmp eax, 1
jne 0x4ece19
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4ece3b
pop esi
ret
push eax
call dword [0x546f4c]
test eax, eax
jne 0x4ece83
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4ece3f
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x546f44]
call dword [0x546f4c]
mov edi, eax
test edi, edi
je 0x4ece64
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4ece80
mov edi, esi
add esi, 0xff0
push edi
push dword [0x546f44]
call dword [0x546f48]
add edi, 0x10
cmp edi, esi
jb 0x4ece6c
mov eax, edi
pop edi
pop esi
ret
jmp 0x4ecde5
Function at 0x4ed440
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4ed46f
push esi
call fcn.004ee340
add esp, 4
cmp byte [esi + 0x40], 0
je 0x4ed468
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4ed4e9
mov eax, dword [esi + 0x1a0]
cmp byte [eax + 0x10], 0
je 0x4ed4d9
mov eax, dword [esi + 8]
test eax, eax
je 0x4ed494
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov edx, dword [esi + 0x1a0]
mov eax, dword [edx]
push esi
call eax
add esp, 4
test eax, eax
je 0x4ed4d5
cmp eax, 2
je 0x4ed4d9
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4ed485
cmp eax, 3
je 0x4ed4bc
cmp eax, 1
jne 0x4ed485
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x4ed485
mov edx, dword [esi + 0x120]
add dword [eax + 8], edx
jmp 0x4ed485
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.004ed2d0
pop esi
ret
cmp eax, 0xcc
je 0x4ed50b
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.004ed2d0
pop esi
ret
Function at 0x4f8f30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, dword [esp + 0x24]
cmp dword [edi + 0x4c], 1
mov esi, dword [edi + 0x1b8]
mov dword [esp + 0x18], esi
jne 0x4f8f57
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x4f8f63
mov dword [esp + 8], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [esp + 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push edi
call eax
xor ecx, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [edi + 0x64], ecx
mov dword [esp + 0x14], ecx
jle 0x4f9076
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x14], edx
jmp 0x4f8fa8
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov edi, dword [edx]
cdq
idiv edi
cmp dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
je 0x4f8fc9
mov eax, dword [esi + 0x18]
add dword [eax + ecx*4], 0xff
lea eax, [eax + ecx*4]
mov edx, dword [esi + 0x18]
mov ebp, dword [edx + ecx*4]
lea eax, [edi + 0xfe]
lea esi, [edi + edi - 2]
cdq
idiv esi
xor ebx, ebx
mov dword [esp + 0x24], ebp
xor esi, esi
mov edx, eax
cmp esi, edx
jle 0x4f901f
mov ecx, ebx
lea ebp, [edi + edi - 2]
imul ecx, ecx, 0x1fe
jmp 0x4f9000
add ecx, 0x1fe
lea eax, [ecx + edi + 0xfe]
cdq
idiv ebp
inc ebx
mov edx, eax
cmp esi, edx
jg 0x4f9000
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
mov al, byte [esp + 0x18]
imul bl
mov byte [esi + ebp], al
inc esi
cmp esi, 0xff
jle 0x4f8fe6
cmp dword [esp + 0x10], 0
je 0x4f905d
mov eax, 1
lea edx, [ebp - 1]
movzx ebx, byte [ebp]
mov byte [edx], bl
movzx ebx, byte [ebp + 0xff]
mov byte [eax + ebp + 0xff], bl
inc eax
dec edx
cmp eax, 0xff
jle 0x4f9040
mov eax, dword [esp + 0x2c]
add dword [esp + 0x14], 4
inc ecx
cmp ecx, dword [eax + 0x64]
mov dword [esp + 0x1c], ecx
jl 0x4f8fa0
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x10003a40
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb0
push esi
push edi
push 0xa0
xor esi, esi
lea eax, [esp + 0x1c]
push esi
push eax
call sub.ntdll.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [esp + 0x18], eax
mov eax, 0x1000
mov word [esp + 0xb0], ax
lea eax, [esp + 0xc]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x4c], 0xc
call dword [sym.imp.KERNEL32.dll_GetNextVDMCommand]
test eax, eax
je 0x10003ad9
push dword [esp + 0xc]
push esi
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x10003ad9
lea eax, [esp + 8]
push eax
movzx eax, word [ebp + 0xc]
push esi
push eax
push dword [esp + 0x20]
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x10003ad2
push eax
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x1000937b
Capabilities:
Encode data using xor

Disassembly:
call 0x100092f4
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x10009324
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x10009340
xor edx, 0
jmp 0x1000934b
xor edx, edx
jmp 0x10009362
jmp 0x1000936e
xor eax, eax
push 0x8427d7c0
call 0x1000937b
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x100093b7
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x10009390
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x100093ce
add eax, 0
jno 0x100093d3
add esi, 0
ret 0x10