joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49f650
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov esi, ecx
mov ecx, dword [ebp + 0x14]
mov edi, edx
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
lea ebx, [esp + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x20], edx
xor edx, edx
test cl, 1
lea ecx, [esp + 0x20]
cmovne edx, ecx
mov ecx, dword [ebp + 0xc]
push 0
push edx
push ecx
push eax
push ebx
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x49f6ce
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x49f6ef
test eax, eax
js 0x49f6da
mov eax, dword [esp + 0xc]
mov bl, 4
jmp 0x49f6e2
xor ebx, ebx
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov dword [esi + 4], eax
mov byte [esi], bl
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x2c], 0x5872c8
mov dword [esp + 0x30], 1
mov dword [esp + 0x3c], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea esi, [esp + 0x44]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x38], 0
push eax
push ecx
push esi
call fcn.0048d980
add esp, 0xc
mov ecx, esi
call fcn.00460240
mov ecx, 7
int 0x29
ud2

Function at 0x49fb20
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, 2
cmp byte [eax], 0
mov eax, 0x17
cmovne ebx, eax
push 0x81
push 0
push 0
push 0
push edi
push ebx
call sub.ws2_32.dll_WSASocketW
cmp eax, 0xffffffff
je 0x49fb63
mov dword [esi + 4], eax
mov byte [esi], 4
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2726
je 0x49fb76
cmp eax, 0x2739
jne 0x49fb9f
push 1
push 0
push 0
push 0
push edi
push ebx
call sub.ws2_32.dll_WSASocketW
cmp eax, 0xffffffff
je 0x49fba7
mov edi, eax
push 0
push 1
push eax
call sub.kernel32.dll_SetHandleInformation
test eax, eax
je 0x49fbb7
mov dword [esi + 4], edi
jmp 0x49fb59
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x49fb5c
call sub.ws2_32.dll_WSAGetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x49fb5c
call sub.kernel32.dll_GetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
push edi
call sub.ws2_32.dll_closesocket
jmp 0x49fb5c
Function at 0x4a0fb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x18], 0
movzx eax, byte [ecx + 0xc]
mov byte [ecx + 0xc], 0
movzx ebx, word [ecx + 8]
mov esi, dword [ecx]
mov byte [ebp - 0xd], al
mov eax, ecx
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x2c], ecx
mov edi, ebx
test bx, bx
je 0x4a1032
nop word cs:[eax + eax]
xor ebx, ebx
mov word [eax + 8], 0
cmp di, 0x22
jne 0x4a10fb
mov ecx, dword [ebp - 0x18]
xor cl, 1
mov dword [ebp - 0x18], ecx
mov edi, ebx
test bx, bx
jne 0x4a1010
cmp esi, dword [ebp - 0x2c]
je 0x4a114a
lea ecx, [esi + 1]
mov dword [eax], ecx
movzx edx, byte [esi]
test dl, dl
js 0x4a1050
mov edi, edx
jmp 0x4a10b7
lea ecx, [esi + 2]
mov ebx, eax
mov edi, edx
mov dword [eax], ecx
and edi, 0x1f
movzx eax, byte [esi + 1]
and eax, 0x3f
cmp dl, 0xdf
jbe 0x4a10b0
lea ecx, [esi + 3]
shl eax, 6
mov dword [ebx], ecx
movzx ebx, byte [esi + 2]
and ebx, 0x3f
or ebx, eax
cmp dl, 0xf0
jb 0x4a10c0
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 4]
and edi, 7
shl ebx, 6
shl edi, 0x12
mov dword [eax], ecx
movzx eax, byte [esi + 3]
and eax, 0x3f
or eax, ebx
or edi, eax
cmp edi, 0xffff
ja 0x4a10cd
mov eax, dword [ebp + 0xc]
jmp 0x4a10b7
shl edi, 6
or edi, eax
mov eax, ebx
xor ebx, ebx
mov esi, ecx
jmp 0x4a1018
shl edi, 0xc
or edi, ebx
cmp edi, 0xffff
jbe 0x4a10a2
mov edx, dword [ebp + 0xc]
lea eax, [edi + 0xff0000]
and edi, 0x3ff
mov esi, ecx
shr eax, 0xa
or edi, 0xdc00
or eax, 0xd800
mov ebx, edi
mov word [edx + 8], di
mov edi, eax
mov eax, edx
jmp 0x4a1018
movzx eax, di
cmp eax, 0x3b
jne 0x4a1109
test byte [ebp - 0x18], 1
je 0x4a1143
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jne 0x4a111f
lea ecx, [ebp - 0x24]
call fcn.0046dfb0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov word [ecx + eax*2], di
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov edi, ebx
test bx, bx
je 0x4a1032
jmp 0x4a1010
mov eax, dword [ebp + 0xc]
mov byte [eax + 0xc], 1
mov ecx, dword [ebp - 0x14]
test ecx, ecx
setne al
or byte [ebp - 0xd], al
je 0x4a1186
lea eax, [ebp - 0x3c]
push ecx
push dword [ebp - 0x20]
push eax
call fcn.0048fe20
add esp, 0xc
mov esi, dword [ebp + 8]
movsd xmm0, qword [ebp - 0x3c]
movsd xmm1, qword [ebp - 0x34]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x4a1196
jmp 0x4a11a6
mov esi, dword [ebp + 8]
mov dword [esi], 0x80000000
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4a11a6
add eax, eax
push 2
push eax
push dword [ebp - 0x20]
call fcn.0040cd20
add esp, 0xc
mov eax, esi
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4a1d00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
lea edi, [ebp - 0x30]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], ecx
mov esi, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
sub eax, esi
add ecx, esi
push 0x4a1dc0
push edi
push eax
push ecx
push dword [edx]
call sub.kernel32.dll_ReadFileEx
test eax, eax
je 0x4a1d73
nop word cs:[eax + eax]
nop
push 1
push 0xffffffffffffffff
call sub.kernel32.dll_SleepEx
cmp dword [ebp - 0x1c], 1
jne 0x4a1d50
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x4a1d93
mov ecx, edi
call fcn.004a8d20
cmp al, 0xb
jne 0x4a1d85
jmp 0x4a1da4
call sub.kernel32.dll_GetLastError
mov edi, eax
mov ecx, edi
call fcn.004a8d20
cmp al, 0xb
je 0x4a1da4
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], edi
mov dword [eax], 0
jmp 0x4a1daa
add esi, dword [ebp - 0x14]
mov dword [ebx + 8], esi
mov eax, dword [ebx + 0xc]
cmp eax, esi
cmova esi, eax
mov dword [ebx + 0xc], esi
mov eax, dword [ebp - 0x10]
mov byte [eax], 4
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4a20e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [edx], 0
mov edi, edx
jne 0x4a21b4
mov ebx, dword [edi + 0xc]
mov esi, ecx
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
cmp edx, eax
je 0x4a218c
mov ecx, dword [edi + 8]
sub edx, eax
add eax, dword [ebx + 4]
mov dword [ebp - 0x2c], 0
lea ebx, [ebp - 0x2c]
push ecx
push ebx
push edx
push eax
push dword [edi + 0x10]
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x4a213b
mov eax, dword [ebp - 0x2c]
mov ecx, 2
test eax, eax
jne 0x4a216f
mov word [esi], 4
jmp 0x4a2179
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
je 0x4a2158
cmp eax, 0x6d
jne 0x4a2181
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 1
jmp 0x4a215b
lea eax, [ebp - 0x10]
mov dword [eax], 0
mov ecx, 1
mov eax, dword [ebp - 0x14]
test byte [ebp - 0x10], 1
jne 0x4a212b
mov dword [edi], ecx
mov dword [edi + 4], eax
mov word [esi], 0x104
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi], 0
mov dword [esi + 4], eax
jmp 0x4a2179
test edx, edx
mov ecx, 0x10
mov eax, 1
cmove eax, ecx
mov ecx, ebx
push 1
push 1
push eax
call fcn.0046e310
add esp, 0xc
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
jmp 0x4a2106
lea edx, [ebp - 0x2c]
mov ecx, edi
mov dword [ebp - 0x2c], 0
call fcn.004686a0
nop word cs:[eax + eax]
nop
Function at 0x4a70e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, ecx
lea ecx, [ebp - 0x28]
push dword [ebp + 8]
call fcn.004a9400
add esp, 4
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov edx, ecx
neg edx
jo 0x4a712c
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x34]
call fcn.0049bc00
mov edi, dword [ebp - 0x1c]
mov eax, edi
neg eax
jno 0x4a7173
movzx eax, byte [ebp - 0x18]
mov edi, dword [ebp - 0x14]
cmp al, 3
jne 0x4a7168
mov ebx, dword [edi + 4]
mov dword [ebp - 0x10], esi
mov esi, dword [edi]
mov eax, dword [ebx]
test eax, eax
je 0x4a7144
push esi
call eax
add esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x4a7158
push dword [ebx + 8]
push eax
push esi
call fcn.0040cd20
add esp, 0xc
push 4
push 0xc
push edi
call fcn.0040cd20
add esp, 0xc
mov esi, dword [ebp - 0x10]
mov dword [esi], 0x80000000
add esp, 0x28
jmp 0x4a71af
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push ebx
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4a7197
mov eax, dword [ebp - 0x10]
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
add esp, 0x28
jmp 0x4a71af
test edi, edi
mov dword [esi], 0x80000000
je 0x4a7192
add edi, edi
push 2
push edi
push ebx
call fcn.0040cd20
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4a8870
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [0x59fb24]
mov ebx, dword [ebp + 0x10]
movzx eax, byte [eax]
push 4
push 8
call fcn.0040cd10
add esp, 8
test eax, eax
je 0x4a8909
mov esi, eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [esi], ebx
mov dword [esi + 4], ecx
push 0
push 0x10000
push esi
push 0x4a8960
push eax
push 0
call sub.kernel32.dll_CreateThread
test eax, eax
je 0x4a88c2
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x4a8902
mov ebx, dword [esi + 4]
mov edi, dword [esi]
mov eax, dword [ebx]
test eax, eax
je 0x4a88d3
push edi
call eax
add esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x4a88e7
push dword [ebx + 8]
push eax
push edi
call fcn.0040cd20
add esp, 0xc
push 4
push 8
push esi
call fcn.0040cd20
add esp, 0xc
call sub.kernel32.dll_GetLastError
mov edi, dword [ebp + 8]
mov byte [edi], 0
mov dword [edi + 4], eax
mov eax, edi
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, ebx
mov ebx, dword [ebp + 0x14]
push 8
push 4
call fcn.004cf360
add esp, 8
ud2
Function at 0x4aa990
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov ecx, dword [ebp + 8]
xor esi, esi
mov edi, dword [ecx + 8]
mov eax, dword [ecx + 4]
mov ecx, 0
cmp edi, 3
jb 0x4aa9e2
movzx edx, byte [edi + eax - 2]
xor esi, esi
mov ecx, edx
and cl, 0xf0
cmp cl, 0xa0
mov ecx, 0
jne 0x4aa9e2
xor esi, esi
cmp byte [edi + eax - 3], 0xed
jne 0x4aa9e2
movzx esi, byte [edi + eax - 1]
and edx, 0xf
mov cl, 1
shl edx, 0x10
and esi, 0x3f
shl esi, 0xa
or esi, edx
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
cmp edx, 3
mov dword [ebp - 0x10], ebx
jb 0x4aaa96
cmp byte [ebx], 0xed
jne 0x4aaa9a
mov edx, dword [ebp + 0xc]
movzx ebx, byte [edx + 1]
mov edx, ebx
and dl, 0xf0
cmp dl, 0xb0
setne dl
xor cl, 1
or cl, dl
jne 0x4aaa9a
mov eax, dword [ebp + 0xc]
mov ecx, ebx
cmp edi, 3
movzx eax, byte [eax + 2]
jb 0x4aaa31
mov ebx, dword [ebp + 8]
add edi, 0xfffffffd
mov dword [ebx + 8], edi
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
and eax, 0x3f
mov dword [ebp - 0x14], eax
shl ebx, 6
mov ecx, dword [ecx]
lea eax, [edx + 1]
sub ecx, edi
cmp ecx, eax
jb 0x4aab54
or esi, dword [ebp - 0x14]
and ebx, 0x3c0
add dword [ebp - 0x10], 3
or esi, ebx
add esi, 0x10000
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00498400
add esp, 8
mov edx, dword [ebp + 0x10]
mov eax, dword [esi]
mov edi, dword [esi + 8]
add edx, 0xfffffffd
sub eax, edi
cmp eax, edx
jb 0x4aab6b
mov eax, dword [esi + 4]
add eax, edi
push edx
push dword [ebp - 0x10]
jmp 0x4aab1e
test edx, edx
je 0x4aab0a
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
add ecx, esi
jmp 0x4aaab6
add esi, 2
cmp edx, ecx
cmovne edx, esi
nop dword [eax]
cmp edx, ecx
mov esi, edx
je 0x4aab0a
movzx ebx, byte [esi]
lea edx, [esi + 1]
test bl, bl
jns 0x4aaab0
cmp bl, 0xe0
jb 0x4aaaa4
cmp bl, 0xed
jne 0x4aaae2
cmp edx, ecx
je 0x4aab0a
lea edx, [esi + 2]
cmp edx, ecx
je 0x4aab0a
cmp byte [esi + 1], 0x9f
ja 0x4aab03
add esi, 3
mov edx, esi
jmp 0x4aaab0
add esi, 2
cmp edx, ecx
cmove esi, edx
xor edx, edx
cmp esi, ecx
setne dl
add edx, esi
cmp bl, 0xf0
jb 0x4aaab0
xor ebx, ebx
cmp edx, ecx
setne bl
add edx, ebx
jmp 0x4aaab0
mov ecx, dword [ebp + 8]
mov byte [ecx + 0xc], 0
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov ecx, dword [esi]
sub ecx, edi
cmp ecx, edx
jb 0x4aab36
add eax, edi
push edx
push dword [ebp + 0xc]
push eax
mov ebx, edx
call sub.msvcrt.dll_memcpy
add esp, 0xc
add edi, ebx
mov dword [esi + 8], edi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, edi
mov ecx, esi
push 1
push 1
push dword [ebp + 0x10]
call fcn.0046e310
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [esi + 4]
mov edi, dword [esi + 8]
jmp 0x4aab18
mov ecx, dword [ebp + 8]
mov edx, edi
push 1
push 1
push eax
call fcn.0046e310
add esp, 0xc
jmp 0x4aaa51
mov ebx, edx
mov edx, edi
mov ecx, esi
push 1
push 1
push ebx
call fcn.0046e310
mov edx, ebx
add esp, 0xc
mov edi, dword [esi + 8]
jmp 0x4aaa88
Function at 0x4ac7b0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0xc]
test eax, 0x3fffffff
jne 0x4ac797
mov esi, dword [ebp + 8]
mov ecx, eax
neg ecx
jno 0x4ac745
xor ecx, ecx
mov eax, 0x80000000
lock cmpxchg dword [esi], ecx
jne 0x4ac745
lock inc dword [esi + 4]
add esi, 4
push esi
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressSingle]
pop esi
pop ebp
ret
cmp eax, 0xc0000000
je 0x4ac762
cmp eax, 0x40000000
jne 0x4ac742
xor ecx, ecx
mov eax, 0x40000000
lock cmpxchg dword [esi], ecx
jne 0x4ac742
jmp 0x4ac78d
mov ecx, 0x40000000
mov eax, 0xc0000000
lock cmpxchg dword [esi], ecx
jne 0x4ac742
lock inc dword [esi + 4]
lea eax, [esi + 4]
push eax
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressSingle]
xor ecx, ecx
mov eax, 0x40000000
lock cmpxchg dword [esi], ecx
jne 0x4ac742
push esi
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressAll]
pop esi
pop ebp
ret
push 0x587df0
push 0x24
push str.assertion_failed:_is_unlocked_state_
call fcn.004dab10
nop dword [eax + eax]
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 8]
push 1
push esi
call sub.kernel32.dll_TlsSetValue
push 8
push 0x10
push edi
call fcn.0040cd20
add esp, 0xc
push 0
push esi
call sub.kernel32.dll_TlsSetValue
pop esi
pop edi
pop ebp
ret
Function at 0x4ac930
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x4ac947
test eax, eax
jne 0x4acac1
mov esi, dword [0x5c916c]
xor ecx, ecx
nop
test esi, esi
je 0x4ac98d
mov ebx, dword [esi]
mov edi, dword [esi + 4]
test edi, edi
je 0x4acacb
mov esi, dword [esi + 8]
test ebx, ebx
je 0x4ac950
dec ebx
push ebx
mov dword [ebp - 0x10], ecx
call sub.kernel32.dll_TlsGetValue
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x4ac950
push 0
push ebx
mov ebx, eax
call sub.kernel32.dll_TlsSetValue
push ebx
call edi
add esp, 4
mov cl, 1
jmp 0x4ac950
test cl, 1
je 0x4acac1
mov esi, dword [0x5c916c]
xor ecx, ecx
nop
test esi, esi
je 0x4ac9dd
mov ebx, dword [esi]
mov edi, dword [esi + 4]
test edi, edi
je 0x4acacb
mov esi, dword [esi + 8]
test ebx, ebx
je 0x4ac9a0
dec ebx
push ebx
mov dword [ebp - 0x10], ecx
call sub.kernel32.dll_TlsGetValue
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x4ac9a0
push 0
push ebx
mov ebx, eax
call sub.kernel32.dll_TlsSetValue
push ebx
call edi
add esp, 4
mov cl, 1
jmp 0x4ac9a0
test cl, 1
je 0x4acac1
mov esi, dword [0x5c916c]
xor ecx, ecx
nop
test esi, esi
je 0x4aca2d
mov ebx, dword [esi]
mov edi, dword [esi + 4]
test edi, edi
je 0x4acacb
mov esi, dword [esi + 8]
test ebx, ebx
je 0x4ac9f0
dec ebx
push ebx
mov dword [ebp - 0x10], ecx
call sub.kernel32.dll_TlsGetValue
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x4ac9f0
push 0
push ebx
mov ebx, eax
call sub.kernel32.dll_TlsSetValue
push ebx
call edi
add esp, 4
mov cl, 1
jmp 0x4ac9f0
test cl, 1
je 0x4acac1
mov esi, dword [0x5c916c]
xor ecx, ecx
nop
test esi, esi
je 0x4aca79
mov ebx, dword [esi]
mov edi, dword [esi + 4]
test edi, edi
je 0x4acacb
mov esi, dword [esi + 8]
test ebx, ebx
je 0x4aca40
dec ebx
push ebx
mov dword [ebp - 0x10], ecx
call sub.kernel32.dll_TlsGetValue
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x4aca40
push 0
push ebx
mov ebx, eax
call sub.kernel32.dll_TlsSetValue
push ebx
call edi
add esp, 4
mov cl, 1
jmp 0x4aca40
test cl, 1
je 0x4acac1
mov edi, dword [0x5c916c]
nop word cs:[eax + eax]
nop
test edi, edi
je 0x4acac1
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x4acacb
mov edi, dword [edi + 8]
test esi, esi
je 0x4aca90
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x4aca90
push 0
push esi
mov esi, eax
call sub.kernel32.dll_TlsSetValue
push esi
call ebx
add esp, 4
jmp 0x4aca90
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
push 0x587e78
call fcn.004da950
add esp, 4
ud2
Function at 0x4ace20
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1b8
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
movzx eax, word [eax + 8]
mov word [ebp - 0xe], ax
mov eax, dword [0x5c9150]
cmp eax, 3
jne 0x4acf0e
lea eax, [ebp - 0xe]
cmp ebx, 0x17f
mov dword [ebp - 0x18], eax
ja 0x4acf25
lea esi, [ebp - 0x1c4]
push ebx
push edi
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [ebp + ebx - 0x1c4], 0
inc ebx
lea eax, [ebp - 0x24]
push ebx
push esi
push eax
call fcn.004d84d0
add esp, 0xc
test byte [ebp - 0x24], 1
je 0x4aceac
mov eax, dword [0x586418]
mov esi, dword [ebp + 8]
mov ecx, dword [0x58641c]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
jmp 0x4acf36
mov eax, dword [ebp - 0x20]
xorps xmm0, xmm0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x44]
movups xmmword [ebp - 0x44], xmm0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x3c], 1
push ecx
push edx
push 0
push eax
call sub.ws2_32.dll_getaddrinfo
mov esi, dword [ebp + 8]
test eax, eax
je 0x4acef7
call sub.ws2_32.dll_WSAGetLastError
mov ecx, 1
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], ecx
jmp 0x4acf36
mov eax, dword [ebp - 0x14]
movzx ecx, word [ebp - 0xe]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
xor eax, eax
mov word [esi + 0xc], cx
mov dword [esi], eax
jmp 0x4acf36
call fcn.00496170
lea eax, [ebp - 0xe]
cmp ebx, 0x17f
mov dword [ebp - 0x18], eax
jbe 0x4ace5f
lea eax, [ebp - 0x18]
mov ecx, esi
mov edx, edi
push eax
push ebx
call fcn.00496ea0
add esp, 8
mov eax, esi
add esp, 0x1b8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4adbc0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
mov eax, dword [ebp + 8]
mov edi, ecx
xorps xmm0, xmm0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 7
movsd qword [esp + 0x32], xmm0
movsd qword [esp + 0x2c], xmm0
mov byte [esp + 0x34], 1
lea esi, [esp + 0x18]
lea ecx, [esp + 0x10]
push esi
push eax
call fcn.0049c040
add esp, 8
cmp byte [esp + 0x10], 4
jne 0x4adc24
mov esi, dword [esp + 0x14]
jmp 0x4adc31
movzx eax, byte [esp + 0x10]
mov esi, dword [esp + 0x14]
cmp al, 4
jne 0x4adcab
lea ebx, [esp + 0x18]
mov edx, esi
mov ecx, ebx
call fcn.0049c260
mov eax, dword [esp + 0x18]
xor eax, 2
or eax, dword [esp + 0x1c]
jne 0x4adc99
cmp byte [esp + 0x20], 3
jne 0x4adca0
mov eax, dword [esp + 0x24]
mov dword [esp + 4], edi
mov edi, dword [eax + 4]
mov ebx, dword [eax]
mov dword [esp + 0xc], eax
mov eax, dword [edi]
test eax, eax
je 0x4adc6f
push ebx
call eax
add esp, 4
mov eax, dword [edi + 4]
test eax, eax
je 0x4adc83
push dword [edi + 8]
push eax
push ebx
call fcn.0040cd20
add esp, 0xc
push 4
push 0xc
push dword [esp + 0x14]
call fcn.0040cd20
add esp, 0xc
mov edi, dword [esp + 4]
jmp 0x4adca0
cmp dword [esp + 0x54], 0
je 0x4adcf7
mov dword [edi], 0
jmp 0x4add9e
cmp al, 3
jne 0x4adcec
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 4], eax
mov eax, dword [ebx]
test eax, eax
je 0x4adcc7
push dword [esp + 4]
call eax
add esp, 4
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 4]
test eax, eax
je 0x4adcdf
push dword [ebx + 8]
push eax
push ecx
call fcn.0040cd20
add esp, 0xc
push 4
push 0xc
push esi
call fcn.0040cd20
add esp, 0xc
mov dword [edi], 0
jmp 0x4adda4
mov eax, dword [esp + 0x50]
test esi, esi
mov dword [esp + 0xc], eax
je 0x4add29
mov dword [esp + 0x18], 0
call sub.kernel32.dll_GetCurrentProcess
push 2
push 0
push 0
push ebx
push eax
push esi
push eax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x4add93
mov eax, dword [esp + 0x18]
jmp 0x4add2b
xor eax, eax
push 0
push 0
push 0
push 2
push 0
mov dword [esp + 0x1c], eax
push eax
call sub.kernel32.dll_CreateFileMappingA
test eax, eax
je 0x4add82
push dword [esp + 0xc]
push 0
push 0
push 4
push eax
mov dword [esp + 0x18], edi
mov edi, eax
call sub.kernel32.dll_MapViewOfFile
mov ebx, eax
push edi
mov edi, dword [esp + 8]
call sub.kernel32.dll_CloseHandle
test ebx, ebx
je 0x4add82
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ecx
mov dword [edi], 1
jmp 0x4add9e
mov dword [edi], 0
push dword [esp + 8]
call sub.kernel32.dll_CloseHandle
jmp 0x4add9e
call sub.kernel32.dll_GetLastError
mov dword [edi], 0
push esi
call sub.kernel32.dll_CloseHandle
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret