joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46bb6d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebp
xor ebp, ebp
cmp dword [0x320e394], ebp
je 0x46bd53
push ebx
mov ebx, dword [esp + 0x60]
push edi
test ebx, ebx
je 0x46bb8d
mov edi, ebx
jmp 0x46bb9f
push 0
call dword [0x3209404]
mov edi, eax
test edi, edi
je 0x46bd51
lea eax, [esp + 0x18]
push eax
push 0x18
push dword [esp + 0x68]
call dword [0x3209438]
test eax, eax
je 0x46bd46
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push esi
mov esi, dword [esp + 0x24]
push 0x2c
push 0
push eax
mov dword [esp + 0x20], ebp
call fcn.00429100
add esp, 0xc
mov dword [esp + 0x34], 0x28
xor eax, eax
mov dword [esp + 0x38], ebp
inc eax
mov dword [esp + 0x3c], esi
mov word [esp + 0x40], ax
xor ecx, ecx
push 0x20
pop eax
push ecx
push ecx
mov word [esp + 0x4a], ax
lea eax, [esp + 0x18]
push eax
push ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x54], ecx
push eax
push edi
call dword [0x3209440]
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x46bd45
push 0
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x18]
push esi
push 0
push dword [esp + 0x78]
push edi
call dword [0x3209418]
imul esi, dword [esp + 0x14]
test esi, esi
jle 0x46bd45
cmp dword [esp + 0x6c], 0
je 0x46bcf2
mov ebp, dword [esp + 0x10]
push 0xa
pop ebx
movzx ecx, byte [ebp + 1]
xor edx, edx
movzx eax, byte [ebp + 2]
lea eax, [eax + ecx*2]
movzx ecx, byte [ebp]
imul eax, eax, 3
add eax, ecx
div ebx
mov cl, al
cmp cl, 0x40
jae 0x46bc86
movzx eax, cl
sub eax, 0x40
imul eax, eax, 7
cdq
idiv ebx
lea ecx, [eax + 0x40]
jmp 0x46bc9c
cmp cl, 0xc0
jbe 0x46bc9c
movzx eax, cl
sub eax, 0xc0
imul eax, eax, 7
cdq
idiv ebx
lea ecx, [eax - 0x40]
movzx eax, byte [ebp + 3]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movzx eax, cl
movd xmm0, eax
divss xmm1, dword [0x537190]
cvtdq2ps xmm0, xmm0
mulss xmm1, xmm0
cvttss2si ecx, xmm1
mov byte [ebp], cl
mov eax, dword [esp + 0x10]
mov byte [eax + 1], cl
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
mov byte [ecx + 2], al
mov ebp, dword [esp + 0x10]
add ebp, 4
mov dword [esp + 0x10], ebp
sub esi, 1
jne 0x46bc56
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x18]
jmp 0x46bd45
mov edx, dword [esp + 0x10]
mov al, byte [edx + 3]
cmp al, 0xff
jae 0x46bd39
movzx ecx, al
movzx eax, byte [edx]
imul ecx, eax
shr ecx, 8
mov byte [edx], cl
mov edx, dword [esp + 0x10]
movzx eax, byte [edx + 1]
movzx ecx, byte [edx + 3]
imul ecx, eax
shr ecx, 8
mov byte [edx + 1], cl
mov edx, dword [esp + 0x10]
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
imul ecx, eax
shr ecx, 8
mov byte [edx + 2], cl
mov edx, dword [esp + 0x10]
add edx, 4
mov dword [esp + 0x10], edx
sub esi, 1
jne 0x46bcf6
pop esi
test ebx, ebx
jne 0x46bd51
push edi
call dword [0x3209414]
pop edi
pop ebx
mov eax, ebp
pop ebp
add esp, 0x50
ret 0xc
Function at 0x46d87e
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x3c]
xor ebx, ebx
cmp esi, 1
je 0x46d8ae
cmp esi, 2
je 0x46d8ae
cmp esi, 4
je 0x46d8ae
cmp esi, 8
je 0x46d8ae
cmp esi, 0x18
je 0x46d8ae
cmp esi, 0x20
je 0x46d8ae
xor eax, eax
jmp 0x46da7b
mov ecx, dword [0x320e3b8]
push ebp
push edi
xor edi, edi
mov dword [esp + 0x10], edi
test ecx, ecx
jle 0x46da77
mov edx, dword [esp + 0x28]
mov eax, dword [edi*4 + 0x320e7f8]
cmp dword [eax], edx
je 0x46d8e1
inc edi
mov dword [esp + 0x10], edi
cmp edi, ecx
jl 0x46d8c8
jmp 0x46da77
cmp dword [esp + 0x38], 0x20
jne 0x46da4e
mov eax, dword [eax + 8]
test eax, eax
je 0x46d921
cmp esi, 0x20
je 0x46d8fd
cmp esi, 0xffffffff
jne 0x46d921
push esi
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call eax
jmp 0x46da75
mov eax, dword [esp + 0x2c]
inc eax
imul ebp, eax, 3
and ebp, 0xfffffffc
mov eax, ebp
mov dword [esp + 0x14], ebp
imul eax, dword [esp + 0x30]
push eax
push 0
push dword [0x320b834]
call dword [0x3209068]
mov dword [esp + 0x18], eax
test eax, eax
je 0x46da77
mov ebx, dword [esp + 0x30]
test ebx, ebx
jle 0x46da19
mov edx, dword [esp + 0x24]
mov ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
mov esi, edx
test eax, eax
jle 0x46d9f8
mov ebp, ecx
mov edi, eax
mov ecx, 0xff
movzx eax, byte [esi + 2]
sub eax, ecx
movzx ecx, byte [esi + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp + 2], al
movzx eax, byte [esi + 1]
sub eax, ecx
movzx ecx, byte [esi + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp + 1], al
movzx eax, byte [esi]
lea esi, [esi + 4]
sub eax, ecx
movzx ecx, byte [esi - 1]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp], al
lea ebp, [ebp + 3]
sub edi, 1
jne 0x46d987
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
add edx, dword [esp + 0x34]
add ecx, ebp
sub dword [esp + 0x24], 1
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], ecx
jne 0x46d974
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x10]
mov eax, dword [edi*4 + 0x320e7f8]
push esi
push dword [esp + 0x44]
mov esi, dword [esp + 0x20]
push dword [esp + 0x44]
push ebp
push ebx
push dword [esp + 0x40]
push esi
push dword [esp + 0x3c]
call dword [eax + 4]
push esi
push 0
push dword [0x320b834]
mov ebx, eax
call dword [0x320905c]
jmp 0x46da77
cmp dword [esp + 0x38], 0x18
jne 0x46da77
push esi
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call dword [eax + 4]
mov ebx, eax
pop edi
mov eax, ebx
pop ebp
pop esi
pop ebx
add esp, 0xc
ret 0x28
Function at 0x4e17e0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [ebx + 0x48]
mov ecx, dword [edi + 0x18]
cmp ecx, 0xc
jle 0x4e17fd
pop edi
mov dword [ebx + 0x40], 0x70
xor eax, eax
pop ebx
ret
push ebp
push esi
cmp dword [edi + 0x2c], ecx
jge 0x4e18bd
lea esi, [edi + 0x44]
nop dword [eax + eax]
mov dl, byte [esi]
test dl, dl
jne 0x4e188f
mov ecx, dword [ebx + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4e182b
push 1
push esi
push ebx
call eax
add esp, 0xc
jmp 0x4e183b
push dword [ecx + 0x38]
push 1
push 1
push esi
call fcn.0050533d
add esp, 0x10
cmp eax, 1
jne 0x4e1916
mov al, byte [esi]
test al, al
je 0x4e1907
mov edx, dword [ebx + 0x48]
lea ebp, [esi + 1]
movzx eax, al
mov ecx, dword [edx + 0x3c]
test ecx, ecx
je 0x4e1868
push eax
push ebp
push ebx
call ecx
add esp, 0xc
jmp 0x4e1877
push dword [edx + 0x38]
push eax
push 1
push ebp
call fcn.0050533d
add esp, 0x10
mov dl, byte [esi]
mov ecx, eax
movzx eax, dl
cmp ecx, eax
jne 0x4e1916
mov al, byte [ebp]
mov byte [ebp], 2
jmp 0x4e189d
mov cl, byte [esi + 1]
movzx eax, cl
inc cl
mov al, byte [eax + esi]
mov byte [esi + 1], cl
dec dl
movzx eax, al
mov byte [esi], dl
mov ecx, dword [edi + 0x2c]
shl eax, cl
or dword [edi + 0x30], eax
lea eax, [ecx + 8]
mov dword [edi + 0x2c], eax
mov ecx, dword [edi + 0x18]
cmp eax, ecx
jl 0x4e1810
mov eax, dword [esp + 0x18]
movzx ecx, word [ecx*2 + 0x544f60]
and ecx, dword [edi + 0x30]
mov dword [eax], ecx
mov ecx, dword [edi + 0x18]
shr dword [edi + 0x30], cl
sub dword [edi + 0x2c], ecx
mov eax, dword [edi + 0x14]
cmp eax, 0x1001
jge 0x4e18fd
mov edx, dword [edi + 0x1c]
inc eax
mov dword [edi + 0x14], eax
cmp eax, edx
jle 0x4e18fd
cmp ecx, 0xc
jge 0x4e18fd
lea eax, [edx + edx]
mov dword [edi + 0x1c], eax
lea eax, [ecx + 1]
mov dword [edi + 0x18], eax
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
ret
pop esi
pop ebp
mov eax, 0x70
mov dword [ebx + 0x40], eax
xor eax, eax
pop edi
pop ebx
ret
pop esi
pop ebp
mov eax, 0x66
mov dword [ebx + 0x40], eax
xor eax, eax
pop edi
pop ebx
ret

Function at 0x4e1c80
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esi + 0x48]
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x4e1c9f
push 1
lea ecx, [esp + 0x10]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4e1cb3
push dword [edi + 0x38]
lea eax, [esp + 0x10]
push 1
push 1
push eax
call fcn.0050533d
add esp, 0x10
cmp eax, 1
jne 0x4e1d09
mov al, byte [esp + 0xc]
lea ecx, [edi + 0x44]
test al, al
je 0x4e1d15
mov edx, dword [esp + 0x10]
mov dword [edx], ecx
mov byte [ecx], al
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x4e1ce7
movzx eax, byte [esp + 0xc]
push eax
mov eax, dword [edx]
inc eax
push eax
push esi
call ecx
add esp, 0xc
jmp 0x4e1cfe
push dword [eax + 0x38]
movzx eax, byte [esp + 0x10]
push eax
mov eax, dword [edx]
inc eax
push 1
push eax
call fcn.0050533d
add esp, 0x10
mov ecx, eax
movzx eax, byte [esp + 0xc]
cmp ecx, eax
je 0x4e1d29
pop edi
mov dword [esi + 0x40], 0x66
xor eax, eax
pop esi
ret
mov eax, dword [esp + 0x10]
mov dword [eax], 0
mov byte [ecx], 0
mov dword [edi + 0x34], 0
pop edi
mov eax, 1
pop esi
ret
Function at 0x4e1d40
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esi + 0x48]
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x4e1d5f
push 1
lea ecx, [esp + 0x10]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4e1d73
push dword [edi + 0x38]
lea eax, [esp + 0x10]
push 1
push 1
push eax
call fcn.0050533d
add esp, 0x10
cmp eax, 1
jne 0x4e1dc9
mov cl, byte [esp + 0xc]
test cl, cl
je 0x4e1dd5
mov edx, dword [esp + 0x10]
lea eax, [edi + 0x44]
mov dword [edx], eax
mov byte [eax], cl
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x4e1da7
movzx eax, byte [esp + 0xc]
push eax
mov eax, dword [edx]
inc eax
push eax
push esi
call ecx
add esp, 0xc
jmp 0x4e1dbe
push dword [eax + 0x38]
movzx eax, byte [esp + 0x10]
push eax
mov eax, dword [edx]
inc eax
push 1
push eax
call fcn.0050533d
add esp, 0x10
mov ecx, eax
movzx eax, byte [esp + 0xc]
cmp ecx, eax
je 0x4e1ddf
pop edi
mov dword [esi + 0x40], 0x66
xor eax, eax
pop esi
ret
mov eax, dword [esp + 0x10]
mov dword [eax], 0
pop edi
mov eax, 1
pop esi
ret
Function at 0x4e21b0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x48]
test byte [eax], 8
jne 0x4e21c8
mov dword [esi + 0x40], 0x6f
xor eax, eax
pop esi
ret
push esi
push esi
call fcn.004e2350
add esp, 8
test eax, eax
je 0x4e21c4
lea eax, [esi + 4]
push eax
push esi
call fcn.004e2350
add esp, 8
test eax, eax
je 0x4e21c4
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4e2200
push 3
lea ecx, [esp + 0xc]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4e2214
push dword [ecx + 0x38]
lea eax, [esp + 0xc]
push 3
push 1
push eax
call fcn.0050533d
add esp, 0x10
cmp eax, 3
je 0x4e2236
push dword [esi + 0x14]
mov dword [esi + 0x40], 0x66
call fcn.004e2ab0
add esp, 4
mov dword [esi + 0x14], 0
xor eax, eax
pop esi
ret
mov dl, byte [esp + 8]
movzx ecx, dl
mov eax, ecx
shr eax, 4
and eax, 7
inc eax
push ebx
mov dword [esi + 8], eax
mov bl, dl
movzx eax, byte [esp + 0xd]
shr bl, 3
mov dword [esi + 0xc], eax
and bl, 1
mov al, byte [esp + 0xe]
mov byte [esi + 0x10], al
push edi
test dl, dl
jns 0x4e2333
and ecx, 7
mov eax, 1
inc ecx
shl eax, cl
push 0
push eax
call fcn.004e2b60
add esp, 8
mov dword [esi + 0x14], eax
test eax, eax
jne 0x4e2292
pop edi
pop ebx
mov dword [esi + 0x40], 0x6d
pop esi
ret
mov byte [eax + 8], bl
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp dword [eax], ebx
jle 0x4e233a
xor edi, edi
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4e22bd
push 3
lea ecx, [esp + 0x14]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4e22d1
push dword [ecx + 0x38]
lea eax, [esp + 0x14]
push 3
push 1
push eax
call fcn.0050533d
add esp, 0x10
mov ecx, dword [esi + 0x14]
cmp eax, 3
jne 0x4e2316
mov ecx, dword [ecx + 0xc]
inc ebx
movzx eax, byte [esp + 0x10]
mov byte [edi + ecx], al
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0xc]
movzx eax, byte [esp + 0x11]
mov byte [ecx + edi + 1], al
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0xc]
movzx eax, byte [esp + 0x12]
mov byte [ecx + edi + 2], al
add edi, 3
mov eax, dword [esi + 0x14]
cmp ebx, dword [eax]
jl 0x4e22a4
pop edi
pop ebx
mov eax, 1
pop esi
ret
push ecx
call fcn.004e2ab0
add esp, 4
mov dword [esi + 0x14], 0
mov dword [esi + 0x40], 0x66
xor eax, eax
pop edi
pop ebx
pop esi
ret
mov dword [esi + 0x14], 0
pop edi
pop ebx
mov eax, 1
pop esi
ret

Function at 0x4e2350
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4e236e
push 2
lea ecx, [esp + 0xc]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4e2382
push dword [ecx + 0x38]
lea eax, [esp + 0xc]
push 2
push 1
push eax
call fcn.0050533d
add esp, 0x10
cmp eax, 2
je 0x4e2392
mov dword [esi + 0x40], 0x66
xor eax, eax
pop esi
ret
mov ax, word [esp + 8]
movzx ecx, ah
movzx eax, al
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0xc]
pop esi
mov dword [eax], ecx
mov eax, 1
ret
Function at 0x4e23b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push edi
push 0x4c
call fcn.004e3dd6
mov esi, eax
add esp, 4
test esi, esi
jne 0x4e23df
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4e2500
pop edi
mov dword [eax], 0x6d
xor eax, eax
pop esi
add esp, 8
ret
push 0x4c
push 0
push esi
call fcn.00429100
push 0x614c
push 1
call fcn.004e3dfc
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4e241d
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4e240c
mov dword [eax], 0x6d
push esi
call fcn.004e3de1
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 8
ret
push 0x614c
push 0
push edi
call fcn.00429100
mov eax, dword [esp + 0x24]
add esp, 0xc
mov dword [esi + 0x48], edi
mov dword [edi + 0x3c], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 4], 0
mov dword [edi + 0x38], 0
mov dword [edi], 8
mov ecx, dword [esi + 0x48]
mov dword [esi + 0x44], eax
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4e246b
push 6
lea ecx, [esp + 0xc]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4e247f
push dword [ecx + 0x38]
lea eax, [esp + 0xc]
push 6
push 1
push eax
call fcn.0050533d
add esp, 0x10
cmp eax, 6
je 0x4e2494
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4e24bf
mov dword [eax], 0x66
jmp 0x4e24bf
push 3
lea eax, [esp + 0xc]
mov byte [esp + 0x12], 0
push eax
push str.GIFVER
call fcn.004e3e10
add esp, 0xc
test eax, eax
je 0x4e24d6
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4e24bf
mov dword [eax], 0x67
push edi
call fcn.004e3de1
push esi
call fcn.004e3de1
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 8
ret
push esi
call fcn.004e21b0
add esp, 4
test eax, eax
jne 0x4e2508
push edi
call fcn.004e3de1
push esi
call fcn.004e3de1
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
je 0x4e2500
mov dword [eax], 0x68
pop edi
xor eax, eax
pop esi
add esp, 8
ret
mov dword [esi + 0x40], 0
cmp byte [esp + 0xb], 0x39
sete al
mov byte [edi + 0x6148], al
mov eax, esi
pop edi
pop esi
add esp, 8
ret
Function at 0x4e3960
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4e398d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4e398d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x519f40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x51a0c5
cmp dword [esi + 0x20], 0
je 0x51a0c5
cmp dword [esi + 0x24], 0
je 0x51a0c5
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x51a0c5
cmp dword [eax], esi
jne 0x51a0c5
mov eax, dword [eax + 4]
cmp eax, 0x2a
je 0x519fa5
cmp eax, 0x39
je 0x519fa5
cmp eax, 0x45
je 0x519fa5
cmp eax, 0x49
je 0x519fa5
cmp eax, 0x5b
je 0x519fa5
cmp eax, 0x67
je 0x519fa5
cmp eax, 0x71
je 0x519fa5
cmp eax, 0x29a
jne 0x51a0c5
push edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], eax
test ecx, ecx
jns 0x519fde
neg ecx
mov dword [edi + 0x18], ecx
cmp ecx, 2
mov eax, 0x2a
push 0
mov edx, 0x39
cmove eax, edx
push 0
mov dword [edi + 4], eax
push 0
jne 0x51a000
call fcn.004aaf10
jmp 0x51a005
call fcn.004ab4a0
add esp, 0xc
mov dword [esi + 0x30], eax
mov dword [edi + 0x28], 0xfffffffe
push edi
call fcn.0051b130
mov esi, dword [esi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.00429100
mov eax, dword [esi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x54cf3a]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x54cf38]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x54cf3c]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x54cf3e]
pop edi
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret

Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43200c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x408c40
Capabilities:
Check for time delay via gettickcount
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x4ffc38], 0
push ebx
push esi
push edi
jge 0x408d13
push 0x500bd0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
test eax, eax
je 0x408caf
mov dword [0x4ffc38], 1
call fcn.0044609b
mov ecx, eax
mov edi, 0x3e8
mov eax, edx
add esp, 4
mul edi
push 0x500bc8
mov esi, eax
mov eax, ecx
mul edi
add esi, edx
mov dword [0x500bc0], eax
mov dword [0x500bc4], esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov esi, dword [0x500bc4]
mov eax, dword [0x500bc0]
jmp 0x408cee
mov dword [0x4ffc38], 0
call fcn.0044609b
add esp, 4
mov edi, eax
mov esi, edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov ebx, 0x3e8
mov eax, esi
mul ebx
mov esi, eax
mov eax, edi
mul ebx
add esi, edx
sub eax, ecx
mov dword [0x500bc0], eax
sbb esi, 0
mov dword [0x500bc4], esi
test esi, esi
jg 0x408d0c
jl 0x408cf8
test eax, eax
jne 0x408d0c
mov dword [0x500bc0], 1
mov dword [0x500bc4], 0
cmp dword [0x4ffc38], 0
jle 0x408d65
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 8]
sub ecx, dword [0x500bc8]
mov eax, dword [ebp - 4]
sbb eax, dword [0x500bcc]
push 0
push 0x3e8
push eax
push ecx
call fcn.0045f5d0
push dword [0x500bd4]
push dword [0x500bd0]
push edx
push eax
call fcn.0045f380
add eax, dword [0x500bc0]
adc edx, dword [0x500bc4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
add eax, dword [0x500bc0]
pop edi
adc edx, dword [0x500bc4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408fb0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 8]
push edi
mov edi, edx
call fcn.004143d0
mov ebx, eax
test ebx, ebx
jns 0x409001
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x408ff5
push 0x12f8
push str.yapi
push str.Device_not_found
push str._s___s:_d_
push 0x100
push eax
call fcn.0041c830
add esp, 0x18
mov eax, 0xfffffffc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x500b60]
push dword [eax + 0x3830]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x500b60]
mov esi, dword [eax + ebx*4 + 0x38bc]
test esi, esi
jne 0x409037
mov ecx, edi
call fcn.004184e0
mov esi, eax
mov eax, dword [0x500b60]
mov dword [eax + ebx*4 + 0x38bc], esi
push dword [eax + 0x3830]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp + 0x20], 0
je 0x4090be
mov eax, dword [esi]
cmp dword [eax + 0x84], 0
je 0x4090be
mov eax, dword [eax + 8]
test eax, eax
je 0x409089
mov ecx, str.admin
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x409080
test dl, dl
je 0x40907c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x409080
add eax, 2
add ecx, 2
test dl, dl
jne 0x409060
xor eax, eax
jmp 0x409085
sbb eax, eax
or eax, 1
test eax, eax
je 0x4090be
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x4090b2
push 0x1305
push str.yapi
push str.Access_denied:_admin_credentials_required
push str._s___s:_d_
push 0x100
push eax
call fcn.0041c830
add esp, 0x18
mov eax, 0xfffffff4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
cmp dword [eax + 0x7c], 0
jne 0x4090cf
cmp dword [eax + 0x80], 0
jne 0x40912e
mov eax, dword [edi + 0x88]
or eax, dword [edi + 0x8c]
je 0x4090fa
call fcn.00408c40
sub eax, dword [edi + 0x88]
sbb edx, dword [edi + 0x8c]
mov dword [ebp - 0xc], edx
jne 0x4090fa
cmp eax, 0xfa0
jb 0x40912e
cmp dword [edi + 0xac], 2
je 0x40912e
mov ecx, dword [ebp + 0x28]
test ecx, ecx
je 0x409122
mov eax, dword [esi]
push dword [eax + 4]
push str.hub__s_is_not_reachable
push 0x100
push ecx
call fcn.0041c830
add esp, 0x10
mov eax, 0xfffffff8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x28]
push edi
mov edx, dword [ebp + 0x14]
sub esp, 8
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
mov ecx, esi
call fcn.00418580
add esp, 0x28
test eax, eax
jne 0x409192
cmp dword [ebp + 0x20], eax
je 0x409186
push eax
push 1
lea eax, [ebp - 4]
mov byte [ebp - 4], 2
push eax
mov eax, dword [esi]
push dword [eax + 0x98]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x409186
mov ecx, edi
call fcn.00415f70
test eax, eax
jne 0x409192
mov eax, dword [ebp - 8]
mov dword [eax + 0x14], ebx
mov byte [eax + 0x10], 2
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret