joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4238ff
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
cmp dword [0x4ae7d4], 0
mov dword [ebp - 0x18], str.getaddrinfo
mov dword [ebp - 0x14], 0x423a98
mov dword [ebp - 0x10], str.getnameinfo
mov dword [ebp - 0xc], 0x423fc9
mov dword [ebp - 8], str.freeaddrinfo
mov dword [ebp - 4], fcn.00423a5c
jne 0x423a4d
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 0x423a40
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 0x4239b7
push str.getaddrinfo
push esi
call edi
test eax, eax
jne 0x4239b3
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
jne 0x423a06
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 0x423a40
push str.getaddrinfo
push esi
call edi
test eax, eax
jne 0x423a02
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x423a40
xor ebx, ebx
push dword [ebp + ebx*8 - 0x18]
push esi
call edi
test eax, eax
mov dword [ebp + ebx*8 - 0x14], eax
je 0x423a1f
inc ebx
cmp ebx, 3
jl 0x423a08
jmp 0x423a28
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x423a40
xor eax, eax
mov ecx, dword [ebp + eax - 0x14]
mov dword [eax + 0x4a32d0], ecx
add eax, 8
cmp eax, 0x18
jl 0x423a2e
pop edi
pop esi
mov dword [0x4ae7d4], 1
pop ebx
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x4a32d0]
leave
ret 4

Function at 0x423ee2
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 0x423f5c
cmp word [ebx + 8], 2
jne 0x423f38
cmp word [ebx + 0xa], 4
jne 0x423f38
mov esi, dword [ebx + 0xc]
jmp 0x423f32
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00423d7b
test eax, eax
mov dword [edi], eax
je 0x423f57
lea edi, [eax + 0x1c]
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x423f16
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 0x423f82
push 8
pop eax
jmp 0x423f82
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x423f82
dec ecx
je 0x423f7d
dec ecx
je 0x423f76
dec ecx
jmp 0x423f82
mov eax, 0x2afb
jmp 0x423f82
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x424226
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
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 0x424275
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.Error_d_in_SetBlockingMode__u_
push eax
call fcn.0042777f
add esp, 0x10
lea eax, [ebp - 8]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret

Function at 0x424277
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
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 0x4242d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.setsockopt_SO_LINGER___u
push eax
call fcn.0042777f
add esp, 0xc
lea eax, [ebp - 8]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret

Function at 0x4242d5
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
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 0x424325
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xc]
push str.Error_d_setsockopt__
push eax
call fcn.0042777f
add esp, 0xc
lea eax, [ebp - 0xc]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret

Function at 0x424327
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
xor edx, edx
mov ecx, 0x3e8
mov dword [ebp - 0x114], 1
div ecx
mov dword [ebp - 8], eax
mov eax, dword [esi]
imul edx, edx, 0x3e8
mov dword [ebp - 0x110], eax
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0x114]
push 0
push eax
push 0
mov dword [ebp - 4], edx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jl 0x4243af
cmp eax, 1
jg 0x4243af
lea eax, [ebp - 0x114]
push eax
push dword [esi]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4243ab
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 0x4243a6
or eax, 0xffffffff
pop esi
leave
ret 0xc
xor eax, eax
jmp 0x4243a6
push dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push str.ERROR__d_in_TCP::TryRead__1__d_socket_X
push eax
call fcn.004249c3
add esp, 0x14
lea eax, [ebp - 0x10]
push 0x493124
push eax
call sub.MSVCRT.dll__CxxThrowException
Function at 0x4248c8
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ecx + 8]
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x114], 1
imul edx, edx, 0x3e8
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0x114]
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 0x424936
cmp eax, 2
jg 0x424936
lea eax, [ebp - 0x114]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
neg eax
sbb eax, eax
pop esi
neg eax
leave
ret 4
push eax
lea eax, [ebp - 0x10]
push str.ERROR_in_TransportTCP1::IsReadyForRead__1__d
push eax
call fcn.004249c3
add esp, 0xc
lea eax, [ebp - 0x10]
push 0x493124
push eax
call sub.MSVCRT.dll__CxxThrowException
Function at 0x424f98
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x48008c
call fcn.0047bfa0
sub esp, 0x50
push ebx
push esi
push str.Elevate__
push 0x4ae590
call fcn.0042872e
xor ebx, ebx
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.0040bb0d
add esp, 0x10
push str._elevated
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.0042bf63
push 0x4adf0c
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
call fcn.0042c11b
add esp, 0xc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0042bea3
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x5c], 0x3c
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], str.runas
call fcn.0042b08a
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x4c], eax
call fcn.0042b08a
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], 5
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x425088
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x4c7
jne 0x425066
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0042bea3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042bea3
xor al, al
jmp 0x4250a1
call esi
push eax
lea eax, [ebp - 0x20]
push str.Error__d_in_Elevate__
push eax
call fcn.0042777f
add esp, 0xc
lea eax, [ebp - 0x20]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0042bea3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042bea3
mov al, 1
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x42518d
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 0x4251d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
je 0x42522b
push eax
push str.SetForegroundWindow__1_Error__d
jmp 0x42521e
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x4251ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetForegroundWindow__2_Error__d
jmp 0x42521e
push 0
push ebx
push edi
call esi
test eax, eax
jne 0x425204
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetForegroundWindow__3_Error__d
jmp 0x42521e
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SetActiveWindow]
test eax, eax
jne 0x42522f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetForegroundWindow__4_Error__d
push 0x4ae590
call fcn.00428716
add esp, 0xc
xor eax, eax
jmp 0x425232
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
ret
Function at 0x427240
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx + 0x1db4]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jle 0x427268
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 0x427254
pop edi
mov dword [ecx + 0x1db4], eax
pop esi
ret 8

Function at 0x427295
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 0x4272c2
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 0x4272ac
pop esi
pop ebx
mov dword [edi + 0x1db4], ecx
pop edi
ret 8

Function at 0x42732e
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 0x427357
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 0x427347
pop edi
jmp 0x42735a
mov eax, dword [ebp + 8]
and edx, 3
jle 0x42736a
mov esi, edx
mov dl, byte [ecx]
xor byte [eax], dl
inc eax
inc ecx
dec esi
jne 0x427361
pop esi
pop ebp
ret
Function at 0x42736d
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.004274f9
lea edi, [esi + 0x474]
push ebx
mov ecx, esi
call fcn.00427529
mov dword [edi], eax
inc ebx
add edi, 4
cmp ebx, 0x200
jb 0x427390
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.00427529
inc dword [ebp - 4]
mov dword [ebx], eax
add ebx, 4
cmp dword [ebp - 4], edi
jb 0x4273b2
and dword [ebp - 4], 0
lea ebx, [esi + 0xc74]
mov eax, dword [ebp - 4]
mov ecx, esi
add eax, 0x2000
push eax
call fcn.00427529
inc dword [ebp - 4]
mov dword [ebx], eax
add ebx, 4
cmp dword [ebp - 4], 0x10
jb 0x4273d9
mov ecx, esi
call fcn.00426f23
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 0x427407
and dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0x14
jge 0x427482
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 0x427479
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 0x42748b
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x14
jl 0x42743e
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x15
jl 0x427430
inc dword [ebp - 4]
cmp dword [ebp - 4], 3
jb 0x427423
xor eax, eax
mov dword [ebp + 8], eax
movzx ecx, byte [ebp + eax - 0x210]
cmp eax, ecx
je 0x4274b5
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 0x427490
cmp byte [ebp + 0xc], 0
je 0x4274dc
lea eax, [ebp - 0x110]
push edi
add esi, 0x1cb4
push eax
push esi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x4274f2
xor eax, eax
movzx ecx, byte [ebp + eax - 0x110]
mov byte [ecx + esi + 0x1cb4], al
inc eax
cmp eax, edi
jb 0x4274de
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x427639
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [ebp + 8]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventA]
test eax, eax
jne 0x42767e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x42767a
push eax
lea eax, [ebp - 8]
push str.ERROR:__d_CRLEvent::IsEventExist__
push eax
call fcn.0042777f
add esp, 0xc
lea eax, [ebp - 8]
push 0x48e0c0
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 0x4276e3
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 0x427716
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x427714
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
mov eax, dword [esi]
pop esi
ret 8

Function at 0x42771a
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x42775f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x42775b
push eax
lea eax, [ebp - 8]
push str.ERROR:__d_RLMutexWin::IsExist__
push eax
call fcn.0042777f
add esp, 0xc
lea eax, [ebp - 8]
push 0x48e0c0
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 0x427858
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
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 0x4278a3
call dword [sym.imp.MSVCRT.dll__errno]
push dword [eax]
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push esi
push str.RLFile::Read____d__d_error_d
push eax
call fcn.0042777f
add esp, 0x14
lea eax, [ebp - 8]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
pop esi
leave
ret 8

Function at 0x4278a8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
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 0x4278f3
call dword [sym.imp.MSVCRT.dll__errno]
push dword [eax]
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push esi
push str.RLFile::Write____d__d_error_d
push eax
call fcn.0042777f
add esp, 0x14
lea eax, [ebp - 8]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
pop esi
leave
ret 8

Function at 0x427aae
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x427ae9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.RLFileWin::GetSize___error_d
push eax
call fcn.0042777f
add esp, 0xc
lea eax, [ebp - 8]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret
Function at 0x427aeb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
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 0x427b10
cmp dword [ebp + 0xc], esi
je 0x427b36
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.RLFileWin::Read___error_d
push eax
call fcn.0042777f
add esp, 0xc
lea eax, [ebp - 8]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
pop esi
leave
ret 8

Function at 0x427b3b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
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 0x427b60
cmp dword [ebp + 0xc], esi
je 0x427b86
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.RLFileWin::Write___error_d
push eax
call fcn.0042777f
add esp, 0xc
lea eax, [ebp - 8]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
pop esi
leave
ret 8

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

Disassembly:
mov eax, 0x4801a4
call fcn.0047bfa0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, dword [esi]
cmp eax, ebx
jne 0x427e2a
cmp byte [0x4ae818], bl
je 0x427dc3
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
jmp 0x427e24
cmp word [0x4ae81a], bx
jne 0x427dd3
push ebx
push ebx
push ebx
push 1
jmp 0x427db8
lea ecx, [ebp - 0x10]
call fcn.0042a5ec
movzx eax, word [0x4ae81a]
push eax
mov ecx, 0x4ae814
mov dword [ebp - 4], ebx
call fcn.0042b08a
push eax
lea eax, [ebp - 0x10]
push str._s:_d
push eax
call fcn.0042baf6
add esp, 0x10
lea ecx, [ebp - 0x10]
push ebx
push ebx
call fcn.0042b08a
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.0042a8ed
mov eax, dword [esi]
cmp eax, ebx
je 0x427e4e
cmp dword [esi + 4], ebx
jne 0x427ee4
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 0x427e5c
mov ecx, esi
call fcn.00427cfc
xor al, al
jmp 0x427ee6
cmp byte [0x4ae818], bl
push edi
jne 0x427e6e
cmp word [0x4ae81a], bx
je 0x427ec0
mov edi, 0x4ae80c
mov ecx, edi
call fcn.0042b07a
test eax, eax
jne 0x427ec0
mov ecx, edi
call fcn.0042b068
push eax
mov ecx, edi
call fcn.0042b08a
push eax
push 0x2b
mov ecx, esi
call fcn.00427d5c
mov edi, 0x4ae808
mov ecx, edi
call fcn.0042b07a
test eax, eax
jne 0x427ec0
mov ecx, edi
call fcn.0042b068
push eax
mov ecx, edi
call fcn.0042b08a
push eax
push 0x2c
mov ecx, esi
call fcn.00427d5c
mov edi, 0xea60
mov ecx, esi
push edi
push 2
call fcn.00427d24
push edi
push 6
mov ecx, esi
call fcn.00427d24
push edi
push 5
mov ecx, esi
call fcn.00427d24
pop edi
mov al, 1
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x427f29
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.00428271
add esp, 0x14
mov ecx, esi
call fcn.00427ef6
mov edi, 0x4ae590
push str.RLHttp::SendRequest__3
push edi
call fcn.0042872e
pop ecx
lea eax, [ebp - 0xa8]
pop ecx
push dword [ebp - 4]
mov ecx, esi
push eax
call fcn.00427d95
test al, al
je 0x42807c
lea eax, [ebp - 0x28]
xor ebx, ebx
push 0x49b5ec
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 0x427fb1
mov dword [ebp + 0xc], 0x4881100
mov ecx, 0x4ae80c
call fcn.0042b07a
test eax, eax
jne 0x427fc3
or byte [ebp + 0xe], 0x40
push str.RLHttp::SendRequest__5
push edi
call fcn.0042872e
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 0x427fff
mov ecx, esi
call fcn.00427cfc
jmp 0x42807c
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jne 0x42800e
and dword [ebp + 8], ebx
and dword [ebp + 0xc], ebx
jmp 0x42801e
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.0042b068
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.0042872e
add esp, 0x18
mov ecx, ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
call fcn.0042b08a
push eax
push dword [esi + 8]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x428080
mov ecx, esi
call fcn.00427cfc
push str.RLHttp::SendRequest__8_ERROR
push edi
call fcn.0042872e
pop ecx
pop ecx
mov ecx, esi
call fcn.00427f12
xor al, al
jmp 0x42808f
push str.RLHttp::SendRequest__9
push edi
call fcn.0042872e
pop ecx
mov al, 1
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x428096
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 0x4280c0
push 0xde
push edi
lea ecx, [ebp - 0x14]
call fcn.00425667
mov ecx, eax
call fcn.00425773
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 0x428102
push 0xe4
push edi
lea ecx, [ebp - 0x14]
call fcn.00425667
mov ecx, eax
call fcn.00425773
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret