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

Disassembly:
add esp, 0xffffff00
push ebx
xor eax, eax
mov ecx, 0x2b
push ebp
push esi
push edi
mov byte [esp + 0x10], 0
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x124]
test eax, eax
je 0x487339
mov ebp, dword [esp + 0x128]
or ebp, ebp
je 0x487339
mov ebx, dword [esp + 0x120]
cmp ebx, 0x50
ja 0x487339
cmp dword [esp + 0x12c], 0x50
jb 0x487339
or ebx, ebx
jne 0x4871d8
lea esi, [esp + 0xc0]
jmp 0x487231
cmp ebx, 0xc
jbe 0x48722a
mov esi, ebp
mov eax, dword [esp + 0x11c]
cmp ebx, 0x4c
mov edi, eax
mov ecx, dword [edi]
mov dword [esi], ecx
mov edx, dword [edi + 4]
mov dword [esi + 4], edx
mov edi, dword [edi + 8]
mov dword [esi + 8], edi
ja 0x487339
lea edi, [ebp + 0x10]
lea esi, [eax + 0xc]
mov eax, 0x38
lea ecx, [ebx - 0xc]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
sub eax, ebx
and ecx, 3
or eax, eax
rep movsb byte es:[edi], byte [esi]
jle 0x48724e
push eax
lea eax, [ebx + ebp + 4]
jmp 0x487248
mov esi, dword [esp + 0x11c]
push 0x2c
lea eax, [ebp + 0x10]
mov edi, ebp
mov ecx, 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]
push eax
call fcn.0048cb40
mov byte [ebp + 0xc], bl
lea esi, [ebp + 0xe]
mov ebx, dword [esp + 0x118]
push 2
push esi
mov byte [ebp + 0xd], bl
call fcn.0048cb40
shr ebx, 8
mov al, byte [esp + 0x114]
mov cl, byte [esi]
mov dl, byte [ebp + 0xf]
not cl
mov byte [ebp + 0x3d], al
not dl
mov eax, dword [esp + 0x124]
mov byte [ebp + 0x3e], cl
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [ebp + 0x3c], bl
mov byte [ebp + 0x3f], dl
call fcn.0048cb70
lea esi, [ebp + 0x30]
lea edx, [esp + 0x18]
push esi
push edx
call fcn.0048ce90
mov edi, esi
add esp, 0x10
mov ecx, 0xffffffd0
sub ecx, ebp
mov bl, byte [edi]
mov dl, byte [edi - 0x10]
xor bl, dl
mov byte [edi], bl
inc edi
lea edx, [ecx + edi]
cmp edx, 0x10
jb 0x4872b1
lea esi, [ebp + 0x20]
lea eax, [esp + 0x10]
push esi
push eax
call fcn.0048ce90
mov ecx, 0xffffffe0
mov eax, esi
add esp, 8
sub ecx, ebp
mov bl, byte [eax]
mov dl, byte [eax - 0x10]
xor bl, dl
mov byte [eax], bl
inc eax
lea edx, [ecx + eax]
cmp edx, 0x10
jb 0x4872dd
lea eax, [esp + 0x10]
lea esi, [ebp + 0x10]
push esi
push eax
call fcn.0048ce90
mov eax, esi
add esp, 8
mov ecx, 0xfffffff0
sub ecx, ebp
mov dl, byte [eax - 0x10]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
lea edx, [ecx + eax]
cmp edx, 0x10
jb 0x487309
lea eax, [esp + 0x10]
push ebp
push eax
call fcn.0048ce90
add esp, 8
pop edi
xor ax, ax
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 0x1c
mov ax, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 0x1c
Function at 0x487350
Capabilities:
Terminate thread

