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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 0x10]
xor dl, dl
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0
test bl, 3
mov dword [ebp - 4], edx
push esi
sete al
test eax, eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 8], eax
je 0x43807b
test al, 3
mov eax, 0
sete al
test eax, eax
je 0x438078
mov edx, ecx
mov dword [ebp - 4], 0
shr edx, 2
xor esi, esi
mov dword [ebp - 0xc], edx
test edx, edx
je 0x438035
mov edi, dword [ebp + 0xc]
cmp edx, 8
jb 0x438010
mov eax, edx
mov ecx, ebx
and eax, 0xfffffff8
xorps xmm2, xmm2
sub ecx, edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
lea eax, [edi + 0x10]
mov ecx, dword [ebp + 0x10]
movaps xmm3, xmm2
mov edx, dword [ebp - 8]
nop
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ebx + esi*4]
add esi, 8
pxor xmm1, xmm0
por xmm2, xmm1
movups xmm1, xmmword [edx + eax - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
por xmm3, xmm1
cmp esi, dword [ebp - 4]
jb 0x437fc0
mov edx, dword [ebp - 0xc]
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd dword [ebp - 4], xmm2
cmp esi, edx
jae 0x438035
mov ebx, dword [ebp + 8]
lea edi, [edi + esi*4]
sub ebx, dword [ebp + 0xc]
sub edx, esi
add esi, edx
mov eax, dword [edi + ebx]
lea edi, [edi + 4]
xor eax, dword [edi - 4]
or dword [ebp - 4], eax
sub edx, 1
jne 0x438021
mov ebx, dword [ebp + 8]
shl esi, 2
sub ecx, esi
jne 0x43804b
xor eax, eax
cmp dword [ebp - 4], eax
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
add ebx, esi
add eax, esi
mov dword [ebp + 8], ebx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov edx, eax
shr eax, 0x10
shr edx, 0x18
or dl, al
mov eax, dword [ebp - 4]
shr eax, 8
or dl, al
mov eax, dword [ebp - 8]
or dl, byte [ebp - 4]
mov dword [ebp - 4], edx
jmp 0x43807b
mov eax, dword [ebp + 0xc]
xor edi, edi
test ecx, ecx
je 0x438140
cmp ecx, 0x20
jb 0x43811d
mov esi, ecx
xorps xmm3, xmm3
and esi, 0xffffffe0
movaps xmm2, xmm3
mov dword [ebp - 0xc], esi
mov esi, ebx
sub esi, dword [ebp - 8]
mov dword [ebp - 0x10], esi
lea esi, [ebx + 0x10]
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [eax + ebx - 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x10]
por xmm3, xmm1
movups xmm1, xmmword [edx + edi]
add edi, 0x20
pxor xmm1, xmm0
por xmm2, xmm1
cmp edi, esi
jb 0x4380b3
por xmm2, xmm3
mov edx, dword [ebp - 4]
movaps xmm0, xmm2
mov ebx, dword [ebp + 8]
psrldq xmm0, 8
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd eax, xmm2
or dl, al
cmp edi, ecx
jae 0x438140
mov eax, dword [ebp - 8]
sub ebx, eax
sub ecx, edi
lea esi, [edi + eax]
nop dword [eax + eax]
mov al, byte [esi + ebx]
lea esi, [esi + 1]
xor al, byte [esi - 1]
or dl, al
sub ecx, 1
jne 0x438130
pop edi
test dl, dl
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4383f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
mov eax, 0
mov edx, dword [ebp + 0x10]
test cl, 3
push ebx
mov ebx, dword [ebp + 0xc]
sete al
mov dword [ebp - 4], ecx
push esi
push edi
test eax, eax
je 0x4384d6
test bl, 3
mov eax, 0
sete al
test eax, eax
je 0x4384d6
mov esi, edx
xor edi, edi
shr esi, 2
test esi, esi
je 0x4384c4
cmp esi, 8
jb 0x43849f
lea eax, [ebx - 4]
lea eax, [eax + esi*4]
cmp ecx, eax
ja 0x438453
lea eax, [ecx - 4]
lea eax, [eax + esi*4]
cmp eax, ebx
jae 0x43849f
mov eax, esi
mov edx, ebx
and eax, 0xfffffff8
sub edx, ecx
mov dword [ebp - 8], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
lea eax, [ecx + 0x10]
mov ecx, dword [ebp - 8]
nop dword [eax + eax]
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ebx + edi*4]
add edi, 8
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [ecx + eax - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp edi, dword [ebp - 0xc]
jb 0x438470
mov ecx, dword [ebp - 4]
cmp edi, esi
jae 0x4384c4
mov edx, ebx
lea ecx, [ecx + edi*4]
sub edx, dword [ebp - 4]
sub esi, edi
add edi, esi
nop
mov eax, dword [ecx + edx]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
sub esi, 1
jne 0x4384b0
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
shl edi, 2
sub edx, edi
je 0x43855e
add ecx, edi
add ebx, edi
mov dword [ebp - 4], ecx
xor esi, esi
test edx, edx
je 0x43855e
cmp edx, 0x20
jb 0x43853e
lea eax, [ebx - 1]
lea edi, [ecx - 1]
add eax, edx
add edi, edx
cmp ecx, eax
ja 0x4384f7
cmp edi, ebx
jae 0x43853e
mov edi, edx
mov eax, ecx
and edi, 0xffffffe0
mov dword [ebp - 0xc], edi
mov edi, ebx
sub edi, ecx
mov dword [ebp - 8], edi
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
nop
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [eax + ecx - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [ebx + esi + 0x10]
add esi, 0x20
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp esi, edi
jb 0x438510
mov ecx, dword [ebp - 4]
cmp esi, edx
jae 0x43855e
sub ebx, dword [ebp - 4]
add ecx, esi
sub edx, esi
nop dword [eax]
mov al, byte [ecx + ebx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x438550
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x439090
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e57d6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x66c488]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x30]
xor al, al
mov ecx, dword [esi + 0x2c]
mov edi, edx
rep stosb byte es:[edi], al
push edx
mov dword [ebp - 4], 0
call fcn.0046c5f0
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x4390df
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x4390f0
push 0x44
push esi
call fcn.005b0802
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4391f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e250c
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x66c488]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x50]
xor al, al
mov ecx, dword [esi + 0x4c]
mov edi, edx
rep stosb byte es:[edi], al
push edx
mov dword [ebp - 4], 0
call fcn.0046c5f0
mov edx, dword [esi + 0x30]
xor al, al
mov ecx, dword [esi + 0x2c]
mov edi, edx
rep stosb byte es:[edi], al
push edx
mov dword [ebp - 4], 1
call fcn.0046c5f0
mov ecx, dword [esi + 0xc]
add esp, 8
test ecx, ecx
je 0x439258
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x439269
push 0x60
push esi
call fcn.005b0802
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x43ba30
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
pop ebp
ret
Function at 0x43f960
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor edx, edx
push esi
mov dword [ebp - 0x14], edx
push edi
nop
movzx edi, byte [edx + 0x604e98]
mov eax, edi
mov dword [ebp - 8], edi
shr eax, 5
mov esi, edi
mov edx, eax
shr esi, 6
mov ebx, eax
lea ecx, [edi + edi]
xor ecx, edi
and eax, 1
mov dword [ebp - 0x10], eax
and ebx, 2
shr edi, 7
and edx, 4
mov dword [ebp - 0xc], edx
mov edx, esi
lea eax, [ecx + ecx]
and esi, 1
xor eax, dword [ebp - 8]
and edx, 2
shl eax, 0x19
mov dword [ebp - 4], eax
imul eax, edi, 0x1b000000
shl ecx, 2
xor ecx, dword [ebp - 8]
shl ecx, 8
xor dword [ebp - 4], eax
imul eax, dword [ebp - 0x10], 0x1b000000
xor dword [ebp - 4], eax
imul eax, ebx, 0x1b000000
xor dword [ebp - 4], eax
imul eax, esi, 0x1b000000
xor dword [ebp - 4], eax
imul eax, edx, 0x1b000000
xor dword [ebp - 4], eax
imul eax, dword [ebp - 0xc], 0x1b000000
xor dword [ebp - 4], eax
imul eax, dword [ebp - 0x10], 0x11b00
xor ecx, eax
imul eax, ebx, 0x11b00
xor ecx, eax
imul eax, esi, 0x11b00
xor ecx, eax
imul eax, edx, 0x11b00
mov edx, dword [ebp - 4]
xor ecx, eax
imul eax, dword [ebp - 0xc], 0x11b00
xor ecx, eax
mov eax, dword [ebp - 8]
or edx, ecx
lea ecx, [eax*8]
xor ecx, eax
imul eax, dword [ebp - 0x10], 0x11b0000
shl ecx, 0x10
xor ecx, eax
imul eax, ebx, 0x11b0000
xor ecx, eax
imul eax, dword [ebp - 0xc], 0x11b0000
xor ecx, eax
mov eax, dword [ebp - 8]
or edx, ecx
lea ecx, [eax*4]
xor ecx, eax
imul eax, edi, 0x11b
add ecx, ecx
xor ecx, eax
imul eax, dword [ebp - 0x10], 0x11b
xor ecx, eax
imul eax, ebx, 0x11b
mov ebx, dword [ebp - 8]
xor ecx, eax
imul eax, dword [ebp - 0xc], 0x11b
xor ecx, eax
xor eax, eax
xor ecx, ebx
or ebx, edx
or ecx, edx
mov edx, dword [ebp - 0x14]
or eax, ebx
mov dword [edx*8 + 0x675e60], eax
mov dword [edx*8 + 0x675e64], ecx
inc edx
mov dword [ebp - 0x14], edx
cmp edx, 0x100
jl 0x43f970
pop edi
pop esi
mov byte [0x676661], 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x441f70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e5710
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x66c488]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0
call fcn.00434e70
lea eax, [esi + 0x14]
mov dword [esi + 0xc], 0xffffffff
mov byte [esi + 0x10], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [esi], vtable.CryptoPP::FileStore.0
mov dword [esi + 4], vtable.CryptoPP::FileStore.1.0
mov dword [esi + 0x24], 0
mov dword [ebp - 0x10], eax
mov eax, esi
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov byte [esi + 0x34], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x442030
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e5767
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x66c488]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 1
call fcn.00434e70
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 2
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 0xa
call fcn.00445a30
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 0xb
call fcn.00445a30
mov byte [esi + 0x5c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x442370
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e57b4
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x66c488]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x50]
xor eax, eax
mov ebx, dword [esi + 0x54]
mov ecx, edx
mov edi, ebx
mov dword [ebp - 4], 0
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push ebx
cmp eax, 0x10
jb 0x4423c0
call fcn.00437cd0
jmp 0x4423c5
call fcn.0046c5f0
add esp, 4
mov edx, dword [esi + 0x3c]
xor eax, eax
mov ebx, dword [esi + 0x40]
mov ecx, edx
mov edi, ebx
mov dword [ebp - 4], 1
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push ebx
cmp eax, 0x10
jb 0x4423f1
call fcn.00437cd0
jmp 0x4423f6
call fcn.0046c5f0
add esp, 4
mov edx, dword [esi + 0x30]
xor al, al
mov ecx, dword [esi + 0x2c]
mov edi, edx
rep stosb byte es:[edi], al
push edx
mov dword [ebp - 4], 2
call fcn.0046c5f0
mov edx, dword [esi + 0x24]
xor al, al
mov ecx, dword [esi + 0x20]
mov edi, edx
rep stosb byte es:[edi], al
push edx
mov dword [ebp - 4], 3
call fcn.0046c5f0
mov edx, dword [esi + 0x18]
xor al, al
mov ecx, dword [esi + 0x14]
mov edi, edx
rep stosb byte es:[edi], al
push edx
mov dword [ebp - 4], 4
call fcn.0046c5f0
mov edx, dword [esi + 0xc]
xor al, al
mov ecx, dword [esi + 8]
mov edi, edx
rep stosb byte es:[edi], al
push edx
mov dword [ebp - 4], 5
call fcn.0046c5f0
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45dd40
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e6d58
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x66c488]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 0xf0000000
push 1
push 0
push 0
push esi
mov dword [esi], 0
call edi
test eax, eax
jne 0x45dde8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 8
push 1
push 0
push str.Crypto_RNG
push esi
mov ebx, eax
call edi
test eax, eax
jne 0x45dde8
push 0x28
push 1
push eax
push str.Crypto_RNG
push esi
call edi
test eax, eax
jne 0x45dde8
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CryptAcquireContext
lea ecx, [ebp - 0x24]
call fcn.00411640
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x4c]
call fcn.0045dea0
push 0x65576c
lea eax, [ebp - 0x4c]
push eax
call fcn.005b3814
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45e0a0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e6df4
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x66c488]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x67d918]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x676750]
cmp eax, dword [ecx + 4]
jle 0x45e11f
push 0x676750
call fcn.005b0ddd
add esp, 4
cmp dword [0x676750], 0xffffffff
jne 0x45e11f
lea ecx, [ebp - 0xd]
mov dword [ebp - 4], 0
call fcn.0045e190
push 0x676750
mov dword [0x67674c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.005b0d9e
add esp, 4
push dword [ebp + 8]
mov eax, dword [0x67674c]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x45e173
push 0xe
push 0x605400
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.00410340
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x50]
call fcn.0045dea0
push 0x65576c
lea eax, [ebp - 0x50]
push eax
call fcn.005b3814
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x466500
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
test ebx, ebx
jne 0x466520
push ebx
push ebx
push ebx
push 2
call fcn.00468930
pop esi
xor al, al
pop ebx
pop ebp
ret 8
push edi
call fcn.00465a70
push 2
push 0
push ebx
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
call fcn.005c3926
push ebx
call fcn.005c8ca3
push 0
mov edi, eax
push 0
push ebx
mov dword [ebp + 8], edi
call fcn.005c3926
add esp, 0x1c
test edi, edi
jg 0x466572
push 0
push 0
push 0
push 0xc
mov ecx, esi
call fcn.00468930
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
lea eax, [edi + 1]
push eax
call fcn.0046c5e4
push ebx
mov ebx, dword [ebp + 8]
mov edi, eax
push 1
push ebx
push edi
mov byte [edi], 0
call fcn.005c5698
add esp, 0x14
cmp eax, 1
je 0x4665b6
push edi
call fcn.0046c5f0
add esp, 4
mov ecx, esi
push 0
push 0
push 0
push 2
call fcn.00468930
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
mov byte [edi + ebx], 0
mov eax, edi
cmp byte [edi], 0
mov ecx, edi
je 0x4665e1
mov dl, byte [eax]
mov ebx, eax
cmp dl, 0xd
jne 0x4665d8
inc eax
mov byte [ecx], 0xa
cmp byte [eax], 0xa
cmovne eax, ebx
jmp 0x4665da
mov byte [ecx], dl
inc eax
inc ecx
cmp byte [eax], 0
jne 0x4665c3
push dword [ebp + 0xc]
mov byte [ecx], 0
mov ecx, esi
mov eax, dword [esi]
push 0
push edi
call dword [eax + 8]
push edi
call fcn.0046c5f0
add esp, 4
cmp byte [esi + 0x40], 0
sete al
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x469df0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e7d88
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x66c488]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
call fcn.0046d771
mov ecx, eax
test ecx, ecx
jne 0x469e2f
push 0x80004005
call fcn.0040aa40
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push 0x607ff4
push eax
call fcn.0040a290
add esp, 0xc
lea ecx, [ebp - 0x38]
call fcn.00489f75
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x38]
push 0
push esi
mov byte [ebp - 4], 1
call fcn.0048a080
or ebx, 0xffffffff
test eax, eax
je 0x469f33
nop word [eax + eax]
lea ecx, [ebp - 0x38]
call fcn.0048a23f
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x1c], eax
call fcn.0048a5f0
cmp eax, 1
je 0x469f29
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x38]
push 0x10
call dword [eax + 0x38]
cmp eax, 1
jne 0x469eed
cmp dword [ebp + 0xc], eax
jne 0x469f29
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x38]
call fcn.0048a340
push 1
push dword [eax]
mov byte [ebp - 4], 2
call fcn.00469df0
mov edx, dword [ebp - 0x14]
add esp, 8
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x469f29
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x469f29
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x38]
call fcn.0048a340
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebp - 0x18]
test eax, eax
sete bl
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x469f21
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x469f26
inc edi
or ebx, 0xffffffff
cmp dword [ebp - 0x1c], 0
jne 0x469e80
lea ecx, [ebp - 0x38]
call fcn.0048a027
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x38]
call fcn.00489fac
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x469f68
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x469f80
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x469f8c
pop ebp
ret
push esi
push edi
push eax
xor edi, edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
jne 0x469fa1
pop edi
pop esi
pop ebp
ret
mov eax, dword [esi + 0xc]
cmp dword [eax], edi
je 0x469fc8
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_inet_ntoa]
nop
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
push dword [eax]
call ebx
add dword [esi + 0xc], 4
mov edi, eax
mov ecx, dword [esi + 0xc]
cmp dword [ecx], 0
jne 0x469fb0
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x46a060
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2888
call fcn.005b0c70
mov eax, dword [0x66c488]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x2888]
mov ebx, 0x10
mov dword [ebp - 0x2888], 0x2880
push eax
xor esi, esi
lea eax, [ebp - 0x2884]
cmp dword [ebp + 0xc], ebx
push eax
cmovle ebx, dword [ebp + 0xc]
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x46a0d1
lea ecx, [ebp - 0x2884]
cmp esi, ebx
jge 0x46a0d1
mov edx, dword [ecx + 0x194]
inc esi
mov dword [edi], edx
mov edx, dword [ecx + 0x198]
mov dword [edi + 4], edx
add edi, 0x40
mov ecx, dword [ecx]
test ecx, ecx
jne 0x46a0b2
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b07f1
mov esp, ebp
pop ebp
ret

Function at 0x46a380
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 8]
push eax
push 0
push esi
push 0x46a3f0
push 0
push 0
call fcn.005cabdd
xor ecx, ecx
mov dword [esi + 4], eax
add esp, 0x18
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop esi
ret

Function at 0x46a4e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x46a55d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x46a55d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x46a50b
shr eax, 4
and eax, 1
pop esi
pop ebp
ret
push edi
push esi
call fcn.005cac78
mov edi, eax
push 0x5c
push edi
call fcn.005b5ae0
add esp, 0xc
test eax, eax
je 0x46a557
push edi
mov byte [eax], 0
call fcn.0046a4e0
add esp, 4
push edi
test al, al
jne 0x46a542
call fcn.005c0fe0
add esp, 4
pop edi
xor al, al
pop esi
pop ebp
ret
call fcn.005c0fe0
add esp, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x46a53c
pop edi
mov al, 1
pop esi
pop ebp
ret
xor al, al
pop esi
pop ebp
ret

Function at 0x46aa60
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
jne 0x46aa8c
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x46aaf7
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x46aaf7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x46aaf7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp eax, 1
sete bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret