joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402990
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], ecx
cmp dword [esi + 4], 0
jne 0x4029d9
push 0
lea edx, [esp + 0x1c]
push edx
push ebx
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402a18
mov eax, dword [esp + 0x18]
test eax, eax
je 0x402a3f
mov dword [esi], edi
mov dword [esi + 4], eax
push esi
call fcn.0047e9f0
test eax, eax
je 0x4029e8
cmp eax, 4
jne 0x402a66
cmp dword [esi + 0x14], 0
je 0x402a87
cmp eax, 4
jne 0x4029b2
push eax
push str.BZ2_bzDecompress__:__d:_Unexpected_EOF_in_decompression_stream._n
push str.bz2_read
push 0x2f
push str.._src_bz2.c
call fcn.00430960
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile__:__d:_Failed_to_read._n
push str.bz2_read
push 0x12
push str.._src_bz2.c
call fcn.00430960
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile__:__d:_Failed_to_read._n
push str.bz2_read
push 0x19
push str.._src_bz2.c
call fcn.00430960
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push eax
push str.BZ2_bzDecompress__:__d:_Failed_to_decompress._n
push str.bz2_read
push 0x25
push str.._src_bz2.c
call fcn.00430960
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x402aa0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x1c]
push 2
push edi
call fcn.0047db40
mov ebx, eax
cmp ebx, 3
je 0x402ac9
cmp ebx, 4
jne 0x402b54
cmp dword [edi + 0x14], 0
jne 0x402afd
mov ecx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402b76
mov eax, dword [esp + 0x10]
cmp esi, eax
jne 0x402b9f
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], esi
cmp ebx, 4
jne 0x402ab1
mov edi, dword [edi + 0x14]
cmp edi, esi
jge 0x402bfb
mov eax, dword [esp + 0x18]
push 0
lea edx, [esp + 0x14]
push edx
sub esi, edi
push esi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402bc9
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WriteFile__:__d:_Failed_to_write__d_bytes_n
push str.bz2_write_finish
push 0x68
push str.._src_bz2.c
call fcn.00430960
add esp, 0x18
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push ebx
push str.BZ2_bzCompress__:__d:_Failed_to_finish_compressing_n
push str.bz2_write_finish
push 0x45
push str.._src_bz2.c
call fcn.00430960
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WriteFile__:__d:_Failed_to_write__d_bytes_n
push str.bz2_write_finish
push 0x4f
push str.._src_bz2.c
call fcn.00430960
add esp, 0x18
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WriteFile__:__d:_Only_wrote__d____d_bytes_n
push str.bz2_write_finish
push 0x55
push str.._src_bz2.c
call fcn.00430960
add esp, 0x1c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
cmp esi, eax
je 0x402bfb
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WriteFile__:__d:_Only_wrote__d____d_bytes_n
push str.bz2_write_finish
push 0x6e
push str.._src_bz2.c
call fcn.00430960
add esp, 0x1c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x402c10
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 0
push esi
mov dword [esi], eax
mov dword [esi + 4], ecx
call fcn.0047db40
cmp eax, 1
jne 0x402c7f
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
mov edi, edi
cmp dword [esi + 0x14], 0
jne 0x402c68
push 0
lea edx, [esp + 0x1c]
push edx
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402ca3
mov eax, dword [esp + 0x18]
cmp edi, eax
jne 0x402cce
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], edi
cmp dword [esi + 4], 0
je 0x402cfa
push 0
push esi
call fcn.0047db40
cmp eax, 1
je 0x402c40
push eax
push str.BZ2_bzCompress__:__d:_Failed_to_compress_n
push str.bz2_write
push 0x89
push str.._src_bz2.c
call fcn.00430960
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WriteFile__:__d:_Failed_to_write__d_bytes_n
push str.bz2_write
push 0x93
push str.._src_bz2.c
call fcn.00430960
add esp, 0x18
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WriteFile__:__d:_Only_wrote__d____d_bytes_n
push str.bz2_write
push 0x99
push str.._src_bz2.c
call fcn.00430960
add esp, 0x1c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x405400
Capabilities:
Get disk information

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov al, bl
push edi
add al, 0x41
push 1
mov byte [esp + 0x18], al
mov byte [esp + 0x19], 0x3a
mov byte [esp + 0x1a], 0x5c
mov byte [esp + 0x1b], 0
call esi
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
mov edi, eax
mov eax, dword [esp + 0x28]
push eax
push ecx
push edx
push 0
push 0
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push edi
mov ebp, eax
call esi
test ebp, ebp
jne 0x405490
cmp dword [esp + 0x2c], ebp
je 0x405489
add ebx, 0x41
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetVolumeInformation__:_GetLastError__:__d:_Failed_to_get_volume_information_on_volume_._c:
push str.mu::GetVolumeInformationUTF8
push 0x3a4
push str.d:deveverything_srcmu.h
call fcn.00430960
add esp, 0x18
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x4054a0
Capabilities:
Get disk information

Disassembly:
mov al, byte [esp + 4]
lea ecx, [esp + 4]
add al, 0x41
push ecx
mov byte [esp + 8], al
mov byte [esp + 9], 0x3a
mov byte [esp + 0xa], 0x5c
mov byte [esp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
ret
Function at 0x411370
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x2c
push ebx
push esi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x14]
push 4
push 0x1000
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 2
call fcn.004304f0
fstp dword [esp + 8]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x38]
push 0
lea edx, [esp + 0x10]
push edx
push 0
push 0
push eax
push esi
push 0x900f8
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x411451
push edi
push 0x8000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
call fcn.004304f0
fsub dword [esp + 0xc]
sub esp, 8
fstp qword [esp]
push str.waited_for_USN_Journal_Deletion___f_seconds__n
call fcn.00430350
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0xc
call edi
cmp eax, 0x49b
je 0x411445
call edi
mov edx, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push edx
push esi
push ebx
push str.DeviceIoControl__08x_FSCTL_DELETE_USN_JOURNAL__08x__d_NULL_0__08x_0_:__d:_Failed_to_wait_for_USN_Journal_deletion._n
push str.db::_wait_for_delete_usn_journal
push 0x658e
push str.._srcdb.cpp
call fcn.00430960
add esp, 0x24
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2c
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2c
ret
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop esi
mov eax, 1
pop ebx
add esp, 0x2c
ret
Function at 0x411470
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x64
push ebx
push esi
push edi
push 0
push 0x1f
call fcn.00435900
mov edi, dword [esp + 0x7c]
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
add esp, 8
push 0
lea eax, [esp + 0x10]
push eax
push 0x38
lea ecx, [esp + 0x44]
push ecx
push 0
push 0
push 0x900f4
push edi
call ebx
test eax, eax
jne 0x411526
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
sub eax, 0x49a
je 0x411500
sub eax, 1
je 0x4115f2
call esi
push eax
lea edx, [esp + 0x10]
push edx
push 0x38
lea eax, [esp + 0x44]
push eax
push edi
push str.DeviceIoControl__08x_FSCTL_QUERY_USN_JOURNAL_0_0__08x__d__08x_0_:__d:_Failed_to_query_USN_Journal._n
push str.db::_delete_usn_journal
push 0x65bb
push str.._srcdb.cpp
call fcn.00430960
push 0
push 0x21
call fcn.00435900
add esp, 0x2c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x64
ret
push edi
call fcn.00411370
add esp, 4
test eax, eax
push 0
jne 0x4115f4
push 0x21
call fcn.00435900
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x64
ret
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [esp + 0x18]
push 4
push 0x1000
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
mov eax, dword [esp + 0x38]
mov dword [esi], eax
mov ecx, dword [esp + 0x3c]
mov dword [esi + 4], ecx
mov dword [esi + 8], 3
call fcn.004304f0
fstp dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push 0
lea edx, [esp + 0x10]
push edx
push 0
push 0
push eax
push esi
push 0x900f8
push edi
call ebx
test eax, eax
jne 0x4115c8
push 0x8000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
sub ecx, 0x49a
je 0x411500
sub ecx, 1
je 0x4115f2
mov edx, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push ecx
push edx
push esi
push edi
push str.DeviceIoControl__08x_FSCTL_DELETE_USN_JOURNAL__08x__d_NULL_0__08x_0_:__d:_Failed_to_delete_USN_Journal._n
push str.db::_delete_usn_journal
push 0x65e5
jmp 0x4114e1
call fcn.004304f0
fsub dword [esp + 0x10]
sub esp, 8
fstp qword [esp]
push str.USN_Journal_Deleted___f_seconds__n
call fcn.00430350
add esp, 0xc
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0
push 0x20
call fcn.00435900
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x64
ret
Function at 0x412100
Capabilities:
Get disk information

Disassembly:
sub esp, 0x408
push ebx
mov bl, byte [esp + 0x410]
push ebp
lea eax, [esp + 8]
add bl, 0x41
push eax
xor ebp, ebp
mov byte [esp + 0xc], bl
mov byte [esp + 0xd], 0x3a
mov byte [esp + 0xe], 0x5c
mov byte [esp + 0xf], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x41213c
cmp eax, 2
jne 0x4121a5
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
push 1
mov byte [esp + 0x14], bl
mov byte [esp + 0x15], 0x3a
mov byte [esp + 0x16], 0x5c
mov byte [esp + 0x17], 0
call esi
push 0x400
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
lea edx, [esp + 0x24]
push edx
push 0
mov edi, eax
push 0
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push edi
mov ebx, eax
call esi
test ebx, ebx
pop edi
pop esi
je 0x4121a5
lea ecx, [esp + 0x10]
push str.NTFS
push ecx
call fcn.00402f90
add esp, 8
test eax, eax
mov eax, 1
je 0x4121a7
mov eax, ebp
pop ebp
pop ebx
add esp, 0x408
ret
Function at 0x421510
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 0x4a9158
call fcn.0044ed40
mov edi, dword [esp + 0x10]
push edi
push str.stop_monitor_dbh__08x_n
call fcn.00430350
mov esi, dword [0x4a9154]
add esp, 0xc
test esi, esi
je 0x421552
mov edi, dword [edi + 0x10]
jmp 0x421540
cmp dword [esi + 0x1058], edi
je 0x421554
mov esi, dword [esi + 0x103c]
test esi, esi
jne 0x421540
xor esi, esi
push esi
push str.stop_monitor__08x_n
call fcn.00430350
add esp, 8
test esi, esi
je 0x4215d0
mov eax, dword [esi + 0x105c]
test eax, eax
je 0x4215d0
mov ecx, dword [esi + 0x1028]
add ecx, 0x41
push ecx
push str.stop_monitor__c_n
call fcn.00430350
add esp, 8
call fcn.004121e0
mov eax, dword [esi + 0x102c]
cmp eax, 0xffffffff
mov dword [esi + 0x105c], 0
je 0x4215b2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x102c], 0xffffffff
mov edx, dword [esi + 0x1028]
add edx, 0x41
push edx
push str.monitor_stopped__c_n
call fcn.00430350
add esp, 8
pop edi
pop esi
jmp fcn.00413020
pop edi
pop esi
ret
Function at 0x4295d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x491c98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov eax, dword [0x4a920c]
test eax, eax
mov byte [esp + 0x34], 2
jne 0x429654
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], 1
call fcn.00476730
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], bl
call fcn.00476730
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xffffffff
call fcn.00476730
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
push esi
push 0x4a9158
call fcn.0044ed40
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x24]
push ecx
push edx
push eax
call fcn.00403690
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
add esp, 0x1c
push ebx
push ecx
push edx
lea ecx, [esp + 0x2c]
call fcn.00476660
mov ecx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x10]
push ebx
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00476660
mov edx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x48]
push esi
push edx
push eax
mov eax, dword [esp + 0x30]
push eax
push ecx
call fcn.00429260
add esp, 0x1c
lea ecx, [esp + 0x28]
mov esi, eax
mov byte [esp + 0x38], 1
call fcn.00476730
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], bl
call fcn.00476730
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xffffffff
call fcn.00476730
mov ecx, dword [esp + 0x30]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret
Function at 0x42f8c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x491b70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 8], ebx
mov dword [esp + 4], ebx
push 0x4a9158
mov byte [esp + 0x20], 1
call fcn.0044ed40
mov eax, dword [esp + 0x30]
add esp, 4
push 1
push eax
call fcn.00444590
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
push ebx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push ebx
push edx
call fcn.0042f0b0
add esp, 0x2c
lea ecx, [esp + 4]
mov byte [esp + 0x1c], bl
call fcn.00476730
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00476730
mov ecx, dword [esp + 0x14]
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x430ac0
Capabilities:
Resolve dns

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x1c], ecx
je 0x430b64
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x430b35
cmp word [ecx + 0xa], 4
jne 0x430b35
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x430b35
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea esp, [esp]
mov edx, dword [eax]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebx
push ebp
call fcn.00430a50
test eax, eax
mov dword [esi], eax
je 0x430b58
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x430b10
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call fcn.00484bde
add esp, 0x10
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret 0x18
pop edi
pop ebp
pop ebx
mov eax, 8
pop esi
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x430b74.11001
jmp dword [eax*4 + 0x430b98]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18

Function at 0x431360
Capabilities:
Get common file path

Disassembly:
sub esp, 0x22c
cmp dword [0x4a92e0], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x430e30
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x431120
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.00430de0
je 0x4313b6
movzx eax, word [esp + 0x230]
mov eax, dword [eax*8 + 0x4a6004]
add esp, 0x22c
ret 4
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4314b9
push ebx
push ebp
push esi
push edi
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.0048498e
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.00484fad
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x431431
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x431478
push esi
call ebp
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.0048498e
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.00484fad
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x4314b5
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x4314db
xor edi, edi
lea ebx, [ebx]
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
test eax, eax
mov dword [esp + edi*8 + 0x14], eax
je 0x4314db
add edi, 1
cmp edi, 3
jl 0x431480
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x4a6004], edx
mov dword [0x4a600c], eax
mov dword [fcn.00430de0], ecx
pop edi
pop esi
pop ebp
pop ebx
movzx edx, word [esp + 0x230]
mov eax, dword [edx*8 + 0x4a6004]
mov dword [0x4a92e0], 1
add esp, 0x22c
ret 4
push esi
call ebp
jmp 0x4314b5
Function at 0x433470
Capabilities:
Get socket status

Disassembly:
sub esp, 0x11c
push esi
mov esi, dword [esp + 0x124]
cmp dword [esi + 0x49], 0
je 0x433571
mov eax, dword [esi + 0x45]
push 0
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
push 0
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x433559
mov eax, dword [esi + 0x45]
lea edx, [esp + 0x1c]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x433559
mov eax, dword [esi + 0x45]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x14], 0x10
call dword [sym.imp.WS2_32.dll_accept]
cmp eax, 0xffffffff
mov dword [esi + 0x39], eax
je 0x433559
mov ecx, dword [esi + 0x45]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x10]
push eax
mov dword [esi + 0x45], 0xffffffff
mov dword [esi + 0x49], 0
call fcn.004468f0
mov ecx, dword [esp + 0x16]
add esp, 8
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, byte [esp + 6]
movzx edx, ax
movzx eax, byte [esp + 7]
push edx
push eax
mov eax, dword [esp + 0xc]
push ecx
movzx edx, ah
push edx
movzx eax, al
push eax
push str.150_Data_connection_accepted_from__d._d._d._d:_d__transfer_starting._r_n
push esi
call fcn.00433320
add esp, 0x1c
mov eax, 1
pop esi
add esp, 0x11c
ret
mov ecx, dword [esi + 0x45]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x45], 0xffffffff
mov dword [esi + 0x49], 0
push str.500_Data_connection_failed._r_n
push esi
call fcn.00433320
add esp, 8
xor eax, eax
pop esi
add esp, 0x11c
ret

Function at 0x4336a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x491d58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
xor ebx, ebx
push esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ebx
mov ecx, dword [esp + 0x30]
cmp byte [ecx], bl
mov byte [esp + 0x28], 2
mov eax, ecx
je 0x4336ee
add eax, 1
cmp byte [eax], bl
jne 0x4336e7
sub eax, ecx
push eax
push ecx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00421780
add esp, 0x14
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x28], 1
call fcn.00476730
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.00476730
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.00476730
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x433750
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x491d58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
xor ebx, ebx
push esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ebx
mov ecx, dword [esp + 0x30]
cmp byte [ecx], bl
mov byte [esp + 0x28], 2
mov eax, ecx
je 0x43379e
add eax, 1
cmp byte [eax], bl
jne 0x433797
sub eax, ecx
push eax
push ecx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.004219c0
add esp, 0x14
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x28], 1
call fcn.00476730
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.00476730
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.00476730
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret