joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428f90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push dword [esp + 0x24]
xor edi, edi
mov esi, 0x100000
mov dword [esp + 0x14], edi
xor ebx, ebx
call fcn.004290f0
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x4290cd
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4290cd
push ebx
push pe_nt_image_headers32
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
je 0x4290cd
push esi
push ebx
push dword [0x5015d8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x24], eax
test eax, eax
je 0x4290c3
mov eax, dword [ebp + 4]
push ebx
push dword [esp + 0x2c]
call eax
mov ebx, eax
test ebx, ebx
je 0x4290b1
cmp dword [esp + 0x30], edi
jl 0x42903b
mov eax, dword [esp + 0x2c]
jg 0x429029
test eax, eax
je 0x42903b
push 0
lea ecx, [esp + 0x34]
push ecx
push eax
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
add edi, 0x100000
mov eax, ebp
adc ecx, 0
and eax, edx
mov dword [esp + 0x10], ecx
cmp eax, 0xffffffff
je 0x429071
cmp ecx, edx
jl 0x429071
jg 0x429067
cmp edi, ebp
jbe 0x429071
mov esi, ebp
sub esi, edi
add esi, 0x100000
push 0
lea eax, [esp + 0x18]
push eax
push esi
push dword [esp + 0x30]
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push dword [esp + 0x28]
push ebx
mov eax, dword [eax + 8]
call eax
cmp dword [esp + 0x14], 0x100000
mov edx, dword [esp + 0x38]
je 0x429043
mov ebp, dword [esp + 0x18]
push ebx
mov eax, dword [ebp + 0xc]
call eax
push dword [esp + 0x24]
push 0
push dword [0x5015d8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x3c]
push ebx
call fcn.004291a0
test ebx, ebx
je 0x4290e1
mov eax, dword [ebp + 0x10]
push ebx
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x20

Function at 0x4297e3
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
push esi
push edi
xor edi, edi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push 0x80000000
push dword [esp + 0x2c]
mov ebp, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x429867
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0x5015d8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x42985f
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x429850
cmp dword [esp + 0x18], ebx
jne 0x429850
push ebx
push edi
push dword [esp + 0x1c]
call fcn.0042962f
mov ebp, eax
push edi
push 0
push dword [0x5015d8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x42af3d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push 0x4a6d88
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x502e54], eax
test eax, eax
je 0x42af6b
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x502e50], eax
lea eax, [ebp - 0x114]
mov dword [0x502e58], 1
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42afcd
cmp dword [ebp - 0x104], 1
jne 0x42afa2
and dword [0x502e58], 0
jmp 0x42afe5
cmp dword [ebp - 0x104], 2
jne 0x42afcd
cmp dword [ebp - 0x110], 5
jb 0x42af99
jne 0x42afcd
mov eax, dword [ebp - 0x10c]
neg eax
sbb eax, eax
and eax, dword [0x502e58]
mov dword [0x502e58], eax
jmp 0x42afd2
mov eax, dword [0x502e58]
test eax, eax
je 0x42afe5
call fcn.0042a980
neg eax
sbb eax, eax
and dword [0x502e58], eax
mov esp, ebp
pop ebp
ret

Function at 0x42c050
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x42c082
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42c07d
cmp dword [esp + 0xc], esi
je 0x42c099
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret

Function at 0x42fa71
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x502ef8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x42fad2
push esi
push dword [0x502ef4]
push 8
push dword [0x5015d8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x502ef8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x502ef0]
jmp 0x42fac2
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x42fac0
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x42fab0
push edi
push 0x42fa0f
call fcn.0041ba71
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4
Function at 0x42fadc
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ecx, esi
push edi
and ecx, 3
je 0x42faf2
push 4
pop eax
sub eax, ecx
add esi, eax
mov eax, dword [0x502ef4]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x42fb29
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
push 8
push dword [0x5015d8]
mov dword [0x502ef8], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x502ef8]
call ebx
mov eax, dword [0x502ef4]
mov edi, eax
add eax, esi
push eax
push dword [0x502ef8]
mov dword [0x502ef4], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x5015d8]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x502ef8]
call ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test esi, esi
jne 0x42fb69
test ebx, ebx
je 0x42fb8a
push 0x14
push 0x502ef0
call fcn.004303de
pop ecx
pop ecx
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
test esi, esi
je 0x42fb8a
lea ecx, [edi + ebp]
push ecx
call esi
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x430520
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4f05d8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x430566
mov ecx, dword [ebp - 4]
add ecx, 0xa
push ecx
push 0
mov edx, dword [0x5034a0]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x430587
mov edx, dword [ebp - 4]
add edx, 0xa
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x5034a0]
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
shr edx, 1
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.004309f0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8

Function at 0x4305b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4f05d8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
add edx, 2
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov esp, ebp
pop ebp
ret

Function at 0x4306b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4f05d8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [ebp - 4]
add eax, dword [edx + 8]
mov esp, ebp
pop ebp
ret
Function at 0x430870
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4f05d8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x430894
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
lea eax, [ecx + edx*2]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
sub edx, 4
cmp dword [ebp - 8], edx
jl 0x4308e2
mov eax, dword [ebp - 8]
add eax, 0x4000
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x5034a0]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x430910
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4f05d8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
shl ecx, 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
sub eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret 4

Function at 0x430970
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4f05d8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x4309ae
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x4309ae
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x4309b0
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x430a40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4f05d8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
add eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x430dd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4f05d8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x447700
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x447795
mov ecx, dword [esi]
xor eax, eax
push ebx
push ebp
push edi
mov byte [ecx + 0x16], al
xor edi, edi
mov ecx, dword [esi]
mov byte [ecx + 0x17], al
mov ecx, dword [esi]
mov byte [ecx + 0x18], al
mov ecx, dword [esi]
mov byte [ecx + 0x19], al
mov ebx, dword [esi + 4]
test ebx, ebx
jle 0x44774b
mov ebp, dword [esi]
movzx edx, byte [edi + ebp]
mov ecx, eax
shr ecx, 0x18
inc edi
xor edx, ecx
shl eax, 8
xor eax, dword [edx*4 + 0x4a7198]
cmp edi, ebx
jl 0x447731
mov ebx, dword [esi + 0xc]
xor edi, edi
test ebx, ebx
jle 0x447771
mov ebp, dword [esi + 8]
movzx edx, byte [edi + ebp]
mov ecx, eax
shr ecx, 0x18
inc edi
xor edx, ecx
shl eax, 8
xor eax, dword [edx*4 + 0x4a7198]
cmp edi, ebx
jl 0x447757
mov ecx, dword [esi]
mov edx, eax
shr edx, 8
pop edi
pop ebp
mov byte [ecx + 0x16], al
mov ecx, dword [esi]
pop ebx
mov byte [ecx + 0x17], dl
mov edx, eax
mov ecx, dword [esi]
shr edx, 0x10
shr eax, 0x18
mov byte [ecx + 0x18], dl
mov ecx, dword [esi]
mov byte [ecx + 0x19], al
pop esi
ret

Function at 0x4501a0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4501c0
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4501c0
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4501c0
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x460b20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x460b4f
push esi
call fcn.00460d00
add esp, 4
cmp byte [esi + 0x40], 0
je 0x460b48
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
push edi
cmp eax, 0xcb
jne 0x460bd2
mov eax, dword [esi + 0x1a0]
cmp byte [eax + 0x10], 0
je 0x460bbd
mov eax, dword [esi + 8]
test eax, eax
je 0x460b75
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x1a0]
push esi
mov eax, dword [eax]
call eax
add esp, 4
test eax, eax
je 0x460bb8
cmp eax, 2
je 0x460bbd
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x460b66
cmp eax, 3
je 0x460b9d
cmp eax, 1
jne 0x460b66
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x460b66
mov eax, dword [esi + 0x120]
add eax, edi
mov dword [edx + 8], eax
jmp 0x460b66
pop edi
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.00460c00
add esp, 4
pop edi
pop esi
ret
cmp eax, 0xcc
je 0x460bf4
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x15
mov ecx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [esi]
mov eax, dword [eax]
call eax
add esp, 4
push esi
call fcn.00460c00
add esp, 4
pop edi
pop esi
ret
Function at 0x460c00
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0xcc
je 0x460c2c
mov eax, dword [esi + 0x190]
push esi
mov eax, dword [eax]
call eax
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x14], 0xcc
mov eax, dword [esi + 0x190]
cmp byte [eax + 8], 0
je 0x460cb2
lea ebx, [esi + 0x78]
jmp 0x460c40
mov eax, dword [ebx]
cmp eax, dword [esi + 0x60]
jae 0x460c86
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x460c65
mov dword [ecx + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x60]
push esi
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
mov eax, dword [eax]
call eax
add esp, 4
mov eax, dword [esi + 0x194]
mov edi, dword [ebx]
push 0
push ebx
mov eax, dword [eax + 4]
push 0
push esi
call eax
mov eax, dword [ebx]
add esp, 0x10
cmp eax, edi
je 0x460cc8
cmp eax, dword [esi + 0x60]
jb 0x460c47
mov eax, dword [esi + 0x190]
push esi
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x190]
push esi
mov eax, dword [eax]
call eax
mov dword [ebx], 0
add esp, 8
mov eax, dword [esi + 0x190]
cmp byte [eax + 8], 0
jne 0x460c40
xor eax, eax
cmp byte [esi + 0x41], al
pop edi
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov al, 1
pop esi
pop ebx
ret
pop edi
pop esi
xor al, al
pop ebx
ret

Function at 0x461cd0
Capabilities:
Query environment variable

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov dword [edi + 4], 0
call fcn.0046d4f0
push 0x54
push edi
mov dword [esp + 0x14], eax
call fcn.0046d4d0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x461d17
push edi
call fcn.0046d500
mov ecx, dword [edi]
push edi
mov dword [ecx + 0x14], 0x38
mov ecx, dword [edi]
mov dword [ecx + 0x18], esi
mov eax, dword [edi]
mov eax, dword [eax]
call eax
add esp, 8
mov dword [esi], fcn.00461960
mov dword [esi + 4], fcn.004617f0
mov dword [esi + 8], fcn.004618c0
mov dword [esi + 0xc], fcn.00461740
mov dword [esi + 0x10], 0x462030
mov dword [esi + 0x14], 0x461fc0
mov dword [esi + 0x18], 0x461e20
mov dword [esi + 0x1c], 0x4615f0
mov dword [esi + 0x20], 0x4614a0
mov dword [esi + 0x24], 0x461bd0
mov dword [esi + 0x28], 0x4620a0
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [esp + 8]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x461dfa
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], 0x78
push ecx
lea ecx, [esp + 0xc]
push ecx
push str._ld_c
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x461dfa
mov al, byte [esp + 0x10]
cmp al, 0x6d
je 0x461de9
cmp al, 0x4d
mov eax, dword [esp + 8]
jne 0x461df1
imul eax, dword [esp + 8], 0x3e8
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ecx
ret
Function at 0x465080
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
cmp dword [ebp + 0x4c], 1
mov ebx, dword [ebp + 0x1b8]
mov dword [esp + 0x1c], ebx
jne 0x4650a5
mov esi, 0x1fe
mov byte [ebx + 0x1c], 1
jmp 0x4650ab
xor esi, esi
mov byte [ebx + 0x1c], 0
push dword [ebp + 0x64]
mov ecx, dword [ebp + 4]
lea eax, [esi + 0x100]
push eax
push 1
push ebp
mov eax, dword [ecx + 8]
mov dword [esp + 0x20], esi
call eax
xor ecx, ecx
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x14]
add esp, 0x10
mov dword [esp + 0x14], ecx
cmp dword [ebp + 0x64], ecx
jle 0x4651c0
push edi
lea ecx, [ecx]
mov edi, dword [ebx + ecx*4 + 0x20]
cdq
idiv edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], eax
test esi, esi
je 0x4650fd
mov eax, dword [ebx + 0x18]
add dword [eax + ecx*4], 0xff
mov eax, dword [ebx + 0x18]
xor ebx, ebx
mov ebp, dword [eax + ecx*4]
lea eax, [edi + 0xfe]
lea ecx, [edi*2 - 2]
cdq
idiv ecx
xor esi, esi
mov edx, eax
lea esp, [esp]
cmp esi, edx
jle 0x465156
mov ecx, dword [esp + 0x10]
lea edi, [edi*2 - 2]
imul eax, ebx, 0x1fe
add ecx, 0xfe
add ecx, eax
lea ecx, [ecx]
add ecx, 0x1fe
inc ebx
mov eax, ecx
cdq
idiv edi
mov edx, eax
cmp esi, edx
jg 0x465140
mov edi, dword [esp + 0x10]
mov al, byte [esp + 0x1c]
imul bl
mov byte [esi + ebp], al
inc esi
cmp esi, 0xff
jle 0x465120
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4651a1
mov ecx, 1
lea edx, [ebp - 1]
jmp 0x465180
movzx eax, byte [ebp]
lea edx, [edx - 1]
mov byte [edx + 1], al
movzx eax, byte [ebp + 0xff]
mov byte [ecx + ebp + 0xff], al
inc ecx
cmp ecx, 0xff
jle 0x465180
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [eax + 0x64]
mov eax, dword [esp + 0x1c]
jl 0x4650e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x479710
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x479749
mov eax, dword [esp]
cmp al, 2
jne 0x479743
shr eax, 8
cmp al, 2
jne 0x479743
call fcn.004871e0
add esp, 0x190
ret
call dword [sym.imp.WSOCK32.DLL_WSACleanup]
mov eax, 2
add esp, 0x190
ret
Function at 0x482750
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
lea eax, [esp + 0x10]
push ebp
push eax
push dword [esp + 0x14]
lea ebp, [ebx + 0x4c4]
push 0x4000
push ebp
call fcn.00492030
mov eax, dword [ebx + 0xfc]
add esp, 0x10
test eax, eax
je 0x4827a1
cmp byte [ebx + 0x84ec], 0
jne 0x4827a1
push ebp
push 0x4acf68
push 0x100
push eax
call fcn.00491f40
add esp, 0x10
mov byte [ebx + 0x84ec], 1
cmp byte [ebx + 0x284], 0
je 0x482818
push edi
mov edi, ebp
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4827b0
sub edi, ecx
cmp edi, 0x3fff
jae 0x4827d1
mov byte [edi + ebx + 0x4c4], 0xa
inc edi
mov byte [edi + ebx + 0x4c4], al
mov eax, dword [ebx + 0x164]
test eax, eax
je 0x4827ef
push dword [ebx + 0xf8]
push edi
push ebp
push 0
push ebx
call eax
add esp, 0x14
pop edi
pop ebp
pop ebx
ret
push dword [ebx + 0xf4]
push 1
push 2
push 0x4acf50
call dword [sym.imp.MSVCRT.dll_fwrite]
push dword [ebx + 0xf4]
push 1
push edi
push ebp
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x20
pop edi
pop ebp
pop ebx
ret

Function at 0x482820
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x804
push ebx
mov ebx, dword [esp + 0x80c]
test ebx, ebx
je 0x4828cd
cmp byte [ebx + 0x284], 0
je 0x4828cd
push edi
lea eax, [esp + 0x818]
push eax
push dword [esp + 0x818]
lea eax, [esp + 0x10]
push 0x801
push eax
call fcn.00492030
lea edi, [esp + 0x18]
add esp, 0x10
lea ecx, [edi + 1]
lea esp, [esp]
mov al, byte [edi]
inc edi
test al, al
jne 0x482870
mov eax, dword [ebx + 0x164]
sub edi, ecx
test eax, eax
je 0x4828a0
push dword [ebx + 0xf8]
lea ecx, [esp + 0xc]
push edi
push ecx
push 0
push ebx
call eax
add esp, 0x14
pop edi
pop ebx
add esp, 0x804
ret
push dword [ebx + 0xf4]
push 1
push 2
push 0x4acf50
call dword [sym.imp.MSVCRT.dll_fwrite]
push dword [ebx + 0xf4]
lea eax, [esp + 0x1c]
push 1
push edi
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x20
pop edi
pop ebx
add esp, 0x804
ret

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

Disassembly:
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WSOCK32.DLL_recv]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x482a31
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov eax, dword [esp + 0x10]
mov dword [eax], ecx
xor eax, eax
ret

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

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push edi
push 0
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [ebp + eax*4 + 0x144]
call dword [sym.imp.WSOCK32.DLL_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x482b3b
push esi
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x482b11
pop esi
pop edi
pop ebp
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push esi
push ebp
call fcn.004970b0
push eax
push str.Send_failure:__s
push dword [ebp]
call fcn.00482750
mov eax, dword [ebp]
add esp, 0x14
mov dword [eax + 0x84f0], esi
mov eax, edi
mov dword [ebx], 0x37
pop esi
pop edi
pop ebp
pop ebx
ret
Function at 0x482c40
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi + 0x164]
test eax, eax
je 0x482c69
push dword [edi + 0xf8]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push edi
call eax
add esp, 0x14
pop edi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x482ca4
push dword [edi + 0xf4]
lea eax, [eax + eax*2]
push 1
add eax, 0x4acf50
push 2
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push dword [edi + 0xf4]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x20
xor eax, eax
pop edi
ret
Function at 0x485880
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xa8
mov eax, dword [0x502f58]
mov dword [esp], 0x4020
mov dword [esp + 4], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x485907
push 0x9c
push eax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [esp + 0xc], 0x9c
mov dword [esp + 0x10], 6
push 3
push 2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 2
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x4858fb
mov dword [0x502f58], 2
add esp, 0xa8
ret
mov dword [0x502f58], 1
jmp 0x48590c
cmp eax, 2
je 0x485958
lea eax, [esp + 8]
push eax
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0xbc]
call dword [sym.imp.WSOCK32.DLL_getsockopt]
test eax, eax
jne 0x48593a
mov eax, dword [esp + 4]
cmp eax, dword [esp]
jg 0x485958
push 4
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0xbc]
call dword [sym.imp.WSOCK32.DLL_setsockopt]
add esp, 0xa8
ret