Disassembly:
push ecx
mov eax, dword [0x4eb340]
or eax, eax
mov dword [esp], 0
je 0x4873bb
cmp eax, 0xffffffff
je 0x4873bb
lea ecx, [esp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp], 0x103
jne 0x4873bb
mov edx, dword [0x4eb340]
push 0x7530
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4873a4
mov eax, dword [0x4eb340]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [0x4eb340]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4eb340], 0
pop ecx
ret
Function at 0x489d20
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x4fda30]
test eax, eax
push edi
mov edi, dword [esp + 8]
jne 0x489d54
call fcn.00489da0
or eax, eax
je 0x489d3c
or eax, 0xffffffff
pop edi
ret
mov eax, dword [0x4fda30]
mov dword [0x4eb448], 0
test eax, eax
jne 0x489d54
or eax, 0xffffffff
pop edi
ret
mov eax, dword [esp + 0xc]
mov edx, eax
dec eax
mov ecx, dword [esp + 0x10]
or edx, edx
je 0x489d8e
push esi
push ebx
lea ebx, [eax + 1]
xor eax, eax
mov al, byte [edi]
mov esi, dword [ecx]
mov edx, esi
and edx, 0xff
xor edx, eax
shr esi, 8
inc edi
mov eax, dword [0x4fda30]
mov edx, dword [eax + edx*4]
xor esi, edx
mov dword [ecx], esi
dec ebx
jne 0x489d68
pop ebx
pop esi
pop edi
mov eax, dword [ecx]
ret

Function at 0x48c8e0
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
add esp, 0xfffffff4
mov edx, 0xc6ef3720
push ebp
push ebx
push esi
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edi
mov ebp, dword [eax]
mov edi, 0x20
mov eax, dword [eax + 4]
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x10], esi
mov esi, dword [ebx + 8]
mov dword [esp + 0x24], esi
mov esi, dword [ebx + 4]
mov ebx, dword [ebx]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x10]
mov ecx, ebp
shl ecx, 4
add ecx, esi
mov esi, ebp
shr esi, 5
add esi, ebx
xor ecx, esi
mov ebx, dword [esp + 0x18]
lea esi, [edx + ebp]
xor ecx, esi
sub eax, ecx
mov esi, dword [esp + 0x14]
mov ecx, eax
shl ecx, 4
add ecx, esi
mov esi, eax
shr esi, 5
add esi, ebx
xor ecx, esi
lea ebx, [edx + eax]
xor ecx, ebx
add edx, 0x61c88647
sub ebp, ecx
dec edi
jne 0x48c919
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword [edx], ebp
mov dword [edx + 4], eax
pop ebp
sub esp, 0xfffffff4
ret 8

