joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d6b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x4312b0]
test esi, esi
jle 0x40d7d0
mov eax, dword [0x4312b4]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x40d6e4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40d767
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x40d6d0
mov dword [esp], ebx
call fcn.0040e030
mov edi, eax
test eax, eax
je 0x40d7f7
mov eax, dword [0x4312b4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0040e170
mov edx, dword [0x4312b4]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40d7d7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40d760
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x40d770
add dword [0x4312b0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x4312b4]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40d760
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0040d650
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40d6ee
mov eax, dword [0x4312b4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0040d650
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0040d650
lea esi, [esi]
nop

Function at 0x40dcb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4312cc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4312c4]
sub esp, 4
test ebx, ebx
je 0x40dd05
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40dcfe
test esi, esi
je 0x40dcfe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40dce0
mov dword [esp], 0x4312cc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40e030
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x40e055
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x40e060
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x40e055
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x40e0a8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40e09e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40e0aa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x40e090
xor eax, eax
pop ebx
pop esi
ret
Function at 0x401040
Capabilities:
Print debug messages

Disassembly:
add eax, 0xfffffffc
cmp eax, 0xe
ja case.0x40104f.9
movzx eax, byte [eax + 0x4010c4]
jmp dword [eax*4 + 0x4010ac]
push str.Suspend___O2Flash_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
ret
push str.Resume_standby____O2Flash_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
ret
push str.Resume_hibernation____O2Flash_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
ret
push str.Resume_critical____O2Flash_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [0x40efa0]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
ret
push str.Resume_automatic____O2Flash_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [0x40efa0]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
ret

Function at 0x401290
Capabilities:
Create service
Delete service
Persist via windows service
Print debug messages
Stop service

Disassembly:
sub esp, 0x118
mov eax, dword [0x40e054]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
xor ebx, ebx
cmp dword [esp + 0x120], 1
push esi
mov esi, dword [esp + 0x128]
push edi
mov dword [esp + 0xc], str.O2Flash
mov dword [esp + 0x10], 0x4011c0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
jle 0x4013c6
mov eax, dword [esi + 4]
push 0x40b3a8
push eax
call fcn.0040a12a
add esp, 8
test eax, eax
jne 0x40135b
push 0x104
lea ecx, [esp + 0x20]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 3
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, ebx
je 0x4013e0
mov eax, dword [str.O2Micro_Flash_Memory]
mov ecx, dword [str.O2Flash]
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x30]
push edx
push 1
push 2
push 0x10
push 0xf01ff
push eax
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
cmp esi, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x401353
push str.Successful_Installed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call ebx
push edi
call ebx
jmp 0x4013e0
mov edx, dword [esi + 4]
push 0x40b38c
push edx
call fcn.0040a12a
add esp, 8
test eax, eax
jne 0x4013c6
push 3
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, ebx
je 0x4013e0
mov eax, dword [str.O2Flash]
push 0x10024
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x4013c1
push 0x40fa20
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
push str.Successful_Removed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call ebx
jmp 0x4013e0
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x4013e0
push str.Failed_start_service____O2Flash_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00401e01
add esp, 0x118
ret
Function at 0x401d70
Capabilities:
Terminate process

Disassembly:
push edi
push 2
push 0
push 0
push 0x40b228
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401da6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetupDiGetClassDevs_failed_with_error:__d_n
push 1
call fcn.00401400
add esp, 0xc
push 1
call fcn.00402406
push esi
push 1
push str._nProperties_for_Device__d:
push 1
xor esi, esi
call fcn.00401400
push esi
push edi
call fcn.00401a30
add esp, 0x14
test eax, eax
je 0x401de6
add esi, 1
lea eax, [esi + 1]
push eax
push str._nProperties_for_Device__d:
push 1
call fcn.00401400
push esi
push edi
call fcn.00401a30
add esp, 0x14
test eax, eax
jne 0x401dc5
push str._r___End_of_Device_List____n
push 1
call fcn.00401400
add esp, 8
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop esi
xor eax, eax
pop edi
ret

