joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47b3f0
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header
Write file on windows

Disassembly:
sub esp, 0xa28
mov eax, dword [0x617560]
xor eax, esp
mov dword [esp + 0xa20], eax
mov eax, dword [str.GetExternalIPAddress]
push ebp
mov ebp, dword [esp + 0xa34]
push esi
push edi
mov dword [esp + 0x10], eax
mov eax, dword [0x5fd580]
mov edi, ecx
mov ecx, dword [0x5fd578]
mov esi, edx
mov edx, dword [0x5fd57c]
push 0x200
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
mov ecx, dword [0x5fd584]
mov dword [esp + 0x1c], edx
mov dl, byte [0x5fd588]
lea eax, [esp + 0x2c]
push 0
push eax
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x30], dl
call fcn.004eaae0
add esp, 0xc
push 0x400
lea ecx, [esp + 0x62c]
push 0
push ecx
call fcn.004eaae0
add esp, 0xc
push 0x400
lea edx, [esp + 0x22c]
push 0
push edx
call fcn.004eaae0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push esi
mov ecx, eax
push ecx
push str.__xml_version_1.0____s:Envelope_r_n____xmlns:s_http:__schemas.xmlsoap.org_soap_envelope___r_n____s:encodingStyle_http:__schemas.xmlsoap.org_soap_encoding____r_n___s:Body__r_n_____u:_s_xmlns:u__s___r_n__u:_s__r_n____s:Body__r_n__s:Envelope__r_n_r_n
lea edx, [esp + 0x38]
push 0x200
push edx
call fcn.004e7140
mov edx, dword [esp + 0xa50]
lea ecx, [esp + 0x28]
push ecx
push esi
push eax
push edx
push edi
push 0x6301c0
push str.POST__s_HTTP_1.1_r_nHOST:__s:_d_r_nContent_Length:__d_r_nContent_Type:_text_xml__charset_utf_8__r_nSOAPAction:___s_s__r_n_r_n
lea eax, [esp + 0x65c]
push 0x400
push eax
call fcn.004e7140
add esp, 0x3c
lea ecx, [esp + 0x28]
push ecx
mov esi, eax
push 0x5f4e74
lea edx, [esp + esi + 0x630]
push 0x200
push edx
call fcn.004e7140
add esp, 0x10
add esi, eax
je 0x47b5e6
push 0
push esi
lea eax, [esp + 0x630]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x47b5e6
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push str.C:GetExternalIPAddress.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x47b5e6
lea ecx, [esp + 0x228]
push 0x400
push ecx
mov eax, ebx
xor esi, esi
call fcn.0047ac20
add esp, 8
test eax, eax
jle 0x47b5e6
jmp 0x47b570
add esi, eax
lea edx, [esp + esi + 0x228]
push 0x400
push edx
mov eax, ebx
call fcn.0047ac20
add esp, 8
test eax, eax
jg 0x47b570
test esi, esi
je 0x47b5e6
push 0
lea eax, [esp + 0x10]
push eax
push esi
lea ecx, [esp + 0x234]
push ecx
push edi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x228]
push edx
mov ecx, ebp
call fcn.0047acb0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xa20]
xor ecx, esp
call fcn.004e3dc3
add esp, 0xa28
ret
mov ecx, dword [esp + 0xa2c]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004e3dc3
add esp, 0xa28
ret
Function at 0x47b8a0
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
sub esp, 0xa18
mov eax, dword [0x617560]
xor eax, esp
mov dword [esp + 0xa14], eax
mov eax, dword [str.DeletePortMapping]
push esi
push edi
mov edi, edx
mov edx, dword [0x5fd5ec]
mov esi, ecx
mov ecx, dword [0x5fd5e8]
push 0x200
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], eax
mov eax, dword [0x5fd5f0]
mov dword [esp + 0x10], ecx
mov cx, word [0x5fd5f4]
lea edx, [esp + 0x20]
push 0
push edx
mov dword [esp + 0x20], eax
mov word [esp + 0x24], cx
call fcn.004eaae0
push 0x400
lea eax, [esp + 0x22c]
push 0
push eax
call fcn.004eaae0
push 0x400
lea ecx, [esp + 0x638]
push 0
push ecx
call fcn.004eaae0
mov edx, dword [esp + 0xa4c]
push esi
push edx
push str._NewRemoteHost___NewRemoteHost__NewExternalPort__d__NewExternalPort__NewProtocol__s__NewProtocol_
lea eax, [esp + 0x4c]
push 0x200
push eax
call fcn.004e7140
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x58]
push edx
push edi
mov eax, ecx
push eax
push str.__xml_version_1.0____s:Envelope_r_n____xmlns:s_http:__schemas.xmlsoap.or_soap_envelope___r_n____s:encodingStyle_http:__schemas.xmlsoap.org_soap_encoding____r_n___s:Body__r_n_____u:_s_xmlns:u__s___r_n_s______u:_s__r_n____s:Body__r_n__s:Envelope__r_n_r_n
lea ecx, [esp + 0x668]
push 0x400
push ecx
call fcn.004e7140
add esp, 0x54
lea edx, [esp + 8]
push edx
push edi
mov esi, eax
mov eax, dword [esp + 0xa34]
push esi
push eax
push ebx
push 0x6301c0
push str.POST__s_HTTP_1.1_r_nHOST:__s:_d_r_nContent_Length:__d_r_nContent_Type:_text_xml__charset_utf_8__r_nSOAPAction:___s_s__r_n_r_n
lea ecx, [esp + 0x238]
push 0x400
push ecx
call fcn.004e7140
mov edi, eax
push esi
lea edx, [esp + 0x644]
push edx
lea eax, [esp + edi + 0x248]
push eax
call fcn.004f0e70
add esp, 0x30
test edi, edi
jle 0x47b9df
mov edx, dword [esp + 0xa24]
push 0
add esi, edi
push esi
lea ecx, [esp + 0x224]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
mov ecx, dword [esp + 0xa1c]
pop edi
pop esi
xor ecx, esp
call fcn.004e3dc3
add esp, 0xa18
ret
Function at 0x47c9a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x520
mov eax, dword [0x617560]
xor eax, esp
mov dword [esp + 0x51c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x38]
push esi
lea esi, [eax + eax*4]
mov eax, dword [ebp + 8]
shl esi, 5
cdq
idiv esi
xor edx, edx
push edi
mov dword [esp + 0xc], edx
test eax, eax
jle 0x47ca93
mov edi, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
jmp 0x47c9f4
mov edi, dword [esp + 0x14]
cmp dword [ebx + 0x38], 1
jne 0x47ca1c
xor esi, esi
lea esp, [esp]
mov cl, byte [edi + esi]
xor edx, edx
xor cl, 0x80
mov dh, cl
add esi, 1
cmp esi, 0xa0
mov word [esp + esi*2 + 0x1e], dx
jl 0x47ca00
jmp 0x47ca2b
mov esi, dword [esp + 0x10]
mov ecx, 0x50
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
push ebx
call fcn.004ff830
mov ecx, dword [ebx + 0x24]
push ebx
lea eax, [esp + 0x28]
push eax
push ecx
call fcn.004ff600
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
mov edx, 0x2800
sub edx, esi
push edx
add eax, esi
push eax
push ebx
call fcn.004ff910
add dword [esp + 0x30], 0xa0
add dword [esp + 0x2c], 0x140
add esi, eax
add esp, 0x1c
sub dword [esp + 0x18], 1
mov dword [esp + 0xc], esi
jne 0x47c9f0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x51c]
xor ecx, esp
call fcn.004e3dc3
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x524]
pop edi
pop esi
xor ecx, esp
mov eax, edx
call fcn.004e3dc3
mov esp, ebp
pop ebp
ret
Function at 0x47cbd0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
xor ebx, ebx
push 0x3048
push ebx
push esi
mov dword [esp + 0x10], ebx
call fcn.004eaae0
mov eax, dword [esp + 0x18]
add esp, 0xc
push ebx
push 0x80
push 1
push ebx
push 3
push 0x40000000
push eax
mov dword [esi + 0x3038], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x3038], eax
je 0x47ccdb
mov cl, byte [esp + 0x24]
mov dl, byte [esp + 0x34]
mov byte [esi + 0xa], cl
mov cx, word [esp + 0x28]
mov word [esi + 0xc], cx
mov cl, byte [esp + 0x30]
mov byte [esi + 0xf], cl
mov ecx, dword [esp + 0x14]
mov byte [esi + 0xb], dl
mov dl, byte [esp + 0x2c]
mov dword [esi + 0x14], ecx
mov cl, byte [esp + 0x1c]
push edi
mov byte [esi + 0xe], dl
mov edx, dword [esp + 0x14]
mov byte [esi + 0x19], cl
mov ecx, dword [esp + 0x3c]
push ebx
mov dword [esi + 0x10], edx
mov dl, byte [esp + 0x20]
mov dword [esi + 0x24], ecx
lea ecx, [esp + 0xc]
push ecx
mov byte [esi + 0x18], dl
mov dl, byte [esp + 0x2c]
push 0x3030
lea edi, [esi + 8]
mov byte [esi + 0x1a], dl
mov edx, dword [esp + 0x4c]
push edi
push eax
mov byte [edi], 2
mov byte [esi + 9], bl
mov byte [esi + 0x1b], bl
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x3034], ebx
mov dword [esi], 0x3030
mov dword [esi + 0x303c], ebx
mov dword [esi + 0x3040], 0x7d0
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 8], 0x3030
pop edi
je 0x47cce0
mov edx, dword [esi + 0x3038]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x3038], 0xffffffff
xor eax, eax
pop ebx
pop ecx
ret
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x47cd90
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, eax
cmp dword [esi + 0x3038], 0xffffffff
mov al, byte [esp + 0x18]
push edi
mov edi, edx
je 0x47ce4b
mov dl, byte [esi + 0x3044]
test dl, dl
jne 0x47cdd2
cmp dword [esp + 0x18], 0
je 0x47cec5
test dl, dl
jne 0x47cdd2
mov dword [esi + 4], edi
mov byte [esi + 0x3044], 1
xor eax, eax
mov dl, byte [esp + 0x18]
and al, 1
add al, al
and dl, 1
or al, dl
shl al, 5
or al, 2
mov byte [ecx + 8], al
mov byte [ecx + 9], 0
mov dword [ecx], ebp
mov eax, dword [esi + 4]
cmp edi, eax
jb 0x47cdf8
sub edi, eax
jmp 0x47ce00
sub edi, eax
add edi, 0x5265c00
mov dword [esi + 0x1c], edi
mov dword [ecx + 4], edi
add dword [esi + 0x20], 1
mov eax, dword [esi + 0x20]
lea edi, [ebp + 0xe]
mov dword [ecx + 0xa], eax
xor ebp, ebp
push ebp
lea eax, [esp + 0x10]
push eax
push edi
push ecx
mov ecx, dword [esi + 0x3038]
push ecx
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0xc], edi
je 0x47ce52
mov edx, dword [esi + 0x3038]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x3038], 0xffffffff
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
cmp dword [esp + 0x18], 1
jne 0x47ce92
mov eax, dword [esi + 0x3034]
mov ecx, dword [esi]
lea eax, [eax + eax*2]
mov dword [esi + eax*4 + 0x34], ecx
mov eax, dword [esi + 0x3034]
add eax, 4
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x1c]
mov dword [esi + edx*4 + 8], eax
mov eax, dword [esi + 0x3034]
mov edx, dword [esi + 0x20]
lea ecx, [eax + eax*2]
mov dword [esi + ecx*4 + 0x3c], edx
add dword [esi + 0x3034], 1
add dword [esi + 0x303c], 1
mov eax, dword [esi + 0x303c]
add dword [esi], edi
cmp eax, dword [esi + 0x3040]
jbe 0x47cec5
call fcn.0047ccf0
mov eax, dword [esi + 0x3038]
push 2
push ebp
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x303c], ebp
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret

Function at 0x47ced0
Capabilities:
Write file on windows

Disassembly:
push ecx
xor edx, edx
cmp byte [edi + 0x3044], dl
push esi
je 0x47cf2f
push ebx
mov bl, byte [eax + 8]
push edx
mov dword [eax], ecx
lea esi, [ecx + 0xe]
lea ecx, [esp + 0xc]
push ecx
and bl, 0xea
push esi
or bl, 0xa
mov byte [eax + 8], bl
mov dword [eax + 4], edx
mov dword [esp + 0x14], edx
mov edx, dword [edi + 0x3038]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 8], esi
pop ebx
je 0x47cf2d
mov eax, dword [edi + 0x3038]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x3038], 0xffffffff
xor eax, eax
pop esi
pop ecx
ret
add dword [edi], esi
mov eax, 1
pop esi
pop ecx
ret
Function at 0x47d270
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5bd718
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x617560]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
push 0x378
lea ebx, [esi + 8]
push 0
mov dword [esp + 0x1c], 0
push ebx
mov dword [esi], vtable.CVideoDecoder.0
call fcn.004eaae0
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ecx, 0xd
mov dword [esi + 0xf8], ecx
mov dword [esi + 0xf4], 0
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edx
mov eax, dword [0x637000]
add esp, 0xc
test eax, eax
je 0x47d2f5
cmp dword [eax + 0x1c], 0
je 0x47d2ee
cmp dword [eax + 8], ecx
je 0x47d2f7
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x47d2e3
xor eax, eax
push eax
call fcn.0047dd10
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 0xc

Function at 0x47d660
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push eax
push 1
push ecx
call fcn.004e7cb2
push esi
mov edi, eax
call fcn.004e7db2
add esp, 0x14
mov eax, edi
pop edi
ret

Function at 0x47d6e0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
xor ebx, ebx
push 0x2050
push ebx
push esi
mov dword [esp + 0x10], ebx
call fcn.004eaae0
mov eax, dword [esp + 0x18]
add esp, 0xc
push ebx
push 0x80
push 1
push ebx
push 3
push 0x40000000
push eax
mov dword [esi + 0x2040], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x2040], eax
jne 0x47d72c
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x18]
mov cl, byte [esp + 0x28]
mov dword [esi + 0x14], edx
mov edx, dword [esp + 0x14]
push edi
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x24]
push ebx
mov byte [esi + 0x12], cl
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x24], edx
lea edx, [esp + 0xc]
push edx
mov dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x28]
push 0x2030
lea edi, [esi + 0x10]
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x34]
push edi
push eax
mov byte [edi], 1
mov byte [esi + 0x11], bl
mov byte [esi + 0x13], bl
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x203c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
mov dword [esi + 0x2044], ebx
mov dword [esi], 0x2030
mov dword [esi + 0x2048], 0x7d0
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x47d810
Capabilities:
Write file on windows

Disassembly:
mov al, byte [esp + 0xc]
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov ebx, edx
mov dl, byte [edi + 0x204c]
test dl, dl
push esi
mov esi, dword [esp + 0x18]
jne 0x47d84e
test ebx, ebx
je 0x47d986
test dl, dl
jne 0x47d84e
mov eax, dword [ecx]
mov dword [edi + 8], eax
mov edx, dword [ecx + 4]
mov dword [edi + 0xc], edx
mov byte [edi + 0x204c], 1
xor eax, eax
and al, 1
add al, al
mov dl, bl
and dl, 1
or al, dl
shl al, 5
or al, 1
mov byte [esi], al
mov byte [esi + 1], 0
mov dword [esi + 2], ebp
mov eax, dword [ecx]
sub eax, dword [edi + 8]
mov ecx, dword [ecx + 4]
sbb ecx, dword [edi + 0xc]
push 0
push 0x2710
push ecx
push eax
call fcn.004f1fa0
mov dword [edi + 0x28], eax
mov dword [esi + 6], eax
movzx edx, byte [esi + 0x1d]
movzx eax, byte [esi + 0x1e]
movzx ecx, byte [esi + 0x1f]
not dl
not al
mov byte [esi + 0x1d], dl
movzx edx, byte [esi + 0x20]
mov byte [esi + 0x1e], al
movzx eax, byte [esi + 0x21]
not cl
push 0
mov byte [esi + 0x1f], cl
lea ecx, [esp + 0x10]
push ecx
not dl
add ebp, 0xe
not al
push ebp
mov byte [esi + 0x20], dl
mov byte [esi + 0x21], al
mov edx, dword [edi + 0x2040]
push esi
push edx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
movzx eax, byte [esi + 0x1d]
movzx ecx, byte [esi + 0x1e]
movzx edx, byte [esi + 0x1f]
not al
mov byte [esi + 0x1d], al
movzx eax, byte [esi + 0x20]
not cl
mov byte [esi + 0x1e], cl
movzx ecx, byte [esi + 0x21]
not al
mov byte [esi + 0x20], al
mov eax, 1
cmp ebx, eax
not dl
not cl
mov byte [esi + 0x1f], dl
mov byte [esi + 0x21], cl
jne 0x47d929
mov edx, dword [edi + 0x203c]
mov ecx, dword [edi]
mov dword [edi + edx*8 + 0x3c], ecx
mov edx, dword [edi + 0x203c]
mov ecx, dword [edi + 0x28]
mov dword [edi + edx*8 + 0x40], ecx
add dword [edi + 0x203c], eax
add dword [edi + 0x2044], eax
mov eax, dword [edi + 0x2044]
add dword [edi], ebp
cmp eax, dword [edi + 0x2048]
jbe 0x47d986
mov edx, dword [edi + 0x2040]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ebx, ebx
push ebx
push ebx
push ebx
push edx
mov dword [esp + 0x20], ebx
call esi
mov edx, dword [edi + 0x2040]
push ebx
lea eax, [esp + 0x14]
push eax
push 0x2030
lea ecx, [edi + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [edi + 0x2040]
push 2
push ebx
push ebx
push eax
call esi
mov dword [edi + 0x2044], ebx
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x47d990
Capabilities:
Write file on windows

Disassembly:
push ecx
mov dl, byte [eax]
and dl, 0xe8
push edi
or dl, 8
mov byte [eax], dl
xor edx, edx
push edx
mov dword [eax + 2], ecx
lea edi, [ecx + 0xe]
lea ecx, [esp + 8]
push ecx
push edi
mov dword [eax + 6], edx
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0x2040]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add dword [esi], edi
xor eax, eax
pop edi
pop ecx
ret
Function at 0x492270
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
imul eax, edx
push ebx
push ebp
push esi
mov ebp, 0x5ef098
push edi
xor edi, edi
add eax, ecx
mov ebx, ebp
xor esi, esi
test ecx, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], edi
je 0x4922c6
cmp eax, 1
jl 0x4922c6
mov ebp, dword [esp + 0x24]
mov ebx, eax
imul ebx, ebx, 0x124
add ebp, ebx
mov ebx, dword [ebp - 0x124]
cmp ebx, 3
je 0x4922ba
cmp ebx, 4
jne 0x4922c0
lea esi, [ebp - 0xbc]
mov ebx, dword [esp + 0x14]
mov ebp, ebx
cmp eax, edx
jl 0x4922f0
mov ebp, dword [esp + 0x24]
mov ebx, eax
sub ebx, edx
imul ebx, ebx, 0x124
add ebp, ebx
mov ebx, dword [ebp]
cmp ebx, 3
je 0x4922e7
cmp ebx, 4
jne 0x4922ea
lea edi, [ebp + 0x68]
mov ebx, dword [esp + 0x14]
mov ebp, ebx
test ecx, ecx
je 0x492323
lea ecx, [edx + 1]
cmp eax, ecx
jl 0x492323
mov ecx, eax
sub ecx, edx
mov edx, dword [esp + 0x24]
imul ecx, ecx, 0x124
add edx, ecx
mov ecx, dword [edx - 0x124]
cmp ecx, 3
je 0x49231b
cmp ecx, 4
jne 0x492323
add edx, 0xffffff44
jmp 0x492327
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
imul eax, eax, 0x124
lea eax, [eax + ecx + 0x68]
mov ecx, dword [esp + 0x28]
cmp ecx, 5
ja case.default.0x492342
jmp dword [ecx*4 + 0x492458]
test esi, esi
je 0x492350
lea ebx, [esi + 0x1e]
test edi, edi
je 0x492357
lea ebp, [edi + 0x3c]
test edx, edx
je case.default.0x492342
add edx, 0x5a
jmp 0x4923c5
test edi, edi
mov ebx, eax
je case.default.0x492342
lea ebp, [edi + 0x5a]
add edi, 0x3c
mov dword [esp + 0x10], edi
jmp case.default.0x492342
test esi, esi
je 0x492380
lea ebx, [esi + 0x5a]
add esi, 0x1e
mov dword [esp + 0x10], esi
mov ebp, eax
jmp case.default.0x492342
lea ebx, [eax + 0x3c]
lea ebp, [eax + 0x1e]
mov dword [esp + 0x10], eax
jmp case.default.0x492342
test esi, esi
je 0x492397
lea ebx, [esi + 0x78]
test edi, edi
je 0x49239e
lea ebp, [edi + 0x78]
test edx, edx
je case.default.0x492342
add edx, 0x78
jmp 0x4923c5
test esi, esi
je 0x4923b1
lea ebx, [esi + 0x96]
test edi, edi
je 0x4923bb
lea ebp, [edi + 0x96]
test edx, edx
je case.default.0x492342
add edx, 0x96
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x10]
movsx ecx, word [edx]
movzx ebp, word [ebp]
movzx ebx, word [ebx]
movsx edi, bp
mov eax, ecx
sub eax, edi
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x24], eax
movsx esi, bx
mov eax, esi
sub eax, ecx
mov ecx, dword [esp + 0x24]
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
mov ecx, dword [esp + 0x2c]
jge 0x492420
test bp, bp
jle 0x49241c
mov eax, ecx
sar eax, 1
add eax, edi
cdq
idiv ecx
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov word [ecx], ax
add esp, 0x10
ret
mov eax, edi
jmp 0x49243f
test bx, bx
jle 0x49243d
mov eax, ecx
sar eax, 1
add eax, esi
cdq
idiv ecx
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov word [ecx], ax
add esp, 0x10
ret
mov eax, esi
mov edx, ecx
sar edx, 1
sub eax, edx
cdq
idiv ecx
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov word [ecx], ax
add esp, 0x10
ret
Function at 0x499e30
Capabilities:
Check mutex on windows
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c600b
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x617560]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
push edi
mov eax, dword [0x617560]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
lea eax, [esi + 0x4c]
mov dword [esp + 0xc], eax
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
mov dword [esp + 0x10], edi
lea ecx, [esp + 0x7c]
push ecx
xor ebx, ebx
push 0x202
mov dword [esp + 0x228], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x499f05
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
mov ecx, 0xf
mov dword [esp + 0x18], vtable.CUDTException.0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
jne 0x499ef2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x608f10
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x2c], eax
call fcn.004eb93b
cmp byte [esi + 0x50], bl
je 0x499f23
cmp edi, 0xffffffff
je 0x499f1c
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
jmp 0x499f6e
push ebx
push ebx
push ebx
mov byte [esi + 0x40], bl
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x44], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea edx, [esp + 0x14]
push edx
push ebx
push esi
push 0x49c910
push ebx
push ebx
mov dword [esi + 0x48], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp edi, 0xffffffff
mov dword [esi + 0x54], eax
mov byte [esi + 0x50], 1
je 0x499f6c
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.004e3dc3
mov esp, ebp
pop ebp
ret
Function at 0x49a7f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x617560]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
call fcn.0049af40
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x49a872
mov eax, 0xf
push 0x608f10
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], vtable.CUDTException.0
mov dword [esp + 0x20], 5
mov dword [esp + 0x24], 4
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
mov dword [esp + 0x28], ebx
call fcn.004eb93b
cmp dword [edi], 1
je 0x49a8c7
mov eax, 0xf
push 0x608f10
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], vtable.CUDTException.0
mov dword [esp + 0x20], 5
mov dword [esp + 0x24], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
mov dword [esp + 0x28], ebx
call fcn.004eb93b
cmp dword [edi + 0x10], 2
jne 0x49a8df
lea eax, [esp + 0x78]
mov dword [esp + 0x10], 0x10
mov dword [esp + 0xc], eax
jmp 0x49a8f2
lea ecx, [esp + 0x88]
mov dword [esp + 0x10], 0x1c
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x49a965
mov eax, 0xf
mov dword [esp + 0x14], vtable.CUDTException.0
mov dword [esp + 0x18], 5
mov dword [esp + 0x1c], 3
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x608f10
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x28], eax
call fcn.004eb93b
mov esi, dword [edi + 0x2c]
call fcn.0049fc70
mov ecx, dword [esp + 0xc]
lea eax, [ebp + 0xc]
push eax
push ecx
mov ecx, edi
call fcn.0049bf60
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x14]
mov dword [edi], 2
mov ecx, dword [eax + 0x208]
mov eax, dword [ecx + 8]
push edx
call fcn.004a9420
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004e3dc3
mov esp, ebp
pop ebp
ret 8