Function at 0x48c9c0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0xc
push esi
push edi
push ebx
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
push ebp
mov eax, dword [esi]
mov edx, dword [ebx + 4]
xor ecx, ecx
mov esi, dword [esi + 4]
mov dword [esp + 0x10], edx
mov edi, dword [ebx]
mov dword [esp + 0x24], edi
mov edi, 0x20
mov edx, dword [ebx + 0xc]
mov ebx, dword [ebx + 8]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ebx
sub ecx, 0x61c88647
mov edx, esi
mov ebp, dword [esp + 0x24]
shl edx, 4
mov ebx, dword [esp + 0x10]
add edx, ebp
mov ebp, esi
shr ebp, 5
add ebp, ebx
mov ebx, dword [esp + 0x18]
xor edx, ebp
lea ebp, [ecx + esi]
xor edx, ebp
add eax, edx
mov edx, eax
shl edx, 4
mov ebp, dword [esp + 0x14]
add edx, ebp
mov ebp, eax
shr ebp, 5
add ebp, ebx
xor edx, ebp
lea ebx, [ecx + eax]
xor edx, ebx
add esi, edx
dec edi
jne 0x48c9f6
mov edx, dword [esp + 0x20]
pop ebp
pop ebx
pop edi
mov dword [edx], eax
mov dword [edx + 4], esi
pop esi
sub esp, 0xfffffff4
ret 8
Function at 0x48cb70
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
add esp, 0xfffffff0
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
mov edx, 4
lea esi, [esp + ebp + 0x10]
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
sub ebx, ecx
lea eax, [edi + ecx]
add edi, edx
mov cl, byte [ebx + eax]
mov byte [esi], cl
mov byte [eax], cl
add esi, 4
inc eax
dec edx
jne 0x48cb93
inc ebp
cmp ebp, 4
jl 0x48cb7b
cmp edi, 0xb0
jge 0x48cc4a
mov esi, 0x4eb964
xor ecx, ecx
lea eax, [esp + 0x10]
inc ecx
mov ebx, ecx
and ebx, reloc.WS2_32.dll_closesocket
jns 0x48cbce
dec ebx
or ebx, 0xfffffffc
inc ebx
xor edx, edx
mov dl, byte [esp + ebx*4 + 0x13]
mov bl, byte [edx + str.cw]
sub eax, 0xfffffffc
mov dl, byte [eax - 4]
xor dl, bl
mov byte [eax - 4], dl
cmp ecx, 4
jl 0x48cbbe
mov ebp, 1
mov cl, byte [esi]
mov al, byte [esp + 0x10]
xor al, cl
add esi, 4
mov byte [esp + 0x10], al
lea eax, [esp + ebp + 0x10]
mov ecx, 4
mov dl, byte [eax]
mov bl, byte [eax - 1]
xor dl, bl
mov byte [eax], dl
add eax, 4
dec ecx
jne 0x48cc08
inc ebp
cmp ebp, 4
jl 0x48cbff
xor ebp, ebp
mov ecx, 4
lea eax, [esp + ebp + 0x10]
mov bl, byte [eax]
mov edx, dword [esp + 0x24]
sub eax, 0xfffffffc
mov byte [edi + edx], bl
inc edi
dec ecx
jne 0x48cc28
inc ebp
cmp ebp, 4
jl 0x48cc1f
cmp edi, 0xb0
jl 0x48cbb8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x48cc60
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push edi
push ebp
mov edi, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push ebx
push edi
push esi
call fcn.0048ccf0
mov ebp, 9
lea ebx, [edi + 0x10]
sub esp, 0xfffffff8
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + esi]
mov dl, byte [ecx + str.cw]
inc eax
cmp eax, 0x10
mov byte [eax + esi - 1], dl
jl 0x48cc80
push 0
push esi
call fcn.0048cd20
push esi
call fcn.0048cd70
push ebx
push esi
call fcn.0048ccf0
sub esp, 0xffffffec
add ebx, 0x10
dec ebp
jne 0x48cc7e
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + esi]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + str.cw]
mov byte [eax + esi - 1], dl
jl 0x48ccb5
push 0
push esi
call fcn.0048cd20
sub edi, 0xffffff60
push edi
push esi
call fcn.0048ccf0
sub esp, 0xfffffff0
pop ebx
pop esi
pop ebp
pop edi
ret

Function at 0x48ccf0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push ebx
push esi
sub ecx, eax
mov esi, 0x10
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec esi
jne 0x48cd01
pop esi
pop ebx
ret
Function at 0x48ce90
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push esi
push edi
mov esi, dword [esp + 0xc]
push ebx
mov edi, dword [esp + 0x14]
push ebp
lea eax, [esi + 0xa0]
push eax
push edi
call fcn.0048ccf0
sub esp, 0xfffffff8
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + edi]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + 0x4eb864]
mov byte [eax + edi - 1], dl
jl 0x48ceae
push 0x10
push edi
call fcn.0048cd20
sub esp, 0xfffffff8
lea ebp, [esi + 0x90]
mov ebx, 9
push ebp
push edi
call fcn.0048ccf0
push edi
call fcn.0048cf20
sub esp, 0xfffffff4
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + edi]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + 0x4eb864]
mov byte [eax + edi - 1], dl
jl 0x48ceeb
push 0x10
push edi
call fcn.0048cd20
add esp, 8
sub ebp, 0x10
dec ebx
jne 0x48ced9
push esi
push edi
call fcn.0048ccf0
add esp, 8
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x48cf20
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push edi
push esi
xor edi, edi
lea edx, [esp + edi + 0x14]
mov esi, 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], edx
mov eax, ebp
sub eax, ecx
mov dword [esp + 0x10], eax
lea edx, [esi - 2]
and edx, 3
add edx, edi
mov al, byte [edx + ebp]
push eax
push 9
call fcn.0048ce40
mov bl, al
lea ecx, [esi + 1]
and ecx, 3
add ecx, edi
mov dl, byte [ecx + ebp]
push edx
push 0xd
call fcn.0048ce40
xor bl, al
mov eax, esi
and eax, 3
add eax, edi
mov cl, byte [eax + ebp]
push ecx
push 0xb
call fcn.0048ce40
xor bl, al
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x28]
mov cl, byte [edx + eax]
push ecx
push 0xe
call fcn.0048ce40
add esp, 0x20
xor bl, al
inc esi
mov eax, dword [esp + 0x28]
lea edx, [esi - 1]
mov byte [eax], bl
inc eax
mov dword [esp + 0x28], eax
cmp edx, 4
jl 0x48cf46
add edi, 4
cmp edi, 0x10
jl 0x48cf2d
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [ebp], edi
mov eax, dword [esp + 0x20]
mov dword [ebp + 4], esi
mov dword [ebp + 8], edx
pop esi
mov dword [ebp + 0xc], eax
pop edi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x48d090
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
mov esi, dword [esp + 0xc]
push ebp
push esi
call fcn.00495b60
mov edi, dword [esp + 0x18]
add esp, 4
or edi, edi
je 0x48d165
mov al, byte [esi + 1]
and al, 0xf
cmp al, 0xf
je 0x48d0bd
pop ebp
mov ax, 0x1d02
pop esi
pop edi
ret
xor eax, eax
mov cl, byte [eax + esi + 8]
mov byte [eax + esi], cl
inc eax
cmp eax, 0x40
jb 0x48d0bf
push esi
push edi
call fcn.0048ce90
sub esp, 0xfffffff8
xor eax, eax
mov cl, byte [eax + esi]
mov dl, byte [eax + esi + 0x10]
xor cl, dl
mov byte [eax + esi], cl
inc eax
cmp eax, 0x10
jb 0x48d0d8
push ebx
lea ebp, [esi + 0x10]
push ebp
push edi
call fcn.0048ce90
mov eax, ebp
add esp, 8
mov ecx, 0xfffffff0
sub ecx, esi
mov dl, byte [eax + 0x10]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
lea edx, [ecx + eax]
cmp edx, 0x10
jb 0x48d101
lea ebp, [esi + 0x20]
push ebp
push edi
call fcn.0048ce90
mov eax, ebp
sub esp, 0xfffffff8
mov ecx, 0xffffffe0
sub ecx, esi
mov dl, byte [eax + 0x10]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
lea edx, [ecx + eax]
cmp edx, 0x10
jb 0x48d129
lea eax, [esi + 0x30]
push eax
push edi
call fcn.0048ce90
mov cl, byte [esi + 6]
mov al, byte [esi + 0x3e]
add esp, 8
pop ebx
cmp cl, al
jne case.0x48d19f.4
mov dl, byte [esi + 7]
mov al, byte [esi + 0x3f]
cmp dl, al
je 0x48d165
pop ebp
mov ax, 0x1d02
pop esi
pop edi
ret
mov cl, byte [esi + 5]
mov dl, byte [esi + 4]
xor eax, eax
mov al, byte [esi + 1]
mov ebp, eax
add eax, edx
add ecx, eax
mov al, byte [esi + 2]
mov dl, byte [esi + 3]
add ecx, edx
add eax, ecx
xor ecx, ecx
and eax, 0xff
mov cl, byte [esi]
xor eax, ecx
je 0x48d195
mov ax, 0x1d0d
pop ebp
pop esi
pop edi
ret
mov eax, ebp
and eax, 0xf
cmp eax, 7
ja case.default.0x48d19f
jmp dword [eax*4 + 0x48d1e8]
xor ax, ax
pop ebp
pop esi
pop edi
ret
mov ax, 0x1d41
pop ebp
pop esi
pop edi
ret
pop ebp
pop esi
pop edi
mov ax, 0x1d04
ret
pop ebp
mov ax, 0x1d0a
pop esi
pop edi
ret
mov ax, 0x1d15
pop ebp
pop esi
pop edi
ret
mov ax, 0x1d42
pop ebp
pop esi
pop edi
ret
mov ax, 0x1d3f
pop ebp
pop esi
pop edi
ret
pop ebp
pop esi
mov ax, 0x1dff
pop edi
ret
Function at 0x48ddc0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x13
add esp, 0xfffffea8
push ebx
xor eax, eax
push ebp
push edi
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
mov dword [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x15
xor eax, eax
mov byte [esp + 0x64], al
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, 0x2b
lea edi, [esp + 0x65]
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x174]
cmp ebx, 0x3a
stosw word es:[edi], ax
stosb byte es:[edi], al
ja 0x48dfd5
mov ebp, dword [esp + 0x178]
or ebp, ebp
je 0x48dfd5
mov eax, dword [esp + 0x17c]
or eax, eax
je 0x48dfd5
cmp dword [esp + 0x180], 0x50
jb 0x48dfd5
push esi
lea esi, [esp + 0x118]
or ebx, ebx
je 0x48de5a
mov esi, dword [esp + 0x174]
lea eax, [esp + 0x1e]
push 2
push eax
mov byte [esp + 0x20], 7
call fcn.0048cb40
mov al, byte [esi]
mov cl, byte [esp + 0x16c]
mov dl, byte [esp + 0x170]
mov byte [esp + 0x20], cl
mov cl, byte [esi + 1]
mov byte [esp + 0x21], dl
mov dl, byte [esi + 2]
mov byte [esp + 0x23], cl
lea ecx, [esp + 0x26]
mov byte [esp + 0x22], al
mov al, byte [esi + 3]
push 2
push ecx
mov byte [esp + 0x2c], dl
mov byte [esp + 0x2d], al
call fcn.0048cb40
cmp ebx, 4
jbe 0x48ded8
sub esi, 0xfffffffc
lea edi, [esp + 0x28]
lea ecx, [ebx - 4]
mov edx, ecx
shr ecx, 2
mov eax, 0x39
sub eax, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or eax, eax
jle 0x48dee4
push eax
lea eax, [esp + ebx + 0x28]
push eax
jmp 0x48dedf
lea ecx, [esp + 0x28]
push 0x35
push ecx
call fcn.0048cb40
cmp ebx, 4
jbe 0x48def2
sub bl, 4
mov byte [esp + 0x5d], bl
jmp 0x48def7
mov byte [esp + 0x5d], 0
lea ecx, [esp + 0x68]
mov dl, byte [esp + 0x26]
mov al, byte [esp + 0x27]
push ebp
push ecx
mov byte [esp + 0x66], dl
mov byte [esp + 0x67], al
call fcn.0048cb70
lea edx, [esp + 0x58]
lea eax, [esp + 0x70]
push edx
push eax
call fcn.0048ce90
add esp, 0x10
xor edi, edi
mov bl, byte [esp + edi + 0x50]
mov cl, byte [esp + edi + 0x40]
xor bl, cl
mov byte [esp + edi + 0x50], bl
inc edi
cmp edi, 0x10
jb 0x48df26
lea eax, [esp + 0x68]
lea edx, [esp + 0x40]
push edx
push eax
call fcn.0048ce90
add esp, 8
xor ebp, ebp
mov cl, byte [esp + ebp + 0x30]
mov bl, byte [esp + ebp + 0x40]
xor bl, cl
mov byte [esp + ebp + 0x40], bl
inc ebp
cmp ebp, 0x10
jb 0x48df4e
lea edx, [esp + 0x30]
lea eax, [esp + 0x68]
push edx
push eax
call fcn.0048ce90
sub esp, 0xfffffff8
xor edx, edx
mov bl, byte [esp + edx + 0x30]
mov cl, byte [esp + edx + 0x20]
xor bl, cl
mov byte [esp + edx + 0x30], bl
inc edx
cmp edx, 0x10
jb 0x48df76
lea edx, [esp + 0x20]
lea eax, [esp + 0x68]
push edx
push eax
call fcn.0048ce90
lea ecx, [esp + 0x20]
lea edx, [esp + 0x70]
push ecx
push edx
call fcn.0048cb70
lea eax, [esp + 0x28]
push eax
call fcn.00495b60
mov edi, dword [esp + 0x194]
lea esi, [esp + 0x2c]
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
add esp, 0x14
xor ax, ax
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x158
ret
mov ax, 0x1d10
pop edi
pop ebp
pop ebx
add esp, 0x158
ret
Function at 0x48e620
Capabilities:
Query or enumerate registry value

Disassembly:
add esp, 0xfffffff8
lea eax, [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.WS2_32.dll_bind
call esi
or eax, eax
jne 0x48e6ab
lea ecx, [esp + 4]
mov edx, dword [esp + 0x14]
push ecx
push 0x20019
push eax
mov eax, dword [esp + 0x14]
push edx
push eax
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, eax
jne 0x48e6a2
lea eax, [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
lea eax, [esp + 0x14]
mov ecx, dword [esp + 8]
push edx
push eax
push 0
push str.ServiceName
push ecx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
or eax, eax
jne 0x48e6b0
cmp dword [esp + 0x10], 1
jne 0x48e6b0
mov edx, dword [esp + 4]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
xor eax, eax
pop esi
sub esp, 0xfffffff8
ret
pop esi
or eax, 0xffffffff
add esp, 8
ret

Function at 0x48e700
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x18
lea eax, [esp]
push esi
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.WS2_32.dll_bind
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
or eax, eax
jne 0x48e774
push eax
push eax
push eax
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x48e772
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.0048e6e0
sub esp, 0xfffffff8
pop esi
add esp, 0x18
ret
mov eax, esi
pop esi
sub esp, 0xffffffe8
ret
Function at 0x48e860
Capabilities:
Check if file exists
Get disk information

Disassembly:
sub esp, 0x404
mov eax, dword [esp + 0x418]
push ebx
push ebp
xor ebx, ebx
mov ebp, dword [esp + 0x410]
push esi
push edi
lea ecx, [esp + 0x14]
push 0x200
push ecx
push ebp
mov byte [esp + 0x1f], 0
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
or eax, eax
jne 0x48e90f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x48e905
lea edx, [esp + 0x14]
mov eax, dword [0x4eba7c]
mov cl, byte [0x4eba80]
mov edi, ebp
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], cl
or ecx, 0xffffffff
mov esi, dword [str.Device_]
mov dword [esp + 0x14], esi
xor eax, eax
not ecx
repne scasb al, byte es:[edi]
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
lea eax, [esp + 0x14]
dec edi
push eax
mov ecx, edx
shr ecx, 2
push ebp
push 1
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
test eax, eax
jne 0x48e9ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
or ebx, ebx
jne 0x48e9f7
mov ecx, dword [str.._]
mov edi, ebp
mov dword [esp + 0x214], ecx
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [0x4ea1a4]
not ecx
repne scasb al, byte es:[edi]
mov byte [esp + 0x218], dl
lea edx, [esp + 0x214]
push 0xffffffffffffffff
push eax
push 3
sub edi, ecx
mov esi, edi
mov edi, edx
push eax
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
push 1
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
lea eax, [esp + 0x22c]
push eax
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x48e9c4
mov eax, dword [esp + 0x420]
mov ecx, dword [esp + 0x428]
mov edx, dword [esp + 0x424]
push 0
push ecx
push edx
push eax
lea ecx, [esp + 0x42c]
push 4
push ecx
push 0x170002
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
or eax, eax
jne 0x48e9b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x48e9cc
mov byte [esp + 0x13], 1
jmp 0x48e90f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov al, byte [esp + 0x13]
test al, al
je 0x48e9f7
lea edx, [esp + 0x14]
push edx
push ebp
push 7
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
test eax, eax
jne 0x48e9f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
sub esp, 0xfffffbfc
ret
Function at 0x48edb0
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 8]
add esp, 0xfffffff0
lea ecx, [esp]
push esi
push eax
push ecx
call fcn.0048ed70
push 0
push 0x80
push 3
push 0
push 3
lea edx, [esp + 0x18]
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [esp + 0x18]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x48ee1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x48ee06
cmp eax, 3
ja 0x48ee06
mov ax, 0x20c
pop esi
sub esp, 0xfffffff0
ret 8
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x48ee14
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, 0x20b
pop esi
sub esp, 0xfffffff0
ret 8
mov ax, 0x200
pop esi
add esp, 0x10
ret 8

Function at 0x48ee30
Capabilities:
Check if file exists

Disassembly:
add esp, 0xfffffff0
mov al, 0x5c
push esi
mov byte [esp + 4], al
mov byte [esp + 5], al
mov byte [esp + 7], al
push 0
push 0x80
mov al, 0x6e
push 3
mov byte [esp + 0x15], al
mov byte [esp + 0x17], al
push 0
push 3
lea eax, [esp + 0x18]
push 0xc0000000
push eax
mov byte [esp + 0x22], 0x2e
mov byte [esp + 0x24], 0x53
mov byte [esp + 0x26], 0x74
mov byte [esp + 0x28], 0x6c
mov byte [esp + 0x29], 0x55
mov byte [esp + 0x2a], 0x73
mov byte [esp + 0x2b], 0x62
mov byte [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov esi, dword [esp + 0x18]
mov dword [esi], eax
jne 0x48eed0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x48eeb7
cmp eax, 3
ja 0x48eeb7
mov ax, 0x20c
pop esi
add esp, 0x10
ret 8
mov esi, dword [esi]
cmp esi, 0xffffffff
je 0x48eec5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ax, 0x20b
add esp, 0x10
ret 8
mov ax, 0x200
pop esi
add esp, 0x10
ret 8

Function at 0x4957a0
Capabilities:
Read .ini file

Disassembly:
add esp, 0xffffffc0
push ebx
mov bx, word [esp + 0x48]
push esi
cmp bx, 4
mov esi, dword [esp + 0x50]
mov word [esi], 0
jbe 0x4957c3
pop esi
xor al, al
pop ebx
sub esp, 0xffffffc0
ret 8
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.00495490
lea ecx, [esp + 0x38]
push 0x10
push ecx
call fcn.004954e0
lea edx, [esp + 0x18]
push 0x10
push edx
call fcn.00495580
add bl, 0x31
lea eax, [esp + 0x18]
push eax
call fcn.0047e8e0
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0xc]
and eax, 0xffff
mov byte [esp + eax + 0x1c], bl
push 0x10
push edx
lea eax, [esp + 0x24]
push 0x4e75b4
lea ecx, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
or eax, eax
je 0x495874
lea edx, [esp + 8]
push 0x2c
push edx
call fcn.00495770
cmp ax, 0x10
jae 0x49583e
and eax, 0xffff
mov byte [esp + eax + 8], 0
cmp byte [esp + 8], 0x30
jne 0x495860
mov al, byte [esp + 9]
and al, 0xdf
cmp al, 0x58
jne 0x495860
lea ecx, [esp + 0xa]
push esi
push ecx
call fcn.0047e9f0
test al, al
jne 0x495874
jmp 0x49586f
lea edx, [esp + 8]
push esi
push edx
call fcn.0047e950
test al, al
jne 0x495874
mov word [esi], 0
mov ax, word [esi]
test ax, ax
je 0x49588f
cmp ax, 0xffff
je 0x49588f
mov eax, 1
pop esi
pop ebx
sub esp, 0xffffffc0
ret 8
xor eax, eax
pop esi
pop ebx
add esp, 0x40
ret 8