joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47c140
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 0x47c233
mov edi, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
jmp 0x47c194
mov edi, dword [esp + 0x14]
cmp dword [ebx + 0x38], 1
jne 0x47c1bc
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 0x47c1a0
jmp 0x47c1cb
mov esi, dword [esp + 0x10]
mov ecx, 0x50
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
push ebx
call fcn.004fefb0
mov ecx, dword [ebx + 0x24]
push ebx
lea eax, [esp + 0x28]
push eax
push ecx
call fcn.004fed80
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.004ff090
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 0x47c190
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x51c]
xor ecx, esp
call fcn.004e3543
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x524]
pop edi
pop esi
xor ecx, esp
mov eax, edx
call fcn.004e3543
mov esp, ebp
pop ebp
ret
Function at 0x47c370
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.004ea260
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 0x47c47b
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 0x47c480
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 0x47c530
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 0x47c5eb
mov dl, byte [esi + 0x3044]
test dl, dl
jne 0x47c572
cmp dword [esp + 0x18], 0
je 0x47c665
test dl, dl
jne 0x47c572
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 0x47c598
sub edi, eax
jmp 0x47c5a0
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 0x47c5f2
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 0x47c632
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 0x47c665
call fcn.0047c490
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 0x47c670
Capabilities:
Write file on windows

Disassembly:
push ecx
xor edx, edx
cmp byte [edi + 0x3044], dl
push esi
je 0x47c6cf
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 0x47c6cd
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 0x47ca10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5bdd98
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.004ea260
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 0x47ca95
cmp dword [eax + 0x1c], 0
je 0x47ca8e
cmp dword [eax + 8], ecx
je 0x47ca97
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x47ca83
xor eax, eax
push eax
call fcn.0047d490
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 0x47cde0
Capabilities:
Write file on windows

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

Function at 0x47ce60
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.004ea260
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 0x47ceac
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 0x47cf90
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 0x47cfce
test ebx, ebx
je 0x47d106
test dl, dl
jne 0x47cfce
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.004f1720
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 0x47d0a9
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 0x47d106
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 0x47d110
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 0x4919f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
imul eax, edx
push ebx
push ebp
push esi
mov ebp, 0x5ef078
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 0x491a46
cmp eax, 1
jl 0x491a46
mov ebp, dword [esp + 0x24]
mov ebx, eax
imul ebx, ebx, 0x124
add ebp, ebx
mov ebx, dword [ebp - 0x124]
cmp ebx, 3
je 0x491a3a
cmp ebx, 4
jne 0x491a40
lea esi, [ebp - 0xbc]
mov ebx, dword [esp + 0x14]
mov ebp, ebx
cmp eax, edx
jl 0x491a70
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 0x491a67
cmp ebx, 4
jne 0x491a6a
lea edi, [ebp + 0x68]
mov ebx, dword [esp + 0x14]
mov ebp, ebx
test ecx, ecx
je 0x491aa3
lea ecx, [edx + 1]
cmp eax, ecx
jl 0x491aa3
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 0x491a9b
cmp ecx, 4
jne 0x491aa3
add edx, 0xffffff44
jmp 0x491aa7
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.0x491ac2
jmp dword [ecx*4 + 0x491bd8]
test esi, esi
je 0x491ad0
lea ebx, [esi + 0x1e]
test edi, edi
je 0x491ad7
lea ebp, [edi + 0x3c]
test edx, edx
je case.default.0x491ac2
add edx, 0x5a
jmp 0x491b45
test edi, edi
mov ebx, eax
je case.default.0x491ac2
lea ebp, [edi + 0x5a]
add edi, 0x3c
mov dword [esp + 0x10], edi
jmp case.default.0x491ac2
test esi, esi
je 0x491b00
lea ebx, [esi + 0x5a]
add esi, 0x1e
mov dword [esp + 0x10], esi
mov ebp, eax
jmp case.default.0x491ac2
lea ebx, [eax + 0x3c]
lea ebp, [eax + 0x1e]
mov dword [esp + 0x10], eax
jmp case.default.0x491ac2
test esi, esi
je 0x491b17
lea ebx, [esi + 0x78]
test edi, edi
je 0x491b1e
lea ebp, [edi + 0x78]
test edx, edx
je case.default.0x491ac2
add edx, 0x78
jmp 0x491b45
test esi, esi
je 0x491b31
lea ebx, [esi + 0x96]
test edi, edi
je 0x491b3b
lea ebp, [edi + 0x96]
test edx, edx
je case.default.0x491ac2
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 0x491ba0
test bp, bp
jle 0x491b9c
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 0x491bbf
test bx, bx
jle 0x491bbd
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 0x4995b0
Capabilities:
Check mutex on windows
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c57bb
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 0x499685
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 0x499672
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x608ea0
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x2c], eax
call fcn.004eb0bb
cmp byte [esi + 0x50], bl
je 0x4996a3
cmp edi, 0xffffffff
je 0x49969c
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
jmp 0x4996ee
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 0x49c090
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 0x4996ec
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.004e3543
mov esp, ebp
pop ebp
ret
Function at 0x499f70
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.0049a6c0
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x499ff2
mov eax, 0xf
push 0x608ea0
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.004eb0bb
cmp dword [edi], 1
je 0x49a047
mov eax, 0xf
push 0x608ea0
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.004eb0bb
cmp dword [edi + 0x10], 2
jne 0x49a05f
lea eax, [esp + 0x78]
mov dword [esp + 0x10], 0x10
mov dword [esp + 0xc], eax
jmp 0x49a072
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 0x49a0e5
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 0x608ea0
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x28], eax
call fcn.004eb0bb
mov esi, dword [edi + 0x2c]
call fcn.0049f430
mov ecx, dword [esp + 0xc]
lea eax, [ebp + 0xc]
push eax
push ecx
mov ecx, edi
call fcn.0049b6e0
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.004a8ba0
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004e3543
mov esp, ebp
pop ebp
ret 8
Function at 0x49a140
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0xa4
mov eax, dword [0x617560]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xac]
push ebx
push ebp
push esi
push edi
push ecx
mov dword [esp + 0x1c], eax
call fcn.0049a6c0
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x49a1cb
mov eax, 0xf
push 0x608ea0
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], vtable.CUDTException.0
mov dword [esp + 0x28], 5
mov dword [esp + 0x2c], 4
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
mov dword [esp + 0x30], ebx
call fcn.004eb0bb
cmp dword [edi], 1
je 0x49a223
mov eax, 0xf
mov dword [esp + 0x44], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x7c], eax
push 0x608ea0
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], vtable.CUDTException.0
mov dword [esp + 0x28], 5
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
mov dword [esp + 0x30], ebx
call fcn.004eb0bb
cmp dword [edi + 0x10], 2
jne 0x49a23a
mov dword [esp + 0x14], 0x10
lea ebp, [esp + 0x80]
jmp 0x49a249
mov dword [esp + 0x14], 0x1c
lea ebp, [esp + 0x90]
mov edx, dword [esp + 0xb8]
lea ecx, [esp + 0x14]
push ecx
push ebp
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x49a2bc
mov eax, 0xf
mov dword [esp + 0x1c], vtable.CUDTException.0
mov dword [esp + 0x20], 5
mov dword [esp + 0x24], 3
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
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x28], eax
push 0x608ea0
lea eax, [esp + 0x20]
push eax
call fcn.004eb0bb
mov esi, dword [edi + 0x2c]
call fcn.0049f430
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0xbc]
push edx
push ebp
mov ecx, edi
call fcn.0049bb20
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x2c]
mov dword [edi], 2
mov edx, dword [ecx + 0x208]
push eax
mov eax, dword [edx + 8]
call fcn.004a8ba0
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004e3543
add esp, 0xa4
ret 8
Function at 0x49b3a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5bfc38
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push edi
mov eax, dword [0x617560]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esi + 0x28]
lea edi, [esi + 0x28]
push 0xffffffffffffffff
push eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], 0
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49b402
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x10], eax
lea eax, [esi + 0x1c]
lea ebx, [esp + 0x10]
call fcn.0049ce00
cmp dword [esp + 0x18], 0xffffffff
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
je 0x49b43b
mov edx, dword [edi]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x49e390
Capabilities:
Resolve dns

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, eax
mov eax, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x49e424
cmp word [ebx + 8], 2
push edi
jne 0x49e3f5
cmp word [ebx + 0xa], 4
jne 0x49e3f5
mov edi, dword [ebx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x49e3f5
jmp 0x49e3d0
mov edx, dword [eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push ebp
push eax
push ecx
call fcn.0049e320
test eax, eax
mov dword [esi], eax
je 0x49e418
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x49e3d0
mov edx, dword [ebx]
mov eax, dword [esp + 0x20]
push 0x400
push edx
push 0x401
push eax
call fcn.004e6013
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
ret 0x10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x49e434.11001
jmp dword [eax*4 + 0x49e45c]
pop esi
pop ebp
mov eax, 0x2af9
pop ebx
ret 0x10
pop esi
pop ebp
mov eax, 0x2afa
pop ebx
ret 0x10
pop esi
pop ebp
mov eax, 0x2afb
pop ebx
ret 0x10