Function at 0x401e01
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e054]
jne 0x401e0b
repz ret
jmp fcn.004026b7
Function at 0x407d55
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00404a73
xor ebx, ebx
cmp dword [0x40f940], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x407e2a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x407d95
xor eax, eax
jmp 0x407eee
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x407d8e
push eax
call fcn.00404a10
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40f940], eax
call esi
push eax
call fcn.00404a10
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40f944], eax
call esi
push eax
call fcn.00404a10
mov dword [0x40f948], eax
lea eax, [ebp - 8]
push eax
call fcn.00402233
test eax, eax
pop ecx
pop ecx
je 0x407df8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004034c0
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x407e2a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404a10
cmp eax, ebx
pop ecx
mov dword [0x40f950], eax
je 0x407e2a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404a10
pop ecx
mov dword [0x40f94c], eax
mov eax, dword [0x40f94c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x407ea3
cmp dword [0x40f950], esi
je 0x407ea3
push eax
call fcn.00404a7c
pop ecx
call eax
cmp eax, ebx
je 0x407e70
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x40f950]
call fcn.00404a7c
pop ecx
call eax
test eax, eax
je 0x407e70
test byte [ebp - 0x18], 1
jne 0x407ea3
lea eax, [ebp - 0xc]
push eax
call fcn.0040226a
test eax, eax
pop ecx
je 0x407e8b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004034c0
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x407e9a
or dword [ebp + 0x10], 0x200000
jmp 0x407ed4
or dword [ebp + 0x10], 0x40000
jmp 0x407ed4
mov eax, dword [0x40f944]
cmp eax, esi
je 0x407ed4
push eax
call fcn.00404a7c
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x407ed4
mov eax, dword [0x40f948]
cmp eax, esi
je 0x407ed4
push dword [ebp - 4]
push eax
call fcn.00404a7c
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x40f940]
call fcn.00404a7c
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4010d0
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
xor ecx, ecx
mov esi, 0xd
nop word [eax + eax]
mov eax, ecx
mov byte [ebp + ecx - 0x100], cl
xor edx, edx
div esi
mov al, byte [edx + str.Cany0uSe3Me3]
mov byte [ebp + ecx - 0x200], al
inc ecx
cmp ecx, 0x100
jl 0x4010f0
xor esi, esi
nop word [eax + eax]
mov dl, byte [ebp + esi - 0x100]
movzx eax, byte [ebp + esi - 0x200]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x401146
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [ebp + edi - 0x100]
mov byte [ebp + edi - 0x100], dl
mov byte [ebp + esi - 0x100], al
inc esi
cmp esi, 0x100
jl 0x401120
xor esi, esi
xor edx, edx
nop dword [eax + eax]
inc ebx
and ebx, 0x800000ff
jns 0x401181
dec ebx
or ebx, 0xffffff00
inc ebx
mov cl, byte [ebp + ebx - 0x100]
movzx eax, cl
add esi, eax
and esi, 0x800000ff
jns 0x40119d
dec esi
or esi, 0xffffff00
inc esi
mov al, byte [ebp + esi - 0x100]
mov byte [ebp + esi - 0x100], cl
movzx ecx, al
mov byte [ebp + ebx - 0x100], al
movzx eax, byte [ebp + esi - 0x100]
add ecx, eax
movzx eax, cl
movzx eax, byte [ebp + eax - 0x100]
xor byte [edx + 0x403070], al
inc edx
cmp edx, 0x17e
jl 0x401170
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4019e5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401a24
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401a24
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401a24
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401a24
cmp dword [ecx + 0x74], 0xe
jbe 0x401a24
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4105c1
Capabilities:
Hash data with md5

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x10], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret 4
Function at 0x413dfe
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x818
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
xor al, al
cmp dword [esi + 0x44], edi
push 0x7c
pop ebx
je 0x413e36
cmp byte [esi + 0x3c], 0
jne 0x413e34
push ebx
push dword [ebp + 0x10]
lea ecx, [esi + 0x40]
call fcn.0044eb12
test eax, eax
jl 0x413f24
mov al, 1
cmp dword [esi + 0x50], edi
je 0x413e57
cmp byte [esi + 0x48], 0
jne 0x413e55
push ebx
push dword [ebp + 0x14]
lea ecx, [esi + 0x4c]
call fcn.0044eb12
test eax, eax
jl 0x413f24
mov al, 1
cmp dword [esi + 0x1c], edi
je 0x413f28
cmp byte [esi + 0x14], 0
jne 0x413ec9
push ebx
push dword [ebp + 8]
lea ecx, [esi + 0x28]
call fcn.0044eb12
test eax, eax
jge 0x413ec9
push ebx
push dword [ebp + 0xc]
lea ecx, [esi + 0x20]
call fcn.0044eb12
test eax, eax
jge 0x413ec9
mov edi, dword [esi + 0x38]
jmp 0x413f19
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.00413de1
push dword [eax]
call dword [sym.imp.WS2_32.dll_gethostbyname]
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00413720
test ebx, ebx
je 0x413ecd
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [ebp + 8]
push eax
call fcn.0041369b
test al, al
je 0x413f16
mov al, 1
jmp 0x413f2c
mov ebx, dword [esi + 0xc]
lea eax, [ebp - 8]
push eax
mov ecx, edi
call fcn.00413de1
mov eax, dword [eax]
mov ecx, dword [0x458858]
and dword [ebp - 0x18], 0
push ebx
push eax
push 0x403c58
mov dword [ebp - 0x14], ecx
push 0x14
lea ecx, [ebp - 0x818]
call fcn.0044ef27
push eax
call fcn.0044ed72
add esp, 0x10
mov ecx, eax
call fcn.0044ef88
lea ecx, [ebp - 8]
call fcn.00413720
mov edi, dword [edi + 8]
lea eax, [esi + 0x30]
cmp edi, eax
jne 0x413e8e
xor al, al
jmp 0x413f38
test al, al
je 0x413f38
cmp byte [esi + 0x54], 1
mov edx, dword [ebp + 0x18]
sete cl
mov byte [edx], cl
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x414b45
Capabilities:
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80c
push esi
mov esi, ecx
push 0x403e38
lea ecx, [ebp - 4]
call fcn.0044efe3
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
je 0x414bec
push edi
push 1
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [esi + 0x10], 0xffffffff
lea edi, [esi + 0x24]
mov eax, dword [edi]
test eax, eax
je 0x414beb
cmp eax, 0xffffffff
je 0x414beb
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x414be4
push dword [esi + 0x28]
mov eax, dword [0x458858]
and dword [ebp - 0xc], 0
push 0x403e04
push 0xc
lea ecx, [ebp - 0x80c]
mov dword [ebp - 8], eax
call fcn.0044ef27
push eax
call fcn.0044ed72
add esp, 0xc
mov ecx, eax
call fcn.0044ef88
push 1
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, edi
call fcn.004147ea
pop edi
lea ecx, [ebp - 4]
call fcn.0044f049
pop esi
leave
ret
Function at 0x41561b
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x87c
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
push 0x403f98
lea ecx, [ebp - 0x1c]
call fcn.0044efe3
mov edi, dword [ebp + 0xc]
xor eax, eax
push eax
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [edi + 0x20]
push eax
lea ecx, [ebp - 0x10]
call fcn.0044ecce
mov esi, dword [0x458858]
mov eax, edi
cdq
and edx, 0xf
add eax, edx
mov ebx, eax
sar ebx, 4
inc ebx
shl ebx, 4
mov eax, ebx
cdq
and edx, 0xf
add eax, edx
sar eax, 4
inc eax
test esi, esi
mov dword [ebp - 0x18], eax
je 0x4156cf
push 0xc
push 3
mov ecx, esi
call fcn.00414777
test al, al
je 0x4156cf
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
add eax, ecx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41569c
and dword [ebp - 0x7c], 0
sub eax, ecx
push eax
push 0x403f7c
push 0xc
lea ecx, [ebp - 0x87c]
mov dword [ebp - 0x78], esi
call fcn.0044ef27
push eax
call fcn.0044ed72
add esp, 0xc
mov ecx, eax
call fcn.0044ef88
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
push edi
push dword [ebp + 8]
lea eax, [ecx + eax + 0x10]
push eax
call fcn.0043cfd0
add esp, 0xc
call fcn.0043c0d3
mov edx, dword [ebp - 8]
mov ecx, ebx
sub ecx, edi
push ecx
mov ecx, dword [ebp - 0x10]
add edx, ecx
lea ecx, [edx + edi + 0x10]
mov esi, eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
add ecx, eax
lea eax, [ebp - 0x74]
push eax
mov byte [ecx + edi + 0x10], 0
call fcn.004105c1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
push ebx
lea eax, [ecx + eax + 0x10]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00410cf1
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x10]
add ecx, eax
push ecx
call fcn.00410db6
mov eax, dword [ebp - 0x18]
cmp eax, 1
jle 0x415785
push 0x10
dec eax
pop esi
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 8]
add eax, esi
add eax, dword [ebp - 0x10]
xor ecx, ecx
mov edx, dword [ebp - 8]
mov edi, dword [ebp - 0x10]
add edx, ecx
mov edx, dword [edx + edi]
xor dword [ecx + eax], edx
add ecx, 4
cmp ecx, 0x10
jl 0x415764
add esi, 0x10
dec dword [ebp + 0xc]
jne 0x41575a
mov eax, dword [ebp - 0x18]
test eax, eax
jle 0x4157ae
mov edi, dword [ebp - 0x14]
add edi, 0x48
xor esi, esi
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add eax, esi
add eax, ecx
push eax
push eax
push edi
call fcn.004112b9
add esi, 0x10
dec dword [ebp + 0xc]
jne 0x415794
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
push 0
add ebx, 0x10
push ebx
add ecx, eax
mov eax, dword [ebp - 0x14]
push ecx
push dword [eax + 0x10]
call dword [sym.imp.WS2_32.dll_send]
lea ecx, [ebp - 0x10]
call fcn.00414f80
lea ecx, [ebp - 0x1c]
call fcn.0044f049
pop edi
pop esi
mov al, 1
pop ebx
leave
ret 8
Function at 0x4161ec
Capabilities:
Send data
Send data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
push 0x4041c8
lea ecx, [ebp - 4]
call fcn.0044efe3
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push ebx
lea eax, [edi + edi + 0x10]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.0044ecce
cmp edi, ebx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
lea eax, [ecx + edx]
jle 0x416250
mov ecx, dword [ebp + 8]
cmp byte [ecx], 0xa
jne 0x41623f
mov byte [eax], 0xd
inc eax
mov dl, byte [ecx]
mov byte [eax], dl
inc eax
inc ecx
dec edi
cmp edi, ebx
jg 0x416236
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
sub eax, ecx
sub eax, edx
mov dword [ebp - 8], eax
add eax, ecx
mov byte [eax + edx], bl
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp byte [esi + 0x44], bl
je 0x416276
push dword [ebp - 8]
push ecx
mov ecx, esi
call fcn.0041561b
jmp 0x416284
push ebx
push dword [ebp - 8]
push ecx
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_send]
lea ecx, [ebp - 0x14]
call fcn.00414f80
lea ecx, [ebp - 4]
call fcn.0044f049
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41dfa6
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
xor eax, eax
lea ecx, [esi + 0x28]
push ecx
push eax
push esi
push 0x41df38
push eax
mov dword [esi + 4], esi
mov dword [esi + 8], esi
mov dword [esi], 0x403f14
lea edi, [esi + 0x24]
mov dword [edi], eax
push eax
mov byte [esi + 0x2c], al
mov dword [esi + 0x30], eax
mov byte [esi + 0x44], al
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov ecx, edi
call fcn.004147c2
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x41e41b
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esi], eax
push edi
lea eax, [ebp + 0xc]
push eax
lea ecx, [esi + 4]
call fcn.00413d49
mov eax, dword [ebp + 0x14]
or dword [esi + 0x10], 0xffffffff
mov dword [esi + 0xc], eax
lea edi, [esi + 0x24]
and dword [edi], 0
lea ecx, [esi + 0x2c]
call fcn.00414809
lea eax, [esi + 0x48]
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov dword [eax], 0x403de0
lea eax, [esi + 0x28]
push eax
push 0
push esi
push 0x41e3a6
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov ecx, edi
call fcn.004147c2
lea ecx, [ebp + 0xc]
call fcn.00413720
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x10

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x83c
push esi
push edi
mov esi, ecx
push 0x405db4
lea ecx, [ebp - 4]
call fcn.0044efe3
push 0x30
lea eax, [ebp - 0x34]
push 0
push eax
call fcn.0043d340
mov al, byte [ebp - 0x34]
mov edi, dword [sym.imp.WS2_32.dll_htons]
or byte [ebp - 0x33], 0x80
or dword [ebp - 0x24], 0xffffffff
and al, 0xf2
or al, 0x32
add esp, 0xc
push dword [ebp + 0xc]
mov byte [ebp - 0x34], al
mov al, byte [ebp + 8]
mov byte [ebp - 0x10], al
call edi
push dword [ebp + 0x10]
mov word [ebp - 0xe], ax
call edi
push dword [ebp + 0x14]
mov word [ebp - 0xc], ax
call edi
mov word [ebp - 0xa], ax
mov eax, dword [esi + 0x24]
add eax, 0x68
push eax
lea ecx, [ebp + 8]
call fcn.0044fc21
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.WS2_32.dll_htonl]
lea ecx, [eax + 1]
push eax
mov dword [esi + 0x10], ecx
call edi
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x24]
push dword [eax + 0xb8]
call edi
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x24]
push dword [eax + 0xbc]
call edi
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
call fcn.004148b4
mov edi, dword [0x458858]
test edi, edi
je 0x41ed5b
push 5
push 2
mov ecx, edi
call fcn.00414777
test al, al
je 0x41ed5b
and dword [ebp - 0x3c], 0
push ebx
push dword [ebp - 0x14]
mov ebx, dword [esi + 0x80]
mov dword [ebp - 0x38], edi
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
call edi
push eax
push dword [ebp - 0x18]
call edi
push eax
push dword [ebp - 0x1c]
call edi
push eax
movzx eax, byte [ebp - 0x34]
and eax, 0x3f
push eax
mov eax, dword [esi + 0xa0]
push 0x405d70
push dword [eax*4 + 0x405ad8]
lea ecx, [ebp - 0x83c]
push ebx
push 0x405cd0
push 5
call fcn.0044ef27
push eax
call fcn.0044ed72
add esp, 0x10
push eax
call fcn.0044ed72
add esp, 0x18
mov ecx, eax
call fcn.0044ef88
pop ebx
push 0
push 0x30
lea eax, [ebp - 0x34]
push eax
push dword [esi + 0x28]
call dword [sym.imp.WS2_32.dll_send]
lea ecx, [ebp - 4]
call fcn.0044f049
pop edi
pop esi
leave
ret 0x10