joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a46b
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40a4ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.socket___error
push eax
call fcn.004109c8
add esp, 0xc
lea eax, [ebp - 8]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0
mov word [ebp - 0x18], 2
call dword [sym.imp.WS2_32.dll_htonl]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
cmp si, word [ebp + 0xc]
ja 0x40a53b
movzx eax, si
push eax
push str.ListenFreeTCPPort1_port_d
push 0x47a230
call fcn.0041158a
add esp, 0xc
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x18]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x40a4fb
inc esi
jmp 0x40a4c0
mov eax, dword [ebp + 0x10]
push 3
push edi
mov word [eax], si
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x40a535
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 8]
push str.ERROR__d_while_listen___in_ListenFreeTCPPort__
push eax
call fcn.004109c8
add esp, 0xc
lea eax, [ebp - 8]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, edi
pop edi
pop esi
leave
ret
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [ebp - 8]
push str.ERROR_while_search_free_TCP_port
push eax
call fcn.004109c8
pop ecx
lea eax, [ebp - 8]
pop ecx
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException

Function at 0x40a732
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, 0x3e8
push esi
div ecx
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x110], edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x114], 1
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x114]
push esi
push eax
push esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, esi
jne 0x40a79a
lea eax, [ebp - 8]
push str.AcceptSocket___timeout
push eax
call fcn.004109c8
pop ecx
lea eax, [ebp - 8]
pop ecx
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
jle 0x40a7e1
lea eax, [ebp - 0x114]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x40a7e1
push esi
push esi
push edi
call dword [sym.imp.WS2_32.dll_accept]
cmp eax, 0xffffffff
jne 0x40a807
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.accept___error_d
push eax
call fcn.004109c8
add esp, 0xc
lea eax, [ebp - 8]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.select___error_d
push eax
call fcn.004109c8
add esp, 0xc
lea eax, [ebp - 8]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
pop edi
pop esi
leave
ret
Function at 0x40af7f
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x40afdf
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 4
push ecx
push 0xffffff7f
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x40afc5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.setsockopt_SO_DONTLINGER__error_d
push 0x47a230
call fcn.00411572
add esp, 0xc
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_closesocket]
and dword [esi + 4], 0
push 0x18e
lea ecx, [esi + 0x28]
call fcn.00411d15
pop esi
leave
ret
Function at 0x40b320
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
push 0
push 0x4000
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
push esi
push dword [esp + 0xc]
push str.CReTranslator::SimpleRead1__X__read__d_bytes
push 0x47a230
call fcn.0041158a
add esp, 0x10
test esi, esi
jle 0x40b357
mov eax, esi
pop esi
ret
jge 0x40b36a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40b36a
xor eax, eax
pop esi
ret
or eax, 0xffffffff
pop esi
ret

Function at 0x40b36f
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esi + 0xc]
sub edi, dword [esi + 0x10]
test edi, edi
jle 0x40b3c8
mov eax, 0x4000
cmp edi, eax
jg 0x40b38b
mov eax, edi
push 0
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
push ebx
push dword [esp + 0x14]
push str.CReTranslator::SimpleSend1__X__send__d_bytes
push 0x47a230
call fcn.0041158a
add esp, 0x10
test ebx, ebx
jle 0x40b3da
cmp ebx, edi
jne 0x40b3ce
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov al, 1
pop edi
pop esi
pop ebx
ret
push ebx
push 0
mov ecx, esi
call fcn.00411ddd
jmp 0x40b3c8
jge 0x40b3e9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x40b3c8
xor al, al
jmp 0x40b3ca
Function at 0x40b3ed
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [esi + 4]
push 1
xor edi, edi
pop ebx
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x204], eax
mov dword [ebp - 0x208], ebx
lea ecx, [ebp - 0x204]
cmp dword [ecx], edx
je 0x40b429
inc edi
add ecx, 4
cmp edi, ebx
jb 0x40b41d
cmp edi, ebx
jne 0x40b43d
mov dword [ebp - 0x200], edx
mov dword [ebp - 0x208], 2
mov ecx, dword [esi + 0x34]
lea ebx, [esi + 0x28]
sub ecx, dword [ebx + 0x10]
je 0x40b458
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x104], 1
mov eax, dword [esi + 0x20]
lea edi, [esi + 0x14]
sub eax, dword [edi + 0x10]
je 0x40b4a1
xor eax, eax
cmp dword [ebp - 0x104], eax
jbe 0x40b483
lea ecx, [ebp - 0x100]
cmp dword [ecx], edx
je 0x40b483
inc eax
add ecx, 4
cmp eax, dword [ebp - 0x104]
jb 0x40b473
cmp eax, dword [ebp - 0x104]
jne 0x40b4a1
cmp dword [ebp - 0x104], 0x40
jae 0x40b4a1
mov dword [ebp + eax*4 - 0x100], edx
inc dword [ebp - 0x104]
xor eax, eax
lea ecx, [ebp - 0x104]
push eax
push eax
push ecx
lea ecx, [ebp - 0x208]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x40b527
cmp eax, 4
jg 0x40b527
lea eax, [ebp - 0x208]
push eax
push dword [esi]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x40b4e3
push edi
push dword [esi]
call fcn.0040b546
pop ecx
test al, al
pop ecx
je 0x40b541
lea eax, [ebp - 0x208]
push eax
push dword [esi + 4]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x40b505
push ebx
push dword [esi + 4]
call fcn.0040b546
pop ecx
test al, al
pop ecx
je 0x40b541
push edi
push dword [esi + 4]
call fcn.0040b36f
pop ecx
test al, al
pop ecx
je 0x40b541
push ebx
push dword [esi]
call fcn.0040b36f
pop ecx
test al, al
pop ecx
je 0x40b541
jmp 0x40b3fb
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReTranslate__1_error_d__d
push 0x47a230
call fcn.00411572
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b546
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, 0x4000
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
add ecx, edi
push ecx
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esi]
push 0
push edi
mov ecx, esi
call dword [eax + 0x14]
push eax
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x40b585
push eax
push 0
mov ecx, esi
call fcn.00411cce
mov al, 1
jmp 0x40b5b7
jge 0x40b5b5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x40b581
cmp eax, 0x2746
je 0x40b5b5
cmp eax, 0x2745
je 0x40b5b5
push eax
push str.CReTranslator::SimpleRead__1_error_d
push 0x47a230
call fcn.00411572
add esp, 0xc
xor al, al
pop edi
pop esi
ret
Function at 0x40c953
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0x14]
mov byte [eax], bl
mov eax, dword [ebp + 0xc]
push edi
push 0xf003f
push ebx
mov byte [eax], bl
mov eax, dword [ebp + 0x10]
mov edi, ecx
push ebx
mov byte [eax], bl
mov byte [esi], bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp + 0x14], eax
je 0x40c9e5
push 0xf01ff
lea ecx, [edi + 4]
call fcn.00414407
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
cmp edi, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x40c9da
lea eax, [ebp - 0x1c]
mov byte [esi], 1
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40c9d5
cmp dword [ebp - 0x18], 4
jne 0x40c9c9
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
cmp dword [ebp - 0x18], 1
jne 0x40c9d5
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
push edi
call ebx
jmp 0x40c9e0
mov eax, dword [ebp + 8]
mov byte [eax], 1
push dword [ebp + 0x14]
call ebx
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x40c9ec
Capabilities:
Create service
Persist via windows service

Disassembly:
mov eax, 0x45ec14
call fcn.0045d320
sub esp, 0x21c
push esi
push edi
lea eax, [ebp - 0x228]
push 0x208
xor edi, edi
push eax
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40ca3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x18]
push str.ERROR__d_GetModuleFileName__
push eax
call fcn.004109c8
add esp, 0xc
lea eax, [ebp - 0x18]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [ebp - 0x10]
call fcn.00412af0
lea eax, [ebp - 0x228]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x10]
push str.__s___service
push eax
call fcn.00413c31
add esp, 0xc
lea ecx, [ebp - 0x10]
push esi
call fcn.00413195
push edi
push edi
push edi
push edi
push edi
lea ecx, [ebp - 0x10]
call fcn.00414407
push eax
push 1
push 2
push 0x10
push 0xf01ff
lea ecx, [esi + 8]
call fcn.00414407
push eax
lea ecx, [esi + 4]
call fcn.00414407
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
cmp eax, edi
jne 0x40caee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x40cace
lea eax, [ebp - 0x18]
push str.The_Ammyy_service_is_already_registered
push eax
call fcn.004109c8
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
push eax
lea eax, [ebp - 0x20]
push str.ERROR__d_CreateService___while_registering_the_Ammyy_service
push eax
call fcn.004109c8
add esp, 0xc
lea eax, [ebp - 0x20]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00412d67
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40cb11
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
push 0xf01ff
add ecx, 4
call fcn.00414407
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x40cc7d
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x24]
push eax
push edi
call esi
test eax, eax
jne 0x40cb7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
lea eax, [ebp - 8]
push str.ERROR__d_QueryServiceStatus__
push eax
call fcn.004109c8
add esp, 0xc
lea eax, [ebp - 8]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp dword [ebp - 0x20], 1
je 0x40cc0a
lea eax, [ebp - 0x24]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40cbdb
lea eax, [ebp - 0x24]
push eax
push edi
call esi
test eax, eax
je 0x40cbb0
cmp dword [ebp - 0x20], 3
jne 0x40cbb0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40cb95
cmp dword [ebp - 0x20], 1
je 0x40cc0a
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [ebp - 8]
push str.The_Ammyy_service_could_not_be_stopped
push eax
call fcn.004109c8
pop ecx
lea eax, [ebp - 8]
pop ecx
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
lea eax, [ebp - 8]
push str.ERROR__d_ControlService__
push eax
call fcn.004109c8
add esp, 0xc
lea eax, [ebp - 8]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp dword [ebp + 0xc], 0
je 0x40cc70
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40cc70
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp esi, 0x430
jne 0x40cc50
lea eax, [ebp - 8]
push str.The_Ammyy_service_is_already_marked_for_removing
push eax
call fcn.004109c8
pop ecx
lea eax, [ebp - 8]
pop ecx
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
push esi
lea eax, [ebp - 8]
push str.The_Ammyy_service_could_not_be_removed__error_d
push eax
call fcn.004109c8
add esp, 0xc
lea eax, [ebp - 8]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
leave
ret 8
lea eax, [ebp - 8]
push str.The_Ammyy_service_could_not_be_found
push eax
call fcn.004109c8
pop ecx
lea eax, [ebp - 8]
pop ecx
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
Function at 0x40cc9b
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0xf01ff
add ecx, 4
call fcn.00414407
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40ccdc
lea eax, [ebp - 8]
push str.The_Ammyy_service_could_not_be_found
push eax
call fcn.004109c8
pop ecx
lea eax, [ebp - 8]
pop ecx
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x40cd1c
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
lea eax, [ebp - 8]
push str.ERROR__d_while_starting_the_AMMYY_service
push eax
call fcn.004109c8
add esp, 0xc
lea eax, [ebp - 8]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
pop edi
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
leave
ret 4

Function at 0x40dea0
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x45eeac
call fcn.0045d320
push ecx
lea eax, [ebp - 0x10]
push eax
call fcn.00412580
and dword [ebp - 4], 0
push 1
push 0
push 0
lea ecx, [ebp - 0x10]
call fcn.00414407
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00412d67
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x4108ef
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 0x410934
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x410930
push eax
lea eax, [ebp - 8]
push str.ERROR:__d_CRLEvent::IsEventExist__
push eax
call fcn.004109c8
add esp, 0xc
lea eax, [ebp - 8]
push 0x465b58
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 0x410be9
Capabilities:
Connect to http server
Create http request

Disassembly:
mov eax, 0x45f2e4
call fcn.0045d320
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, dword [esi]
cmp eax, ebx
jne 0x410c7e
cmp byte [0x46ff88], bl
je 0x410c17
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
jmp 0x410c78
cmp word [0x47a53c], bx
jne 0x410c27
push ebx
push ebx
push ebx
push 1
jmp 0x410c0c
lea ecx, [ebp - 0x10]
call fcn.00412af0
movzx eax, word [0x47a53c]
push eax
mov ecx, 0x47a538
mov dword [ebp - 4], ebx
call fcn.00414407
push eax
lea eax, [ebp - 0x10]
push str._s:_d
push eax
call fcn.00413c31
add esp, 0x10
lea ecx, [ebp - 0x10]
push ebx
push ebx
call fcn.00414407
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.00412d67
mov eax, dword [esi]
cmp eax, ebx
je 0x410ca5
cmp dword [esi + 4], ebx
je 0x410c8a
mov al, 1
jmp 0x410d3d
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 0x410cb3
mov ecx, esi
call fcn.00410b50
xor al, al
jmp 0x410d3d
cmp byte [0x46ff88], bl
push edi
jne 0x410d17
cmp word [0x47a53c], bx
je 0x410d17
mov edi, 0x47a530
mov ecx, edi
call fcn.00413381
test eax, eax
jne 0x410d17
mov ecx, edi
call fcn.0041336f
push eax
mov ecx, edi
call fcn.00414407
push eax
push 0x2b
mov ecx, esi
call fcn.00410bb0
mov edi, 0x47a52c
mov ecx, edi
call fcn.00413381
test eax, eax
jne 0x410d17
mov ecx, edi
call fcn.0041336f
push eax
mov ecx, edi
call fcn.00414407
push eax
push 0x2c
mov ecx, esi
call fcn.00410bb0
mov edi, 0xea60
mov ecx, esi
push edi
push 2
call fcn.00410b78
push edi
push 6
mov ecx, esi
call fcn.00410b78
push edi
push 5
mov ecx, esi
call fcn.00410b78
mov al, 1
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x410d80
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.004110c2
add esp, 0x14
mov ecx, esi
call fcn.00410d4d
mov edi, 0x47a230
push str.CRLHttp::SendRequest__3
push edi
call fcn.0041158a
pop ecx
lea eax, [ebp - 0xa8]
pop ecx
push dword [ebp - 4]
mov ecx, esi
push eax
call fcn.00410be9
test al, al
je 0x410ed3
lea eax, [ebp - 0x28]
xor ebx, ebx
push str.https
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 0x410e08
mov dword [ebp + 0xc], 0x4881100
mov ecx, 0x47a530
call fcn.00413381
test eax, eax
jne 0x410e1a
or byte [ebp + 0xe], 0x40
push str.CRLHttp::SendRequest__5
push edi
call fcn.0041158a
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 0x410e56
mov ecx, esi
call fcn.00410b50
jmp 0x410ed3
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jne 0x410e65
and dword [ebp + 8], ebx
and dword [ebp + 0xc], ebx
jmp 0x410e75
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp + 0xc], eax
lea ebx, [esi + 0x10]
mov ecx, ebx
call fcn.0041336f
push dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
push dword [ebp + 8]
push eax
push dword [esi + 8]
push str.CRLHttp::SendRequest__8__X__X__X__X
push edi
call fcn.0041158a
add esp, 0x18
mov ecx, ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
call fcn.00414407
push eax
push dword [esi + 8]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x410ed7
mov ecx, esi
call fcn.00410b50
push str.CRLHttp::SendRequest__8_ERROR
push edi
call fcn.0041158a
pop ecx
pop ecx
mov ecx, esi
call fcn.00410d69
xor al, al
jmp 0x410ee6
push str.CRLHttp::SendRequest__9
push edi
call fcn.0041158a
pop ecx
mov al, 1
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x410eed
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov edi, str.C:projectsAmmyy_sourcesRLRLHttp.cpp
cmp dword [esi + 8], 0
jne 0x410f17
push 0xdc
push edi
lea ecx, [ebp - 0x14]
call fcn.00410522
mov ecx, eax
call fcn.0041062e
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 0x410f59
push 0xe2
push edi
lea ecx, [ebp - 0x14]
call fcn.00410522
mov ecx, eax
call fcn.0041062e
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x4115e8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
jne 0x411630
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.FindResourceEx___error_d_lpName0x_X
push eax
call fcn.004109c8
add esp, 0x10
lea eax, [ebp - 8]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x411666
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.SizeofResource___error_d
push eax
call fcn.004109c8
add esp, 0xc
lea eax, [ebp - 8]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41169a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.LoadResource___error_d
push eax
call fcn.004109c8
add esp, 0xc
lea eax, [ebp - 8]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp + 0x18]
test eax, eax
mov dword [ecx], eax
jne 0x4116d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.LockResource___error_d
push eax
call fcn.004109c8
add esp, 0xc
lea eax, [ebp - 8]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x4118f6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 8]
mov eax, dword [ebp + 0x10]
push dword [ebp + 8]
mov ecx, eax
shr eax, 4
and ecx, 0xf
inc eax
movzx eax, ax
push eax
push 6
push dword [ebp + 0xc]
mov dword [ebp + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov ebx, eax
test ebx, ebx
je 0x4119a5
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
and dword [ebp + 0x14], 0
push ebx
push dword [ebp + 0xc]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea eax, [edi + eax*2]
cmp edi, eax
jae 0x4119a5
movzx ebx, word [edi]
mov ecx, dword [ebp + 0x14]
inc edi
inc edi
cmp ecx, dword [ebp + 0x10]
je 0x41196a
inc dword [ebp + 0x14]
lea edi, [edi + ebx*2]
jmp 0x411951
test ebx, ebx
je 0x4119a5
mov edx, dword [esi]
lea eax, [ebx + ebx + 2]
push eax
mov ecx, esi
call dword [edx + 4]
mov edx, dword [esi]
lea eax, [ebx + ebx + 2]
push eax
mov ecx, esi
call dword [edx + 0x1c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
add ebx, ebx
mov dword [ebp + 0xc], eax
push ebx
push edi
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp + 0xc]
add esp, 0xc
and word [ebx + eax], 0
xor eax, eax
pop edi
cmp dword [esi + 0xc], eax
pop esi
pop ebx
setne al
pop ebp
ret 0x10