joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5150d0
Capabilities:
Encrypt data using rc6

Disassembly:
push 0xffffffffffffffff
push 0x608b78
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6a1450]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
test edi, edi
je 0x515102
lea ebx, [edi + 4]
jmp 0x515104
xor ebx, ebx
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x14]
push edx
push 0x6b4bbc
push str.Rounds
mov eax, dword [ecx]
mov dword [esp + 0x20], 0x14
call dword [eax + 4]
mov esi, dword [esp + 0x14]
push ebx
push esi
call fcn.004f2db0
lea eax, [esi*2 + 4]
mov dword [edi + 0x10], esi
push eax
lea ecx, [edi + 0x14]
call fcn.004f1ad0
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x14]
add ecx, 3
mov dword [esp + 0x40], 1
shr ecx, 2
lea eax, [esp + 0x40]
cmp ecx, 1
mov dword [esp + 0x14], ecx
cmovae eax, edx
mov ebp, dword [eax]
push ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
call fcn.004e1fd0
add esp, 4
test ebp, ebp
jne 0x515181
xor ebx, ebx
jmp 0x515193
lea eax, [ebp*4]
push eax
call fcn.004dbaf0
add esp, 4
mov ebx, eax
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x3c]
lea esi, [ebp*4]
push eax
mov dword [esp + 0x34], 0
push dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
push esi
push ebx
mov dword [esp + 0x50], 4
call fcn.005cd1af
mov eax, dword [esp + 0x4c]
sub esi, eax
push esi
add eax, ebx
push 0
push eax
call fcn.005cd520
add esp, 0x1c
lea edx, [esp + 0x40]
lea ecx, [esp + 0x14]
call fcn.004e6e20
mov eax, dword [edi + 0x1c]
mov dword [eax], 0xb7e15163
mov eax, 1
cmp dword [edi + 0x18], eax
jbe 0x51520d
mov ecx, dword [edi + 0x1c]
lea edx, [ecx + eax*4]
inc eax
mov ecx, dword [edx - 4]
sub ecx, 0x61c88647
mov dword [edx], ecx
cmp eax, dword [edi + 0x18]
jb 0x5151f6
mov eax, dword [edi + 0x18]
lea ecx, [esp + 0x18]
cmp eax, ebp
mov dword [esp + 0x38], eax
lea edx, [esp + 0x38]
mov dword [esp + 0x3c], 0
cmovae ecx, edx
mov dword [esp + 0x40], 0
xor esi, esi
mov eax, dword [ecx]
lea eax, [eax + eax*2]
mov dword [esp + 0x38], eax
test eax, eax
je 0x51528b
xor edx, edx
mov eax, esi
div dword [edi + 0x18]
mov eax, dword [edi + 0x1c]
lea ecx, [eax + edx*4]
xor edx, edx
mov eax, dword [ecx]
add eax, dword [esp + 0x40]
add eax, dword [esp + 0x3c]
rol eax, 3
mov dword [ecx], eax
mov dword [esp + 0x3c], eax
mov eax, esi
div ebp
mov eax, dword [ebx + edx*4]
lea edx, [ebx + edx*4]
add eax, dword [esp + 0x40]
inc esi
mov ecx, dword [esp + 0x40]
add ecx, dword [esp + 0x3c]
add eax, dword [esp + 0x3c]
rol eax, cl
mov dword [esp + 0x40], eax
mov dword [edx], eax
cmp esi, dword [esp + 0x38]
jb 0x515240
xor eax, eax
mov edi, ebx
mov ecx, ebp
rep stosd dword es:[edi], eax
push ebx
call fcn.005ca27a
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
Function at 0x5152c0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x18]
push ebp
mov edx, dword [eax]
mov ebp, dword [eax + 8]
push esi
mov esi, dword [ebx]
add esi, dword [eax + 4]
push edi
mov edi, dword [ebx + 4]
add ebx, 8
add edi, dword [eax + 0xc]
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
test eax, eax
je 0x515330
mov edi, edi
lea ecx, [esi*2 + 1]
imul ecx, esi
lea edx, [edi*2 + 1]
imul edx, edi
rol ecx, 5
mov eax, ecx
rol edx, 5
xor eax, dword [esp + 0x18]
mov dword [esp + 0x18], esi
mov esi, edx
xor esi, ebp
mov ebp, edi
rol esi, cl
mov edi, eax
add esi, dword [ebx + 4]
mov ecx, edx
rol edi, cl
add edi, dword [ebx]
add ebx, 8
dec dword [esp + 0x10]
jne 0x5152f0
mov edx, dword [ebx]
add ebp, dword [ebx + 4]
mov eax, dword [esp + 0x1c]
add edx, dword [esp + 0x18]
test eax, eax
je 0x515345
mov ecx, dword [eax]
jmp 0x515347
xor ecx, ecx
xor ecx, edx
mov edx, dword [esp + 0x20]
mov dword [edx], ecx
test eax, eax
je 0x51535e
add eax, 4
test eax, eax
je 0x51535e
mov ecx, dword [eax]
jmp 0x515360
xor ecx, ecx
xor ecx, esi
mov dword [edx + 4], ecx
test eax, eax
je 0x515374
add eax, 4
test eax, eax
je 0x515374
mov ecx, dword [eax]
jmp 0x515376
xor ecx, ecx
xor ecx, ebp
mov dword [edx + 8], ecx
test eax, eax
je 0x515395
add eax, 4
test eax, eax
je 0x515395
mov eax, dword [eax]
xor eax, edi
pop edi
pop esi
pop ebp
mov dword [edx + 0xc], eax
pop ebx
pop ecx
ret 0xc
xor eax, eax
xor eax, edi
pop edi
pop esi
pop ebp
mov dword [edx + 0xc], eax
pop ebx
pop ecx
ret 0xc
Function at 0x5186b0
Capabilities:
Encrypt data using rc6

Disassembly:
push 0xffffffffffffffff
push 0x608b78
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6a1450]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
test edi, edi
je 0x5186e2
lea ebx, [edi + 4]
jmp 0x5186e4
xor ebx, ebx
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x14]
push edx
push 0x6b4bbc
push str.Rounds
mov eax, dword [ecx]
mov dword [esp + 0x20], 0x10
call dword [eax + 4]
mov esi, dword [esp + 0x14]
push ebx
push esi
call fcn.004f2db0
lea eax, [esi*2 + 2]
mov dword [edi + 0x10], esi
push eax
lea ecx, [edi + 0x14]
call fcn.004f1ad0
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x14]
add ecx, 3
mov dword [esp + 0x40], 1
shr ecx, 2
lea eax, [esp + 0x40]
cmp ecx, 1
mov dword [esp + 0x14], ecx
cmovae eax, edx
mov ebp, dword [eax]
push ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
call fcn.004e1fd0
add esp, 4
test ebp, ebp
jne 0x518761
xor ebx, ebx
jmp 0x518773
lea eax, [ebp*4]
push eax
call fcn.004dbaf0
add esp, 4
mov ebx, eax
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x3c]
lea esi, [ebp*4]
push eax
mov dword [esp + 0x34], 0
push dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
push esi
push ebx
mov dword [esp + 0x50], 4
call fcn.005cd1af
mov eax, dword [esp + 0x4c]
sub esi, eax
push esi
add eax, ebx
push 0
push eax
call fcn.005cd520
add esp, 0x1c
lea edx, [esp + 0x40]
lea ecx, [esp + 0x14]
call fcn.004e6e20
mov eax, dword [edi + 0x1c]
mov dword [eax], 0xb7e15163
mov eax, 1
cmp dword [edi + 0x18], eax
jbe 0x5187ed
mov ecx, dword [edi + 0x1c]
lea edx, [ecx + eax*4]
inc eax
mov ecx, dword [edx - 4]
sub ecx, 0x61c88647
mov dword [edx], ecx
cmp eax, dword [edi + 0x18]
jb 0x5187d6
mov eax, dword [edi + 0x18]
lea ecx, [esp + 0x18]
cmp eax, ebp
mov dword [esp + 0x38], eax
lea edx, [esp + 0x38]
mov dword [esp + 0x3c], 0
cmovae ecx, edx
mov dword [esp + 0x40], 0
xor esi, esi
mov eax, dword [ecx]
lea eax, [eax + eax*2]
mov dword [esp + 0x38], eax
test eax, eax
je 0x51886b
xor edx, edx
mov eax, esi
div dword [edi + 0x18]
mov eax, dword [edi + 0x1c]
lea ecx, [eax + edx*4]
xor edx, edx
mov eax, dword [ecx]
add eax, dword [esp + 0x40]
add eax, dword [esp + 0x3c]
rol eax, 3
mov dword [ecx], eax
mov dword [esp + 0x3c], eax
mov eax, esi
div ebp
mov eax, dword [ebx + edx*4]
lea edx, [ebx + edx*4]
add eax, dword [esp + 0x40]
inc esi
mov ecx, dword [esp + 0x40]
add ecx, dword [esp + 0x3c]
add eax, dword [esp + 0x3c]
rol eax, cl
mov dword [esp + 0x40], eax
mov dword [edx], eax
cmp esi, dword [esp + 0x38]
jb 0x518820
xor eax, eax
mov edi, ebx
mov ecx, ebp
rep stosd dword es:[edi], eax
push ebx
call fcn.005ca27a
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
Function at 0x5188a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [ecx + 0x18]
push ebp
mov edx, dword [eax + 4]
mov ebp, dword [ecx + 0xc]
push esi
mov esi, dword [ebx]
add esi, dword [eax]
mov eax, dword [ebx + 4]
push edi
add eax, edx
xor edi, edi
test ebp, ebp
je 0x5188d9
xor esi, eax
mov ecx, eax
rol esi, cl
add esi, dword [ebx + edi*8 + 8]
xor eax, esi
mov ecx, esi
rol eax, cl
add eax, dword [ebx + edi*8 + 0xc]
inc edi
cmp edi, ebp
jb 0x5188c0
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x5188e5
mov edx, dword [ecx]
jmp 0x5188e7
xor edx, edx
xor edx, esi
mov esi, dword [esp + 0x1c]
mov dword [esi], edx
test ecx, ecx
je 0x518908
add ecx, 4
test ecx, ecx
je 0x518908
mov ecx, dword [ecx]
pop edi
xor ecx, eax
mov dword [esi + 4], ecx
pop esi
pop ebp
pop ebx
ret 0xc
xor ecx, ecx
pop edi
xor ecx, eax
mov dword [esi + 4], ecx
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x518e40
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [ecx + 0x118]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [ecx + 0x11c]
push edi
push ebx
push dword [esp + 0x1c]
lea edi, [eax*4]
mov dword [esp + 0x18], ebx
push edi
push esi
mov dword [esp + 0x2c], 4
call fcn.005cd1af
sub edi, ebx
lea eax, [esi + ebx]
push edi
push 0
push eax
call fcn.005cd520
lea edx, [esp + 0x38]
lea ecx, [esp + 0x2c]
call fcn.004e6e20
push eax
mov edx, esi
mov ecx, esi
call fcn.004e9050
add esp, 0x20
mov dword [esp + 0x1c], 0
mov ecx, dword [esi + 4]
mov edx, ecx
mov edi, dword [esi + 0x38]
mov eax, ecx
ror edx, 0x12
shr ecx, 3
ror eax, 7
xor edx, eax
mov eax, edi
xor edx, ecx
ror eax, 0x11
mov ecx, edi
shr edi, 0xa
ror ecx, 0x13
xor ecx, eax
xor ecx, edi
add edx, ecx
mov ecx, dword [esp + 0x1c]
add edx, dword [esi + 0x24]
add edx, dword [esi]
mov dword [esi + 0x40], edx
mov eax, dword [ecx + 0x6489c0]
add ecx, 4
add dword [esi], eax
add esi, 4
mov dword [esp + 0x1c], ecx
cmp ecx, 0xc0
jb 0x518ea4
mov ecx, 0xc8
lea esp, [esp]
mov eax, dword [ecx + 0x6489b8]
lea esi, [esi + 0x10]
add dword [esi - 0x10], eax
mov eax, dword [ecx + 0x6489bc]
add dword [esi - 0xc], eax
mov eax, dword [ecx + 0x6489c0]
add dword [esi - 8], eax
mov eax, dword [ecx + 0x6489c4]
add ecx, 0x10
add dword [esi - 4], eax
cmp ecx, 0x108
jb 0x518f00
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc

Function at 0x5199f0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x6b7284]
test eax, eax
je 0x519a34
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x6b7284]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x519a1e
push dword [0x6b7284]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x6b7288]
mov dword [0x6b7284], 0
call dword [sym.imp.USER32.dll_SetFocus]
ret
Function at 0x52b570
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x52b619
cmp byte [esi], 0
je 0x52b619
mov ecx, esi
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x52b590
sub ecx, edx
cmp ecx, 3
jb 0x52b5a7
cmp byte [esi + 1], 0x3a
jne 0x52b5a7
add esi, 3
mov ecx, esi
push ebx
push edi
mov edi, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x52b5b0
sub ecx, edx
lea eax, [ecx + 1]
push eax
mov dword [ebp - 4], eax
call fcn.005c8ca5
add esp, 4
mov ebx, eax
cmp byte [esi], 0
je 0x52b60e
xor eax, eax
mov dword [ebp + 8], eax
mov cl, byte [edi]
cmp cl, 0x2f
je 0x52b5e0
cmp cl, 0x5c
jne 0x52b604
push dword [ebp - 4]
push 0
push ebx
call fcn.005cd520
push dword [ebp + 8]
push esi
push ebx
call fcn.005ca040
add esp, 0x18
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp + 8]
inc edi
inc eax
mov dword [ebp + 8], eax
cmp byte [edi], 0
jne 0x52b5d4
push ebx
call fcn.0045d2b0
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x52ba80
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
or eax, 0xffffffff
push edi
mov edi, dword [ebp + 0xc]
cmp edi, 0x10
jb 0x52bb1a
mov ecx, edi
shr ecx, 4
mov dword [ebp + 0xc], ecx
push ebx
lea edx, [esi + 1]
mov ebx, 4
jmp 0x52bab0
movsx ecx, byte [edx - 1]
lea edx, [edx + 4]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6892a8]
movsx ecx, byte [edx - 4]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6892a8]
movsx ecx, byte [edx - 3]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6892a8]
movsx ecx, byte [edx - 2]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6892a8]
dec ebx
jne 0x52bab0
add esi, 0x10
sub edi, 0x10
dec dword [ebp + 0xc]
jne 0x52baa0
pop ebx
test edi, edi
je 0x52bb3b
mov edi, edi
movsx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6892a8]
dec edi
jne 0x52bb20
pop edi
not eax
pop esi
pop ebp
ret
Function at 0x52bea0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x52becb
xor eax, eax
pop edi
pop ebp
ret
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x52bef0
Capabilities:
Get file size
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 8]
push 0
push edi
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
xor eax, eax
test esi, esi
je 0x52bf67
xor edx, edx
div ebx
mov ecx, eax
imul ecx, ebx
lea eax, [edx + edi]
push eax
push ecx
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
push edi
push ebx
call fcn.0052ba80
add esp, 8
mov edi, eax
test ebx, ebx
je 0x52bf5e
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x52c8f0
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x20
mov edx, edi
mov ecx, edi
shl ecx, 4
dec ebx
shr edx, 5
xor edx, ecx
mov dword [ebp + 0xc], ebx
mov ebx, dword [ebp + 0x10]
mov ecx, eax
and ecx, 3
add edx, edi
mov ecx, dword [ebx + ecx*4]
add ecx, eax
sub eax, 0x61c88647
xor edx, ecx
add esi, edx
mov edx, esi
mov ecx, esi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
shr ecx, 0xb
add edx, esi
and ecx, 3
mov ecx, dword [ebx + ecx*4]
mov ebx, dword [ebp + 0xc]
add ecx, eax
xor edx, ecx
add edi, edx
test ebx, ebx
jne 0x52c903
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov dword [eax + 4], edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x52c960
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, 0xc6ef3720
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x20
mov edx, esi
mov ecx, esi
shl ecx, 4
dec ebx
shr edx, 5
xor edx, ecx
mov dword [ebp + 0xc], ebx
mov ebx, dword [ebp + 0x10]
mov ecx, eax
shr ecx, 0xb
add edx, esi
and ecx, 3
mov ecx, dword [ebx + ecx*4]
add ecx, eax
add eax, 0x61c88647
xor edx, ecx
sub edi, edx
mov edx, edi
mov ecx, edi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
and ecx, 3
add edx, edi
mov ecx, dword [ebx + ecx*4]
mov ebx, dword [ebp + 0xc]
add ecx, eax
xor edx, ecx
sub esi, edx
test ebx, ebx
jne 0x52c976
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov dword [eax + 4], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x52d680
Capabilities:
Get system information on windows
Print debug messages
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x24
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x130], ecx
test eax, eax
jne 0x52d69f
mov eax, dword [edi + 0x114]
mov dword [edi + 0x134], eax
add eax, ecx
cmp eax, dword [edi + 0x114]
jbe 0x52d6b8
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push esi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [edi + 0x130]
xor edx, edx
mov eax, esi
mov ecx, dword [edi + 0x134]
div dword [ebp - 8]
push 0
mov ebx, eax
imul ebx, dword [ebp - 8]
lea eax, [ecx + edx]
mov dword [ebp + 0xc], eax
mov eax, esi
sub eax, ebx
mov dword [ebp + 0x10], eax
lea eax, [esi + ecx]
push eax
push 0
push 2
push 0
push dword [edi + 0x110]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [edi + 0x12c], eax
test eax, eax
jne 0x52d722
push str.CMappedFile::Map__m_hFM_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0xc]
push ebx
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 0x138], eax
test eax, eax
jne 0x52d75a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CMappedFile::Map__m_lpMapData__lu
call fcn.0052ab40
add esp, 8
xor eax, eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
add ecx, eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x13c], ecx
mov dword [eax], ecx
mov ecx, edi
push dword [edi + 0x13c]
mov dword [edi + 0x128], 0
push dword [edi + 0x134]
call fcn.0052d660
mov eax, dword [edi + 0x134]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5301e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
call fcn.00530280
push 0x104
push dword [ebp + 8]
lea eax, [esi + 8]
push eax
call fcn.005ca040
mov edi, dword [ebp + 0xc]
add esp, 0xc
mov edx, 1
cmp edi, 2
jne 0x530217
mov ecx, 0xc0000000
lea edx, [edi + 1]
jmp 0x53021c
mov ecx, closesocket
xor eax, eax
cmp edi, 1
push 0
push 0x80
setne al
add eax, 3
push eax
push 0
push edx
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x110], eax
cmp eax, 0xffffffff
je 0x530264
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 4], edi
mov dword [esi + 0x114], eax
mov eax, 1
pop edi
pop esi
pop ebp
ret 8
pop edi
mov dword [esi + 0x110], 0
xor eax, eax
pop esi
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60a011
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6a1450]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 0x4c]
mov dword [edi], vtable.CNetworkStream.0
call fcn.005f4410
lea ecx, [edi + 0x60]
mov dword [ebp - 4], 0
call fcn.00556d20
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
push 0x8000
lea ecx, [edi + 0x78]
mov byte [ebp - 4], 2
mov dword [edi + 0x5c], 0xffffffff
mov byte [edi + 0x48], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x70], 0
mov byte [edi + 0x74], 0
call fcn.0046ad40
push 0x8000
push 0x6897c0
push dword [edi + 0x78]
call fcn.005cda00
add esp, 0xc
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x538e20
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
call fcn.00538da0
mov eax, dword [ebp + 8]
lea esi, [edi + 0x60]
push 0
push 1
push 2
movdqu xmm0, xmmword [eax]
movdqu xmmword [esi], xmm0
call sub.WS2_32.dll_socket
mov dword [edi + 0x5c], eax
cmp eax, 0xffffffff
je 0x538e93
lea ecx, [ebp - 4]
mov dword [ebp - 4], 1
push ecx
push 0x8004667e
push eax
call sub.WS2_32.dll_ioctlsocket
mov ecx, esi
call fcn.004e0140
push eax
push esi
push dword [edi + 0x5c]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x538eab
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x538eab
push str.error___WSAEWOULDBLOCK
call fcn.0052ad10
add esp, 4
mov ecx, edi
call fcn.00538da0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
push 0
call fcn.005cf062
mov ecx, eax
add esp, 4
mov eax, dword [ebp + 0xc]
mov esi, edx
cdq
add ecx, eax
mov al, 1
mov dword [edi + 8], ecx
adc esi, edx
mov dword [edi + 0xc], esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x5390c0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x6a1450]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x5c]
cmp eax, 0xffffffff
je 0x539208
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x214]
push eax
push 0
lea eax, [ebp - 0x108]
mov dword [ebp - 0x20c], 1
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x108], 1
push eax
push 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
je 0x539208
cmp byte [esi + 0x48], 0
lea eax, [ebp - 0x108]
push eax
push dword [esi + 0x5c]
jne 0x5391a7
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x539170
mov eax, dword [esi]
mov ecx, esi
mov byte [esi + 0x48], 1
call dword [eax + 4]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c9914
mov esp, ebp
pop ebp
ret
push 0
call fcn.005cf062
add esp, 4
cmp edx, dword [esi + 0xc]
jl 0x539208
jg 0x53918a
cmp eax, dword [esi + 8]
jbe 0x539208
mov ecx, esi
call fcn.00538da0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c9914
mov esp, ebp
pop ebp
ret
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x5391cf
mov eax, dword [esi + 0x34]
cmp eax, dword [esi + 0x38]
jle 0x5391cf
mov ecx, esi
call fcn.005394f0
test al, al
jne 0x5391cf
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x5391fa
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x5c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x5391ed
mov ecx, esi
call fcn.00539450
test al, al
je 0x5391fa
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x14]
call eax
test al, al
jne 0x539208
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov ecx, esi
call fcn.00538da0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005c9914
mov esp, ebp
pop ebp
ret
Function at 0x539450
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, ecx
push edi
mov edx, dword [esi + 0x28]
test edx, edx
jle 0x539482
mov eax, dword [esi + 0x24]
sub eax, edx
test eax, eax
jle 0x539475
mov ecx, dword [esi + 0x1c]
push eax
lea eax, [ecx + edx]
push eax
push ecx
call fcn.005c9980
add esp, 0xc
mov eax, dword [esi + 0x28]
sub dword [esi + 0x24], eax
mov dword [esi + 0x28], 0
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
sub eax, ecx
test eax, eax
jle 0x5394e0
push 0
push eax
mov eax, dword [esi + 0x1c]
add eax, ecx
push eax
push dword [esi + 0x5c]
call sub.WS2_32.dll_recv
mov edi, eax
test edi, edi
jns 0x5394b6
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x5394b8
pop edi
xor al, al
pop esi
ret
je 0x5394b1
mov ecx, esi
call fcn.0045e4c0
test al, al
je 0x5394dd
mov edx, dword [esi + 0x1c]
add edx, dword [esi + 0x24]
cmp byte [esi + 0x4c], 0
je 0x5394dd
mov ecx, dword [esi + 0x54]
add ecx, 4
push edi
push edx
push edx
mov eax, dword [ecx]
call dword [eax + 0x1c]
add dword [esi + 0x24], edi
pop edi
mov al, 1
pop esi
ret

Function at 0x5394f0
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.00539400
mov edi, eax
test edi, edi
jle 0x539549
mov ecx, esi
call fcn.0045e4c0
test al, al
je 0x539524
mov edx, dword [esi + 0x38]
add edx, dword [esi + 0x2c]
cmp byte [esi + 0x4c], 0
je 0x539524
mov ecx, dword [esi + 0x50]
add ecx, 4
push edi
push edx
push edx
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [esi + 0x2c]
add eax, dword [esi + 0x38]
push 0
push edi
push eax
push dword [esi + 0x5c]
call sub.WS2_32.dll_send
test eax, eax
jns 0x53953f
pop edi
xor al, al
pop esi
ret
add dword [esi + 0x38], eax
mov ecx, esi
call fcn.00539410
pop edi
mov al, 1
pop esi
ret