joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414820
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword fs:[0x30]
push ebx
mov al, byte [eax + 2]
test al, al
setne bl
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
movzx ecx, bl
mov edx, 1
cmovne ecx, edx
pushfd
pop eax
mov dword [ebp - 4], eax
test dword [ebp - 4], 0x100
movzx eax, cl
cmovne eax, edx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x414860
Capabilities:
Get hostname
Get session user name
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push 0x100
lea eax, [ebp - 0x110]
mov dword [ebp - 0xc], 0x100
push 0
push eax
mov dword [ebp - 0x10], 0x100
call fcn.004cacb0
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
push 0x100
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004cacb0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov dword [ebp - 8], 0xf1f7f0d5
xor ecx, ecx
mov dword [ebp - 4], 0xfaf0db
movzx eax, byte [ebp + ecx - 8]
push eax
call fcn.00459470
mov byte [ebp + ecx - 8], al
inc ecx
cmp ecx, 7
jb 0x4148d5
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.004ca160
add esp, 8
test eax, eax
jne 0x414945
mov dword [ebp - 7], 0xa6d3ded7
xor ecx, ecx
mov word [ebp - 3], 0xd7cb
mov byte [ebp - 1], al
movzx eax, byte [ebp + ecx - 7]
push eax
call fcn.00459470
mov byte [ebp + ecx - 7], al
inc ecx
cmp ecx, 6
jb 0x414913
lea eax, [ebp - 7]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004ca160
add esp, 8
test eax, eax
jne 0x414945
xor al, al
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x414cb0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x414cd2
push 0x15
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x414cd4
mov bl, 1
mov dword [ebp - 0x10], 0xc3a5dc
xor ecx, ecx
nop dword [eax]
movzx eax, byte [ebp + ecx - 0x10]
push eax
call fcn.00459470
mov byte [ebp + ecx - 0x10], al
inc ecx
cmp ecx, 3
jb 0x414ce0
push 0x105
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push 0x105
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x414e50
mov dword [ebp - 0xa], 0xe7f0ddc9
xor ecx, ecx
mov dword [ebp - 6], 0xe9eddb
nop dword [eax + eax]
movzx eax, byte [ebp + ecx - 0xa]
push eax
call fcn.00459470
mov byte [ebp + ecx - 0xa], al
inc ecx
cmp ecx, 7
jb 0x414d40
lea ecx, [ebp - 0xa]
lea eax, [ebp - 0x120]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x414d80
test dl, dl
je 0x414d7c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x414d80
add eax, 2
add ecx, 2
test dl, dl
jne 0x414d60
xor eax, eax
jmp 0x414d85
sbb eax, eax
or eax, 1
test eax, eax
je 0x414e49
mov dword [ebp - 9], 0xe7f0ddc9
xor ecx, ecx
mov word [ebp - 5], 0xd9cc
mov byte [ebp - 3], 0
movzx eax, byte [ebp + ecx - 9]
push eax
call fcn.00459470
mov byte [ebp + ecx - 9], al
inc ecx
cmp ecx, 6
jb 0x414da0
lea ecx, [ebp - 9]
lea eax, [ebp - 0x120]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x414de0
test dl, dl
je 0x414ddc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x414de0
add eax, 2
add ecx, 2
test dl, dl
jne 0x414dc0
xor eax, eax
jmp 0x414de5
sbb eax, eax
or eax, 1
test eax, eax
je 0x414e49
mov dword [ebp - 0xc], 0xe7f0ddc9
xor ecx, ecx
mov dword [ebp - 8], 0xecfaead8
mov word [ebp - 4], 0xeb
nop
movzx eax, byte [ebp + ecx - 0xc]
push eax
call fcn.00459470
mov byte [ebp + ecx - 0xc], al
inc ecx
cmp ecx, 9
jb 0x414e00
lea ecx, [ebp - 0xc]
lea eax, [ebp - 0x120]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x414e40
test dl, dl
je 0x414e3c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x414e40
add eax, 2
add ecx, 2
test dl, dl
jne 0x414e20
xor eax, eax
jmp 0x414e45
sbb eax, eax
or eax, 1
test eax, eax
jne 0x414e50
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415f90
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f142b
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov eax, dword [0x533564]
push edi
mov edi, ecx
test al, 1
jne 0x41600d
or eax, 1
mov dword [0x533564], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movups xmmword [0x533570], xmm0
mov eax, 0x2f5c
mov dword [0x533580], 2
push 0x4fc310
mov dword [0x533584], 0xf
mov word [0x533570], ax
mov byte [0x533572], 0
call fcn.004b2a6c
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x416017
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41611f
cmp dword [0x533584], 0x10
mov ecx, dword [edi + 0x10]
push esi
mov esi, 0x533570
mov dword [ebp - 0x10], edi
cmovae esi, dword [0x533570]
cmp dword [edi + 0x14], 0x10
jb 0x41604c
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
cmp dword [0x533580], 0
je 0x4160f9
test ecx, ecx
je 0x4160f9
push 0x100
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.004cacb0
mov ecx, dword [0x533580]
add esp, 0xc
add ecx, esi
cmp esi, ecx
je 0x416093
movzx eax, byte [esi]
inc esi
mov byte [ebp + eax - 0x128], 1
cmp esi, ecx
jne 0x416083
mov eax, dword [edi + 0x10]
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
dec eax
cmp eax, ecx
cmovb ecx, eax
movzx eax, byte [ecx + edx]
add ecx, edx
mov al, byte [ebp + eax - 0x128]
test al, al
jne 0x4160c7
cmp ecx, edx
je 0x4160f9
movzx eax, byte [ecx - 1]
dec ecx
mov al, byte [ebp + eax - 0x128]
test al, al
je 0x4160b3
sub ecx, edx
cmp ecx, 0xffffffff
je 0x4160f9
push ecx
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00457c10
mov dword [ebp - 4], 1
mov ecx, eax
call fcn.00415f90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402890
cmp dword [edi + 0x14], 0x10
pop esi
jb 0x416102
mov edi, dword [edi]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
pop edi
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4161d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x44
lea eax, [ebp - 0x54]
mov esi, ecx
push 0
push eax
call fcn.004cacb0
add esp, 0xc
mov dword [ebp - 0x54], 0x44
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
movups xmmword [ebp - 0x10], xmm0
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop esi
test eax, eax
je 0x41622d
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esp, ebp
pop ebp
ret
Function at 0x419da0
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b4
push ebx
push esi
push edi
lea eax, [esp + 0x30]
mov dword [esp + 0xc], 0
push eax
push 0x202
mov esi, edx
mov ebx, ecx
or edi, 0xffffffff
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x419e63
mov dword [esp + 0x10], eax
xorps xmm0, xmm0
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
movlpd qword [esp + 0x24], xmm0
push eax
push esi
push ebx
movlpd qword [esp + 0x38], xmm0
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 6
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x419e5d
mov esi, dword [esp + 0xc]
test esi, esi
je 0x419e71
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x419e5d
push dword [esi + 0x10]
push dword [esi + 0x18]
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x419e6d
push edi
call ebx
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x419e21
push dword [esp + 0xc]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
call dword [sym.imp.WS2_32.dll_WSACleanup]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp edi, 0xffffffff
je 0x419e5d
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41efc0
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef7fd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
push edi
mov edi, dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
mov esi, 0x80
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], ecx
nop
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], esi
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call edi
test eax, eax
jne 0x41f016
add esi, 0x10
cmp esi, 0x800
jbe 0x41eff0
cmp esi, 0x800
jae 0x41f03a
push 0x800
call fcn.004d76ec
mov edi, eax
add esp, 4
test edi, edi
jne 0x41f04c
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x800
push 0
push edi
call fcn.004cacb0
mov esi, dword [ebp - 0x18]
mov ecx, 0x7ff
cmp esi, 0x800
mov eax, esi
cmova eax, ecx
push eax
push dword [ebp - 0x14]
push edi
call fcn.004ca570
add esp, 0x18
mov dword [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x38]
movups xmmword [ebp - 0x38], xmm0
push esi
push edi
call fcn.00402aa0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x38]
mov esi, dword [ebp - 0x10]
cmp esi, eax
je 0x41f0d6
mov ecx, esi
call fcn.00402890
movups xmm0, xmmword [ebp - 0x38]
mov eax, 0xf
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x28]
mov dword [ebp - 0x24], eax
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
jmp 0x41f0d9
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x41f10f
mov edx, dword [ebp - 0x38]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x41f105
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f145
push ecx
push edx
call fcn.004b2a81
add esp, 8
push edi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
call fcn.004d6f96
add esp, 4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.004cdf70
int3
Function at 0x459490
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8fb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov dword [ecx], 0
mov byte [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ebp - 4], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov byte [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
mov byte [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov byte [ecx + 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x459fb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f90ad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov eax, ecx
push edi
mov dword [ebp - 0x10], eax
call fcn.0045b450
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
lea esi, [eax + 8]
mov dword [eax + 0x2c], edx
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea edi, [eax + 0x14]
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [eax + 0x48], 0
mov byte [eax + 0x3d], 0
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x4c], 0
mov eax, dword [0x533514]
mov ecx, dword [0x533518]
mov dword [edx + 0x40], eax
mov dword [edx + 0x44], ecx
mov dword [edx + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x45a130
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f90de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [ebp - 0x10], 0
push ebx
mov ebx, ecx
push esi
push edi
push 0
mov eax, dword [ebx]
push 0
mov dword [ebp - 0x14], ebx
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.00404230
push 8
call fcn.004b2800
push 1
mov esi, eax
call fcn.004b160e
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov dword [ebp - 4], 2
mov eax, dword [edi + 0x30]
mov esi, dword [eax + 4]
mov ecx, esi
mov dword [ebp - 0x18], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], 2
push eax
call fcn.0045b7b0
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov edx, 2
mov byte [ebp + 0xb], al
mov dword [ebp - 0x10], edx
and edx, 0xfffffffd
mov dword [ebp - 0x10], edx
mov byte [ebp - 4], 1
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 8]
test eax, eax
je 0x45a25d
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
cmp dword [edi + 0x38], 0
mov al, byte [ebp + 0xb]
mov byte [edi + 0x40], al
jne 0x45a279
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.00404230
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x469d40
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4faf9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
push esi
mov ecx, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
call fcn.00458190
mov dword [ebp - 4], 2
lea eax, [esi + 0x18]
lea ecx, [edi + 0x18]
push eax
mov dword [ebp + 8], ecx
call fcn.00458190
mov dword [ebp - 4], 5
lea eax, [esi + 0x30]
lea ecx, [edi + 0x30]
push eax
mov dword [ebp - 0x18], ecx
call fcn.00458190
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x473000
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edx
test edi, edi
je 0x473162
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x473162
mov eax, dword [edi + 0x3c]
add eax, edi
cmp dword [eax], 0x4550
jne 0x473162
mov ecx, 0x20b
cmp word [eax + 0x18], cx
jne 0x473051
mov ecx, dword [eax + 0x8c]
mov eax, dword [eax + 0x88]
jmp 0x473057
mov ecx, dword [eax + 0x7c]
mov eax, dword [eax + 0x78]
mov esi, dword [eax + edi + 0x1c]
lea ebx, [eax + edi]
mov eax, dword [ebx + 0x24]
add esi, edi
mov dword [ebp - 0xc], ecx
add eax, edi
mov ecx, dword [ebx + 0x20]
mov dword [ebp - 8], esi
add ecx, edi
xor esi, esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
cmp dword [ebx + 0x14], esi
jbe 0x4731c0
cmp edx, 0xffff
ja 0x47316b
mov ecx, dword [ebx + 0x10]
movzx eax, si
add ecx, eax
mov dword [ebp - 0x10], eax
movzx eax, dx
cmp eax, ecx
jne 0x4731b0
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov esi, dword [eax + esi*4]
add esi, edi
cmp esi, ebx
jb 0x4731c2
mov eax, dword [ebp - 0xc]
add eax, ebx
cmp esi, eax
ja 0x4731c2
push 0x100
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.004cacb0
push esi
call fcn.004d76f7
add esp, 0x10
mov byte [ebp - 9], 0
mov edi, eax
push 0xffffffffffffffb1
call fcn.00459470
mov byte [ebp - 0xa], al
lea eax, [ebp - 0xa]
push eax
push edi
call fcn.004ca160
add esp, 8
mov esi, eax
lea eax, [ebp - 0x11c]
push edi
mov byte [esi], 0
inc esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 8], 0xf3f3fbb1
xor ecx, ecx
mov byte [ebp - 4], 0
nop dword [eax]
movzx eax, byte [ebp + ecx - 8]
push eax
call fcn.00459470
mov byte [ebp + ecx - 8], al
inc ecx
cmp ecx, 4
jb 0x473120
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x4731cb
push edi
call fcn.004d6f96
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, dword [ebx + 0x18]
jae 0x473162
movzx eax, word [eax + esi*2]
mov ecx, dword [ecx + esi*4]
mov dword [ebp - 0x10], eax
add ecx, edi
mov eax, edx
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4731a0
test dl, dl
je 0x47319c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4731a0
add ecx, 2
add eax, 2
test dl, dl
jne 0x473180
xor eax, eax
jmp 0x4731a5
sbb eax, eax
or eax, 1
test eax, eax
je 0x4730a3
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
inc esi
mov ecx, dword [ebp - 0x1c]
cmp esi, dword [ebx + 0x14]
jb 0x473081
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffbc
mov byte [ebp - 0xd], 0
call fcn.00459470
mov byte [ebp - 0xe], al
lea eax, [ebp - 0xe]
push eax
push esi
call fcn.004ca160
add esp, 8
test eax, eax
jne 0x4731ee
mov edx, esi
jmp 0x4731fc
lea eax, [esi + 1]
push eax
call fcn.004d65b7
add esp, 4
mov edx, eax
mov ecx, ebx
call fcn.00473000
push edi
mov esi, eax
call fcn.004d6f96
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x474a20
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
lea eax, [esp + 8]
mov dword [esp + 8], 0
mov edi, edx
mov dword [esp + 0xc], 0
push eax
lea edx, [esp + 0x10]
mov esi, ecx
call fcn.00474910
add esp, 4
test eax, eax
je 0x474a5c
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0xc]
mov ecx, esi
push 0x7530
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_117.0.0.0_Safari_537.36_Edg_117.0.2045.36
push edi
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.00474730
mov ecx, dword [esp + 0x20]
add esp, 0x14
mov esi, eax
call fcn.00474a00
test esi, esi
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x474ef0
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov byte [ecx + 0x9c], 0
ret

Function at 0x475a30
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004757b0

Function at 0x475a60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00475a40
Function at 0x47bd20
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push edi
mov edi, edx
mov ecx, dword [ebx]
mov eax, ecx
xor eax, dword [ebp + 8]
mov edx, dword [ebx + 8]
movzx eax, al
shr ecx, 8
xor ecx, dword [edi + eax*4]
movzx eax, cl
add eax, dword [ebx + 4]
mov dword [ebx], ecx
imul ecx, eax, 0x8088405
mov eax, dword [ebp + 8]
inc ecx
mov dword [ebx + 4], ecx
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [edi + ecx*4]
pop edi
mov dword [ebx + 8], edx
pop ebx
pop ebp
ret

Function at 0x47d2e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x100ac], ebx
je 0x47d346
cmp dword [esi + 0x7c], ebx
jbe 0x47d346
mov ecx, 0xffffff5c
lea eax, [esi + 0x100d0]
sub ecx, esi
lea edi, [esi + 0xa4]
mov dword [ebp - 4], ecx
nop
mov ecx, eax
call fcn.0047bd00
movzx ecx, byte [edi]
mov ebx, eax
mov edx, dword [esi + 0x100dc]
push ecx
lea ecx, [esi + 0x100d0]
call fcn.0047bd20
xor byte [edi], bl
add esp, 4
mov eax, dword [ebp - 4]
inc edi
add eax, edi
cmp eax, dword [esi + 0x7c]
lea eax, [esi + 0x100d0]
jb 0x47d310
xor ebx, ebx
mov edi, dword [esi + 0x7c]
lea eax, [esi + 0xa4]
push edi
push eax
push dword [esi + 0x2c]
mov eax, dword [esi + 8]
push dword [esi + 0x1c]
call eax
add esp, 0x10
mov dword [esi + 0x7c], 0
or ecx, 0xffffffff
cmp eax, edi
cmovne ebx, ecx
add dword [esi + 0x100c0], edi
mov ecx, dword [esi + 0x48]
mov eax, ebx
adc dword [esi + 0x100c4], 0
add dword [esi + 0x100c8], ecx
pop edi
adc dword [esi + 0x100cc], 0
mov dword [esi + 0x48], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret