joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4687d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x468823
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x46880a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46f1d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49bc3e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0046faf0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4e0c3c
call fcn.0048d324
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x46f263
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0048d324
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x46f25c
push 0
mov ecx, eax
call fcn.004662d0
mov dword [esi + 0xc], eax
jmp 0x46f265
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x46f265
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x48f9b1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48f9e9
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.0048da3e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048da16
jmp 0x48f9f5
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4910a7
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 0x4910e9
call fcn.00496b5b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4910e9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4910e0
xor eax, eax
jmp 0x4910f1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004910f7
pop edi
pop esi
pop ebx
ret 4
Function at 0x49708b
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 0x4970b9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4970d7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00496ff1
jmp 0x4970d7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4970d7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00496ff1
test edi, edi
mov eax, edi
jne 0x4970c1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10001030
Capabilities:
Resume thread

Disassembly:
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x10
call fcn.10008df8
add esp, 4
test eax, eax
je 0x10001052
mov esi, eax
call fcn.10002b20
mov esi, eax
jmp 0x10001054
xor esi, esi
xor ecx, ecx
push ecx
mov eax, 0x10002c10
push eax
lea eax, [esi + 4]
push eax
call fcn.10002fe0
mov dword [esi + 0xc], eax
test eax, eax
je 0x1000107d
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call fcn.10002f30
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
pop esi
ret 0x10

Function at 0x10001810
Capabilities:
Read data from internet
Receive data

Disassembly:
sub esp, 0x30
push ebx
push ebp
push edi
mov edi, dword [esp + 0x44]
test edi, edi
je 0x100018db
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x100018db
mov ebx, dword [sym.imp.WININET.dll_InternetReadFileExA]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x24], eax
mov eax, 0x10000
mov dword [esp + 0x10], 0x28
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov ecx, dword [esi + 0xc]
push ecx
call edi
mov edx, dword [esi + 0x10]
push edx
call edi
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x2c]
push ecx
push 8
lea edx, [esp + 0x18]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x24]
push edx
push eax
call ebx
test eax, eax
jne 0x100018e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x100018db
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
cmp eax, 1
je 0x100018db
mov ecx, dword [esi + 0x14]
push 1
push ecx
call ebp
cmp eax, 0x102
je 0x10001888
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0x30
ret 8
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x28]
pop edi
pop ebp
mov dword [eax], edx
mov eax, 1
pop ebx
add esp, 0x30
ret 8
Function at 0x10002fe0
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push 0x20
call fcn.10008df8
xor edi, edi
add esp, 4
cmp eax, edi
je 0x10003013
xor ecx, ecx
xor edx, edx
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], edi
mov dword [eax + 0x1c], edi
mov esi, eax
jmp 0x10003015
xor esi, esi
cmp ebx, edi
je 0x1000301e
lea eax, [ebx - 4]
jmp 0x10003020
xor eax, eax
push edi
mov dword [esi], eax
mov eax, dword [esp + 0x18]
push edi
mov dword [esi + 0x10], eax
mov ecx, dword [esp + 0x20]
push 1
push edi
mov dword [esi + 0x14], ecx
mov dword [esi + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea edx, [esi + 8]
push edx
push 4
push esi
push 0x10003090
push edi
push edi
mov dword [esi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebx
ret 0xc
Function at 0x10003110
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x10014f3b
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x1001b030]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [esp + 0x40]
lea esi, [edi + 8]
mov dword [edi], vtable.IMemMngUplevel.0
push esi
mov dword [edi + 4], vtable.IAPIRedir.0
call fcn.100044c0
xor ebx, ebx
mov dword [esp + 0x38], ebx
lea eax, [edi + 0x50]
mov dword [edi], vtable.CMemModMng.0
mov dword [edi + 4], vtable.CMemModMng.1.0
mov dword [esi], vtable.CMemModMng.2.0
push eax
mov dword [edi + 0x4c], vtable.CAPIRedir.0
call fcn.10004d70
lea eax, [edi + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [edi + 0x88]
push eax
mov byte [esp + 0x3c], 2
call fcn.10004d70
mov byte [esp + 0x38], 3
mov eax, dword [0x1001ce28]
mov dword [0x1001cdf0], edi
cmp eax, ebx
jne 0x100031e1
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push 0x1c
lea eax, [esp + 0x18]
push eax
push 0x10003750
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov eax, dword [esp + 0x18]
mov dword [0x1001ce28], eax
push 8
mov dword [edi + 0x44], eax
call fcn.10008df8
add esp, 4
cmp eax, ebx
je 0x100031fd
mov dword [eax], vtable.CMemMng.0
mov dword [eax + 4], edi
jmp 0x100031ff
xor eax, eax
mov dword [edi + 0x48], eax
lea ecx, [edi + 0x4c]
mov dword [edi + 0xac], ebx
mov dword [edi + 0xa8], ebx
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 0x10003860
push 0x10017f04
call eax
mov edx, dword [edi + 0x4c]
mov eax, dword [edx + 4]
lea ecx, [edi + 0x4c]
push 0x10003910
push 0x10017f18
call eax
mov dword [edi + 0xb0], ebx
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x1000326f
push 0xc
call fcn.10008df8
add esp, 4
mov dword [esp + 0x10], eax
mov byte [esp + 0x38], 4
cmp eax, ebx
je 0x10003267
mov esi, eax
call fcn.10005780
jmp 0x10003269
xor eax, eax
mov dword [edi + 0xb0], eax
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 4
Function at 0x10007140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1000715d
pop edi
pop ebp
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10007194
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x10007190
lea ebx, [ebx]
cmp esi, eax
jae 0x10007194
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x10007180
cmp esi, eax
jb 0x1000719b
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
pop ebx
ret

Function at 0x10008d7d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001b030]
jne 0x10008d87
repz ret
jmp fcn.1000a215

Function at 0x10011767
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1000c305
and dword [ebp - 4], 0
cmp dword [0x1001cc70], 0
mov ebx, eax
jne 0x10011818
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100118c9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100118c9
push eax
call fcn.1000c293
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1001cc70], eax
call esi
push eax
call fcn.1000c293
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1001cc74], eax
call esi
push eax
call fcn.1000c293
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1001cc78], eax
call esi
push eax
call fcn.1000c293
pop ecx
mov dword [0x1001cc80], eax
test eax, eax
je 0x10011818
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000c293
pop ecx
mov dword [0x1001cc7c], eax
mov eax, dword [0x1001cc7c]
cmp eax, ebx
je 0x10011870
cmp dword [0x1001cc80], ebx
je 0x10011870
push eax
call fcn.1000c30e
push dword [0x1001cc80]
mov esi, eax
call fcn.1000c30e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10011870
test edi, edi
je 0x10011870
call esi
test eax, eax
je 0x10011867
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10011867
test byte [ebp - 0xc], 1
jne 0x10011870
or dword [ebp + 0x10], 0x200000
jmp 0x100118a9
mov eax, dword [0x1001cc74]
cmp eax, ebx
je 0x100118a9
push eax
call fcn.1000c30e
pop ecx
test eax, eax
je 0x100118a9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100118a9
mov eax, dword [0x1001cc78]
cmp eax, ebx
je 0x100118a9
push eax
call fcn.1000c30e
pop ecx
test eax, eax
je 0x100118a9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1001cc70]
call fcn.1000c30e
pop ecx
test eax, eax
je 0x100118c9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100118cb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10013eb0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
jne 0x10013ec0
mov eax, 1
ret 0xc
mov ecx, dword [ecx + 4]
push 0
lea edx, [esp + 0xc]
push edx
push eax
mov eax, dword [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10013ef1
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x10013ef1
mov edx, dword [esp + 8]
mov dword [ecx], edx
ret 0xc

Function at 0x10013f00
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
jne 0x10013f10
mov eax, 1
ret 0xc
mov ecx, dword [ecx + 4]
push 0
lea edx, [esp + 0xc]
push edx
push eax
mov eax, dword [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10013f41
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x10013f41
mov edx, dword [esp + 8]
mov dword [ecx], edx
ret 0xc

Function at 0x100140c0
Capabilities:
Get file size

Disassembly:
mov ecx, dword [ecx + 4]
sub esp, 8
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 4]
add esp, 8
ret
Function at 0x406020
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
call fcn.004059e0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4060b8
push 0xaf
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.004039b0
push 0x57a5f0
push esi
push 0x57a5ec
push ebx
push str.fopen_
push 5
call fcn.00403c70
add esp, 0x2c
call fcn.00549249
cmp dword [eax], 2
jne 0x40609a
push 0xb2
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.004039b0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0xb4
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.004039b0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x5d02d8
call fcn.00405950
mov esi, eax
add esp, 4
test esi, esi
jne 0x4060da
push edi
call fcn.00545d43
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push esi
call fcn.00405290
push edi
push 1
push 0x6a
push esi
call fcn.00405680
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4070f0
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.005458d0
mov eax, dword [0x5d86f0]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x407155
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x407155
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.00546dec
add eax, 0x40
push eax
call fcn.0054a03a
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0054546b
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.00549f73
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4071e8
call fcn.00406fb0
test eax, eax
jle 0x4071e8
push esi
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x4071d2
push 0
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0054546b
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0054546b
add esp, 0x108
ret

Function at 0x407250
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
je 0x407272
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
sub esi, eax
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc eax
or cl, dl
dec edi
jne 0x407266
pop esi
movzx eax, cl
pop edi
ret
Function at 0x416110
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 4]
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x4161f3
push esi
mov esi, dword [esp + 0x14]
inc esi
lea ebx, [ebx]
movzx edx, byte [esi - 1]
cmp edi, 3
jl 0x41618d
movzx eax, byte [esi]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + 0x57cac0]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x57cac0]
mov byte [ecx + 1], al
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + 0x57cac0]
mov byte [ecx + 2], al
and edx, 0x3f
mov dl, byte [edx + 0x57cac0]
mov byte [ecx + 3], dl
jmp 0x4161de
shl edx, 0x10
cmp edi, 2
jne 0x41619d
movzx eax, byte [esi]
shl eax, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + 0x57cac0]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x57cac0]
mov byte [ecx + 1], al
cmp edi, 1
jne 0x4161ca
lea edx, [edi + 0x3c]
jmp 0x4161d7
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + 0x57cac0]
mov byte [ecx + 2], dl
mov byte [ecx + 3], 0x3d
sub edi, 3
add ecx, 4
add ebp, 4
add esi, 3
test edi, edi
jg 0x416130
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret
Function at 0x423320
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x423353
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret

Function at 0x423490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi + 0x1c0]
push edi
xor edi, edi
test ecx, ecx
je 0x4234b6
mov edx, dword [esi + 0x14c]
push edx
mov edx, dword [ebp + 8]
push ebx
push edx
push eax
push esi
call ecx
add esp, 0x14
pop edi
pop ebp
ret
test eax, eax
js 0x4234ed
cmp eax, 2
jg 0x4234ed
mov ecx, dword [esi + 0x148]
push ecx
push 1
lea edx, [eax + eax*2 + 0x57dc10]
push 2
push edx
call fcn.00546a7a
mov eax, dword [esi + 0x148]
mov ecx, dword [ebp + 8]
push eax
push 1
push ebx
push ecx
call fcn.00546a7a
add esp, 0x20
mov eax, edi
pop edi
pop ebp
ret

Function at 0x423a50
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebx + 0x348]
mov ecx, dword [ebx + eax*4 + 0x198]
push esi
lea esi, [eax + 0x1c]
shl esi, 4
add esi, ebx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [edx + 0x3c], 3
mov dword [ebp - 4], ecx
je 0x423afe
cmp dword [ebx + eax*4 + 0x1b0], 0x4237f0
jne 0x423afe
cmp dword [esi], 0
je 0x423a94
test edi, edi
je 0x423afe
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
call fcn.00416810
add esp, 0x14
cmp eax, 0xffffffff
je 0x423afe
test al, 1
je 0x423afe
cmp dword [esi], 0
jne 0x423adb
mov eax, dword [ebx]
mov eax, dword [eax + 0x364]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x5d0370]
mov edi, dword [esi + 4]
xor ecx, ecx
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
cmp eax, ecx
je 0x423afb
mov ecx, dword [esi]
add ecx, dword [esi + 8]
mov edx, dword [ebp - 4]
push 0
push edi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x423afe
add dword [esi + 8], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 4], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x438f40
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x57de0c
push ecx
call fcn.004235e0
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.00438050
test eax, eax
jne 0x438f74
mov eax, esi
pop ebp
jmp fcn.004384e0
pop ebp
ret
Function at 0x439370
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x5d86f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
push esi
mov esi, dword [eax + 0x518]
push edi
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [ebp - 0x84]
push ecx
mov ecx, dword [esi + 0x14]
push 0
add edx, 4
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x439404
mov edx, dword [ebp - 0x88]
push edx
lea eax, [ebp - 0x84]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.00543d00
mov edx, dword [ebp - 0x88]
add esp, 0xc
mov dword [esi + 0x148], edx
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x439437
push str.Received_too_short_packet
push ebx
call fcn.00423660
add esp, 8
mov dword [esi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054546b
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x15c]
call fcn.00438200
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x439454
jmp dword [eax*4 + 0x439590]
cmp edx, 4
jle case.0x439454.4
lea eax, [esi + 0x15c]
call fcn.00438210
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne case.0x439454.4
mov eax, dword [ebp - 0x8c]
add edx, 0xfffffffc
push edx
mov edx, dword [esi + 0x15c]
add edx, 4
push edx
push 1
push eax
call fcn.00423a10
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4394c1
mov ecx, 5
mov eax, esi
call fcn.004392f0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054546b
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x90], eax
adc dword [ebx + 0x94], edx
mov ecx, dword [ebx + 0x94]
mov edx, dword [ebx + 0x90]
push ecx
push edx
push ebx
call fcn.00430780
jmp 0x439551
lea eax, [esi + 0x15c]
call fcn.00438210
mov ecx, dword [esi + 0x15c]
add ecx, 4
push ecx
movzx eax, ax
push 0x57de0c
push ebx
mov dword [esi + 8], eax
call fcn.004235e0
jmp 0x439551
add edx, 0xfffffffe
push edx
mov edx, dword [esi + 0x15c]
add edx, 2
push edx
push esi
call fcn.004382a0
add esp, 0xc
test eax, eax
je case.0x439454.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054546b
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x5c1ef4
push ebx
call fcn.00423660
add esp, 0xc
mov eax, dword [ebp - 0x8c]
push eax
call fcn.00430960
add esp, 4
test eax, eax
je 0x439424
mov ecx, 5
mov eax, esi
call fcn.004392f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x2a
pop ebx
call fcn.0054546b
mov esp, ebp
pop ebp
ret