joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426311
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
lea ecx, [ebp - 4]
inc eax
push 4
push ecx
push eax
push 6
mov dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x426359
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0x10]
push str.ERROR__d_disabling_Nagles_algorithm
push eax
call fcn.0042a481
add esp, 0xc
lea eax, [ebp - 0x10]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret

Function at 0x426514
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
cmp dword [0x4b3c00], 0
mov dword [ebp - 0x18], str.getaddrinfo
mov dword [ebp - 0x14], 0x4266ad
mov dword [ebp - 0x10], str.getnameinfo
mov dword [ebp - 0xc], 0x426bde
mov dword [ebp - 8], str.freeaddrinfo
mov dword [ebp - 4], fcn.00426671
jne 0x426662
push ebx
push esi
push edi
lea eax, [ebp - 0x22c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x426655
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x124]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x124]
push str.ws2_32
push eax
call sub.MSVCRT.dll_strcat
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x10
lea eax, [ebp - 0x124]
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4265cc
push str.getaddrinfo
push esi
call edi
test eax, eax
jne 0x4265c8
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
jne 0x42661b
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x124]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x124]
push str.wship6
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x124]
push eax
call ebx
mov esi, eax
test esi, esi
je 0x426655
push str.getaddrinfo
push esi
call edi
test eax, eax
jne 0x426617
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x426655
xor ebx, ebx
push dword [ebp + ebx*8 - 0x18]
push esi
call edi
test eax, eax
mov dword [ebp + ebx*8 - 0x14], eax
je 0x426634
inc ebx
cmp ebx, 3
jl 0x42661d
jmp 0x42663d
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x426655
xor eax, eax
mov ecx, dword [ebp + eax - 0x14]
mov dword [eax + 0x4a8b50], ecx
add eax, 8
cmp eax, 0x18
jl 0x426643
pop edi
pop esi
mov dword [0x4b3c00], 1
pop ebx
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x4a8b50]
leave
ret 4
Function at 0x426af7
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
push dword [ebp + 8]
and dword [edi], 0
and byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x426b71
cmp word [ebx + 8], 2
jne 0x426b4d
cmp word [ebx + 0xa], 4
jne 0x426b4d
mov esi, dword [ebx + 0xc]
jmp 0x426b47
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00426990
test eax, eax
mov dword [edi], eax
je 0x426b6c
lea edi, [eax + 0x1c]
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x426b2b
mov esi, dword [ebp + 0x18]
push 0x400
push dword [ebx]
push esi
call dword [sym.imp.MSVCRT.dll_strncpy]
and byte [esi + 0x400], 0
add esp, 0xc
xor eax, eax
jmp 0x426b97
push 8
pop eax
jmp 0x426b97
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x426b97
dec ecx
je 0x426b92
dec ecx
je 0x426b8b
dec ecx
jmp 0x426b97
mov eax, 0x2afb
jmp 0x426b97
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x18

Function at 0x426eca
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
cmp byte [ebp + 0xc], al
sete al
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push 0x8004667e
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x426f1a
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xc]
push str.Error_d_in_SetBlockingMode__u_
push eax
call fcn.0042a481
add esp, 0x10
lea eax, [ebp - 0xc]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret

Function at 0x426f1c
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
push 4
cmp byte [ebp + 0xc], al
setne al
mov word [ebp + 0xc], ax
mov ax, word [ebp + 0x10]
mov word [ebp + 0xe], ax
lea eax, [ebp + 0xc]
push eax
push 0x80
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x426f79
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xc]
push str.setsockopt_SO_LINGER___u
push eax
call fcn.0042a481
add esp, 0xc
lea eax, [ebp - 0xc]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret

Function at 0x426f7b
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push 4
push eax
push 0x1001
push 0xffff
mov dword [ebp - 4], 0x10000
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x426fcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push str.Error_d_setsockopt__
push eax
call fcn.0042a481
add esp, 0xc
lea eax, [ebp - 0x10]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret
Function at 0x426fcd
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
xor edx, edx
mov ecx, 0x3e8
mov dword [ebp - 0x11c], 1
div ecx
mov dword [ebp - 8], eax
mov eax, dword [esi]
imul edx, edx, 0x3e8
mov dword [ebp - 0x118], eax
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0x11c]
push 0
push eax
push 0
mov dword [ebp - 4], edx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
mov dword [ebp + 0x10], eax
jl 0x427058
cmp eax, 1
jg 0x427058
lea eax, [ebp - 0x11c]
push eax
push dword [esi]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x427054
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x42704f
or eax, 0xffffffff
pop esi
leave
ret 0xc
xor eax, eax
jmp 0x42704f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esi]
push dword [ebp + 0x10]
push eax
push str.ERROR__d_in_TCP::TryRead__1__d_socket_X
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00427645
add esp, 0x18
lea eax, [ebp - 0x18]
push 0x497a90
push eax
call sub.MSVCRT.dll__CxxThrowException

Function at 0x427536
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ecx + 8]
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x11c], 1
imul edx, edx, 0x3e8
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0x11c]
push 0
push eax
lea eax, [esi + 1]
push eax
mov dword [ebp - 4], edx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jl 0x4275a4
cmp eax, 2
jg 0x4275a4
lea eax, [ebp - 0x11c]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
neg eax
sbb eax, eax
pop esi
neg eax
leave
ret 4
push eax
push str.ERROR_in_TransportTCP1::IsReadyForRead__1__d
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.00427645
add esp, 0x10
lea eax, [ebp - 0x18]
push 0x497a90
push eax
call sub.MSVCRT.dll__CxxThrowException
Function at 0x427c2b
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x482848
call fcn.0047e070
sub esp, 0x54
push ebx
push esi
push str.Elevate__
push 0x4b39b0
call fcn.0042b4b9
xor ebx, ebx
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.0040c107
add esp, 0x10
push str._elevated
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.0042ef62
push 0x4b31e4
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
call fcn.0042f11a
add esp, 0xc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0042eea2
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x60], 0x3c
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], str.runas
call fcn.0042f61b
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x50], eax
call fcn.0042f61b
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], 5
mov dword [ebp - 0x40], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x427d1b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x4c7
jne 0x427cf9
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0042eea2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042eea2
xor al, al
jmp 0x427d34
call esi
push eax
lea eax, [ebp - 0x24]
push str.Error__d_in_Elevate__
push eax
call fcn.0042a481
add esp, 0xc
lea eax, [ebp - 0x24]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0042eea2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042eea2
mov al, 1
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x427e20
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push eax
call esi
push 0
mov edi, eax
push dword [esp + 0x14]
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
mov ebx, eax
push 1
push ebx
push edi
call esi
test eax, eax
jne 0x427e63
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
je 0x427ebe
push eax
push str.SetForegroundWindow__1_Error__d
jmp 0x427eb1
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x427e7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetForegroundWindow__2_Error__d
jmp 0x427eb1
push 0
push ebx
push edi
call esi
test eax, eax
jne 0x427e97
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetForegroundWindow__3_Error__d
jmp 0x427eb1
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SetActiveWindow]
test eax, eax
jne 0x427ec2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetForegroundWindow__4_Error__d
push 0x4b39b0
call fcn.0042b4a1
add esp, 0xc
xor eax, eax
jmp 0x427ec5
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
ret
Function at 0x429ead
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx + 0x1db4]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jle 0x429ed5
mov edx, dword [esp + 8]
push edi
movzx edi, byte [edx]
xor edi, eax
movzx eax, byte [edi + ecx + 0x1cb4]
mov byte [edx], al
inc edx
dec esi
jne 0x429ec1
pop edi
mov dword [ecx + 0x1db4], eax
pop esi
ret 8

Function at 0x429f02
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push edi
mov edi, ecx
test edx, edx
mov ecx, dword [edi + 0x1db4]
jle 0x429f2f
push ebx
push esi
mov esi, dword [esp + 0x10]
movzx eax, byte [esi]
mov bl, byte [edi + eax + 0x1cb4]
xor bl, cl
mov ecx, eax
mov byte [esi], bl
inc esi
dec edx
jne 0x429f19
pop esi
pop ebx
mov dword [edi + 0x1db4], ecx
pop edi
ret 8

Function at 0x429f9b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, edx
push esi
shr eax, 2
test eax, eax
jle 0x429fc4
mov esi, eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ecx]
add ecx, 4
xor dword [eax], edi
add eax, 4
dec esi
jne 0x429fb4
pop edi
jmp 0x429fc7
mov eax, dword [ebp + 8]
and edx, 3
jle 0x429fd7
mov esi, edx
mov dl, byte [ecx]
xor byte [eax], dl
inc eax
inc ecx
dec esi
jne 0x429fce
pop esi
pop ebp
ret
Function at 0x429fda
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.0042a166
lea edi, [esi + 0x474]
push ebx
mov ecx, esi
call fcn.0042a196
mov dword [edi], eax
inc ebx
add edi, 4
cmp ebx, 0x200
jb 0x429ffd
and dword [ebp - 4], 0
lea ebx, [esi + 0x74]
mov edi, 0x100
mov eax, dword [ebp - 4]
mov ecx, esi
add eax, 0x1000
push eax
call fcn.0042a196
inc dword [ebp - 4]
mov dword [ebx], eax
add ebx, 4
cmp dword [ebp - 4], edi
jb 0x42a01f
and dword [ebp - 4], 0
lea ebx, [esi + 0xc74]
mov eax, dword [ebp - 4]
mov ecx, esi
add eax, 0x2000
push eax
call fcn.0042a196
inc dword [ebp - 4]
mov dword [ebx], eax
add ebx, 4
cmp dword [ebp - 4], 0x10
jb 0x42a046
mov ecx, esi
call fcn.00429b90
and dword [esi + 0x1db4], 0
xor eax, eax
or cl, 0xff
sub cl, al
mov byte [ebp + eax - 0x110], cl
inc eax
cmp eax, edi
jb 0x42a074
and dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0x14
jge 0x42a0ef
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, 0x14
mov dword [ebp - 0x10], eax
jge 0x42a0e6
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov ebx, edi
movzx eax, byte [eax + ecx]
movzx edx, byte [ecx + edx - 1]
add eax, edx
mov edx, dword [ebp - 4]
movzx edx, byte [edx + ecx - 1]
xor eax, edx
cdq
idiv ebx
mov eax, dword [ebp - 0xc]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], edi
mov byte [ebp + eax - 0x210], dl
jge 0x42a0f8
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x14
jl 0x42a0ab
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x15
jl 0x42a09d
inc dword [ebp - 4]
cmp dword [ebp - 4], 3
jb 0x42a090
xor eax, eax
mov dword [ebp + 8], eax
movzx ecx, byte [ebp + eax - 0x210]
cmp eax, ecx
je 0x42a122
lea ecx, [ebp + ecx - 0x110]
lea eax, [ebp + eax - 0x110]
mov bl, byte [ecx]
mov dl, byte [eax]
mov byte [eax], bl
mov eax, dword [ebp + 8]
mov byte [ecx], dl
inc eax
cmp eax, edi
mov dword [ebp + 8], eax
jl 0x42a0fd
cmp byte [ebp + 0xc], 0
je 0x42a149
lea eax, [ebp - 0x110]
push edi
add esi, 0x1cb4
push eax
push esi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x42a15f
xor eax, eax
movzx ecx, byte [ebp + eax - 0x110]
mov byte [ecx + esi + 0x1cb4], al
inc eax
cmp eax, edi
jb 0x42a14b
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x42a3bf
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
push dword [esp + 0xc]
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [esi], eax
je 0x42a3f2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42a3f0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
mov eax, dword [esi]
pop esi
ret 8
Function at 0x42a3f6
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x42a43c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x42a438
push eax
lea eax, [ebp - 0xc]
push str.ERROR:__d_RLMutexWin::IsExist__
push eax
call fcn.0042a481
add esp, 0xc
lea eax, [ebp - 0xc]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
xor al, al
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
leave
ret

Function at 0x42a595
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ecx]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fread]
mov esi, eax
add esp, 0x10
cmp esi, dword [ebp + 0xc]
je 0x42a5e1
call dword [sym.imp.MSVCRT.dll__errno]
push dword [eax]
lea eax, [ebp - 0xc]
push dword [ebp + 0xc]
push esi
push str.RLFile::Read____d__d_error_d
push eax
call fcn.0042a481
add esp, 0x14
lea eax, [ebp - 0xc]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
pop esi
leave
ret 8

Function at 0x42a5e6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ecx]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fwrite]
mov esi, eax
add esp, 0x10
cmp esi, dword [ebp + 0xc]
je 0x42a632
call dword [sym.imp.MSVCRT.dll__errno]
push dword [eax]
lea eax, [ebp - 0xc]
push dword [ebp + 0xc]
push esi
push str.RLFile::Write____d__d_error_d
push eax
call fcn.0042a481
add esp, 0x14
lea eax, [ebp - 0xc]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
pop esi
leave
ret 8

Function at 0x42a849
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x42a885
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xc]
push str.RLFileWin::GetSize___error_d
push eax
call fcn.0042a481
add esp, 0xc
lea eax, [ebp - 0xc]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret

Function at 0x42a887
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push 0
push eax
push esi
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42a8ad
cmp dword [ebp + 0xc], esi
je 0x42a8d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xc]
push str.RLFileWin::Read___error_d
push eax
call fcn.0042a481
add esp, 0xc
lea eax, [ebp - 0xc]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
pop esi
leave
ret 8
Function at 0x42a8d8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push 0
push eax
push esi
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42a8fe
cmp dword [ebp + 0xc], esi
je 0x42a924
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xc]
push str.RLFileWin::Write___error_d
push eax
call fcn.0042a481
add esp, 0xc
lea eax, [ebp - 0xc]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
pop esi
leave
ret 8

Function at 0x42ab33
Capabilities:
Connect to http server
Create http request

