joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4587e9
Capabilities:
Create process on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe64
mov eax, dword [0x61c554]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov word [ebp - 0xe10], ax
lea edi, [ebp - 0xe0e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xe10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ebx, 0x208
lea eax, [ebp - 0x630]
push ebx
xor edi, edi
push edi
push eax
call fcn.0045ef40
push str.UseVestige.ini
push 0x5a1234
push 0x630e40
lea eax, [ebp - 0x630]
push 0x5a0ef0
push eax
call fcn.00404980
add esp, 0x20
lea eax, [ebp - 0x630]
push eax
push 0xffffffffffffffff
push 0x5b01f4
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
movzx ecx, word [ebp - 0xe0a]
cmp eax, ecx
je 0x4589fa
push ebx
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.0045ef40
push ebx
lea eax, [ebp - 0x428]
push edi
push eax
call fcn.0045ef40
lea eax, [ebp - 0x428]
push 0x630c38
push eax
call fcn.00462bac
lea eax, [ebp - 0x428]
push str.SWMutual.exe
push eax
call fcn.0046af62
lea eax, [ebp - 0x220]
push 0x5af594
push eax
call fcn.00462bac
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0046af62
lea eax, [ebp - 0x220]
push str.__UpDmpInfo
push eax
call fcn.0046af62
add esp, 0x40
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.0046af62
mov esi, 0x631048
push esi
call fcn.00462b51
add esp, 0xc
test eax, eax
je 0x458939
lea eax, [ebp - 0x220]
push 0x5adfe4
push eax
call fcn.0046af62
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.0046af62
add esp, 0x10
push 0x44
pop esi
push esi
lea eax, [ebp - 0xe64]
push edi
push eax
call fcn.0045ef40
push 0x10
lea eax, [ebp - 0xe20]
mov dword [ebp - 0xe64], esi
push edi
push eax
call fcn.0045ef40
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0xe00]
push 0x5a3330
push eax
call fcn.00404980
add esp, 0x24
lea eax, [ebp - 0xe20]
push eax
lea eax, [ebp - 0xe64]
push eax
push edi
push edi
push edi
push 1
push edi
push edi
lea eax, [ebp - 0xe00]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4589b7
push dword [ebp - 0xe20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xe1c]
call esi
xor eax, eax
lea edi, [ebp - 0x16]
mov word [ebp - 0x18], ax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
movzx eax, word [ebp - 0xe0a]
push eax
lea eax, [ebp - 0x18]
push 0x60903c
push eax
call fcn.00404980
add esp, 0xc
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x5b01f4
push str.Setting
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448575
mov esp, ebp
pop ebp
ret
Function at 0x458d0e
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0xc8
mov eax, 0x59e5fa
call fcn.004485f1
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xd0], ebx
push ebx
xor eax, eax
mov dword [ebp - 4], ebx
push 0x608fd4
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
call fcn.00401ea0
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.0044c5b4
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x458e82
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push ebx
cmovae eax, dword [ebp + 0xc]
push 0x80
push 4
push ebx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x458dac
push 0x608fd4
mov ecx, esi
call fcn.00401d40
jmp 0x458e8d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc8], eax
inc eax
push eax
mov dword [ebp - 0xcc], eax
call fcn.0041a976
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x458deb
push 0x608fd4
mov ecx, esi
call fcn.00401d40
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00401de0
push ebx
jmp 0x458e99
push dword [ebp - 0xcc]
push 0
push ebx
call fcn.0045ef40
add esp, 0xc
lea eax, [ebp - 0xd4]
push 0
push eax
push dword [ebp - 0xc8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc8]
lea ecx, [ebp - 0xc4]
push ebx
call fcn.0044df0e
push ebx
call fcn.0041a97f
pop ecx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xc4]
call fcn.0044d75c
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.0044e694
pop ecx
pop ecx
xor ebx, ebx
mov byte [ebp - 4], 4
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.00405c42
cmp dword [ebp - 0x30], ebx
jbe 0x458e77
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004020f0
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00401de0
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004040d0
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00401de0
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.00401de0
mov eax, esi
call fcn.0044859b
ret
Function at 0x458f56
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2038
call fcn.00448bd0
mov eax, dword [0x61c554]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x208
lea eax, [ebp - 0x61c]
push esi
xor edi, edi
push edi
push eax
call fcn.0045ef40
push str.C:log_
mov ebx, 0x104
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.0046c941
push 0x800
lea eax, [ebp - 0x1028]
push edi
push eax
call fcn.0045ef40
push str.SmartCloudWB
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push 0x5b0350
push eax
call fcn.00455368
push esi
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.0045ef40
add esp, 0x40
lea eax, [ebp - 0x20c]
push esi
push edi
push eax
call fcn.0045ef40
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.00460b50
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
call ebx
test eax, eax
je 0x459198
lea eax, [ebp - 0x20c]
push eax
call fcn.00462b51
lea ecx, [ebp - 0x20a]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.0046c941
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.txt
push eax
call fcn.00455368
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x1028]
push 0x3ff
push 0x400
push eax
call fcn.00404c60
push edi
call fcn.0046c4ba
mov dword [ebp - 0x2038], eax
lea eax, [ebp - 0x2038]
push eax
mov dword [ebp - 0x2034], edx
call fcn.0046d5f8
add esp, 0x40
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [ebp - 0x1028]
push ecx
push eax
push dword [esi]
mov eax, dword [esi + 0x10]
push dword [esi + 4]
inc eax
push dword [esi + 8]
push dword [esi + 0xc]
push eax
mov eax, dword [esi + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp - 0x2028]
push str.__d__d__d__d__d__d___d_:_s
push eax
call fcn.00458f38
xor eax, eax
add esp, 0x28
mov word [ebp - 0x82a], ax
lea eax, [ebp - 0x414]
push eax
call ebx
xor ebx, ebx
inc ebx
test eax, eax
lea eax, [ebp - 0x414]
push 0x5b00fc
push eax
cmovne edi, ebx
call fcn.00471444
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x459198
test edi, edi
jne 0x45913e
push esi
push 2
lea eax, [ebp - 0x2030]
mov dword [ebp - 0x2030], 0xfeff
push ebx
push eax
call fcn.00470790
add esp, 0x10
lea eax, [ebp - 0x2028]
push eax
call fcn.00462b51
push esi
add eax, eax
push eax
lea eax, [ebp - 0x2028]
push ebx
push eax
call fcn.00470790
push esi
push 2
lea eax, [ebp - 0x202c]
mov dword [ebp - 0x202c], 0xd
push ebx
push eax
call fcn.00470790
push esi
push 2
lea eax, [ebp - 0x202c]
mov dword [ebp - 0x202c], 0xa
push ebx
push eax
call fcn.00470790
push esi
call fcn.004704d8
add esp, 0x38
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448575
mov esp, ebp
pop ebp
ret
Function at 0x45a0ca
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push 0x858
mov eax, 0x59e8b8
call fcn.004485f1
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x830]
mov esi, dword [ebp + 0xc]
mov ebx, 0x208
and dword [ebp - 0x864], 0
push ebx
push 0
push eax
call fcn.0045ef40
lea eax, [ebp - 0x860]
push esi
push eax
call fcn.0044e694
xor esi, esi
lea eax, [ebp - 0x860]
cmp dword [ebp - 0x84c], 8
mov dword [ebp - 4], esi
cmovae eax, dword [ebp - 0x860]
push eax
lea eax, [ebp - 0x848]
push eax
call fcn.0045b517
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x848]
push eax
lea eax, [ebp - 0x830]
push 0x5a3330
push eax
call fcn.00404980
push ebx
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0045ef40
push ebx
lea eax, [ebp - 0x628]
push esi
push eax
call fcn.0045ef40
add esp, 0x40
lea eax, [ebp - 0x420]
push ebx
push esi
push eax
call fcn.0045ef40
add esp, 0xc
lea eax, [ebp - 0x420]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00462bac
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0046af62
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45a1f6
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.00401d40
push 0
push 1
lea ecx, [ebp - 0x848]
call fcn.00401de0
push 0
push 1
lea ecx, [ebp - 0x860]
call fcn.00401de0
mov eax, edi
call fcn.0044859b
ret 8
Function at 0x45aaef
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x59ea10
call fcn.004485f1
mov esi, ecx
mov dword [ebp - 0x30], esi
mov ecx, dword [ebp + 8]
or ebx, 0xffffffff
cmp ecx, ebx
sete al
test al, al
je 0x45ab1b
xor eax, eax
cmp ecx, ebx
cmovne eax, ecx
jmp 0x45ac7c
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x45ab49
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x45ab49
mov eax, dword [ebp + 8]
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x45ac7c
cmp dword [esi + 0x4c], 0
je 0x45ac7a
mov ecx, esi
call fcn.0045a88e
xor ecx, ecx
cmp dword [esi + 0x38], ecx
jne 0x45ab79
push dword [esi + 0x4c]
mov esi, dword [ebp + 8]
push esi
call fcn.004591c9
test al, al
pop ecx
pop ecx
cmovne ebx, esi
jmp 0x45ac7a
mov eax, dword [ebp + 8]
push ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push 8
mov byte [ebp - 0x2c], al
mov dword [ebp - 0x14], 0xf
call fcn.0044cfa6
and dword [ebp - 4], 0
lea eax, [esi + 0x40]
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x14]
mov esi, dword [esi + 0x38]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmp edi, 0x10
lea edx, [ebp - 0x28]
mov edi, dword [esi]
cmovae ecx, dword [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
lea eax, [ebp - 0x2b]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
call dword [edi + 0x1c]
test eax, eax
js 0x45ac6e
cmp eax, 1
jg 0x45ac53
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edi, 0x10
mov edx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x30]
cmovae eax, ecx
sub edx, eax
mov dword [ebp - 0x3c], edx
je 0x45ac24
push dword [esi + 0x4c]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push edx
cmovae eax, ecx
push 1
push eax
call fcn.00470790
mov edx, dword [ebp - 0x3c]
add esp, 0x10
cmp edx, eax
jne 0x45ac6e
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x40], eax
jne 0x45ac4e
test edx, edx
jne 0x45aba4
cmp dword [ebp - 0x18], 0x20
jae 0x45ac6e
push edx
push 8
lea ecx, [ebp - 0x28]
call fcn.0044cf46
jmp 0x45aba1
mov ebx, dword [ebp + 8]
jmp 0x45ac6e
cmp eax, 3
jne 0x45ac6e
mov eax, dword [ebp - 0x30]
push dword [eax + 0x4c]
push dword [ebp - 0x2c]
call fcn.004591c9
test al, al
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00405c42
mov eax, ebx
call fcn.0044859b
ret 4
Function at 0x45bfc4
Capabilities:
Create directory

Disassembly:
push 0x49c
mov eax, 0x59ecf5
call fcn.004485f1
mov ebx, ecx
mov edi, dword [ebp + 8]
test edi, edi
jne 0x45bfe3
xor eax, eax
jmp 0x45c16b
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.0045ef40
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.0046c310
push edi
xor esi, esi
call fcn.0046bc40
mov edi, eax
mov dword [ebp - 0x214], 7
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x218], ecx
mov word [ebp - 0x228], ax
push 0x100
push ecx
lea eax, [ebp - 0x210]
mov dword [ebp - 4], ecx
push eax
call fcn.0045ef40
add esp, 0x24
cmp byte [ebp + edi - 0x111], 0x5c
je 0x45c052
mov byte [ebp + edi - 0x110], 0x5c
cmp byte [ebp - 0x110], 0
je 0x45c159
mov al, byte [ebp + esi - 0x110]
cmp al, 0x3a
jne 0x45c072
push 2
pop eax
jmp 0x45c149
cmp al, 0x5c
jne 0x45c146
push esi
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0045e000
add esp, 0xc
cmp esi, 0x100
jae 0x45c187
lea eax, [ebp - 0x210]
mov byte [ebp + esi - 0x210], 0
push eax
lea ecx, [ebp - 0x240]
call fcn.0040a830
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x258]
mov ecx, ebx
push eax
call fcn.0045c6da
push eax
lea ecx, [ebp - 0x228]
call fcn.00404050
push 0
push 1
lea ecx, [ebp - 0x258]
call fcn.00401de0
push 0
push 1
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 0
call fcn.00405c42
cmp dword [ebp - 0x214], 8
lea ecx, [ebp - 0x4a8]
lea eax, [ebp - 0x228]
cmovae eax, dword [ebp - 0x228]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x45c146
cmp dword [ebp - 0x214], 8
lea eax, [ebp - 0x228]
push 0
cmovae eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x45c173
xor eax, eax
inc eax
add esi, eax
cmp byte [ebp + esi - 0x110], 0
jne 0x45c05f
push 0
push 1
lea ecx, [ebp - 0x228]
call fcn.00401de0
xor eax, eax
inc eax
call fcn.0044859b
ret 4
push 0
push 1
lea ecx, [ebp - 0x228]
call fcn.00401de0
jmp 0x45bfdc
call fcn.004487df
int3

Function at 0x45c6ac
Capabilities:
Create thread

Disassembly:
mov edx, dword [ecx + 0x300]
or eax, 0xffffffff
cmp edx, eax
je 0x45c6be
cmp edx, 1
jne 0x45c6d9
xor eax, eax
push eax
push eax
push ecx
push 0x45c44a
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret
Function at 0x45dec9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x61c554]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
jle 0x45df5e
lea ecx, [eax + 0x80]
add eax, 0x100
dec edi
mov dword [ebp - 0x14], ecx
shr edi, 3
inc edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edi
mov edx, ebx
mov ecx, esi
push 8
sub edx, esi
pop edi
mov al, byte [edx + ecx]
mov byte [ecx], al
inc ecx
sub edi, 1
jne 0x45df0e
push 8
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0045e000
push esi
push esi
push dword [ebp - 0x14]
call fcn.0045d1af
mov edx, dword [ebp - 0x18]
add esp, 0x18
xor ecx, ecx
mov al, byte [edx + ecx]
xor byte [esi + ecx], al
inc ecx
cmp ecx, 8
jl 0x45df37
push 8
lea eax, [ebp - 0xc]
push eax
push edx
call fcn.0045e000
add esp, 0xc
add ebx, 8
add esi, 8
sub dword [ebp - 0x10], 1
jne 0x45df05
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448575
mov esp, ebp
pop ebp
ret

Function at 0x476e26
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00476ae6

Function at 0x47c565
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047c3e4
Function at 0x48e210
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x48e259
mov al, byte [esi]
push eax
call fcn.0049a340
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x48e237
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x48f600
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x48f621
cmp dword [esi + 0x8c], 0
je 0x48f621
push 2
push 3
push esi
call fcn.0049a910
add esp, 0xc
push dword [ebp + 0xc]
call fcn.0049c4e0
add esp, 4
test esi, esi
je 0x48f644
cmp dword [esi + 0x8c], 0
je 0x48f644
push 3
push esi
call fcn.0049a950
add esp, 8
pop esi
pop ebp
ret

Function at 0x4902d0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2b0], 2
jne 0x4902e5
pop ebp
jmp fcn.00490280
mov al, 1
pop ebp
ret
Function at 0x4976e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x608], 0
je 0x497724
push esi
push 1
push edi
call fcn.0048a980
push dword [edi + 0x59c]
mov eax, dword [edi + 0x608]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.0048a980
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x49775a
push dword [edi + 0x598]
lea eax, [eax + eax*2]
push 1
add eax, 0x5b9c58
push 2
push eax
call fcn.00470790
push dword [edi + 0x598]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00470790
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x61c554]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ecx + eax*4 + 0x1a8]
push edi
mov edi, dword [ebp + 0x10]
push eax
push ecx
mov dword [ebp - 0x88], ecx
call fcn.004980e0
add esp, 8
push 0
push dword [ebp + 0x14]
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x497c5a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x497c1c
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00448575
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.004c1130
push eax
mov eax, dword [ebp - 0x88]
push str.Send_failure:__s
push dword [eax]
call fcn.00497760
mov eax, dword [ebp - 0x88]
add esp, 0x18
mov eax, dword [eax]
mov dword [eax + 0xcac], edi
mov eax, esi
mov dword [ebx], 0x37
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448575
mov esp, ebp
pop ebp
ret
Function at 0x4980e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
shl eax, 4
push edi
mov edx, dword [ebx + ecx*4 + 0x1a8]
lea esi, [ebx + 0x1cc]
add esi, eax
mov dword [ebp + 8], edx
mov eax, dword [ebx + 0x2a8]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x49819d
cmp dword [ebx + ecx*4 + 0x1bc], 0x497ab0
jne 0x49819d
cmp dword [esi], 0
je 0x49812f
test edi, edi
je 0x49819d
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.00497290
add esp, 0x14
cmp eax, 0xffffffff
je 0x49819d
test al, 1
je 0x49819d
cmp dword [esi], 0
jne 0x498184
mov eax, dword [ebx]
mov eax, dword [eax + 0x8e4]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x61d000]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x498184
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x49819d
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test byte [eax + 0x1f8], 1
je 0x4982b0
push eax
call fcn.00490ca0
add esp, 4
test eax, eax
jne 0x4982d2
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x4982ac
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x4982d2
xor al, al
pop ebp
ret
mov al, 1
pop ebp
ret

Function at 0x498ac0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x632110]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x498b11
push 3
push 2
push eax
push 6
call fcn.0049a030
add esp, 0x10
test al, al
je 0x498b05
mov dword [0x632110], 2
mov esp, ebp
pop ebp
ret
mov dword [0x632110], 1
jmp 0x498b16
cmp eax, 2
je 0x498b56
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x498b3d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x498b56
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret