joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b1210
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 [0x53f354]
mov esi, eax
xor eax, eax
add esp, 8
mov dword [esp + 0x10], 0xc
mov dword [edi + 0x330], esi
cmp esi, eax
je 0x4b12cb
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.004b1090
add esp, 8
test eax, eax
je 0x4b12cb
mov eax, dword [edi + 0x31c]
push eax
call fcn.004ad070
push ebx
call dword [0x53f350]
add esp, 8
mov dword [edi + 0x31c], eax
test eax, eax
je 0x4b12cb
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x4b12cb
push ebp
push 0x4b1120
call fcn.004c3ed0
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x4b12ed
call fcn.004cd737
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
add edi, 0x31c
push edi
call fcn.004b11b0
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 0x4b52e0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x5164ec
push ecx
call fcn.004adf30
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.004b44b0
test eax, eax
jne 0x4b5310
mov eax, esi
jmp fcn.004b4940
ret
Function at 0x4b5720
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x53f5a0]
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 0x4b57af
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.004d33e0
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], edx
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x4b57ea
push str.Received_too_short_packet
push ebx
call fcn.004adfc0
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.004cc2b1
add esp, 0x88
ret
mov eax, edi
call fcn.004b4650
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x4b5803
jmp dword [eax*4 + 0x4b58ec]
cmp edx, 4
jle case.0x4b5803.4
mov eax, edi
call fcn.004b4660
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne case.0x4b5803.4
add edx, 0xfffffffc
push edx
mov edx, dword [edi]
add edx, 4
push edx
push 1
push ebp
call fcn.004ae200
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4b5856
mov ecx, 5
mov eax, esi
call fcn.004b56a0
mov eax, edi
jmp 0x4b57d1
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.004c14d0
jmp 0x4b58c2
mov eax, edi
call fcn.004b4660
movzx edx, ax
mov eax, dword [edi]
add eax, 4
push eax
push 0x5164ec
push ebx
mov dword [esi + 8], edx
call fcn.004adf30
jmp 0x4b58c2
mov ecx, dword [edi]
add edx, 0xfffffffe
push edx
add ecx, 2
push ecx
push esi
call fcn.004b46f0
add esp, 0xc
test eax, eax
je case.0x4b5803.4
jmp 0x4b57d1
push str.Internal_error:_Unexpected_packet
push 0x52e5c4
push ebx
call fcn.004adfc0
add esp, 0xc
push ebp
call fcn.004c1590
add esp, 4
test eax, eax
je 0x4b57cf
mov ecx, 5
mov eax, esi
call fcn.004b56a0
mov eax, 0x2a
jmp 0x4b57d1

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

Disassembly:
sub esp, 0x18
mov eax, dword [0x53f5a0]
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.004ae360
add esp, 0xc
test eax, eax
jle 0x4b8bb9
mov ecx, 0x3e8
cmp eax, ecx
jge 0x4b8b90
mov ecx, eax
push ecx
push 0xffffffffffffffff
push edi
call fcn.004bfd50
add esp, 0xc
cmp eax, 0xffffffff
je 0x4b8c51
test eax, eax
jne 0x4b8bde
push 1
push eax
push esi
call fcn.004ae360
add esp, 0xc
test eax, eax
jg 0x4b8b85
push str.Timeout_while_waiting_for_server_connect
push ebp
call fcn.004adfc0
add esp, 8
pop edi
pop ebp
mov eax, 0x1c
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004cc2b1
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 0x4b8c0e
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 0x4b8c21
push str.Error_accept__ing_server_connect
jmp 0x4b8c56
push str.Connection_accepted_from_server_n
push ebp
call fcn.004adf30
push 1
push ebx
mov dword [esi + 0xcc], ebx
call fcn.004c3e10
add esp, 0x10
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004cc2b1
add esp, 0x18
ret
push str.Error_while_waiting_for_server_connect
push ebp
call fcn.004adfc0
mov ecx, dword [esp + 0x28]
add esp, 8
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x1e
call fcn.004cc2b1
add esp, 0x18
ret
Function at 0x4bfd50
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 0x4bfd90
cmp ebp, ebx
jne 0x4bfd90
mov eax, dword [esp + 0x334]
call fcn.004bfd30
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
push edi
mov edi, dword [esp + 0x338]
cmp edi, esi
jle 0x4bfdab
mov esi, edi
call fcn.004c0fa0
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 0x4bfddf
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 0x4bfe23
mov dword [esp + 0x22c], ebp
mov dword [esp + 0x228], 1
test ecx, ecx
jbe 0x4bfe0c
cmp dword [esp + eax*4 + 0x24], ebp
je 0x4bfe0c
inc eax
cmp eax, ecx
jb 0x4bfe01
cmp eax, ecx
jne 0x4bfe1d
cmp ecx, 0x40
jae 0x4bfe1d
mov dword [esp + eax*4 + 0x24], ebp
inc dword [esp + 0x20]
cmp ebp, edx
jbe 0x4bfe23
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 0x4bfe65
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 0x4bfe6f
jne 0x4bfe6f
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 0x4bfed9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4bfea2
cmp eax, 0x2714
jne 0x4bfedd
test edi, edi
jle 0x4bfe34
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.004c0fa0
push edx
push eax
call fcn.004c0fd0
mov esi, edi
sub esi, eax
add esp, 0x10
test esi, esi
jg 0x4bfe34
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
test eax, eax
jge 0x4bfeeb
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
jne 0x4bfefa
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 0x4bff31
lea ecx, [esp + 0x124]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4bff1f
mov esi, 1
lea edx, [esp + 0x20]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4bff31
or esi, 4
mov edi, dword [esp + 0x334]
cmp edi, 0xffffffff
je 0x4bff64
lea eax, [esp + 0x228]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4bff52
or esi, 2
lea ecx, [esp + 0x20]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4bff64
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
Function at 0x4c03e0
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.004c0fa0
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.004c0fd0
mov ebx, dword [esp + 0x40]
add esp, 0x10
cmp eax, ebx
jg 0x4c049a
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.004bfd50
add esp, 0xc
test eax, eax
jle 0x4c04bd
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edi
push ebp
push edx
call fcn.004adc60
add esp, 0x10
cmp eax, 0x51
je 0x4c0479
test eax, eax
jne 0x4c04c0
mov eax, dword [esp + 0x14]
cmp edi, eax
je 0x4c04a7
test eax, eax
je 0x4c04bd
sub edi, eax
add ebp, eax
add dword [esp + 0x10], eax
call fcn.004c0fa0
mov ecx, dword [esi + 0xc4]
push ecx
mov ecx, dword [esi + 0xc0]
push ecx
push edx
push eax
call fcn.004c0fd0
add esp, 0x10
cmp eax, ebx
jle 0x4c0430
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 0x4c1ca0
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x4c1caf
jmp dword [ecx*4 + 0x4c1d04]
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 0x4c3ed0
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.004d0079
add esp, 0x18
test eax, eax
je 0x4c3ef3
cmp eax, 0xffffffff
jne 0x4c3ef5
xor eax, eax
ret

Function at 0x4c3f40
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 0x4c3f59
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.004c0fa0
push edx
push eax
call fcn.004c0fd0
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x19c], 0
je 0x4c3fa6
mov eax, dword [ebx + 0xbc]
mov ecx, dword [ebx + 0xb8]
push eax
push ecx
call fcn.004c0fa0
push edx
push eax
call fcn.004c0fd0
mov ecx, dword [edi + 0x19c]
sub ecx, eax
add esp, 0x10
cmp esi, ecx
mov eax, ecx
jge 0x4c3fa8
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x4c4a70
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 0x4cc2b1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x53f5a0]
jne 0x4cc2bb
repz ret
jmp fcn.004d80d6

Function at 0x4e742f
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.004d16ba
and dword [ebp - 4], 0
cmp dword [0x545718], 0
mov ebx, eax
jne 0x4e74e0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4e7591
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4e7591
push eax
call fcn.004d1648
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x545718], eax
call esi
push eax
call fcn.004d1648
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x54571c], eax
call esi
push eax
call fcn.004d1648
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x545720], eax
call esi
push eax
call fcn.004d1648
pop ecx
mov dword [0x545728], eax
test eax, eax
je 0x4e74e0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004d1648
pop ecx
mov dword [0x545724], eax
mov eax, dword [0x545724]
cmp eax, ebx
je 0x4e7538
cmp dword [0x545728], ebx
je 0x4e7538
push eax
call fcn.004d16c3
push dword [0x545728]
mov esi, eax
call fcn.004d16c3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4e7538
test edi, edi
je 0x4e7538
call esi
test eax, eax
je 0x4e752f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4e752f
test byte [ebp - 0xc], 1
jne 0x4e7538
or dword [ebp + 0x10], 0x200000
jmp 0x4e7571
mov eax, dword [0x54571c]
cmp eax, ebx
je 0x4e7571
push eax
call fcn.004d16c3
pop ecx
test eax, eax
je 0x4e7571
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4e7571
mov eax, dword [0x545720]
cmp eax, ebx
je 0x4e7571
push eax
call fcn.004d16c3
pop ecx
test eax, eax
je 0x4e7571
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x545718]
call fcn.004d16c3
pop ecx
test eax, eax
je 0x4e7591
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4e7593
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ec560
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4ec58f
push esi
call fcn.004ed460
add esp, 4
cmp byte [esi + 0x40], 0
je 0x4ec588
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 0x4ec609
mov eax, dword [esi + 0x1a0]
cmp byte [eax + 0x10], 0
je 0x4ec5f9
mov eax, dword [esi + 8]
test eax, eax
je 0x4ec5b4
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 0x4ec5f5
cmp eax, 2
je 0x4ec5f9
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4ec5a5
cmp eax, 3
je 0x4ec5dc
cmp eax, 1
jne 0x4ec5a5
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x4ec5a5
mov edx, dword [esi + 0x120]
add dword [eax + 8], edx
jmp 0x4ec5a5
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.004ec3f0
pop esi
ret
cmp eax, 0xcc
je 0x4ec62b
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.004ec3f0
pop esi
ret
Function at 0x4f8050
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 0x4f8077
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x4f8083
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 0x4f8196
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x14], edx
jmp 0x4f80c8
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 0x4f80e9
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 0x4f813f
mov ecx, ebx
lea ebp, [edi + edi - 2]
imul ecx, ecx, 0x1fe
jmp 0x4f8120
add ecx, 0x1fe
lea eax, [ecx + edi + 0xfe]
cdq
idiv ebp
inc ebx
mov edx, eax
cmp esi, edx
jg 0x4f8120
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 0x4f8106
cmp dword [esp + 0x10], 0
je 0x4f817d
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 0x4f8160
mov eax, dword [esp + 0x2c]
add dword [esp + 0x14], 4
inc ecx
cmp ecx, dword [eax + 0x64]
mov dword [esp + 0x1c], ecx
jl 0x4f80c0
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x401000
Capabilities:
Allocate thread local storage
Encode data using xor

Disassembly:
push 0x1c
push 0
push 0x40e118
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
call sub.KERNEL32.dll_GetModuleHandleW
mov dword [0x40e11c], eax
push 0
push 0x1000
push 0
call sub.KERNEL32.dll_HeapCreate
mov dword [0x40e118], eax
call fcn.0040a780
call fcn.00409d70
call fcn.00409790
call fcn.00409177
call fcn.00408a40
call fcn.00408964
call fcn.004088ca
call fcn.00408400
call fcn.0040653c
call fcn.00405de0
call fcn.004052f6
call fcn.004047e0
call fcn.0040467c
call fcn.0040439a
call fcn.0040321b
call fcn.00402ba5
call fcn.0040255e
call fcn.004022c6
mov edi, str.MM_bM5M_M_MM_M_McMcMcMMMcM.M_M_MMM_M_M_M_M_MMMMxMyMcMMyMyMcMtMtMcMMMMMM_vM_M_M_M_M_MMMMM
mov ecx, 0x5c
xor byte [edi], 0x4d
inc edi
dec ecx
jne 0x4010a3
mov eax, 0x40d04a
push eax
mov eax, str.MM_bM5M_M_MM_M_McMcMcMMMcM.M_M_MMM_M_M_M_M_MMMMxMyMcMMyMyMcMtMtMcMMMMMM_vM_M_M_M_M_MMMMM
push eax
call fcn.00402330
call fcn.00401210
and eax, eax
jne 0x4010cf
call fcn.00401226
and eax, eax
jne 0x4010cf
jmp 0x4010d6
mov eax, 1
jmp 0x4010d8
xor eax, eax
and eax, eax
je 0x401104
push 0x115c
mov eax, 0x40d056
push eax
call fcn.00402abc
mov dword [0x40e130], eax
push 1
call fcn.004030bc
cmp dword [0x40e130], 0
je 0x4010dc
mov dword [0x40e128], 0
call fcn.004030dd
mov dword [0x40e120], eax
push 0xc80001
mov eax, 0x40d02a
push eax
push 0x64
push 0xdc
push 0
push 0
push 0
call fcn.00403286
and eax, eax
je 0x4011af
mov eax, 0x40d074
push eax
push 0x1e
push 0xc8
push 0x3c
push 0xa
push 1
call fcn.00402e7f
call fcn.00403736
mov dword [0x40e12c], eax
push dword [0x40e12c]
mov ebx, 0x332c
cmp ebx, dword [esp]
jne 0x4011a0
call fcn.00409291
push eax
mov ebx, 1
cmp ebx, dword [esp]
jne 0x40119f
push 0
call fcn.0040317e
jmp 0x4011af
pop eax
pop eax
mov ebx, dword [0x40e12c]
cmp ebx, 0x333c
jne 0x401169
push 0
call 0x4011ce
call fcn.0040a7b0
push dword [0x40e118]
call sub.KERNEL32.dll_HeapDestroy
call sub.KERNEL32.dll_ExitProcess
call fcn.0040252e
call fcn.00402b4f
call fcn.004030ac
call fcn.004031f8
call fcn.00404389
call fcn.0040466f
call fcn.004047d4
call fcn.00408420
call fcn.00408958
call fcn.00408a30
call fcn.00409159
call fcn.00409e43
call fcn.00409d60
ret

Function at 0x401210
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
cmp eax, 1
ret
Function at 0x4023f9
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x40244e
push dword [esp + 0x10]
push 0x402378
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x40e134]
test esi, esi
je 0x4024a7
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x402446
cmp byte [esi + 0x10], 0
je 0x402446
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x402422
jmp 0x4024a7
mov esi, dword [0x40e134]
test esi, esi
je 0x4024a7
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x4024a0
cmp byte [esi + 0x11], 0
je 0x40247c
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x402493
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x40e134
call fcn.0040a736
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x40245b
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x40255e
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x4024ad
push 0x10
push 0x2c
call fcn.0040a0d9
push 0
push 0
push 8
mov dword [0x40e140], eax
call fcn.00409ed2
cmp word [0x40e138], 0
mov dword [0x40e37c], eax
jne 0x402643
push edi
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x4025b6
mov word [0x40e138], di
jmp 0x4025be
xor eax, eax
mov word [0x40e138], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x40e154], eax
test eax, eax
je 0x402642
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x40e154]
mov dword [0x40e144], eax
call esi
push str.getnameinfo
push dword [0x40e154]
mov dword [0x40e148], eax
call esi
push str.WSAStringToAddressA
push dword [0x40e154]
mov dword [0x40e14c], eax
call esi
cmp dword [0x40e144], 0
mov dword [0x40e150], eax
pop esi
je 0x402642
cmp dword [0x40e148], 0
je 0x402642
cmp dword [0x40e14c], 0
je 0x402642
test eax, eax
je 0x402642
mov dword [0x40e13c], edi
pop edi
add esp, 0x190
ret