Disassembly:
mov eax, 0x4829ac
call fcn.0047e070
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, dword [esi]
cmp eax, ebx
jne 0x42abc8
cmp byte [0x4b3c40], bl
je 0x42ab61
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
jmp 0x42abc2
cmp word [0x4b3c42], bx
jne 0x42ab71
push ebx
push ebx
push ebx
push 1
jmp 0x42ab56
lea ecx, [ebp - 0x10]
call fcn.0042d52f
movzx eax, word [0x4b3c42]
push eax
mov ecx, 0x4b3c3c
mov dword [ebp - 4], ebx
call fcn.0042f61b
push eax
lea eax, [ebp - 0x10]
push str._s:_d
push eax
call fcn.0042ea97
add esp, 0x10
lea ecx, [ebp - 0x10]
push ebx
push ebx
call fcn.0042f61b
push eax
push 3
push ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov dword [esi], eax
call fcn.0042d82b
mov eax, dword [esi]
cmp eax, ebx
je 0x42abec
cmp dword [esi + 4], ebx
jne 0x42ac82
push 1
push ebx
push 3
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x42abfa
mov ecx, esi
call fcn.0042aa9a
xor al, al
jmp 0x42ac84
cmp byte [0x4b3c40], bl
push edi
jne 0x42ac0c
cmp word [0x4b3c42], bx
je 0x42ac5e
mov edi, 0x4b3c34
mov ecx, edi
call fcn.0042e001
test eax, eax
jne 0x42ac5e
mov ecx, edi
call fcn.0042dfef
push eax
mov ecx, edi
call fcn.0042f61b
push eax
push 0x2b
mov ecx, esi
call fcn.0042aafa
mov edi, 0x4b3c30
mov ecx, edi
call fcn.0042e001
test eax, eax
jne 0x42ac5e
mov ecx, edi
call fcn.0042dfef
push eax
mov ecx, edi
call fcn.0042f61b
push eax
push 0x2c
mov ecx, esi
call fcn.0042aafa
mov edi, 0xea60
mov ecx, esi
push edi
push 2
call fcn.0042aac2
push edi
push 6
mov ecx, esi
call fcn.0042aac2
push edi
push 5
mov ecx, esi
call fcn.0042aac2
pop edi
mov al, 1
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x42acc7
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
lea eax, [ebp - 0x128]
push edi
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x28]
push eax
mov esi, ecx
push dword [ebp + 0xc]
call fcn.0042b00f
add esp, 0x14
mov ecx, esi
call fcn.0042ac94
mov edi, 0x4b39b0
push str.RLHttp::SendRequest__3
push edi
call fcn.0042b4b9
pop ecx
lea eax, [ebp - 0xa8]
pop ecx
push dword [ebp - 4]
mov ecx, esi
push eax
call fcn.0042ab33
test al, al
je 0x42ae1a
lea eax, [ebp - 0x28]
xor ebx, ebx
push 0x4a01a0
push eax
mov dword [ebp - 8], ebx
mov dword [ebp + 0xc], 0x4080100
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x42ad4f
mov dword [ebp + 0xc], 0x4881100
mov ecx, 0x4b3c34
call fcn.0042e001
test eax, eax
jne 0x42ad61
or byte [ebp + 0xe], 0x40
push str.RLHttp::SendRequest__5
push edi
call fcn.0042b4b9
pop ecx
lea eax, [ebp - 8]
pop ecx
push ebx
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x128]
push dword [esi + 0x14]
push ebx
push eax
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, ebx
mov dword [esi + 8], eax
jne 0x42ad9d
mov ecx, esi
call fcn.0042aa9a
jmp 0x42ae1a
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jne 0x42adac
and dword [ebp + 8], ebx
and dword [ebp + 0xc], ebx
jmp 0x42adbc
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp + 0xc], eax
lea ebx, [esi + 0x10]
mov ecx, ebx
call fcn.0042dfef
push dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
push dword [ebp + 8]
push eax
push dword [esi + 8]
push str.RLHttp::SendRequest__8__X__X__X__X
push edi
call fcn.0042b4b9
add esp, 0x18
mov ecx, ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
call fcn.0042f61b
push eax
push dword [esi + 8]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x42ae1e
mov ecx, esi
call fcn.0042aa9a
push str.RLHttp::SendRequest__8_ERROR
push edi
call fcn.0042b4b9
pop ecx
pop ecx
mov ecx, esi
call fcn.0042acb0
xor al, al
jmp 0x42ae2d
push str.RLHttp::SendRequest__9
push edi
call fcn.0042b4b9
pop ecx
mov al, 1
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42ae34
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov edi, str.S:Ammyy_sourcesRLRLHttp.cpp
cmp dword [esi + 8], 0
jne 0x42ae5e
push 0xde
push edi
lea ecx, [ebp - 0x14]
call fcn.004282fa
mov ecx, eax
call fcn.00428406
lea eax, [ebp - 8]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0xc]
and dword [ebp - 8], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 4
push eax
push 0x20000005
push dword [esi + 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x42aea0
push 0xe4
push edi
lea ecx, [ebp - 0x14]
call fcn.004282fa
mov ecx, eax
call fcn.00428406
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret