joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a75b0
Capabilities:
Resolve dns

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x4a7654
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x4a7625
cmp word [ecx + 0xa], 4
jne 0x4a7625
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x4a7625
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea esp, [esp]
mov edx, dword [eax]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebx
push ebp
call fcn.004a7540
mov dword [esi], eax
test eax, eax
je 0x4a7648
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x4a7600
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call fcn.004c9725
add esp, 0x10
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret 0x18
pop edi
pop ebp
pop ebx
mov eax, 8
pop esi
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x4a7664.11001
jmp dword [eax*4 + 0x4a7688]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18
Function at 0x4a7ec0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x5355a0]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x53ae94], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x4a7920
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x4a7c10
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.004a78d0
je 0x4a7f32
movzx eax, word [esp + 0x234]
mov eax, dword [eax*8 + 0x53535c]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.004c31a1
add esp, 0x230
ret 4
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4a802d
push ebx
push ebp
push esi
push edi
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.004c6943
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.004c69ab
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4a7fad
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x4a7ff4
push esi
call ebp
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.004c6943
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.004c69ab
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x4a8029
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x4a805d
xor edi, edi
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
mov dword [esp + edi*8 + 0x14], eax
test eax, eax
je 0x4a805d
inc edi
cmp edi, 3
jl 0x4a7ff6
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x53535c], edx
mov dword [0x535364], eax
mov dword [fcn.004a78d0], ecx
pop edi
pop esi
pop ebp
pop ebx
movzx edx, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
mov eax, dword [edx*8 + 0x53535c]
xor ecx, esp
mov dword [0x53ae94], 1
call fcn.004c31a1
add esp, 0x230
ret 4
push esi
call ebp
jmp 0x4a8029
Function at 0x4a8430
Capabilities:
Create udp socket

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x48
push 1
mov ebx, eax
mov edi, ecx
call dword [0x535354]
mov esi, eax
xor eax, eax
add esp, 8
mov dword [esp + 0x10], 0xc
mov dword [edi + 0x330], esi
cmp esi, eax
je 0x4a84eb
mov dword [edi + 0x320], ebx
mov dword [edi + 0x328], eax
mov dword [edi + 0x32c], eax
mov dword [edi + 0x324], eax
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [esi], eax
lea ebp, [esi + 0x10]
push ebx
mov eax, ebp
mov dword [esi + 4], 0xffffffff
call fcn.004a82b0
add esp, 8
test eax, eax
je 0x4a84eb
mov eax, dword [edi + 0x31c]
push eax
call fcn.004a4290
push ebx
call dword [0x535350]
add esp, 8
mov dword [edi + 0x31c], eax
test eax, eax
je 0x4a84eb
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x4a84eb
push ebp
push 0x4a8340
call fcn.004bb0d0
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x4a850d
call fcn.004c4627
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
add edi, 0x31c
push edi
call fcn.004a83d0
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x4ac520
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x50d51c
push ecx
call fcn.004a5150
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.004ab6f0
test eax, eax
jne 0x4ac550
mov eax, esi
jmp fcn.004abb80
ret
Function at 0x4ac960
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x5355a0]
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 0x4ac9ef
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.004cab90
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], edx
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x4aca2a
push str.Received_too_short_packet
push ebx
call fcn.004a51e0
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.004c31a1
add esp, 0x88
ret
mov eax, edi
call fcn.004ab890
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x4aca43
jmp dword [eax*4 + 0x4acb2c]
cmp edx, 4
jle case.0x4aca43.4
mov eax, edi
call fcn.004ab8a0
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne case.0x4aca43.4
add edx, 0xfffffffc
push edx
mov edx, dword [edi]
add edx, 4
push edx
push 1
push ebp
call fcn.004a5420
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4aca96
mov ecx, 5
mov eax, esi
call fcn.004ac8e0
mov eax, edi
jmp 0x4aca11
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.004b86e0
jmp 0x4acb02
mov eax, edi
call fcn.004ab8a0
movzx edx, ax
mov eax, dword [edi]
add eax, 4
push eax
push 0x50d51c
push ebx
mov dword [esi + 8], edx
call fcn.004a5150
jmp 0x4acb02
mov ecx, dword [edi]
add edx, 0xfffffffe
push edx
add ecx, 2
push ecx
push esi
call fcn.004ab930
add esp, 0xc
test eax, eax
je case.0x4aca43.4
jmp 0x4aca11
push str.Internal_error:_Unexpected_packet
push 0x524738
push ebx
call fcn.004a51e0
add esp, 0xc
push ebp
call fcn.004b87a0
add esp, 4
test eax, eax
je 0x4aca0f
mov ecx, 5
mov eax, esi
call fcn.004ac8e0
mov eax, 0x2a
jmp 0x4aca11

Function at 0x4ae790
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 0x4ae7d4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.004a51e0
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.004ae690
add esp, 4
pop esi
pop ecx
ret
Function at 0x4afd80
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x5355a0]
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.004a5580
add esp, 0xc
test eax, eax
jle 0x4afde9
mov ecx, 0x3e8
cmp eax, ecx
jge 0x4afdc0
mov ecx, eax
push ecx
push 0xffffffffffffffff
push edi
call fcn.004b6f60
add esp, 0xc
cmp eax, 0xffffffff
je 0x4afe81
test eax, eax
jne 0x4afe0e
push 1
push eax
push esi
call fcn.004a5580
add esp, 0xc
test eax, eax
jg 0x4afdb5
push str.Timeout_while_waiting_for_server_connect
push ebp
call fcn.004a51e0
add esp, 8
pop edi
pop ebp
mov eax, 0x1c
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004c31a1
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 0x4afe3e
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 0x4afe51
push str.Error_accept__ing_server_connect
jmp 0x4afe86
push str.Connection_accepted_from_server_n
push ebp
call fcn.004a5150
push 1
push ebx
mov dword [esi + 0xcc], ebx
call fcn.004bb010
add esp, 0x10
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004c31a1
add esp, 0x18
ret
push str.Error_while_waiting_for_server_connect
push ebp
call fcn.004a51e0
mov ecx, dword [esp + 0x28]
add esp, 8
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x1e
call fcn.004c31a1
add esp, 0x18
ret
Function at 0x4b6f60
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 0x4b6fa0
cmp ebp, ebx
jne 0x4b6fa0
mov eax, dword [esp + 0x334]
call fcn.004b6f40
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
push edi
mov edi, dword [esp + 0x338]
cmp edi, esi
jle 0x4b6fbb
mov esi, edi
call fcn.004b81b0
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 0x4b6fef
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 0x4b7033
mov dword [esp + 0x22c], ebp
mov dword [esp + 0x228], 1
test ecx, ecx
jbe 0x4b701c
cmp dword [esp + eax*4 + 0x24], ebp
je 0x4b701c
inc eax
cmp eax, ecx
jb 0x4b7011
cmp eax, ecx
jne 0x4b702d
cmp ecx, 0x40
jae 0x4b702d
mov dword [esp + eax*4 + 0x24], ebp
inc dword [esp + 0x20]
cmp ebp, edx
jbe 0x4b7033
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 0x4b7075
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 0x4b707f
jne 0x4b707f
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 0x4b70e9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4b70b2
cmp eax, 0x2714
jne 0x4b70ed
test edi, edi
jle 0x4b7044
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.004b81b0
push edx
push eax
call fcn.004b81e0
mov esi, edi
sub esi, eax
add esp, 0x10
test esi, esi
jg 0x4b7044
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
test eax, eax
jge 0x4b70fb
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
jne 0x4b710a
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 0x4b7141
lea ecx, [esp + 0x124]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b712f
mov esi, 1
lea edx, [esp + 0x20]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b7141
or esi, 4
mov edi, dword [esp + 0x334]
cmp edi, 0xffffffff
je 0x4b7174
lea eax, [esp + 0x228]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b7162
or esi, 2
lea ecx, [esp + 0x20]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b7174
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
Function at 0x4b75f0
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.004b81b0
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.004b81e0
mov ebx, dword [esp + 0x40]
add esp, 0x10
cmp eax, ebx
jg 0x4b76aa
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.004b6f60
add esp, 0xc
test eax, eax
jle 0x4b76cd
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edi
push ebp
push edx
call fcn.004a4e80
add esp, 0x10
cmp eax, 0x51
je 0x4b7689
test eax, eax
jne 0x4b76d0
mov eax, dword [esp + 0x14]
cmp edi, eax
je 0x4b76b7
test eax, eax
je 0x4b76cd
sub edi, eax
add ebp, eax
add dword [esp + 0x10], eax
call fcn.004b81b0
mov ecx, dword [esi + 0xc4]
push ecx
mov ecx, dword [esi + 0xc0]
push ecx
push edx
push eax
call fcn.004b81e0
add esp, 0x10
cmp eax, ebx
jle 0x4b7640
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 0x4b8eb0
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x4b8ebf
jmp dword [ecx*4 + 0x4b8f14]
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 0x4bb0d0
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.004c6f1e
add esp, 0x18
test eax, eax
je 0x4bb0f3
cmp eax, 0xffffffff
jne 0x4bb0f5
xor eax, eax
ret

Function at 0x4bb140
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 0x4bb159
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.004b81b0
push edx
push eax
call fcn.004b81e0
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x19c], 0
je 0x4bb1a6
mov eax, dword [ebx + 0xbc]
mov ecx, dword [ebx + 0xb8]
push eax
push ecx
call fcn.004b81b0
push edx
push eax
call fcn.004b81e0
mov ecx, dword [edi + 0x19c]
sub ecx, eax
add esp, 0x10
cmp esi, ecx
mov eax, ecx
jge 0x4bb1a8
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x4bbc70
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 0x4c31a1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5355a0]
jne 0x4c31ab
repz ret
jmp fcn.004cef78

Function at 0x4de2d9
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.004c8357
and dword [ebp - 4], 0
cmp dword [0x53ba58], 0
mov ebx, eax
jne 0x4de38a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4de43b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4de43b
push eax
call fcn.004c82e5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x53ba58], eax
call esi
push eax
call fcn.004c82e5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x53ba5c], eax
call esi
push eax
call fcn.004c82e5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x53ba60], eax
call esi
push eax
call fcn.004c82e5
pop ecx
mov dword [0x53ba68], eax
test eax, eax
je 0x4de38a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004c82e5
pop ecx
mov dword [0x53ba64], eax
mov eax, dword [0x53ba64]
cmp eax, ebx
je 0x4de3e2
cmp dword [0x53ba68], ebx
je 0x4de3e2
push eax
call fcn.004c8360
push dword [0x53ba68]
mov esi, eax
call fcn.004c8360
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4de3e2
test edi, edi
je 0x4de3e2
call esi
test eax, eax
je 0x4de3d9
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4de3d9
test byte [ebp - 0xc], 1
jne 0x4de3e2
or dword [ebp + 0x10], 0x200000
jmp 0x4de41b
mov eax, dword [0x53ba5c]
cmp eax, ebx
je 0x4de41b
push eax
call fcn.004c8360
pop ecx
test eax, eax
je 0x4de41b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4de41b
mov eax, dword [0x53ba60]
cmp eax, ebx
je 0x4de41b
push eax
call fcn.004c8360
pop ecx
test eax, eax
je 0x4de41b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x53ba58]
call fcn.004c8360
pop ecx
test eax, eax
je 0x4de43b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4de43d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4e3137
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x53bd44], 0
push esi
jne 0x4e30aa
call fcn.004e2fd0
test eax, eax
je 0x4e30ed
mov eax, dword [0x53bd44]
cmp eax, 1
jne 0x4e30cb
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4e30ed
pop esi
ret
push eax
call dword [0x53bd4c]
test eax, eax
jne 0x4e3135
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 0x4e30f1
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x53bd44]
call dword [0x53bd4c]
mov edi, eax
test edi, edi
je 0x4e3116
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4e3132
mov edi, esi
add esi, 0xff0
push edi
push dword [0x53bd44]
call dword [0x53bd48]
add edi, 0x10
cmp edi, esi
jb 0x4e311e
mov eax, edi
pop edi
pop esi
ret
jmp 0x4e3097

Function at 0x4e3700
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4e372f
push esi
call fcn.004e4600
add esp, 4
cmp byte [esi + 0x40], 0
je 0x4e3728
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 0x4e37a9
mov eax, dword [esi + 0x1a0]
cmp byte [eax + 0x10], 0
je 0x4e3799
mov eax, dword [esi + 8]
test eax, eax
je 0x4e3754
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 0x4e3795
cmp eax, 2
je 0x4e3799
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4e3745
cmp eax, 3
je 0x4e377c
cmp eax, 1
jne 0x4e3745
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x4e3745
mov edx, dword [esi + 0x120]
add dword [eax + 8], edx
jmp 0x4e3745
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.004e3590
pop esi
ret
cmp eax, 0xcc
je 0x4e37cb
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.004e3590
pop esi
ret
Function at 0x4ef1f0
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 0x4ef217
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x4ef223
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 0x4ef336
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x14], edx
jmp 0x4ef268
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 0x4ef289
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 0x4ef2df
mov ecx, ebx
lea ebp, [edi + edi - 2]
imul ecx, ecx, 0x1fe
jmp 0x4ef2c0
add ecx, 0x1fe
lea eax, [ecx + edi + 0xfe]
cdq
idiv ebp
inc ebx
mov edx, eax
cmp esi, edx
jg 0x4ef2c0
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 0x4ef2a6
cmp dword [esp + 0x10], 0
je 0x4ef31d
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 0x4ef300
mov eax, dword [esp + 0x2c]
add dword [esp + 0x14], 4
inc ecx
cmp ecx, dword [eax + 0x64]
mov dword [esp + 0x1c], ecx
jl 0x4ef260
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x18
ret