joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b55d0
Capabilities:
Hash data with md5

Disassembly:
mov eax, ecx
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x4b5740
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
xor eax, eax
mov byte [esi + 0x68], al
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
mov ecx, esi
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
call fcn.0044cf20
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x4b5790
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xb8], edi
cmp eax, edi
ja 0x4b57c9
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4b57c0
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0xb4]
mov byte [ebp - 0x4c], 0
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xb4], 0x67452301
mov dword [ebp - 0xb0], 0xefcdab89
mov dword [ebp - 0xac], 0x98badcfe
mov dword [ebp - 0xa8], 0x10325476
call fcn.0044cf20
cmp byte [ebp - 0x4c], 0
jne 0x4b5823
lea ecx, [ebp - 0xb4]
mov byte [ebp - 0x4c], 1
call fcn.004b5600
push 0x40
lea ecx, [ebp - 0x46]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x48], ax
call fcn.004ba010
add esp, 0xc
xor esi, esi
lea edi, [ebp - 0x48]
lea ecx, [ecx]
movzx edx, byte [ebp + esi - 0x5c]
push edx
push 0x54a928
push 3
push edi
call fcn.004bb11c
inc esi
add esp, 0x10
add edi, 4
cmp esi, 0x10
jl 0x4b5840
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
lea eax, [ebp - 0x48]
lea edx, [eax + 2]
jmp 0x4b5880
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b5880
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x48]
push ecx
mov ecx, ebx
call fcn.00402460
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret

Function at 0x4b5d20
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x4b5d32
mov al, 1
pop edi
pop ebp
ret 4
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
jb 0x4b5d3d
mov eax, dword [eax]
push esi
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov esi, eax
test esi, esi
je 0x4b5d72
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x4b5d7a
mov eax, dword [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x4b5d7a
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
xor al, al
pop edi
pop ebp
ret 4
mov dword [edi], esi
pop esi
mov al, 1
pop edi
pop ebp
ret 4
Function at 0x4b5e10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525c08
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, 7
push esi
xor eax, eax
xor edi, edi
push str.InfoHDt
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], ax
call fcn.00402460
xor ecx, ecx
push 0x23
mov word [ebp - 0x2c], cx
push str.SoftwareKingsoftOffice6.0Common
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
call fcn.00402460
mov ecx, dword [ebp - 0x48]
mov ebx, 8
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], 4
cmp dword [ebp - 0x34], ebx
jae 0x4b5e94
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x4b5e9f
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x50]
push edx
lea edx, [ebp - 0x4c]
push edx
push edi
push ecx
push eax
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov esi, eax
neg esi
sbb esi, esi
not esi
and esi, dword [ebp - 0x4c]
cmp dword [ebp - 0x18], ebx
jb 0x4b5ed1
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b9008
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x34], ebx
jb 0x4b5ef2
mov edx, dword [ebp - 0x48]
push edx
call fcn.004b9008
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret

Function at 0x4b5f10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
mov dword [ebp - 0x210], 0
push ecx
mov word [ebp - 0x20c], ax
call fcn.004ba010
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x20c]
push eax
push 0
push str.InfoHD
push str.SoftwareKingsoftOffice6.0Common
push 0x80000001
mov dword [ebp - 0x210], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
test eax, eax
je 0x4b5fa6
xor ecx, ecx
mov word [esi], cx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x210]
shr eax, 1
dec eax
push eax
lea eax, [ebp - 0x20c]
xor edx, edx
push eax
mov ecx, esi
mov word [esi], dx
call fcn.00402460
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
Function at 0x4b6df0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x531d62
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x4c], eax
cmp byte [0x5951e0], al
je 0x4b6e5b
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0xf
mov byte [edi], al
mov eax, 0x5951e0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4b6e40
sub eax, edx
push eax
push 0x5951e0
mov ecx, edi
call fcn.0040bcb0
jmp 0x4b6f46
push eax
push eax
push 0x5951e0
push 0x4b6d10
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ebx, eax
push 0xbb8
push ebx
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov esi, eax
neg esi
sbb esi, esi
push ebx
inc esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
cmp esi, eax
je 0x4b6ece
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x48], al
mov eax, 0x5951e0
mov dword [ebp - 0x34], 0xf
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4b6ea6
sub eax, edx
push eax
push 0x5951e0
lea ecx, [ebp - 0x48]
call fcn.0040bcb0
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 0
mov ebx, 2
jmp 0x4b6eea
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 1
mov ebx, 4
xor esi, esi
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], esi
push eax
mov ecx, edi
mov dword [ebp - 0x4c], ebx
mov byte [edi], 0
call fcn.0040c2a0
or ebx, 1
test bl, 4
je 0x4b6f2f
and ebx, 0xfffffffb
cmp dword [ebp - 0x18], 0x10
jb 0x4b6f21
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b9008
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
test bl, 2
je 0x4b6f46
cmp dword [ebp - 0x34], 0x10
jb 0x4b6f46
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b9008
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret

Function at 0x4b7770
Capabilities:
Create thread
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemTime]
movzx ecx, word [ebp - 0xe]
push 4
lea edx, [ebp - 0x18]
push edx
push 4
push str.InfoHDt
push str.SoftwareKingsoftOffice6.0Common
push 0x80000001
mov dword [ebp - 0x18], ecx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp dword [esi], 0
jne 0x4b77dd
push 0
push 0
push 0
push 0x4b7600
push 0
push 0
call fcn.004bf32d
add esp, 0x18
mov dword [esi], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret

Function at 0x4b9ff3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x590cc0]
jne 0x4b9ffd
repz ret
jmp fcn.004c4d78
Function at 0x4d43c4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004c28e4
and dword [ebp - 0x14], 0
cmp dword [0x596628], 0
mov dword [ebp - 0x18], eax
jne 0x4d4477
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4d451f
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x56270c
push ebx
call edi
test eax, eax
je 0x4d451f
mov esi, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push eax
call esi
push 0x5626fc
push ebx
mov dword [0x596628], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x59662c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x596630], eax
call edi
push eax
call esi
mov dword [0x596638], eax
test eax, eax
je 0x4d4477
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x596634], eax
mov eax, dword [0x596634]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, ecx
je 0x4d44d0
cmp dword [0x596638], ecx
je 0x4d44d0
push eax
call esi
push dword [0x596638]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4d44d0
test ebx, ebx
je 0x4d44d0
call edi
test eax, eax
je 0x4d44c7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4d44c7
test byte [ebp - 8], 1
jne 0x4d44d0
or dword [ebp + 0x10], 0x200000
jmp 0x4d4503
mov eax, dword [0x59662c]
cmp eax, dword [ebp - 0x18]
je 0x4d4503
push eax
call esi
test eax, eax
je 0x4d4503
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4d4503
mov eax, dword [0x596630]
cmp eax, dword [ebp - 0x18]
je 0x4d4503
push eax
call esi
test eax, eax
je 0x4d4503
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x596628]
call esi
test eax, eax
je 0x4d451f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4d4521
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b9ff3
leave
ret
Function at 0x4da8a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x5966f4], 0
push esi
push edi
jne 0x4da816
call fcn.004da782
test eax, eax
je 0x4da85b
mov eax, dword [0x5966f4]
cmp eax, 1
jne 0x4da837
push 0xd
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
test eax, eax
je 0x4da85b
jmp 0x4da89d
mov edi, dword [sym.imp.KERNEL32.DLL_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x4da89d
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4da85f
xor eax, eax
jmp 0x4da89d
mov eax, dword [esi]
push dword [0x5966f4]
call edi
mov edi, eax
test edi, edi
je 0x4da881
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
mov eax, edi
jmp 0x4da89d
lea edi, [esi + 0xff0]
push esi
push dword [0x5966f4]
call dword [sym.imp.KERNEL32.DLL_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x4da887
mov eax, esi
pop edi
pop esi
ret
jmp 0x4da802
Function at 0x4dfc90
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x4dfddb
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4dfddb
lea ecx, [edi + 2]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
push ebx
mov ebx, dword [ebp + 0x10]
add edx, edx
add edx, edx
push edx
mov ecx, ebx
call fcn.0041f160
mov ecx, dword [ebx]
mov dword [ebp - 8], edi
cmp edi, 3
jb 0x4dfd62
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
mov dword [ebp - 0xc], edx
mov al, byte [esi]
mov dl, al
shr dl, 2
mov byte [ebp - 4], dl
mov dl, byte [esi + 1]
mov bl, dl
and al, 3
and dl, 0xf
shl al, 4
add dl, dl
add dl, dl
shr bl, 4
or bl, al
mov al, byte [esi + 2]
shr al, 6
or al, dl
mov dl, byte [esi + 2]
and dl, 0x3f
mov byte [ebp - 1], dl
movsx edx, byte [ebp - 4]
movzx edx, byte [edx + 0x563770]
mov edi, ecx
mov byte [edi], dl
mov edi, dword [ebp - 8]
movsx edx, bl
movzx edx, byte [edx + 0x563770]
mov byte [ecx + 1], dl
movsx edx, byte [ebp - 1]
movsx eax, al
movzx eax, byte [eax + 0x563770]
mov byte [ecx + 2], al
movzx edx, byte [edx + 0x563770]
lea eax, [ecx + 3]
sub edi, 3
add esi, 3
add ecx, 4
dec dword [ebp - 0xc]
mov byte [eax], dl
mov dword [ebp - 8], edi
jne 0x4dfce4
test edi, edi
je 0x4dfdd2
xor eax, eax
mov word [ebp + 9], ax
mov al, byte [esi]
cmp edi, 1
jbe 0x4dfd78
mov dl, byte [esi + 1]
jmp 0x4dfd7b
mov dl, byte [ebp + 9]
mov bl, al
shr bl, 2
and al, 3
mov byte [ebp - 4], bl
mov bl, dl
shl al, 4
shr bl, 4
or bl, al
mov al, byte [ebp + 0xa]
and dl, 0xf
add dl, dl
shr al, 6
add dl, dl
or al, dl
cmp edi, 1
ja 0x4dfda5
mov al, 0x40
movsx edx, byte [ebp - 4]
movzx edx, byte [edx + 0x563770]
mov esi, ecx
mov byte [esi], dl
movsx edx, bl
movzx edx, byte [edx + 0x563770]
movsx eax, al
mov byte [ecx + 1], dl
movzx edx, byte [eax + 0x563770]
mov byte [ecx + 2], dl
mov byte [ecx + 3], 0x3d
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4e2d00
Capabilities:
Check for software breakpoints
Encrypt data using chaskey
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
jne 0x4e2d0f
lea eax, [edx + 0x2b]
pop ebp
ret
lea ecx, [ebp + 0x10]
mov eax, dword [ebp + 0xc]
pop ebp
jmp fcn.004e01f0
Function at 0x4e40b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push str.kernel32
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x4e40d4
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push str.LoadLibraryExA
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ebx, dword [ebp + 8]
mov edi, eax
push 0x5639ec
push ebx
mov dword [ebp - 8], edi
call fcn.00521ffe
add esp, 8
test eax, eax
je 0x4e4122
test edi, edi
je 0x4e4111
push 8
push 0
push ebx
call edi
pop edi
pop ebx
mov dword [ebp - 4], eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
pop edi
pop ebx
mov dword [ebp - 4], eax
pop esi
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4e414a
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x4e414a
push 0x800
push 0
push ebx
call edi
pop edi
pop ebx
mov dword [ebp - 4], eax
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov edi, eax
test edi, edi
je 0x4e41e6
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e4163
sub eax, edx
lea eax, [eax + edi + 1]
push eax
call dword [0x592304]
mov esi, eax
add esp, 4
test esi, esi
je 0x4e41dc
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x4e41dc
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e4191
sub eax, edx
mov ecx, 0x5c
mov word [eax + esi], cx
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e41a8
sub eax, edx
lea edx, [eax + esi]
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x4e41b8
mov eax, dword [ebp - 8]
test eax, eax
je 0x4e41d2
push 8
push 0
push esi
call eax
jmp 0x4e41d9
push esi
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov dword [ebp - 4], eax
push esi
call dword [0x592308]
add esp, 4
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4e41f0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x4e4249
lea eax, [ebp - 0x230]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4e4236
mov eax, dword [ebp - 0x230]
cmp al, 2
jne 0x4e4230
shr eax, 8
cmp al, 2
je 0x4e4249
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x9c
xor edi, edi
lea ecx, [ebp - 0xa0]
push edi
push ecx
call fcn.004ba010
mov esi, dword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
add esp, 0xc
push 3
push 2
push edi
push edi
mov dword [ebp - 0xa0], 0x9c
mov dword [ebp - 0x9c], 6
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x90], 2
call esi
push 3
push 1
push edx
push eax
call esi
push 3
push 0x20
push edx
push eax
call esi
push 3
push 0x10
push edx
push eax
call esi
push 1
push 8
push edx
push eax
call esi
push edx
push eax
push 0x33
lea edx, [ebp - 0xa0]
push edx
call dword [sym.imp.KERNEL32.DLL_VerifyVersionInfoA]
test eax, eax
je 0x4e42fc
push 0x596a60
mov dword [0x596a68], 1
mov dword [0x596a60], edi
mov dword [0x596a64], edi
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov dword [0x596a68], edi
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret

Function at 0x4ece20
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 0x4ece53
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 0x4ecf90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x608], edi
je 0x4ecfd9
push 1
push esi
call fcn.004eac40
mov eax, dword [esi + 0x59c]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [esi + 0x608]
push edx
push eax
push esi
call ecx
push 0
push esi
mov edi, eax
call fcn.004eac40
add esp, 0x24
mov eax, edi
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
js 0x4ed016
cmp eax, 2
jg 0x4ed016
mov edx, dword [esi + 0x598]
push edx
push 1
lea eax, [eax + eax*2 + 0x5645e4]
push 2
push eax
call fcn.004bcce3
mov ecx, dword [esi + 0x598]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push ecx
push 1
push edx
push eax
call fcn.004bcce3
add esp, 0x20
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x4ed020
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4ed140
test dword [esi + 0xa8c], 0x4000000
je 0x4ed140
mov ecx, dword [ebp + 0xc]
push edi
lea eax, [ebp + 0x10]
push eax
push ecx
lea edx, [ebp - 0x808]
push 0x801
push edx
call fcn.004f4760
add esp, 0x10
cmp eax, 0x801
jb 0x4ed0b0
mov edx, dword [ebp + 0xc]
mov eax, edx
lea edi, [eax + 1]
jmp 0x4ed080
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ed080
sub eax, edi
cmp byte [eax + edx - 1], 0xa
jne 0x4ed09d
push str...._n
push 5
lea eax, [ebp - 0xc]
push eax
jmp 0x4ed0a8
push 0x562e34
push 4
lea ecx, [ebp - 0xb]
push ecx
call fcn.004f47c0
add esp, 0xc
lea eax, [ebp - 0x808]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ed0c0
sub eax, edx
cmp dword [esi + 0x608], 0
mov edi, eax
je 0x4ed111
push 1
push esi
call fcn.004eac40
mov edx, dword [esi + 0x59c]
mov ecx, dword [esi + 0x608]
push edx
push edi
lea eax, [ebp - 0x808]
push eax
push 0
push esi
call ecx
push 0
push esi
call fcn.004eac40
add esp, 0x24
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x598]
push edx
push 1
push 2
push 0x5645e4
call fcn.004bcce3
mov eax, dword [esi + 0x598]
push eax
push 1
lea ecx, [ebp - 0x808]
push edi
push ecx
call fcn.004bcce3
add esp, 0x20
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret

Function at 0x4ed150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test dword [esi + 0xa8c], 0x4000000
jne 0x4ed180
cmp dword [esi + 0x5a0], 0
je 0x4ed277
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
push ecx
lea edx, [ebp - 0x108]
push 0x100
push edx
call fcn.004f4760
lea eax, [ebp - 0x108]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ed1a5
sub eax, edx
mov edx, dword [esi + 0x5a0]
push edi
mov edi, eax
test edx, edx
je 0x4ed1e1
test byte [esi + 0xf6c], 8
jne 0x4ed1e1
lea ecx, [ebp - 0x108]
lea ebx, [ebx]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4ed1d0
or dword [esi + 0xf6c], 8
test dword [esi + 0xa8c], 0x4000000
je 0x4ed276
mov byte [ebp + edi - 0x108], 0xa
inc edi
cmp dword [esi + 0x608], 0
mov byte [ebp + edi - 0x108], 0
je 0x4ed248
push 1
push esi
call fcn.004eac40
mov eax, dword [esi + 0x59c]
mov edx, dword [esi + 0x608]
push eax
push edi
lea ecx, [ebp - 0x108]
push ecx
push 0
push esi
call edx
push 0
push esi
call fcn.004eac40
add esp, 0x24
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x598]
push eax
push 1
push 2
push 0x5645e4
call fcn.004bcce3
mov ecx, dword [esi + 0x598]
push ecx
push 1
lea edx, [ebp - 0x108]
push edi
push edx
call fcn.004bcce3
add esp, 0x20
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret