joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472c00
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x39c
mov eax, dword [esp + 0x3a0]
push esi
push edi
mov edi, ecx
test eax, eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x378
je 0x472d6c
mov ecx, dword [esp + 0x3ac]
test ecx, ecx
je 0x472d6c
mov edx, dword [esp + 0x3b0]
test edx, edx
je 0x472d6c
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 8]
push edx
push 0xf003f
push 0
push ecx
push eax
call esi
test eax, eax
jne 0x472d6c
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0
push 0
push str.PackedCatalogItem
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x472d50
cmp dword [esp + 0x10], 0x378
jne 0x472d50
cmp dword [esp + 0x158], 1
jne 0x472d79
cmp dword [esp + 0x17c], 2
jne 0x472d79
mov eax, dword [esp + 0x154]
lea ecx, [esp + 0x14]
push eax
push 0x5ad55c
push ecx
call fcn.0047e963
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
push closesocket
call esi
test eax, eax
jne 0x472d50
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, edi
call fcn.00472db0
test eax, eax
je 0x472d50
mov edx, dword [esp + 0x10]
push 3
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
push closesocket
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, edi
call fcn.004728b0
test eax, eax
je 0x472d50
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 8]
lea eax, [esp + 0x2c]
push edx
push eax
push 3
push 0
push str.PackedCatalogItem
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x472d79
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x472d61
push eax
call esi
mov eax, dword [esp + 8]
test eax, eax
je 0x472d6c
push eax
call esi
pop edi
xor eax, eax
pop esi
add esp, 0x39c
ret 0xc
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x472d8a
push eax
call esi
mov eax, dword [esp + 8]
test eax, eax
je 0x472d95
push eax
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x39c
ret 0xc
Function at 0x472db0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x480
mov ecx, dword [esp + 0x484]
mov dword [esp], 0x378
test ecx, ecx
je 0x472e71
mov eax, dword [esp + 0x488]
test eax, eax
je 0x472e71
lea edx, [esp]
push edx
lea edx, [esp + 0x10c]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x472e71
cmp dword [esp], 0x378
jne 0x472e71
lea eax, [esp + 4]
push 0x104
lea ecx, [esp + 0x10c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x472e71
lea edx, [esp + 4]
push edx
call fcn.00472840
add esp, 4
test eax, eax
je 0x472e71
cmp dword [esp + 0x234], 1
jne 0x472e63
cmp dword [esp + 0x258], 2
jne 0x472e63
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x472e71
push str.WSPStartup
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x472e71
mov eax, 1
add esp, 0x480
ret 8
xor eax, eax
add esp, 0x480
ret 8

Function at 0x472e80
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
je 0x472edf
push esi
call fcn.00472840
add esp, 4
test eax, eax
je 0x472edf
lea eax, [esp + 4]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x472edf
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x472edf
push 0x5ad580
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x104
ret 4
xor eax, eax
pop esi
add esp, 0x104
ret 4
Function at 0x472f70
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x110
push ebx
push ebp
mov ebp, dword [esp + 0x11c]
push esi
xor esi, esi
push edi
cmp ebp, esi
mov ebx, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
jne 0x472fa4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
push ebp
mov ecx, ebx
call fcn.00472e80
test eax, eax
jne 0x472fbd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
push ebp
mov ecx, ebx
call fcn.00472ef0
cmp eax, 1
je 0x47314a
lea eax, [esp + 0x10]
push eax
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x472ff6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x1c]
push 0x104
push ecx
push esi
push edx
call edi
test eax, eax
jne 0x473072
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4730f2
mov eax, dword [esp + 0x14]
push str.PackedCatalogItem
push eax
mov ecx, ebx
call fcn.00472db0
mov ecx, dword [esp + 0x14]
test eax, eax
push ecx
je 0x473109
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
inc esi
push 0x104
push edx
push esi
push eax
mov dword [esp + 0x24], 0
call edi
test eax, eax
je 0x473012
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
xor esi, esi
push 0x104
push edx
push esi
push eax
mov dword [esp + 0x28], esi
call edi
test eax, eax
jne 0x4730c0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push ebp
push edx
push eax
mov ecx, ebx
call fcn.00472a60
test eax, eax
je 0x4730f2
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
inc esi
push 0x104
push ecx
push esi
push edx
call edi
test eax, eax
je 0x47308e
cmp dword [esp + 0x18], 1
jb 0x4730f2
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
dec ecx
push closesocket
push ecx
push ebp
push str.FileName
mov ecx, ebx
call fcn.00472940
cmp eax, 1
je 0x47313b
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x473119
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], 0
jmp 0x4730f2
push ebp
mov ecx, ebx
call fcn.00473160
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x47314a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x110
ret 4
Function at 0x473160
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x10c
push ebp
mov ebp, dword [esp + 0x114]
push esi
xor esi, esi
push edi
cmp ebp, esi
mov edi, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 1
jne 0x473192
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret 4
push esi
mov ecx, edi
call fcn.00472ef0
test eax, eax
jne 0x4731af
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x10c
ret 4
lea eax, [esp + 0xc]
push eax
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4731d6
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret 4
mov edx, dword [esp + 0xc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x18]
push 0x104
push ecx
push esi
push edx
call ebx
test eax, eax
jne 0x473224
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push ebp
push eax
push ecx
mov ecx, edi
call fcn.00472c00
test eax, eax
jne 0x47320d
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
inc esi
push 0x104
push edx
push esi
push eax
call ebx
test eax, eax
je 0x4731f3
push 0
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
push closesocket
mov ecx, edi
call fcn.004729d0
mov eax, dword [esp + 0x10]
pop ebx
test eax, eax
je 0x473247
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0x10c
ret 4
Function at 0x478bf0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x478c39
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4790b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49d4a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00478c60
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00478ce0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00478ce0
lea ecx, [esi + 0xc]
call fcn.0048def2
lea ecx, [esi + 0x10]
call fcn.0048def2
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0047a270
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0047a270
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0047a270
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0048df67
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0048df67
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x47a460
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x47a4c6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x47a4c6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x47a4a7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x490320
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x490358
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048e3c2
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048e39a
jmp 0x490364
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x491a12
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x491a54
call fcn.0049768c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x491a54
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x491a4b
xor eax, eax
jmp 0x491a5c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00491a62
pop edi
pop esi
pop ebx
ret 4

Function at 0x497bbc
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x497bea
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x497c08
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00497b22
jmp 0x497c08
mov eax, dword [esi + 0x14]
test eax, eax
je 0x497c08
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00497b22
test edi, edi
mov eax, edi
jne 0x497bf2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4231a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x14]
push esi
call fcn.00423c70
push eax
push dword [ebp + 8]
call fcn.004235a0
mov ecx, eax
add esp, 0xc
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x4231cb
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
push ebx
push edi
mov edi, dword [ebp + 0x10]
cmp edi, 0xffffffff
jne 0x4231e9
mov edi, edx
lea ebx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x4231e0
sub edi, ebx
push ecx
push edi
push 1
push edx
call fcn.00548884
mov ebx, eax
add esp, 0x10
cmp ebx, edi
je 0x423292
push esi
call fcn.00423a30
add esp, 4
test eax, 0x1000
jne 0x423271
push esi
call fcn.00423a30
and eax, 0xf
add esp, 4
cmp al, 6
ja 0x423292
push esi
call fcn.00423a30
and eax, 0xf
add esp, 4
cmp al, 5
jbe 0x423271
push esi
call fcn.00423a30
add esp, 4
test eax, 0x1300
jne 0x423271
push esi
call fcn.00423a30
push dword [ebp + 0x14]
mov esi, eax
and esi, 0xc90000
or esi, 0x360000
shr esi, 0x10
call fcn.00423a30
and eax, 0xf
add esp, 8
cmp dword [esi*4 + 0x601b40], eax
jl 0x423292
mov esi, dword [ebp + 0x14]
push ebx
push edi
push dword [ebp + 8]
push str.failed_fwrite__s__sz__d__returned__d
push esi
call fcn.00423a30
add esp, 4
or eax, 0x360000
push eax
call fcn.004241a0
add esp, 0x14
push dword [ebp - 4]
call fcn.005484a6
add esp, 4
sub ebx, edi
neg ebx
sbb ebx, ebx
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x423330
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0x10000
call fcn.005414d5
mov esi, dword [ebp + 8]
mov ebx, eax
lea eax, [ebp - 0x44]
mov dword [ebp - 4], ebx
push eax
push esi
or edi, 0xffffffff
call fcn.0053c550
add esp, 0xc
test eax, eax
jne 0x423413
push 0x56e9b4
push esi
call fcn.0053bdf0
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x423413
push 0x56eb28
push dword [ebp + 0xc]
call fcn.0053bdf0
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4233f8
mov edi, dword [ebp - 0x2c]
mov ecx, edi
mov ebx, dword [ebp - 0x28]
or ecx, ebx
je 0x4233ee
nop
test ebx, ebx
jl 0x4233b5
jg 0x4233ae
cmp edi, 0x10000
jbe 0x4233b5
mov esi, 0x10000
jmp 0x4233b7
mov esi, edi
push dword [ebp - 8]
push esi
push 1
push dword [ebp - 4]
call fcn.00541e3c
add esp, 0x10
cmp eax, esi
jne 0x4233f2
push dword [ebp - 0xc]
push esi
push 1
push dword [ebp - 4]
call fcn.00548884
add esp, 0x10
cmp eax, esi
jne 0x4233f2
mov eax, esi
cdq
sub edi, eax
mov eax, edi
sbb ebx, edx
or eax, ebx
jne 0x4233a0
xor edi, edi
jmp 0x4233f5
or edi, 0xffffffff
mov ebx, dword [ebp - 4]
push dword [ebp - 8]
call fcn.005484a6
mov eax, dword [ebp - 0xc]
add esp, 4
test eax, eax
je 0x423413
push eax
call fcn.005484a6
add esp, 4
push ebx
call fcn.005414d0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423730
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push fcn.004221a0
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 4]
sub eax, 4
push eax
call fcn.00420780
mov dword [ebp - 4], eax
add esp, 0xc
mov eax, dword [0x5fd8bc]
test eax, eax
jne 0x423884
push esi
push str.TEMP
call fcn.0053b460
add esp, 4
test eax, eax
jne 0x42381a
push 0x56e9f0
call fcn.0053b460
add esp, 4
test eax, eax
jne 0x42381a
push dword [ebp - 4]
call fcn.00422210
mov eax, dword [ebp - 4]
add esp, 4
push dword [eax]
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
test esi, esi
je 0x4237d0
push esi
push dword [ebp - 4]
call fcn.00422230
mov ecx, dword [ebp - 4]
add esp, 8
push dword [ecx]
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [ebp - 4]
push dword [eax]
push 0x5fd8bc
call fcn.004219a0
jmp 0x423825
push 0x56e9f4
call fcn.0053b460
add esp, 4
test eax, eax
je 0x423888
mov dl, byte [eax]
movzx ecx, dl
test byte [ecx*2 + 0x5dfb98], 4
je 0x423888
cmp byte [eax + 1], 0x3a
jne 0x423888
movsx eax, dl
push eax
push str._c:_Temp
push 0x5fd8bc
call fcn.004218d0
add esp, 0xc
jmp 0x423828
push eax
push 0x5fd8bc
call fcn.00421840
add esp, 8
lea eax, [ebp - 0x3c]
push eax
push dword [0x5fd8bc]
call fcn.0053c550
add esp, 8
pop esi
test eax, eax
jne 0x423853
movzx eax, word [ebp - 0x36]
test eax, eax
je 0x423853
and eax, 0xf000
cmp eax, 0x4000
je 0x42387f
push dword [0x5fd8bc]
push str.creating_temp_directory__s
push 0x360004
call fcn.004241a0
push 0x1ff
push dword [0x5fd8bc]
call fcn.0053b9d0
add esp, 0x14
test eax, eax
jne 0x423897
mov eax, dword [0x5fd8bc]
mov esp, ebp
pop ebp
ret
push str.failed_to_get_temp_directory
push 0x360000
call fcn.00424700
push str.failed_to_create_temp_directory
push 0x360000
call fcn.00424700
int3
Function at 0x424b40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
push 2
call fcn.00541bde
mov edi, dword [ebp + 0x10]
add esp, 4
mov ecx, edi
mov ebx, edi
sar ecx, 0x10
and ebx, 0xf
movzx ecx, cl
mov esi, eax
lea eax, [ebp - 0x100]
mov dword [ebp + 0x10], ecx
cmp dword [ecx*4 + 0x601b40], ebx
jge 0x424b86
test edi, 0x300
je 0x424c83
cmp dword [0x601f40], 0
je 0x424bb2
call fcn.00424f80
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00537ca0
mov cx, word [0x56eba8]
add esp, 8
mov word [eax], cx
inc eax
mov ecx, dword [ebp + 0x10]
lea ecx, [ecx + ecx*2]
push dword [ecx*4 + 0x5edc5c]
push eax
call fcn.00537ca0
movzx ecx, word [0x56eba8]
mov word [eax], cx
inc eax
push dword [ebx*4 + 0x5ed040]
push eax
call fcn.00537ca0
movzx ecx, word [0x56eba4]
mov ebx, eax
mov word [ebx], cx
mov cl, byte [0x56eba6]
mov byte [ebx + 2], cl
add ebx, 2
lea ecx, [ebp - 1]
sub ecx, ebx
push ecx
push dword [ebp + 0xc]
push ebx
call fcn.00537b60
add esp, 0x1c
lea ecx, [ebp - 1]
push esi
push 1
cmp eax, ecx
jae 0x424c28
mov byte [eax], 0xa
lea ecx, [ebp - 0x100]
sub eax, ecx
inc eax
push eax
mov eax, ecx
push eax
call fcn.00548884
add esp, 0x10
jmp 0x424c4e
lea eax, [ebp - 0x100]
sub ebx, eax
push ebx
push eax
call fcn.00548884
push esi
push dword [ebp + 0xc]
call fcn.00547f61
push esi
push 0x56e870
call fcn.00547f61
add esp, 0x20
mov eax, dword [0x5ed874]
cmp eax, 0xffffffff
jne 0x424c6c
push esi
call fcn.0053b3e0
push eax
call fcn.0053b960
add esp, 8
mov dword [0x5ed874], eax
test eax, eax
mov ecx, 0x2000
cmovne edi, ecx
test ecx, edi
je 0x424c83
push esi
call fcn.00548a6a
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x436b00
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
push edi
push 0x439160
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 4]
sub eax, 4
push eax
call fcn.00420780
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edi, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov dword [ebp - 0x38], 0x57091c
mov dword [ebp - 0x34], 0x570924
mov dword [ebp - 0x30], str.except
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x40], xmm0
test edi, edi
je 0x436c75
xor esi, esi
mov eax, edi
mov dword [ebp - 0xc], esi
xor ebx, ebx
cmp dword [eax], ebx
jbe 0x436c60
xor ecx, ecx
lea edx, [ebp - 0x144]
cmp eax, dword [ebp + 0x14]
cmovne edx, ecx
cmp eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x18], edx
cmovne ecx, ebx
cmp eax, edi
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x144]
cmovne ecx, ebx
add eax, 4
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], eax
mov edi, dword [eax]
lea eax, [ebp - 0x40]
push eax
push edx
push dword [ebp - 0x10]
mov dword [ebp - 0x140], edi
push dword [ebp - 0x14]
mov dword [ebp - 0x144], 1
push 1
call dword [sym.imp.WS2_32.dll_select]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
jns 0x436c44
push 0x601860
call fcn.00429170
mov ecx, dword [0x60187c]
add esp, 4
mov edx, dword [0x60188c]
xor esi, esi
test ecx, ecx
jle 0x436c13
mov eax, dword [edx + esi*4]
test eax, eax
je 0x436c13
cmp dword [eax + 0x60], edi
je 0x436c13
inc esi
cmp esi, ecx
jl 0x436c02
cmp esi, ecx
je 0x436c1d
cmp dword [edx + esi*4], 0
jne 0x436c20
or esi, 0xffffffff
push 0x601860
call fcn.00429180
push esi
mov esi, dword [ebp - 0xc]
push edi
push ebx
push dword [ebp + esi - 0x38]
push str._s__d__osfd_d_vfd_d_
push dword [ebp - 8]
call fcn.00421580
add esp, 0x1c
mov ecx, dword [ebp + esi - 0x28]
inc ebx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
add eax, 4
mov dword [ebp - 4], eax
cmp ebx, dword [ecx]
jb 0x436bb1
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + esi - 0x24]
add esi, 4
mov dword [ebp - 0xc], esi
test eax, eax
jne 0x436b73
mov eax, dword [ebp - 8]
push 0x57094c
push eax
call fcn.00421e30
mov eax, dword [ebp - 8]
add esp, 8
push dword [eax]
push str.vsock_select__:_a_member_of_fd_set_was_invalid:__s
push 0x360000
call fcn.00424700
int3
Function at 0x48df40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push dword [ebp + 8]
call fcn.004cfd80
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.0053f150
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x48dfe6
push 0x48
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.004575d0
push 0x590708
push esi
push 0x5946f0
push dword [ebp + 8]
push str.fopen_
push 5
call fcn.00456c10
add esp, 0x2c
call fcn.005414b2
cmp dword [eax], 2
je 0x48dfc2
call fcn.005414b2
cmp dword [eax], 6
je 0x48dfc2
lea eax, [edi + 2]
lea ecx, [edi + 0x51]
jmp 0x48dfcc
mov eax, 0x80
mov ecx, 0x4f
push ecx
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_bio_bss_file.c
push eax
push 0x6d
push 0x20
call fcn.004575d0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x594668
call fcn.0044fca0
mov esi, eax
add esp, 4
test esi, esi
jne 0x48e009
push edi
call fcn.005484a6
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 0
push esi
call fcn.0044f610
push edi
push ebx
push 0x6a
push esi
call fcn.0044f640
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x49aa00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0x10
lea eax, [edx + 0xf]
lea ecx, [esi + 0xf]
cmp esi, eax
ja 0x49aa41
cmp ecx, edx
jb 0x49aa41
push edi
mov ecx, esi
sub edx, esi
mov edi, 0x10
nop word [eax + eax]
mov al, byte [edx + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edi, 1
jne 0x49aa30
pop edi
jmp 0x49aa4e
movups xmm1, xmmword [esi]
movups xmm0, xmmword [edx]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
push 0x10
push esi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push esi
push dword [eax + 4]
call fcn.0044ec60
add esp, 0x14
pop esi
test eax, eax
je 0x49aa78
cmp dword [ebp - 4], 0x10
jne 0x49aa78
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x49abc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x49ac23
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x49ac23
push ebx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xc]
cmp edx, eax
mov ebx, eax
cmovb ebx, edx
xor ecx, ecx
test ebx, ebx
je 0x49abf6
mov al, byte [ecx + esi]
xor byte [edi + ecx + 0x10], al
inc ecx
cmp ecx, ebx
jb 0x49abe7
mov eax, dword [edi + 0xc]
cmp edx, eax
jbe 0x49ac21
sub edx, eax
mov eax, 0x10
cmp edx, eax
cmova edx, eax
xor ecx, ecx
test edx, edx
je 0x49ac21
nop dword [eax]
mov eax, dword [edi + 0xc]
add eax, ecx
mov al, byte [eax + esi]
xor byte [edi + ecx + 0x30], al
inc ecx
cmp ecx, edx
jb 0x49ac10
pop edi
pop ebx
pop esi
pop ebp
ret