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

Disassembly:
mov al, byte [esp + 0x10]
mov ecx, dword [esp + 8]
test al, al
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 8]
push edi
cdq
je 0x45cb6b
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jle 0x45cb8e
mov edx, eax
mov eax, dword [ecx]
mov edi, dword [0x829478]
xor eax, edi
mov edi, dword [0x8294d8]
xor edi, eax
add ecx, 4
mov dword [0x8294d8], edi
mov dword [esi], eax
add esi, 4
dec edx
jne 0x45cb45
pop edi
pop esi
ret
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jle 0x45cb8e
mov edx, esi
sub edx, ecx
mov esi, dword [ecx]
mov edi, dword [0x829478]
xor esi, edi
mov dword [edx + ecx], esi
add ecx, 4
dec eax
jne 0x45cb7b
pop edi
pop esi
ret

Function at 0x45cba0
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [esp + 0x10]
mov ecx, dword [esp + 8]
test al, al
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 8]
push edi
cdq
je 0x45cbeb
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jle 0x45cc0e
mov edx, eax
mov eax, dword [ecx]
mov edi, dword [0x8294d8]
xor edi, eax
add ecx, 4
mov dword [0x8294d8], edi
mov edi, dword [0x829478]
xor edi, eax
mov dword [esi], edi
add esi, 4
dec edx
jne 0x45cbc5
pop edi
pop esi
ret
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jle 0x45cc0e
mov edx, esi
sub edx, ecx
mov esi, dword [ecx]
mov edi, dword [0x829478]
xor esi, edi
mov dword [edx + ecx], esi
add ecx, 4
dec eax
jne 0x45cbfb
pop edi
pop esi
ret

Function at 0x45cc20
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [esp + 0x10]
mov ecx, dword [esp + 4]
test al, al
mov eax, dword [esp + 8]
push edi
cdq
je 0x45cc63
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jle 0x45cc7c
push esi
mov esi, dword [esp + 0x14]
mov edx, eax
mov eax, dword [ecx]
add ecx, 4
xor eax, esi
mov dword [ecx - 4], eax
mov edi, dword [0x8294d8]
xor edi, eax
dec edx
mov dword [0x8294d8], edi
jne 0x45cc45
pop esi
pop edi
ret
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jle 0x45cc7c
mov edx, dword [esp + 0x10]
mov edi, dword [ecx]
xor edi, edx
dec eax
mov dword [ecx], edi
jne 0x45cc73
pop edi
ret

Function at 0x45cc80
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [esp + 0x10]
mov ecx, dword [esp + 4]
test al, al
mov eax, dword [esp + 8]
push esi
cdq
je 0x45ccc4
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jle 0x45cce1
mov edx, dword [esp + 0x10]
push edi
mov esi, dword [ecx]
mov edi, dword [0x8294d8]
xor edi, esi
add ecx, 4
mov dword [0x8294d8], edi
mov esi, dword [ecx - 4]
xor esi, edx
dec eax
mov dword [ecx - 4], esi
jne 0x45cca3
pop edi
pop esi
ret
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jle 0x45cce1
mov edx, dword [esp + 0x10]
mov esi, dword [ecx]
add ecx, 4
xor esi, edx
dec eax
mov dword [ecx - 4], esi
jne 0x45ccd4
pop esi
ret
Function at 0x463f80
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x22c8]
mov dword [esi + 0x22d8], 0
push eax
push 0
push esi
push 0x464250
push 0x20000
push 0
mov dword [esi + 0x22dc], 0xffffffff
mov byte [esi + 0x22d4], 1
call fcn.0078e86b
add esp, 0x18
mov dword [esi + 0x22c4], eax
pop esi
ret
Function at 0x49a090
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
push ebx
push esi
mov esi, dword [esp + 0x2c]
mov ebx, ecx
test esi, esi
jne 0x49a0ac
call fcn.0049a230
pop esi
pop ebx
add esp, 0x20
ret 4
push 0
push 0
lea ecx, [esp + 0x18]
call fcn.00420d90
lea eax, [esp + 0x10]
mov ecx, esi
push eax
mov dword [esp + 0x14], 0x7cdfe8
mov dword [esp + 0x28], 0xa
mov dword [esp + 0x24], 0
call fcn.004e6260
mov edx, dword [ebx + 0x78]
mov esi, dword [ebx + 0x80]
add ebx, 0x78
mov ecx, ebx
call dword [edx + 0xc]
mov eax, dword [ebx]
push 0
push esi
mov ecx, ebx
call dword [eax + 8]
mov eax, dword [esp + 0x20]
xor esi, esi
test eax, eax
mov dword [esp + 8], esi
jle 0x49a1e4
push ebp
push edi
mov ecx, dword [0x809d3c]
push 0
mov dword [esp + 0x38], ecx
push 0
lea ecx, [esp + 0x3c]
call fcn.005dd7a0
mov edx, dword [esp + 0x34]
mov ax, word [0x83f43c]
mov word [edx], ax
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + esi*4]
lea ecx, [esp + 0x34]
push edx
call fcn.005ddc50
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x10]
cmp ecx, eax
jl 0x49a16d
mov cl, byte [ebx + 0xd]
test cl, cl
jne 0x49a156
test eax, eax
jne 0x49a1c8
mov ecx, dword [ebx + 0x14]
test ecx, ecx
jle 0x49a1c8
mov edx, dword [ebx]
add ecx, eax
push 0
push ecx
mov ecx, ebx
call dword [edx + 8]
test al, al
je 0x49a1c8
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 4]
lea ecx, [eax + 1]
lea edi, [edx + eax*4]
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x10], ecx
test eax, eax
mov dword [esp + 0x14], eax
je 0x49a1c8
push eax
call fcn.0078c685
mov ebp, eax
add esp, 4
mov ecx, edi
lea esi, [ebp + 1]
push esi
call fcn.005dd910
mov eax, dword [edi]
mov ecx, dword [0x809d3c]
cmp eax, ecx
je 0x49a1ad
mov dword [eax - 4], ebp
mov edi, dword [edi]
lea ecx, [esi + esi]
mov esi, dword [esp + 0x14]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x34]
call fcn.005dd990
mov eax, dword [esp + 0x28]
inc esi
cmp esi, eax
mov dword [esp + 0x10], esi
jl 0x49a10c
pop edi
pop ebp
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], 0x7ce000
test eax, eax
je 0x49a21d
mov cl, byte [esp + 0x1d]
test cl, cl
je 0x49a21d
test eax, eax
je 0x49a21d
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.0041f220
push ecx
push 4
push eax
call fcn.004040d0
push esi
call fcn.00672c80
add esp, 4
pop esi
pop ebx
add esp, 0x20
ret 4
Function at 0x49a230
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x150
mov eax, dword [ecx + 0x78]
push ebx
lea ebx, [ecx + 0x78]
push ebp
push esi
push edi
mov esi, dword [ebx + 8]
mov ecx, ebx
call dword [eax + 0xc]
mov edx, dword [ebx]
push 0
push esi
mov ecx, ebx
call dword [edx + 8]
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], 0
rep stosd dword es:[edi], eax
mov eax, dword [0x809d38]
push 0
push 0
lea ecx, [esp + 0x18]
mov esi, 1
mov dword [esp + 0x18], eax
call fcn.005dcfa0
mov ecx, dword [esp + 0x10]
mov dl, byte [0x83ec0c]
mov byte [ecx], dl
call fcn.00477ca0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x50]
test al, al
je 0x49a2aa
lea eax, [esp + 0x10]
push str.datacc_.mix
push eax
jmp 0x49a2b4
lea ecx, [esp + 0x10]
push str.datamp_.mix
push ecx
call fcn.005dd5a0
mov eax, dword [esp + 0x18]
add esp, 8
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x49a3bf
test esi, esi
je 0x49a3b8
mov ecx, dword [0x809d3c]
push 0
mov dword [esp + 0x18], ecx
push 0
lea ecx, [esp + 0x1c]
call fcn.005dd7a0
mov edx, dword [esp + 0x14]
mov ax, word [0x83f43c]
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x18]
mov word [edx], ax
call fcn.005ddc50
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0x10]
cmp eax, ecx
jl 0x49a341
mov al, byte [ebx + 0xd]
test al, al
jne 0x49a32a
test ecx, ecx
jne 0x49a39c
mov eax, dword [ebx + 0x14]
test eax, eax
jle 0x49a39c
mov edx, dword [ebx]
add eax, ecx
push 0
push eax
mov ecx, ebx
call dword [edx + 8]
test al, al
je 0x49a39c
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 4]
lea ecx, [eax + 1]
lea edi, [edx + eax*4]
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x10], ecx
test eax, eax
mov dword [esp + 0x18], eax
je 0x49a39c
push eax
call fcn.0078c685
mov ebp, eax
add esp, 4
mov ecx, edi
lea esi, [ebp + 1]
push esi
call fcn.005dd910
mov eax, dword [edi]
mov ecx, dword [0x809d3c]
cmp eax, ecx
je 0x49a381
mov dword [eax - 4], ebp
mov edi, dword [edi]
lea ecx, [esi + esi]
mov esi, dword [esp + 0x18]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ebp, dword [esp + 0x1c]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.005dd990
lea ecx, [esp + 0x20]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, eax
jmp 0x49a2db
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
call fcn.005dd410
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret
Function at 0x4b2030
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x148
push ebp
push esi
push edi
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 0
mov esi, 1
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
push str..pkg
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4b2203
push ebx
test esi, esi
je 0x4b21fb
lea ecx, [esp + 0x10]
call fcn.004b1d90
lea ecx, [esp + 0x44]
test ecx, ecx
je 0x4b20cd
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
lea ecx, [esp + 0x14]
lea ebx, [esi + 1]
push ebx
call fcn.005dd330
mov edi, dword [esp + 0x14]
mov eax, dword [0x809d38]
cmp edi, eax
je 0x4b20b9
mov dword [edi - 4], esi
mov edi, dword [esp + 0x14]
mov ecx, ebx
lea esi, [esp + 0x44]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x82f9d0]
mov ecx, dword [0x82f9d8]
cmp ecx, eax
jl 0x4b2116
mov cl, byte [0x82f9d5]
test cl, cl
jne 0x4b20ee
test eax, eax
jne 0x4b21df
mov ecx, dword [0x82f9dc]
test ecx, ecx
jle 0x4b21df
add ecx, eax
mov eax, dword [0x82f9c8]
push 0
push ecx
mov ecx, 0x82f9c8
call dword [eax + 8]
test al, al
je 0x4b21df
mov ecx, dword [0x82f9d8]
mov edx, dword [esp + 0x10]
mov eax, ecx
inc ecx
mov dword [0x82f9d8], ecx
mov ecx, dword [0x82f9cc]
xor esi, esi
lea ebx, [ecx + eax*8]
mov eax, dword [0x809d38]
cmp edx, eax
je 0x4b2155
mov esi, dword [edx - 4]
test esi, esi
jne 0x4b2155
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov dword [edx - 4], esi
lea edi, [esi + 1]
mov ecx, ebx
push edi
call fcn.005dd330
mov eax, dword [ebx]
mov ecx, dword [0x809d38]
cmp eax, ecx
je 0x4b216f
mov dword [eax - 4], esi
mov esi, dword [esp + 0x10]
mov ecx, edi
mov edi, dword [ebx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add ebx, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x14]
mov eax, dword [0x809d38]
xor esi, esi
cmp edx, eax
je 0x4b21af
mov esi, dword [edx - 4]
test esi, esi
jne 0x4b21af
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov dword [edx - 4], esi
lea edi, [esi + 1]
mov ecx, ebx
push edi
call fcn.005dd330
mov eax, dword [ebx]
mov ecx, dword [0x809d38]
cmp eax, ecx
je 0x4b21c9
mov dword [eax - 4], esi
mov esi, dword [esp + 0x14]
mov ecx, edi
mov edi, dword [ebx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.004b1de0
lea ecx, [esp + 0x18]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, eax
jmp 0x4b206f
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x148
ret
Function at 0x4b2f40
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0x558
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push eax
push 0x20019
push 0
push str.WOLSettingsURL
push 0
mov ebx, ecx
push str.SoftwareWestwoodRenegade
call fcn.0043a1d0
add esp, 0xc
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4b3058
mov edi, dword [esp + 0x56c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebx + 0x1c]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x4b2fdb
mov edi, 0x7fc208
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x160]
push eax
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push 0
push eax
push ecx
mov dword [esp + 0x2c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4b3058
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x4b3118
lea eax, [esp + 0x160]
push 0x200
lea ecx, [ebx + 0x20]
push eax
push ecx
call fcn.0078f12a
add esp, 0xc
lea edx, [esp + 0x5c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, eax
test edx, edx
jne 0x4b3067
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x558
ret 4
mov edi, str.HTML_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, edx
cmp ecx, 0x104
jg 0x4b3058
mov edi, str.HTML_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x5c]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x5c]
and ecx, 3
push 0x104
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x364]
push eax
push ecx
call fcn.0078f12a
lea edx, [esp + 0x36c]
push str.frame.htm
push edx
call fcn.0078ee7b
mov eax, dword [ebx + 0x1c]
add esp, 0x14
lea edx, [esp + 0x360]
mov ecx, dword [eax]
push 0
push 0
push edx
push eax
call dword [ecx + 0x40]
test eax, eax
jl 0x4b3058
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x4b3109
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov byte [ebx + 0x420], 1
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x558
ret 4
lea edx, [esp + 0x160]
mov ecx, ebx
push edx
call fcn.004b3510
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x558
ret 4
Function at 0x4b3510
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x458
push ebx
mov ebx, dword [esp + 0x460]
push ebp
push esi
test ebx, ebx
push edi
mov ebp, ecx
je 0x4b36a5
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4b36a5
lea eax, [esp + 0x260]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x58]
lea edx, [esp + 0x260]
push ecx
push 0
push 0x7fc254
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 0x58]
push 0x2e
push eax
call fcn.0078c8a0
mov edx, eax
mov edi, str..htm
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x80
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 2
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [esp + 0x6c]
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4b36a5
mov edi, str._title_ViewHTML__title_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
push 0
dec ecx
push edx
push ecx
push str._title_ViewHTML__title_
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x364]
lea ecx, [esp + 0x58]
push eax
push 0
push ecx
call dword [sym.imp.SHELL32.dll_FindExecutableA]
lea edx, [esp + 0x58]
mov esi, eax
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, 0x20
jle 0x4b36a5
push ebx
lea eax, [esp + 0x160]
push str._open___s
push eax
call fcn.0078cdc6
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x20]
lea esi, [ebp + 0x424]
rep stosd dword es:[edi], eax
mov edx, esi
xor ecx, ecx
add esp, 0xc
lea eax, [esp + 0x14]
mov dword [edx], ecx
mov dword [esp + 0x14], 0x44
push esi
push eax
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [edx + 0xc], ecx
push ecx
lea ecx, [esp + 0x17c]
lea edx, [esp + 0x384]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
test edi, edi
je 0x4b3690
mov eax, dword [esi]
push 0x1388
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
xor eax, eax
cmp edi, 1
pop edi
pop esi
pop ebp
pop ebx
sete al
add esp, 0x458
ret 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x458
ret 4
Function at 0x4e4990
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0xa
xor eax, eax
lea edx, [esi + 0x2d]
mov dword [esi + 4], 0
mov edi, edx
mov dword [esi + 8], 0
mov dword [esi], 0x7d7398
lea ebx, [esi + 0xc]
rep stosd dword es:[edi], eax
mov ecx, 8
mov edi, ebx
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], 0xffffffff
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov al, byte [esp + 0x20]
mov byte [esi + 0x60], al
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4e49e9
push 0x27
push eax
push edx
call fcn.0078cff0
add esp, 0xc
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4e49fa
push eax
call sub.WSOCK32.dll_inet_addr
mov dword [esi + 0x58], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4e4a0e
push 0x20
push eax
push ebx
call fcn.0078cff0
add esp, 0xc
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4e4a2a
push eax
call sub.WSOCK32.dll_inet_addr
test eax, eax
mov dword [esi + 0x5c], eax
jne 0x4e4a2a
mov dword [esi + 0x5c], 0xffffffff
mov eax, esi
pop edi
pop esi
pop ebx
ret 0x14
Function at 0x4e5b30
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x82fdbc]
xor esi, esi
mov ebp, ecx
mov dword [esp + 0x10], eax
test ebp, ebp
jle 0x4e5be4
mov edi, dword [0x82fdb4]
mov ebx, 0x1fffffff
mov eax, dword [esp + 0x10]
mov edx, dword [edi + esi*8 + 4]
sub eax, edx
cmp eax, 0x3a98
jb 0x4e5bd5
lea edx, [ecx - 1]
cmp esi, edx
jge 0x4e5b9a
lea eax, [ebx + ecx]
lea ecx, [edi + esi*8 + 8]
shl eax, 3
push eax
lea edx, [edi + esi*8]
push ecx
push edx
call fcn.0078c350
mov edi, dword [0x82fdb4]
mov ecx, dword [0x82fdbc]
add esp, 0xc
mov eax, dword [0x82fdb8]
dec ecx
cdq
and edx, 3
mov dword [0x82fdbc], ecx
add eax, edx
sar eax, 2
cmp ecx, eax
jge 0x4e5bcd
mov eax, dword [0x82fdb0]
push ecx
mov ecx, 0x82fdb0
call dword [eax + 4]
mov edi, dword [0x82fdb4]
mov ecx, dword [0x82fdbc]
dec esi
sub ebx, 0x1fffffff
dec ebp
inc esi
add ebx, 0x1fffffff
cmp esi, ebp
jl 0x4e5b5e
cmp ecx, 5
setge bl
test bl, bl
je 0x4e5c9a
mov edi, dword [0x855edc]
test edi, edi
je 0x4e5d03
mov eax, dword [0x85fd18]
mov esi, dword [str.TDBERR]
cmp eax, 0x2cb0
jle 0x4e5c29
mov ecx, dword [0x85fd0c]
mov ecx, dword [ecx + 0xb2c0]
test ecx, ecx
je 0x4e5c29
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov esi, dword [eax]
mov eax, dword [0x809d3c]
test esi, esi
mov dword [esp + 0x10], eax
je 0x4e5c50
push esi
call fcn.0078c685
add esp, 4
test eax, eax
jle 0x4e5c50
inc eax
push 0
push eax
lea ecx, [esp + 0x18]
call fcn.005dd7a0
push esi
lea ecx, [esp + 0x14]
call fcn.00409430
push 0
lea ecx, [esp + 0x18]
push 0
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, edi
mov dword [esp + 0x24], 0x3f800000
mov dword [esp + 0x28], 0x3f800000
mov dword [esp + 0x2c], 0x3f800000
call fcn.006a76e0
lea ecx, [esp + 0x10]
call fcn.005dd990
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
add esp, 0x10
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x82fdb8]
mov esi, eax
mov eax, dword [0x82fdbc]
xor edi, edi
cmp eax, ecx
jl 0x4e5ce1
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, ecx
add ecx, 4
cmp eax, ecx
jg 0x4e5cc9
mov eax, ecx
test eax, eax
jg 0x4e5ccf
xor eax, eax
push eax
mov eax, dword [0x82fdb0]
mov ecx, 0x82fdb0
call dword [eax + 4]
test al, al
je 0x4e5d03
mov ecx, dword [0x82fdbc]
mov eax, ecx
inc ecx
mov dword [0x82fdbc], ecx
mov ecx, dword [0x82fdb4]
mov dword [ecx + eax*8], edi
mov edx, dword [0x82fdb4]
mov dword [edx + eax*8 + 4], esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4e68e0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x154
push esi
push edi
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
mov esi, 1
push eax
push str.data.pkg
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x18], edi
je 0x4e6a8c
push ebx
push ebp
test esi, esi
je 0x4e6a83
lea ecx, [esp + 0x10]
call fcn.004e6020
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x14]
call fcn.004e60d0
mov eax, dword [0x82fdd8]
mov ecx, dword [0x82fde0]
cmp ecx, eax
jl 0x4e698c
mov cl, byte [0x82fddd]
test cl, cl
jne 0x4e6963
test eax, eax
jne 0x4e6a67
mov ecx, dword [0x82fde4]
test ecx, ecx
jle 0x4e6a67
mov edx, dword [0x82fdd0]
add ecx, eax
push 0
push ecx
mov ecx, 0x82fdd0
call dword [edx + 8]
test al, al
je 0x4e6a67
mov ecx, dword [0x82fde0]
mov edx, dword [esp + 0x14]
mov eax, ecx
inc ecx
mov dword [0x82fde0], ecx
mov ecx, dword [0x82fdd4]
shl eax, 4
add eax, ecx
xor esi, esi
mov ebp, eax
mov eax, dword [0x809d38]
cmp edx, eax
lea ebx, [ebp + 4]
je 0x4e69d2
mov esi, dword [edx - 4]
test esi, esi
jne 0x4e69d2
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov dword [edx - 4], esi
lea edi, [esi + 1]
mov ecx, ebx
push edi
call fcn.005dd330
mov eax, dword [ebx]
mov ecx, dword [0x809d38]
cmp eax, ecx
je 0x4e69ec
mov dword [eax - 4], esi
mov esi, dword [esp + 0x14]
mov ecx, edi
mov edi, dword [ebx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea ebx, [ebp + 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x18]
mov eax, dword [0x809d38]
xor esi, esi
cmp edx, eax
je 0x4e6a2c
mov esi, dword [edx - 4]
test esi, esi
jne 0x4e6a2c
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov dword [edx - 4], esi
lea edi, [esi + 1]
mov ecx, ebx
push edi
call fcn.005dd330
mov eax, dword [ebx]
mov ecx, dword [0x809d38]
cmp eax, ecx
je 0x4e6a46
mov dword [eax - 4], esi
mov esi, dword [esp + 0x18]
mov ecx, edi
mov edi, dword [ebx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov dword [ebp + 0xc], eax
lea ecx, [esp + 0x10]
call fcn.004e60b0
lea ecx, [esp + 0x24]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, eax
jmp 0x4e6923
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x154
ret