joyce8/EMBER2024-capa huggingface dataset:
Function at 0x520cc0
Capabilities:
Get memory capacity

Disassembly:
push 0xffffffffffffffff
push 0x5d1f76
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x65b4e4]
xor eax, esp
push eax
lea eax, [esp + 0xe4]
mov dword fs:[0], eax
call fcn.004fe480
test eax, eax
jne 0x520d25
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0xf4]
shr ecx, 0x14
mov dword [edx], ecx
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xec
ret 4
call fcn.0041a460
mov eax, dword [eax + 0x15c]
test eax, eax
jne 0x520e17
push 1
push 2
lea ecx, [esp + 0x6c]
call fcn.0040b160
lea eax, [esp + 0x64]
push 0x5f5fd0
push eax
mov dword [esp + 0xf4], 0
call fcn.00409c80
add esp, 8
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0x68]
call fcn.00409610
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0xec], 1
jb 0x520d83
mov eax, dword [eax + 4]
jmp 0x520d86
add eax, 4
push eax
push str.BaseLib::CBaseInfo::GetPhyMemerySize
push 0x8e5
push str..ywSMPpubBaseInfo.cpp
push 0
call fcn.00409980
mov ecx, eax
call fcn.004fa910
cmp dword [esp + 0x1c], 0x10
jb 0x520db8
mov edx, dword [esp + 8]
push edx
call fcn.00594e98
add esp, 4
lea ecx, [esp + 0xb0]
mov dword [esp + 0x1c], 0xf
mov dword [esp + 0x18], 0
mov byte [esp + 8], 0
mov dword [esp + 0xec], 0xffffffff
call fcn.00409f20
lea eax, [esp + 0xb0]
push eax
mov dword [esp + 0xb4], vtable.std::ios_base.0
call fcn.005cccbe
add esp, 4
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xec
ret 4
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], 0x40
call eax
test eax, eax
mov edx, dword [esp + 0xf4]
jne 0x520e4b
mov dword [edx], eax
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xec
ret 4
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
shrd eax, ecx, 0x14
shr ecx, 0x14
mov dword [edx], eax
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xec
ret 4
Function at 0x525560
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5d259b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x65b4e4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x20]
xor edi, edi
push edi
push 0x3c
lea ecx, [esi + 0x28]
mov dword [esi], vtable.BaseLib::CClientSession.0
mov dword [esi + 0x24], eax
call fcn.0052a190
lea ecx, [esi + 0x3c]
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
call fcn.00509060
lea ecx, [esi + 0x68]
mov dword [esp + 0x18], edi
call fcn.00509060
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

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

Disassembly:
push 0xffffffffffffffff
push 0x5d259b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x65b4e4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x20]
xor edi, edi
push edi
push 0x3c
lea ecx, [esi + 0x28]
mov dword [esi], vtable.BaseLib::CClientSession.0
mov dword [esi + 0x24], eax
call fcn.0052a190
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x30], ecx
lea ecx, [esi + 0x3c]
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], eax
call fcn.00509060
lea ecx, [esi + 0x68]
mov dword [esp + 0x18], edi
call fcn.00509060
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x10
Function at 0x525840
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5d2611
mov eax, dword fs:[0]
push eax
mov eax, 0x10c0
call fcn.005b5ef0
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x10bc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65b4e4]
xor eax, esp
push eax
lea eax, [esp + 0x10d4]
mov dword fs:[0], eax
mov esi, dword [esp + 0x10e8]
mov eax, dword [esp + 0x10e4]
xor ebp, ebp
test esi, esi
mov ebx, ecx
mov dword [esp + 0x14], eax
jbe 0x525a54
mov eax, dword [ebx + 0x98]
test eax, eax
je 0x5258b0
cmp dword [eax], 0
jne 0x525a83
mov edi, 0x1000
cmp esi, edi
jae 0x5258bb
mov edi, esi
mov ecx, dword [esp + 0x14]
push ecx
push 1
lea edx, [esp + 0xd8]
push edi
push edx
call fcn.005b1816
add esp, 0x10
cmp dword [esp + 0x10ec], 0
je 0x5258f3
lea eax, [esp + 0xd0]
push edi
push eax
call fcn.00519e50
add esp, 8
jmp 0x525a02
cmp dword [ebx + 0x9c], 0
je 0x525a02
push 1
push 2
lea ecx, [esp + 0x58]
call fcn.0040b160
mov ecx, dword [ebx + 0x9c]
push ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x10e0], 0
call fcn.004024e0
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x54]
call fcn.00409610
mov esi, eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x10e0], 1
call fcn.00409610
cmp dword [eax + 0x18], 0x10
mov esi, dword [esi + 0x14]
mov byte [esp + 0x10dc], 2
jb 0x525964
mov eax, dword [eax + 4]
jmp 0x525967
add eax, 4
push edi
lea ecx, [esp + 0xd4]
push ecx
push esi
push eax
call fcn.00530cd0
add esp, 0x10
cmp dword [esp + 0x4c], 0x10
jb 0x52598e
mov edx, dword [esp + 0x38]
push edx
call fcn.00594e98
add esp, 4
cmp dword [esp + 0x30], 0x10
mov esi, 0xf
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], 0
mov byte [esp + 0x38], 0
jb 0x5259b8
mov eax, dword [esp + 0x1c]
push eax
call fcn.00594e98
add esp, 4
lea ecx, [esp + 0x9c]
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 0x10dc], 0xffffffff
call fcn.00409f20
lea ecx, [esp + 0x9c]
push ecx
mov dword [esp + 0xa0], vtable.std::ios_base.0
call fcn.005cccbe
mov esi, dword [esp + 0x10ec]
add esp, 4
mov edx, dword [ebx]
mov edx, dword [edx + 0xc]
push edi
lea eax, [esp + 0xd4]
push eax
mov ecx, ebx
call edx
test eax, eax
jle 0x525a83
add ebp, 1
mov eax, 0x66666667
imul ebp
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
add eax, eax
sub esi, edi
add eax, eax
mov ecx, ebp
sub ecx, eax
mov dword [esp + 0x10e8], esi
jne 0x525a4c
push 1
call fcn.00506ab0
add esp, 4
test esi, esi
ja 0x52589d
mov eax, 1
mov ecx, dword [esp + 0x10d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10bc]
xor ecx, esp
call fcn.005b0968
add esp, 0x10cc
ret 0xc
xor eax, eax
jmp 0x525a59
Function at 0x527080
Capabilities:
Manipulate safe mode programs

Disassembly:
push 0xffffffffffffffff
push 0x5d2878
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebp
push esi
push edi
mov eax, dword [0x65b4e4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
mov eax, ebp
mov dword [esp + 0x38], 0
lea edx, [eax + 1]
jmp 0x5270e0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x5270e0
push 0x32
sub eax, edx
push str.SYSTEMCurrentControlSetControlSafeBootMinimal_
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.004098b0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x527102
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.00408360
cmp dword [esp + 0x28], 0x10
mov eax, dword [esp + 0x14]
jae 0x527127
lea eax, [esp + 0x14]
push 1
push edi
push ebp
push 1
push 0x62a4a0
push eax
push reloc.WS2_32.dll_bind
call fcn.004ff7d0
add esp, 0x1c
test eax, eax
jne 0x52715f
cmp dword [esp + 0x28], 0x10
jb 0x527158
mov eax, dword [esp + 0x14]
push eax
call fcn.00594e98
add esp, 4
xor eax, eax
jmp 0x5271e9
push 0x32
push str.SYSTEMCurrentControlSetControlSafeBootNetwork_
lea ecx, [esp + 0x18]
call fcn.004098b0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x527174
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.00408360
mov eax, dword [esp + 0x14]
mov esi, 0x10
cmp dword [esp + 0x28], esi
jae 0x52719d
lea eax, [esp + 0x14]
push 1
push edi
push ebp
push 1
push 0x62a4a0
push eax
push reloc.WS2_32.dll_bind
call fcn.004ff7d0
add esp, 0x1c
test eax, eax
jne 0x5271d1
cmp dword [esp + 0x28], esi
jb 0x527158
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00594e98
add esp, 4
xor eax, eax
jmp 0x5271e9
cmp dword [esp + 0x28], esi
jb 0x5271e4
mov edx, dword [esp + 0x14]
push edx
call fcn.00594e98
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.005b0968
add esp, 0x2c
ret 8
Function at 0x527210
Capabilities:
Manipulate safe mode programs

Disassembly:
push 0xffffffffffffffff
push 0x5d28a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x65b4e4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [esp + 0x38]
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
push 0x32
push str.SYSTEMCurrentControlSetControlSafeBootMinimal_
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0
call fcn.004098b0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x527275
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x10]
call fcn.00408360
cmp dword [esp + 0x20], 0x10
mov eax, dword [esp + 0xc]
jae 0x52729a
lea eax, [esp + 0xc]
push 1
push eax
push reloc.WS2_32.dll_bind
call fcn.004ff090
add esp, 0xc
push 0x32
push str.SYSTEMCurrentControlSetControlSafeBootNetwork_
lea ecx, [esp + 0x10]
call fcn.004098b0
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x5272c0
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x10]
call fcn.00408360
cmp dword [esp + 0x20], 0x10
mov eax, dword [esp + 0xc]
jae 0x5272e5
lea eax, [esp + 0xc]
push 1
push eax
push reloc.WS2_32.dll_bind
call fcn.004ff090
add esp, 0xc
cmp dword [esp + 0x20], 0x10
jb 0x527309
mov eax, dword [esp + 0xc]
push eax
call fcn.00594e98
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.005b0968
add esp, 0x2c
ret 4
Function at 0x527c80
Capabilities:
Delete service

Disassembly:
push 0xffffffffffffffff
push 0x5d29f1
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push esi
push edi
mov eax, dword [0x65b4e4]
xor eax, esp
push eax
lea eax, [esp + 0xac]
mov dword fs:[0], eax
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov dword [esp + 0xc], edi
test edi, edi
mov dword [esp + 0xb4], 0
jne 0x527cde
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
or eax, 0xffffffff
jmp 0x527dd8
mov eax, dword [esp + 0xbc]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x527d07
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
or eax, 0xffffffff
jmp 0x527dd8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x527dca
push 1
push 2
lea ecx, [esp + 0x34]
call fcn.0040b160
mov byte [esp + 0xb4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x30]
push str.DeleteService_Fail:
push ecx
call fcn.00409c80
add esp, 8
mov ecx, eax
call fcn.004024e0
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x30]
call fcn.00409610
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0xb4], 2
jb 0x527d6c
mov eax, dword [eax + 4]
jmp 0x527d6f
add eax, 4
push eax
push str.BaseLib::CNTServiceManager::Delete
push 0x23e
push str..commonNTServiceManager.cpp
push 0xf0000000
call fcn.00409980
mov ecx, eax
call fcn.004fa910
cmp dword [esp + 0x28], 0x10
jb 0x527da4
mov eax, dword [esp + 0x14]
push eax
call fcn.00594e98
add esp, 4
lea ecx, [esp + 0x78]
mov byte [esp + 0xb4], 0
call fcn.00409f20
lea ecx, [esp + 0x78]
push ecx
mov dword [esp + 0x7c], vtable.std::ios_base.0
call fcn.005cccbe
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
xor eax, eax
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xac
ret 4
Function at 0x527e30
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x5d2a28
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x65b4e4]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
cmp eax, ebx
jne 0x527f00
lea eax, [esp + 0x10]
push eax
call fcn.00513b50
push str.fileprotectdll.dll
push eax
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x64], ebx
call fcn.00404a40
mov edi, 0x10
add esp, 0x10
cmp dword [esp + 0x28], edi
mov dword [esp + 0x54], 0xffffffff
jb 0x527eb0
mov edx, dword [esp + 0x14]
push edx
call fcn.00594e98
add esp, 4
cmp dword [esp + 0x44], edi
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
jae 0x527ece
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [esp + 0x44], edi
mov dword [esi], eax
jb 0x527eea
mov eax, dword [esp + 0x30]
push eax
call fcn.00594e98
add esp, 4
mov eax, dword [esi]
cmp eax, ebx
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
je 0x527f71
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FpOpen
push eax
call edi
mov ecx, dword [esi]
push str.FpSetProtectFile
push ecx
mov dword [esi + 4], eax
call edi
mov edx, dword [esi]
push str.FpSetProtectFileA
push edx
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi]
push str.FpSetWhiteProcess
push eax
call edi
mov ecx, dword [esi]
push str.FpSetWhiteProcessA
push ecx
mov dword [esi + 0x10], eax
call edi
mov edx, dword [esi]
push str.FpReset
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi]
push str.FpStartProtectLog
push eax
call edi
mov dword [esi + 0x1c], eax
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x527f75
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x527f77
call esi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.005b0968
add esp, 0x48
ret

Function at 0x5284b0
Capabilities:
Terminate process

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push esi
push eax
push 0
push 1
mov bl, 1
mov dword [esp + 0x14], 4
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, 0xffffffff
je 0x5284eb
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x5284ed
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
pop ecx
ret 4
Function at 0x528870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push 2
xor ebp, ebp
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
test ebx, ebx
je 0x5288f1
push str.FLAG
push 0x5f7090
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x5288ea
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x5288e9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, 0x5f7088
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x5288c0
sub ecx, edi
push ecx
push 0x5f7088
push eax
call fcn.005b5c16
add esp, 0xc
test eax, eax
pop edi
jne 0x5288e2
lea ebp, [eax + 1]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebp
pop ebp
pop ebx
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x5d2b26
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x65b4e4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
lea edi, [esi + 0xa0]
push edi
mov ecx, esi
call fcn.005255f0
mov ecx, edi
mov dword [esp + 0x18], 0
mov dword [esi], vtable.BaseLib::CNetStream.0
call fcn.00509200
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push eax
push ecx
lea ecx, [esi + 0xac]
mov byte [esp + 0x20], 1
call fcn.0050a6b0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x14
Function at 0x528b20
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5d2bdb
mov eax, dword fs:[0]
push eax
mov eax, 0x100c
call fcn.005b5ef0
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x1008], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65b4e4]
xor eax, esp
push eax
lea eax, [esp + 0x1020]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1030]
mov esi, ecx
push 0x62b410
push eax
mov dword [esp + 0x1c], esi
call fcn.005b0ac9
mov ebp, eax
add esp, 8
mov dword [esp + 0x18], ebp
xor edi, edi
cmp ebp, edi
mov dword [esp + 0x1028], edi
je 0x528c49
mov ebx, dword [esp + 0x1034]
cmp ebx, edi
ja 0x528bb4
push ebp
call fcn.005b0f84
add esp, 4
lea eax, [edi + 1]
jmp 0x528c4b
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x98]
test eax, eax
je 0x528bc7
cmp dword [eax], 0
jne 0x528c40
cmp ebx, 0x1000
jb 0x528bdb
push 0x1000
lea eax, [esp + 0x20]
push eax
jmp 0x528be1
push ebx
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00525710
mov esi, eax
test esi, esi
push ebp
jle 0x528c41
push 1
lea edx, [esp + 0x24]
push esi
push edx
call fcn.005b0d41
add edi, 1
mov eax, 0x66666667
imul edi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
mov ecx, edi
add esp, 0x10
sub ebx, esi
sub ecx, eax
jne 0x528c2c
push 1
call fcn.00506ab0
add esp, 4
test ebx, ebx
ja 0x528bb0
push ebp
call fcn.005b0f84
add esp, 4
mov eax, 1
jmp 0x528c4b
push ebp
call fcn.005b0f84
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x1020]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.005b0968
add esp, 0x1018
ret 8

Function at 0x52a240
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x190], eax
xor ecx, ecx
mov ch, byte [esp + 0x19c]
lea eax, [esp]
push eax
mov cl, byte [esp + 0x19c]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.005b0968
add esp, 0x194
ret

Function at 0x52a310
Capabilities:
Get socket status

Disassembly:
sub esp, 0x108
mov eax, dword [esp + 0x10c]
push esi
xor esi, esi
push eax
lea ecx, [esp + 8]
mov dword [esp + 0x10c], esi
mov dword [esp + 8], esi
call fcn.0052a1f0
xor eax, eax
cmp dword [esp + 0x108], esi
lea ecx, [esp + 4]
setle al
sub eax, 1
and eax, ecx
mov ecx, dword [esp + 0x114]
push ecx
push esi
push esi
push eax
push esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x52a37b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.005b2629
mov dword [eax], esi
or eax, 0xffffffff
pop esi
add esp, 0x108
ret
jl 0x52a384
cmp eax, esi
jg 0x52a384
or eax, 0xffffffff
pop esi
add esp, 0x108
ret
Function at 0x52a390
Capabilities:
Get socket status

Disassembly:
sub esp, 0x108
mov eax, dword [esp + 0x10c]
push esi
xor esi, esi
push eax
lea ecx, [esp + 8]
mov dword [esp + 0x10c], esi
mov dword [esp + 8], esi
call fcn.0052a1f0
xor eax, eax
cmp dword [esp + 0x108], esi
lea ecx, [esp + 4]
setle al
sub eax, 1
and eax, ecx
mov ecx, dword [esp + 0x114]
push ecx
push esi
push eax
push esi
push esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x52a3fb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.005b2629
mov dword [eax], esi
or eax, 0xffffffff
pop esi
add esp, 0x108
ret
jl 0x52a404
cmp eax, esi
jg 0x52a404
or eax, 0xffffffff
pop esi
add esp, 0x108
ret

Function at 0x52a410
Capabilities:
Get socket status

Disassembly:
sub esp, 0x318
push ebx
push esi
mov esi, dword [esp + 0x324]
push edi
xor edi, edi
push esi
lea ecx, [esp + 0x220]
mov dword [esp + 0x324], edi
mov dword [esp + 0x220], edi
mov dword [esp + 0x21c], edi
mov dword [esp + 0x118], edi
call fcn.0052a1f0
push esi
lea ecx, [esp + 0x118]
call fcn.0052a1f0
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x114], edi
mov dword [esp + 0x10], edi
call fcn.0052a1f0
mov ebx, dword [esp + 0x32c]
xor eax, eax
cmp dword [esp + 0x110], edi
lea ecx, [esp + 0xc]
setle al
push ebx
lea edx, [esp + 0x118]
sub eax, 1
and eax, ecx
xor ecx, ecx
cmp dword [esp + 0x21c], edi
push eax
setle cl
sub ecx, 1
and ecx, edx
push ecx
push edi
push edi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x52a4cd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.005b2629
pop edi
mov dword [eax], esi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x318
ret
cmp eax, edi
jg 0x52a4ef
jne 0x52a4e2
cmp ebx, edi
je 0x52a4e2
call fcn.005b2629
mov dword [eax], 0x274c
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x318
ret
lea eax, [esp + 0xc]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x52a4e2
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x318
ret
Function at 0x52a510
Capabilities:
Get socket status

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x108
cmp eax, 0xffffffff
jne 0x52a528
or eax, eax
add esp, 0x108
ret
push ebx
push ebp
xor ecx, ecx
push edi
mov dword [esp + 0x110], ecx
mov dword [esp + 0xc], ecx
push eax
lea ecx, [esp + 0x10]
call fcn.0052a1f0
mov edi, dword [esp + 0x11c]
mov ebx, dword [sym.imp.WS2_32.dll_select]
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
xor eax, eax
cmp dword [esp + 0x114], eax
push edi
setle al
push 0
lea ecx, [esp + 0x18]
push 0
sub eax, 1
and eax, ecx
push eax
push 0
call ebx
cmp eax, 0xffffffff
jne 0x52a5a7
call ebp
mov esi, eax
call fcn.005b2629
mov dword [eax], esi
call fcn.005b2629
cmp dword [eax], 4
jne 0x52a609
cmp dword [esp + 0x124], 0
jne 0x52a556
pop esi
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x108
ret
test eax, eax
je 0x52a5d6
cmp eax, 1
je 0x52a5c9
call fcn.005b2629
pop esi
pop edi
pop ebp
mov dword [eax], 0x16
or eax, 0xffffffff
pop ebx
add esp, 0x108
ret
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret
test edi, edi
je 0x52a5fe
cmp dword [edi], 0
jne 0x52a5fe
cmp dword [edi + 4], 0
jne 0x52a5fe
call fcn.005b2629
pop esi
pop edi
pop ebp
mov dword [eax], 0x2733
or eax, 0xffffffff
pop ebx
add esp, 0x108
ret
call fcn.005b2629
mov dword [eax], 0x274c
pop esi
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x108
ret